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

Disassembly:
push edi
mov edi, dword [0x507ac0]
test edi, edi
je 0x41b7b2
mov ax, word [esp + 8]
push esi
imul esi, dword [0x507b2c], 0xd4
mov byte [esi + edi + 6], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov eax, 0x69
mov word [esi + edi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x507ac0]
mov ecx, edx
mov dword [0x507b28], edx
sub ecx, dword [0x50a79c]
mov dword [0x50a79c], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4fd680]
imul ecx, dword [0x507b2c], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4fd5bc]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x41b775
mov eax, dword [0x507ac0]
cmp edi, dword [0x507b24]
je 0x41b760
imul edx, dword [0x507b2c], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x507b2c]
jmp 0x41b799
mov esi, dword [0x507b2c]
imul ecx, esi, 0xd4
xor edx, edx
mov word [ecx + eax + 0xc], dx
jmp 0x41b799
mov esi, dword [0x507b2c]
mov ecx, dword [0x507ac0]
mov eax, dword [0x4efea4]
imul edx, esi, 0xd4
mov dword [edx + ecx + 0xc], eax
mov eax, dword [0x4efea8]
mov dword [edx + ecx + 0x10], eax
inc esi
mov dword [0x507b24], edi
xor eax, eax
cmp esi, dword [0x5049a0]
cmovge esi, eax
mov dword [0x507b2c], esi
pop esi
pop edi
ret

Function at 0x41b7c0
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 0x41b7ea
cmp edi, 2
jne 0x41b8c1
cmp esi, edi
je 0x41b8c1
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x41b81d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419970
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.00419970
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x50939c]
sete bh
jne 0x41b872
mov edx, 1
mov dword [0x504994], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x504994], 1
cmp bl, 0x14
jne 0x41b8c1
cmp edi, 2
jne 0x41b8c1
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41b8c1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.00419970
add esp, 0x10
test bh, bh
je 0x41b8c1
lea edx, [edi - 1]
mov dword [0x504994], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x504994], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41bf40
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x507ac8], 0
je 0x41bf55
test cl, cl
jne 0x41bf55
mov al, byte [0x50848e]
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 [0x507ac8], 0
mov dword [esp + 0xc], edx
je 0x41c092
mov cl, byte [0x50848e]
mov bl, dl
not bl
and bl, cl
je 0x41c092
mov dl, byte [0x50848c]
mov al, bl
not al
and byte [0x50848d], al
and cl, al
and dl, al
mov byte [0x50848e], cl
mov ecx, 0x508490
mov byte [0x50848c], dl
call fcn.0041c0a0
mov ecx, dword [0x5085dc]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x41c092
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x5085dc], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret

