joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41adb0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4e7968]
test edi, edi
je 0x41ae9c
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4e79dc], 0x70
mov byte [esi + edi + 5], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov byte [esi + edi + 4], 0x69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4e7968]
mov ecx, edx
mov dword [0x4e79d8], edx
sub ecx, dword [0x4ea250]
mov dword [0x4ea250], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dd2c0]
imul ecx, dword [0x4e79dc], 0x70
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4dd204]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4e7968]
test esi, esi
je 0x41ae72
cmp esi, dword [0x4e79d4]
je 0x41ae62
imul edx, dword [0x4e79dc], 0x70
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x4e79dc]
jmp 0x41ae83
mov edx, dword [0x4e79dc]
imul ecx, edx, 0x70
mov byte [ecx + eax + 0xc], 0
jmp 0x41ae83
mov edx, dword [0x4e79dc]
imul ecx, edx, 0x70
mov dword [ecx + eax + 0xc], 0x412f4e
inc edx
mov dword [0x4e79d4], esi
xor eax, eax
cmp edx, dword [0x4e4990]
pop esi
cmovge edx, eax
mov dword [0x4e79dc], edx
pop edi
ret

Function at 0x41aea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov bl, cl
push edi
movzx ebp, bl
mov edi, edx
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
xor esi, 0xffffffff
and esi, 1
inc esi
cmp edi, 1
je 0x41aeca
cmp edi, 2
jne 0x41afa1
cmp esi, edi
je 0x41afa1
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x41aefd
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419200
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.00419200
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4e9a38]
sete bh
jne 0x41af52
mov edx, 1
mov dword [0x4e4984], 0
or ecx, 0xffffffff
call fcn.00401a30
mov dword [0x4e4984], 1
cmp bl, 0x14
jne 0x41afa1
cmp edi, 2
jne 0x41afa1
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41afa1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.00419200
add esp, 0x10
test bh, bh
je 0x41afa1
lea edx, [edi - 1]
mov dword [0x4e4984], 0
or ecx, 0xffffffff
call fcn.00401a30
mov dword [0x4e4984], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41b620
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4e7970], 0
je 0x41b635
test cl, cl
jne 0x41b635
mov al, byte [0x4e82be]
pop ecx
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0xa0
call esi
mov bx, ax
shr bx, 0xb
push 0xa1
and bl, 0x10
call esi
mov cl, bl
mov edi, 0x8000
or cl, 0x20
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa2
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 1
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa3
cmove ebx, ecx
call esi
mov cl, bl
or cl, 2
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa4
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 4
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa5
cmove ebx, ecx
call esi
mov cl, bl
or cl, 8
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0x5b
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 0x40
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0x5c
cmove ebx, ecx
call esi
mov cl, bl
or cl, 0x80
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dword [0x4e7970], 0
mov dword [esp + 0xc], edx
je 0x41b772
mov cl, byte [0x4e82be]
mov bl, dl
not bl
and bl, cl
je 0x41b772
mov dl, byte [0x4e82bc]
mov al, bl
not al
and byte [0x4e82bd], al
and cl, al
and dl, al
mov byte [0x4e82be], cl
mov ecx, 0x4e82c0
mov byte [0x4e82bc], dl
call fcn.0041b780
mov ecx, dword [0x4e840c]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x41b772
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x4e840c], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret

