joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x401089
jmp 0x401030
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm1, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm0, mm1
punpckhwd mm5, mm6
paddd mm4, mm4
paddd mm3, mm5
paddd mm3, mm4
movq qword [edi - 0x10], mm0
add esi, 8
sub eax, 4
movq qword [edi - 8], mm3
jge 0x401030
add eax, 4
jle 0x4010be
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add edx, edx
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x40108f
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x5b9e60
Capabilities:
Delete file

Disassembly:
mov cl, byte [0x7ce046]
mov dl, byte [0x7ce045]
mov al, cl
push esi
and al, dl
mov esi, dword [0x7ce034]
xor al, 0xea
mov byte [0x7ce045], al
mov eax, dword [0x7ce030]
mov edx, eax
and eax, 8
shr edx, 5
and esi, edx
xor edx, edx
mov dl, cl
mov dword [0x7ce034], esi
imul eax, edx
mov edx, dword [0x7ce03c]
or edx, eax
mov eax, dword [0x7d1240]
push eax
mov dword [0x7ce03c], edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x7d1534]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [0x7d1534]
push 0x23
push 0xa
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str.CONOUT_
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov dword [0x7ce064], esi
mov eax, esi
pop esi
ret

Function at 0x64f9c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x64fa49
jmp 0x64f9f0
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm1, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm0, mm1
punpckhwd mm5, mm6
paddd mm4, mm4
paddd mm3, mm5
paddd mm3, mm4
movq qword [edi - 0x10], mm0
add esi, 8
sub eax, 4
movq qword [edi - 8], mm3
jge 0x64f9f0
add eax, 4
jle 0x64fa7e
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add edx, edx
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x64fa4f
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x13210a8
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea esi, [ebp - 0xc]
call fcn.013217d8
push 0x1322120
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov eax, dword [edi + 0x3c]
lea ebx, [eax + edi + 0x78]
mov esi, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
add esi, edi
push esi
push ebx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x416c6175
mov dword [ebp - 0x24], 0x636f6c6c
mov byte [ebp - 0x20], 0
call fcn.01321745
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x466c6175
mov dword [ebp - 0x24], 0x656572
call fcn.01321745
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x1200
push esi
push 0
push eax
mov dword [ebp - 0x10], eax
call edi
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, ebx
sub eax, ebx
mov dword [ebp + 8], esi
mov dl, byte [eax + ecx]
mov byte [ecx], dl
inc ecx
dec dword [ebp + 8]
jne 0x1321149
mov edx, esi
mov ecx, ebx
call fcn.0132106d
push 0x200
push 0
push dword [ebp - 0x10]
mov dword [0x1323028], ebx
mov dword [0x132302c], esi
call edi
push 0x100
push eax
push dword [0x1323034]
mov dword [0x1323030], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [ebx + 0x3c]
add edi, ebx
push 0x40
lea eax, [edi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x38]
push 0x3000
push eax
push 0
call dword [ebp - 0x14]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x1321280
push ebx
push 0x40
pop eax
call fcn.013218d0
mov eax, esi
mov esi, dword [eax + 0x3c]
add esi, eax
movzx eax, word [edi + 0x14]
push edi
call fcn.013218d0
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
add eax, dword [ebp - 8]
movzx edx, word [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
lea esi, [edx + esi + 0x18]
test ecx, ecx
je 0x1321231
mov edi, eax
sub edi, esi
mov dword [ebp - 0x10], ecx
lea eax, [edi + esi]
push eax
push 0x28
pop eax
call fcn.013218d0
add esi, 0x28
dec dword [ebp - 0x10]
jne 0x13211f2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x1321231
lea edi, [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov eax, dword [edi]
mov esi, dword [edi - 8]
add esi, dword [ebp + 8]
add eax, ebx
push eax
mov eax, dword [edi - 4]
call fcn.013218d0
add edi, 0x28
dec dword [ebp - 0x10]
jne 0x1321216
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x68
cmp dword [eax], 0
je 0x1321245
push ebx
call fcn.013216bc
mov ecx, dword [ebp - 8]
lea esi, [ecx + 0x88]
cmp dword [esi], 0
je 0x1321259
push ebx
call fcn.0132163f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], ebx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add ecx, ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
call ecx
push pe_overlay
push 0
push ebx
call dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x438c9c
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov ecx, dword [esp]
add esp, 4
push 0x19fadc44
pop ebx
call fcn.00438cd8
add esi, 0xdd6a6c08
add ebx, 0xa939e78
dec esi
xor dword [edx], ecx
or ebx, ebx
inc ebx
inc edx
add ebx, ebx
cmp edx, eax
jne fcn.00438c9c
sub esi, 0x353d4f2a
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x401750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [edi]
or byte [ebx + 0x25c06a0d], cl
add byte [eax - 0x2f], dl
rol dword [eax + 0x68], 0x74
cwde
inc eax
out 0x51, eax
call dword [0x59c180]
mov eax, dword [0xb3416d63]
add esp, 0xc
test eax, eax
je 0x401787
and byte [esi + 0x1dbdeea8], ch

Function at 0x40a5d0
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x83ec8b55]
jb 0x40a5ee
mov ebp, esp
xor dword [edx + 0x18], 0x53
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push eax
mov dword [ebp - 4], 0
jge 0x40a5f9
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax], 0xfffffffc
je 0x40a5f9
mov ebx, dword [ecx - 0x68]
add al, 0x7a
test ecx, ecx
jne 0x40a5d1
lea eax, [ebx*4 + 4]
push esi
push eax
call dword [0x40c19c]
pop ss
les eax, [ebx + ecx*4]
clc
clc
fmul qword [ecx + 0x5d7ef4af]
mov eax, dword [ebp + 0xc]
mov esi, edi
sub ebp, ebx
mov dword [ebx], ebp
clc
imul eax, dword [ebp - 0x75], 0x458b03eb
adc byte [ebx + 0x615130da], cl
mov eax, dword [ebp + 0x10]
mov ebx, edx
xor byte [ecx + 0x61], dl
clc
or al, 0x8f
inc eax
add byte [ecx], ah
fld qword [eax + eax*2]
mov dword [esi], eax
mov edx, esi
cld
add edx, eax
mov eax, dword [ebp - 0x64]
add esi, 4
dec eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
jne 0x40a623
mov eax, dword [ebp - 0x42]
lea eax, [eax + eax*2 + 1]
push eax
mov dword [ebp - 4], eax
sbb dword [0xa2fec15c], edx
ret
Function at 0x10001000
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x42
xor eax, eax
lea edi, [esi + 0x40]
mov dword [esi + 0x148], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], ecx
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
call fcn.10001790
cmp eax, 1
mov dword [esi + 4], eax
je 0x10001069
cmp eax, 2
je 0x10001069
cmp eax, 3
je 0x10001069
mov dword [esi + 0xc], 0xfffffff9
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
mov ecx, esi
call fcn.10001b50
mov dword [esi + 8], eax
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100010a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100010a3
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esp + 0x10]
xor edx, edx
shl ecx, 0x20
xor eax, eax
add ecx, edi
adc edx, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