Function at 0x41c560
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41c59f
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 0x41c59f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41c59f
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 0x41c5b0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebp
push esi
mov ebp, ecx
nop dword [eax]
mov esi, dword [eax*8 + 0x50a960]
test esi, esi
je 0x41c5d5
cmp esi, ebp
je 0x41c601
inc eax
cmp eax, 0xa
jl 0x41c5c0
cmp eax, 0xa
mov ecx, 9
cmovl ecx, eax
mov dword [esp + 0xc], ecx
test edx, edx
je 0x41c626
pop esi
mov dword [ecx*8 + 0x50a960], ebp
mov eax, edx
mov dword [ecx*8 + 0x50a964], edx
pop ebp
add esp, 0x288
ret
test edx, edx
je 0x41c616
cmp dword [eax*8 + 0x50a964], 0
jne 0x41c616
mov dword [eax*8 + 0x50a964], edx
mov eax, dword [eax*8 + 0x50a964]
pop esi
pop ebp
add esp, 0x288
ret
push ebx
xor ebx, ebx
push ebx
push ebp
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41c6f9
push edi
mov ecx, 0x19
lea edi, [esp + 0x18]
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea eax, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
pop edi
test eax, eax
je 0x41c691
push ebx
push ecx
lea eax, [esp + 0x94]
push eax
push str.Layout_File
lea edx, [esp + 0x24]
call fcn.0049d0a0
add esp, 0x10
test eax, eax
je 0x41c691
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x41c693
xor esi, esi
mov eax, dword [esp + 0xc]
cmp ebp, eax
je 0x41c6a4
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x41c6f9
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c6f2
call eax
cmp dword [0x50a930], 0
mov ebx, eax
je 0x41c6e7
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x50a930]
test eax, eax
je 0x41c6e7
cmp dword [esp + 0xc], 0
je 0x41c6e7
mov ebx, dword [ebx + 0x50]
jmp 0x41c6ea
mov ebx, dword [ebx + 0x28]
not ebx
and ebx, 1
add ebx, 3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
mov dword [eax*8 + 0x50a964], ebx
mov dword [eax*8 + 0x50a960], ebp
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0x288
ret
Function at 0x41c790
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov bl, cl
xor edi, edi
cmp byte [edi*8 + 0x504a1c], bl
je 0x41c90f
inc edi
cmp edi, 0x6d
jl 0x41c7a0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebx - 0x41]
mov esi, eax
cmp cl, 0x19
ja 0x41c89f
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004b7c10
add esp, 0xc
xor eax, eax
mov dword [esp + 0x14], eax
push esi
push eax
push 2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 2
jne 0x41c809
movzx eax, word [esp + 0x18]
mov dword [esp + 0x14], eax
push esi
push 0
push 2
lea eax, [esp + 0x24]
movzx edi, bl
push eax
lea eax, [esp + 0x38]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [esp + 0x24], eax
test eax, eax
jns 0x41c845
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov eax, dword [esp + 0x14]
test ax, ax
je 0x41c88d
push 1
push esi
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041cae0
mov bh, al
add esp, 8
test bh, bh
je 0x41c88d
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x28]
call fcn.0041c0a0
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
movzx eax, bh
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp dword [esp + 0x24], 0
je 0x41c89b
movzx eax, word [esp + 0x18]
jmp 0x41c8af
xor eax, eax
jmp 0x41c8af
push esi
push 2
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
movzx eax, ax
mov word [ebp], ax
test ax, ax
je 0x41c8cb
pop edi
xor eax, eax
mov word [ebp + 2], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
cmp byte [esp + 0x130], 0
je 0x41c8fc
test bl, bl
je 0x41c8fc
push edi
push str.vk_02X
push dword [esp + 0x134]
push ebp
call fcn.0049bbc0
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
xor eax, eax
mov word [ebp], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov esi, dword [esp + 0x12c]
dec esi
push esi
push dword [edi*8 + 0x504a18]
push ebp
call fcn.004c41d6
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x41ca20
Capabilities:
Log keystrokes

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
movzx ecx, word [edi]
test cx, cx
je 0x41cad5
cmp word [edi + 2], 0
jne 0x41ca4a
push 1
push dword [esp + 0x1c]
call fcn.0041cae0
add esp, 8
pop edi
pop esi
pop ecx
ret
call fcn.00412f70
cmp ax, 0x56
jne 0x41ca8e
mov cx, word [edi + 2]
call fcn.00412f70
cmp ax, 0x4b
jne 0x41ca8e
push ebx
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 4]
push eax
call fcn.004bb6a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp word [ecx], bx
cmove ebx, edx
mov al, bl
pop ebx
pop edi
pop esi
pop ecx
ret
xor esi, esi
push edi
push dword [esi*8 + 0x504a18]
call fcn.004ba0a7
add esp, 8
test eax, eax
je 0x41caca
inc esi
cmp esi, 0x6d
jl 0x41ca90
cmp byte [esp + 0x10], 0
jne 0x41cad5
mov ecx, edi
call fcn.0041c940
movzx ecx, ax
test cx, cx
je 0x41cad5
pop edi
pop esi
add esp, 4
jmp fcn.0041d3b0
mov al, byte [esi*8 + 0x504a1c]
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x41cae0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp di, 0xa
jne 0x41caf3
pop edi
mov al, 0xd
pop esi
pop ecx
ret
push ebx
push dword [esp + 0x14]
push edi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx edx, ax
mov ecx, edx
shr ecx, 8
cmp cl, 0xff
jne 0x41cb54
cmp dl, 0xff
jne 0x41cb54
cmp byte [esp + 0x18], 0
je 0x41cb59
movzx ebx, di
test ebx, 0xffffff80
jne 0x41cb59
push 0x103
push ebx
call fcn.004be8e0
add esp, 8
test eax, eax
je 0x41cb59
mov ecx, edi
call fcn.00412f70
push 1
push ebx
mov byte [esp + 0x14], al
call fcn.004be8e0
mov edx, dword [esp + 0x14]
add esp, 8
test eax, eax
setne cl
test cl, 0x38
je 0x41cb60
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret
test esi, esi
je 0x41cb9e
mov al, cl
and al, 6
cmp al, 6
jne 0x41cb71
or byte [esi], 8
jmp 0x41cb8f
test cl, 2
je 0x41cb80
mov al, byte [esi]
test al, 3
jne 0x41cb80
or al, 1
mov byte [esi], al
test cl, 4
je 0x41cb8f
mov al, byte [esi]
test al, 0xc
jne 0x41cb8f
or al, 4
mov byte [esi], al
test cl, 1
je 0x41cb9e
mov al, byte [esi]
test al, 0x30
jne 0x41cb9e
or al, 0x10
mov byte [esi], al
pop ebx
pop edi
mov al, dl
pop esi
pop ecx
ret
Function at 0x41d3b0
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41d428
je 0x41d424
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41d439.286
movzx eax, byte [eax + 0x41d4dc]
jmp dword [eax*4 + 0x41d490]
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.0x41d439.286
movzx eax, byte [eax + 0x41d53c]
jmp dword [eax*4 + 0x41d514]
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 0x41d481
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x41d48d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop ebx
ret
Function at 0x41f260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x41f31d
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 + 0x4dd5f8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
sub edi, 1
jne 0x41f276
pop edi
test esi, esi
je 0x41f33b
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4dd5f8]
sub esi, 1
jne 0x41f321
not ecx
mov eax, ecx
pop esi
ret