Function at 0x41bbe0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41bc1f
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x41bc1f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41bc1f
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop esi
add esp, 0x38
ret
Function at 0x41bd70
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebx
push esi
mov al, cl
mov ebx, edx
push edi
mov byte [esp + 0xd], al
xor edi, edi
cmp byte [edi*8 + 0x4e4a0c], al
je 0x41bee6
inc edi
cmp edi, 0x6d
jl 0x41bd83
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
mov al, byte [esp + 0xd]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x41be7f
push ebp
push 0x100
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004afdf0
mov ebp, dword [sym.imp.USER32.dll_ToAsciiEx]
lea eax, [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x12], 0
push esi
push 0
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebp
movzx ecx, byte [esp + 0x14]
cmp eax, 2
movzx edx, byte [esp + 0x12]
lea eax, [esp + 0x14]
movzx edi, byte [esp + 0x11]
cmove edx, ecx
push esi
push 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], edx
push eax
push 0
push edi
call ebp
mov dword [esp + 0x20], eax
test eax, eax
jns 0x41be29
push esi
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebp
mov eax, dword [esp + 0x1c]
test al, al
je 0x41be6e
push 1
push esi
lea edx, [esp + 0x1a]
mov cl, al
call fcn.0041c0c0
add esp, 8
mov byte [esp + 0x13], al
test al, al
je 0x41be6e
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x24]
call fcn.0041b780
push esi
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x23]
push 0
push eax
call ebp
movzx eax, byte [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x20], ecx
pop ebp
cmovne ecx, eax
jmp 0x41be8e
push esi
movzx edi, al
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov cl, al
mov byte [ebx], cl
test cl, cl
je 0x41bea4
pop edi
pop esi
mov byte [ebx + 1], 0
mov eax, ebx
pop ebx
add esp, 0x114
ret
cmp byte [esp + 0x128], 0
je 0x41bed7
cmp byte [esp + 0xd], 0
je 0x41bed7
push edi
push str.vk_02X
push dword [esp + 0x12c]
push ebx
call fcn.0049a540
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
pop edi
pop esi
mov byte [ebx], 0
mov eax, ebx
pop ebx
add esp, 0x114
ret
mov esi, dword [esp + 0x124]
dec esi
push esi
push dword [edi*8 + 0x4e4a08]
push ebx
call fcn.004b9880
add esp, 0xc
mov byte [esi + ebx], 0
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x41c000
Capabilities:
Log keystrokes

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov cl, byte [edi]
test cl, cl
je 0x41c0b7
cmp byte [edi + 1], 0
jne 0x41c027
push 1
push dword [esp + 0x1c]
call fcn.0041c0c0
add esp, 8
pop edi
pop esi
pop ecx
ret
call fcn.00412890
cmp al, 0x56
jne 0x41c065
mov cl, byte [edi + 1]
call fcn.00412890
cmp al, 0x4b
jne 0x41c065
push ebx
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 2]
push eax
call fcn.004b2b92
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp byte [ecx], bl
cmove ebx, edx
mov al, bl
pop ebx
pop edi
pop esi
pop ecx
ret
xor esi, esi
nop word [eax + eax]
push edi
push dword [esi*8 + 0x4e4a08]
call fcn.004b218a
add esp, 8
test eax, eax
je 0x41c0ac
inc esi
cmp esi, 0x6d
jl 0x41c070
cmp byte [esp + 0x10], 0
jne 0x41c0b7
xor edx, edx
mov ecx, edi
call fcn.0041bf10
movzx ecx, ax
test cx, cx
je 0x41c0b7
pop edi
pop esi
add esp, 4
jmp fcn.0041c990
mov al, byte [esi*8 + 0x4e4a0c]
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x41c0c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, edx
cmp bl, 0xa
jne 0x41c0d2
pop esi
mov al, 0xd
pop ebx
pop ecx
ret
push edi
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx edx, ax
mov ecx, edx
shr ecx, 8
cmp cl, 0xff
jne 0x41c133
cmp dl, 0xff
jne 0x41c133
cmp byte [esp + 0x18], 0
je 0x41c138
movzx edi, bl
test edi, 0xffffff80
jne 0x41c138
push 0x103
push edi
call fcn.004b47c1
add esp, 8
test eax, eax
je 0x41c138
mov cl, bl
call fcn.00412890
push 1
push edi
mov byte [esp + 0x14], al
call fcn.004b47c1
mov edx, dword [esp + 0x14]
add esp, 8
test eax, eax
setne cl
test cl, 0x38
je 0x41c13f
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
test esi, esi
je 0x41c17d
mov al, cl
and al, 6
cmp al, 6
jne 0x41c150
or byte [esi], 8
jmp 0x41c16e
test cl, 2
je 0x41c15f
mov al, byte [esi]
test al, 3
jne 0x41c15f
or al, 1
mov byte [esi], al
test cl, 4
je 0x41c16e
mov al, byte [esi]
test al, 0xc
jne 0x41c16e
or al, 4
mov byte [esi], al
test cl, 1
je 0x41c17d
mov al, byte [esi]
test al, 0x30
jne 0x41c17d
or al, 0x10
mov byte [esi], al
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret
Function at 0x41c990
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41ca08
je 0x41ca04
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41ca19.286
movzx eax, byte [eax + 0x41cabc]
jmp dword [eax*4 + 0x41ca70]
mov al, 0xa0
pop ebx
ret
mov al, 0xa2
pop ebx
ret
mov al, 0xa4
pop ebx
ret
mov al, 0x6a
pop ebx
ret
mov al, 0x6d
pop ebx
ret
mov al, 0x6b
pop ebx
ret
mov al, 0x2e
pop ebx
ret
mov al, 0xc
pop ebx
ret
mov al, 0x2d
pop ebx
ret
mov al, 0x26
pop ebx
ret
mov al, 0x28
pop ebx
ret
mov al, 0x25
pop ebx
ret
mov al, 0x27
pop ebx
ret
mov al, 0x24
pop ebx
ret
mov al, 0x23
pop ebx
ret
mov al, 0x21
pop ebx
ret
mov al, 0x22
pop ebx
ret
mov al, 0x13
pop ebx
ret
mov al, 0xd
pop ebx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x41ca19.286
movzx eax, byte [eax + 0x41cb1c]
jmp dword [eax*4 + 0x41caf4]
mov al, 0xa1
pop ebx
ret
mov al, 0xa3
pop ebx
ret
mov al, 0xa5
pop ebx
ret
mov al, 0x5b
pop ebx
ret
mov al, 0x5c
pop ebx
ret
mov al, 0x90
pop ebx
ret
mov al, 0x6f
pop ebx
ret
mov al, 0x5d
pop ebx
ret
mov al, 0x2c
pop ebx
ret
test ebx, 0x100
je 0x41ca61
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
jne 0x41ca6d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
pop ebx
ret
Function at 0x41e840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x41e8fd
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
sub edi, 1
jne 0x41e856
pop edi
test esi, esi
je 0x41e91b
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d31f8]
sub esi, 1
jne 0x41e901
not ecx
mov eax, ecx
pop esi
ret