Function at 0x10001140
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
call fcn.10001b50
mov ebp, eax
mov ecx, dword [esi]
mov edi, ebp
xor eax, eax
imul edi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x10001195
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10001195
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100011b5
cmp dword [esp + 0x14], ebp
je 0x10001215
mov eax, dword [esi]
lea edx, [esp + 0x10]
push 0
push edx
push edi
push eax
mov dword [esp + 0x2c], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebp
shr eax, 9
je 0x10001211
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x200
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10001200
mov ecx, 0x80
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
add ebx, 0x200
dec eax
mov dword [esp + 0x18], eax
jne 0x100011dd
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x148]
test eax, eax
je 0x10001236
test ebx, ebx
jne 0x10001236
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ebx
push ebp
push eax
push ecx
mov ecx, esi
call fcn.10001730
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x10001690
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov al, byte [esi + 0x45]
mov byte [esp + 4], al
mov al, byte [esi + 0x44]
inc al
mov byte [esp + 8], al
xor eax, eax
test ecx, ecx
jbe 0x10001713
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x10]
and ecx, 0xff
lea edi, [ecx + esi + 0x46]
mov cl, byte [ecx + esi + 0x46]
add dl, cl
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x10]
and edx, 0xff
lea ebx, [edx + esi + 0x46]
mov dl, byte [edx + esi + 0x46]
mov byte [ebx], cl
mov bl, byte [esp + 0x14]
mov byte [edi], dl
add dl, cl
inc bl
and edx, 0xff
mov byte [esp + 0x14], bl
mov bl, byte [eax + ebp]
mov cl, byte [edx + esi + 0x46]
xor bl, cl
mov ecx, dword [esp + 0x20]
mov byte [eax + ebp], bl
inc eax
cmp eax, ecx
jb 0x100016b7
pop edi
pop ebp
pop ebx
mov dl, byte [esp + 4]
mov byte [esi + 0x44], 0
mov byte [esi + 0x45], dl
pop esi
add esp, 8
ret 8
Function at 0x1000e81b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10016c28
cmp edx, dword [eax]
je 0x1000e83d
add eax, 8
inc ecx
cmp eax, 0x10016cb8
jl 0x1000e82e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10016c28]
jne 0x1000e96b
mov eax, dword [0x100176b4]
cmp eax, 1
je 0x1000e945
test eax, eax
jne 0x1000e86e
cmp dword [0x100176b8], 1
je 0x1000e945
cmp edx, 0xfc
je 0x1000e96b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000e8a5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1000fae0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000f3b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000e8e8
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000f3b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100124ec
push edi
call fcn.1000f960
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1000fae0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1000faf0
lea eax, [ebp - 0xa0]
push 0x100124cc
push eax
call fcn.1000faf0
push dword [esi + 0x10016c2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.1000faf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000ffc4
add esp, 0x2c
pop edi
jmp 0x1000e96b
lea eax, [ebp + 8]
lea esi, [esi + 0x10016c2c]
push 0
push eax
push dword [esi]
call fcn.1000f3b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402c86
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x48108c]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ced
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004033f7
lea ecx, [esp + 0x1c]
call fcn.00402a16
cmp eax, dword [esp + 0x14]
je 0x402d05
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403e30
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402cbd
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409180
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403e30
jmp 0x402cef