Function at 0x41f740
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x41f773
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 0x41f76c
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 0x41f798
ja 0x41f794
cmp ebp, ecx
jbe 0x41f798
mov edi, ecx
sub edi, ebx
mov ecx, dword [esi + 4]
push edi
add ecx, ebx
push ecx
push edx
call fcn.004b9800
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 0x420b80
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 0x420bb6
cmp byte [ecx + 1], 0x3a
jne 0x420bb6
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x420bbf
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x420c18
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x420bec
nop dword [eax + eax]
cmp al, 0x5c
je 0x420c25
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x420be0
xor esi, esi
test ebx, ebx
je 0x420c18
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x420c0a
call edi
cmp eax, 0xb7
jne 0x420c2a
test esi, esi
je 0x420c18
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x420be0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x420bf2
test esi, esi
je 0x420c31
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x420c40
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 0x420c7d
cmp word [ecx + 2], 0x3a
jne 0x420c7d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x420c8d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x420d01
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 0x420cca
cmp ax, 0x5c
je 0x420d0e
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x420cb8
xor esi, esi
test ebx, ebx
je 0x420d01
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x420ce8
call edi
cmp eax, 0xb7
jne 0x420d15
test esi, esi
je 0x420d01
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x420cb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x420cd0
test esi, esi
je 0x420d21
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x420d30
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 0x420f41
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x420f41
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x420de2
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x420d93
mov edx, ebx
mov ecx, esi
call fcn.0041ff10
cmp dword [esi + 8], 0
jne 0x420f30
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.00420220
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x420dcb
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x420dcb
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.0041fda0
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 0x420e18
test bl, 2
je 0x420e0f
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x420e02
call fcn.00420c40
jmp 0x420e07
call fcn.00420b80
test eax, eax
je 0x420f29
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x420e65
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x420e2c
call fcn.00420c40
jmp 0x420e31
call fcn.00420b80
test eax, eax
je 0x420f29
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 0x420e5a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x420e60
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x420f29
mov edx, eax
mov ecx, esi
call fcn.0041ff10
cmp dword [esi + 8], 0
jne 0x420f0c
cmp dword [esi + 0x4c], 0
jne 0x420ea2
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x420ea2
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x420f0c
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.00420220
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x420eed
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 0x420ee6
cmp dword [esp + 0xc], ebx
jne 0x420ee6
cmp dword [esi + 8], 0
je 0x420ea8
jmp 0x420eed
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x420f0c
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 0x420f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041fda0
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.0041fda0
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 0x4217f0
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 0x42181c
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 0x421870
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 0x42194b
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x42194b
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 0x421940
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
jb 0x421940
ja 0x4218fd
cmp dword [edi + 0x50], ecx
jbe 0x421940
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 0x42193a
cmp eax, 0x454e
je 0x42193a
cmp eax, 0x454c
je 0x42193a
cmp eax, 0x4550
jne 0x421940
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.004d2290
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.004d2290
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.004d2290
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