Function at 0x41ed20
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x41ed53
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x14]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ed4c
mov dword [esi + 8], 7
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x10]
xor eax, eax
push ebx
mov ebx, dword [esi + 0x18]
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ebp, edi
add ebp, ebx
adc eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x41ed78
ja 0x41ed74
cmp ebp, ecx
jbe 0x41ed78
mov edi, ecx
sub edi, ebx
mov ecx, dword [esi + 4]
push edi
add ecx, ebx
push ecx
push edx
call fcn.004b19e0
add esp, 0xc
mov eax, edi
add dword [esi + 0x18], edi
adc dword [esi + 0x1c], 0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x420150
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
mov al, byte [ecx]
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
push esi
push edi
test al, al
je 0x420186
cmp byte [ecx + 1], 0x3a
jne 0x420186
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x42018f
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x4201e8
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x4201bc
nop dword [eax + eax]
cmp al, 0x5c
je 0x4201f5
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4201b0
xor esi, esi
test ebx, ebx
je 0x4201e8
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x4201da
call edi
cmp eax, 0xb7
jne 0x4201fa
test esi, esi
je 0x4201e8
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x4201b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x4201c2
test esi, esi
je 0x420201
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x420210
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
movzx esi, word [ecx]
mov ebx, edx
mov dword [esp + 0x10], 0xc
mov eax, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], ecx
push edi
test si, si
je 0x42024d
cmp word [ecx + 2], 0x3a
jne 0x42024d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x42025d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x4202d1
movzx ecx, word [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
movzx eax, cx
test ax, ax
je 0x42029a
cmp ax, 0x5c
je 0x4202de
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x420288
xor esi, esi
test ebx, ebx
je 0x4202d1
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x4202b8
call edi
cmp eax, 0xb7
jne 0x4202e5
test esi, esi
je 0x4202d1
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x420280
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x4202a0
test esi, esi
je 0x4202f1
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x420300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x420511
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x420511
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x4203b2
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x420363
mov edx, ebx
mov ecx, esi
call fcn.0041f4f0
cmp dword [esi + 8], 0
jne 0x420500
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.0041f800
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x42039b
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x42039b
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi + 0x70], ax
call fcn.0041f380
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 8], 0x10
je 0x4203e8
test bl, 2
je 0x4203df
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x4203d2
call fcn.00420210
jmp 0x4203d7
call fcn.00420150
test eax, eax
je 0x4204f9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x420435
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x4203fc
call fcn.00420210
jmp 0x420401
call fcn.00420150
test eax, eax
je 0x4204f9
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax + 8]
push eax
push 2
push 0
push 0
push 0x40000000
push edi
test ebx, ebx
jns 0x42042a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x420430
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x4204f9
mov edx, eax
mov ecx, esi
call fcn.0041f4f0
cmp dword [esi + 8], 0
jne 0x4204dc
cmp dword [esi + 0x4c], 0
jne 0x420472
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x420472
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x4204dc
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.0041f800
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4204bd
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esi + 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4204b6
cmp dword [esp + 0xc], ebx
jne 0x4204b6
cmp dword [esi + 8], 0
je 0x420478
jmp 0x4204bd
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x4204dc
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebx, 4
je 0x420500
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041f380
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 1
mov ecx, esi
call fcn.0041f380
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d60
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x420d8c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x28]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov ebp, eax
or ebp, 0x20
and bl, 0x20
cmove ebp, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or ebp, eax
test esi, esi
jne 0x420de0
or ebp, 0x800000
push 0
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
cmp eax, 0x28
jbe 0x420ebb
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x420ebb
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push eax
push dword [edi + 0x64]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push 0
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [edi + 0x64]
call ebx
push 0
push 0
push 0x24
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call ebx
mov eax, 0x54ad
cmp word [esp + 0x14], ax
jne 0x420eb0
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
jb 0x420eb0
ja 0x420e6d
cmp dword [edi + 0x50], ecx
jbe 0x420eb0
push 0
push 0
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x64]
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x420eaa
cmp eax, 0x454e
je 0x420eaa
cmp eax, 0x454c
je 0x420eaa
cmp eax, 0x4550
jne 0x420eb0
or ebp, 0x400000
push 0
push 0
push 0
push dword [edi + 0x64]
call esi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub ecx, 0xd53e8000
mov ebx, dword [esp + 0x24]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
mov dword [ebx + 0x10], ebp
call fcn.004c77f0
mov ecx, dword [esp + 0x3c]
mov dword [ebx], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x40]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004c77f0
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x30]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004c77f0
mov dword [ebx + 8], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 0x18]
pop edi
shl ecx, 0x10
pop esi
or ecx, eax
xor eax, eax
pop ebp
mov dword [ebx + 0xc], ecx
pop ebx
add esp, 0x4c
ret
Function at 0x422a30
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x422a8b
mov edx, 0x8b1f
call fcn.00423570
mov edx, 0x808
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00423570
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00423570
mov edx, 0xb02
mov ecx, esi
call fcn.00423570
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.00423630
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.00423570
mov edx, 0x403
mov ecx, esi
call fcn.00423570
mov edx, 0x2d
mov ecx, esi
call fcn.00423570
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00423570
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00423570
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00423570
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00423570
or edx, 0xffffffff
mov ecx, esi
call fcn.00423570
or edx, 0xffffffff
mov ecx, esi
call fcn.00423570
or edx, 0xffffffff
mov ecx, esi
call fcn.00423570
or edx, 0xffffffff
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.00423570
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.00423630
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.00423570
mov edx, 0x10
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.00423570
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004c7770
mov edx, eax
mov ecx, esi
call fcn.00423570
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00423570
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.00423570
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004c7770
mov edx, eax
mov ecx, esi
call fcn.00423570
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.00423570
mov eax, dword [edi + 0x24]
test eax, eax
je 0x422be1
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.00423630
add esp, 4
pop edi
pop esi
pop ebx
ret