Function at 0x402d88
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48108c], eax
push 0x27
mov esi, 0x47ec60
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
push 1
push 0x42dd9c
call fcn.004011cb
add esp, 0x10
mov edx, 0x8aafdc01
call fcn.00402c86
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402e20
lea ecx, [esp + 0x10]
call fcn.004047f3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x402e2a
cmp byte [ecx + 0x6c], 0
jne 0x402e2a
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.00402f73
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a818
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a689

Function at 0x41ac12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a250
mov eax, dword [0x432180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418734
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ac54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41adb0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424b50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x480d50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bc09
mov ecx, dword [esi*4 + 0x480d50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ada9
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ada9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ada9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bc09
add esp, 0x14
test edx, edx
jl 0x41ada9
jg 0x41ad1f
test eax, eax
jb 0x41ada9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ada9
jl 0x41ad39
cmp dword [ebp - 0x1008], eax
ja 0x41ada9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ad57
test ebx, ebx
je 0x41ad90
cmp ecx, edi
jae 0x41ad90
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ad71
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ad7d
cmp byte [ecx + 1], 0xa
jne 0x41ad7d
inc ecx
jmp 0x41ad7d
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ad57
cmp edx, ebx
jne 0x41ad57
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41adae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409180
leave
ret
Function at 0x41b0a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x480d50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b0e7
cmp byte [ebx], 0xa
jne 0x41b0e7
or byte [eax + edi + 0x28], 4
jmp 0x41b0ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b1ea
mov al, byte [edx]
cmp al, 0x1a
je 0x41b1cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b11b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b140
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b14a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b0fd
jmp 0x41b1ea
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b1c7
cmp dword [ebp - 0xc], 0
je 0x41b1c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x480d50]
test byte [eax + edi + 0x28], 0x48
je 0x41b1a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b18c
mov byte [esi], dl
jmp 0x41b19d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x480d50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b1ea
cmp byte [ebp - 1], 0xa
jne 0x41b1b0
cmp esi, ebx
jne 0x41b1b0
mov byte [esi], 0xa
jmp 0x41b1e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b1ea
mov byte [esi], 0xd
jmp 0x41b1e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x480d50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b1e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b1ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret