joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e650
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4faa98], 0
je 0x41e665
test cl, cl
jne 0x41e665
mov al, byte [0x4fac55]
pop ecx
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call esi
test ax, ax
push 0xa1
setns bl
dec bl
and bl, 0x10
call esi
mov cl, bl
or cl, 0x20
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
push 0xa2
mov dword [esp + 0xc], edx
call esi
mov edx, dword [esp + 8]
mov cl, dl
or cl, 1
test ax, ax
movzx ebx, cl
movzx ecx, dl
push 0xa3
cmovns ebx, ecx
call esi
mov cl, bl
or cl, 2
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
push 0xa4
mov dword [esp + 0xc], edx
call esi
mov edx, dword [esp + 8]
mov cl, dl
or cl, 4
test ax, ax
movzx ebx, cl
movzx ecx, dl
push 0xa5
cmovns ebx, ecx
call esi
mov cl, bl
or cl, 8
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
push 0x5b
mov dword [esp + 0xc], edx
call esi
mov edx, dword [esp + 8]
mov cl, dl
or cl, 0x40
test ax, ax
movzx ebx, cl
movzx ecx, dl
push 0x5c
cmovns ebx, ecx
call esi
mov cl, bl
or cl, 0x80
test ax, ax
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
cmp dword [0x4faa98], 0
mov dword [esp + 8], edx
je 0x41e79b
mov cl, byte [0x4fac55]
mov bl, dl
not bl
and bl, cl
je 0x41e79b
mov dl, byte [0x4fab2f]
mov al, bl
not al
and byte [0x4fac54], al
and cl, al
and dl, al
mov byte [0x4fac55], cl
mov ecx, 0x4fb478
mov byte [0x4fab2f], dl
call fcn.0041e7b0
mov ecx, dword [0x4fb5bc]
mov edx, dword [esp + 8]
test ecx, ecx
je 0x41e79b
test byte [ecx + 8], bl
je 0x41e79b
mov dword [0x4fb5bc], 0
pop esi
mov al, dl
pop ebx
pop ecx
ret
Function at 0x41eba0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebp
push esi
mov esi, edx
mov ebp, ecx
nop
mov edx, dword [eax*8 + 0x4fd950]
test edx, edx
je 0x41ebc5
cmp edx, ebp
je 0x41ebf1
inc eax
cmp eax, 0xa
jl 0x41ebb0
cmp eax, 0xa
mov ecx, 9
cmovl ecx, eax
mov dword [esp + 0xc], ecx
test esi, esi
je 0x41ec16
mov dword [ecx*8 + 0x4fd954], esi
mov eax, esi
pop esi
mov dword [ecx*8 + 0x4fd950], ebp
pop ebp
add esp, 0x288
ret
test esi, esi
je 0x41ec06
cmp dword [eax*8 + 0x4fd954], 0
jne 0x41ec06
mov dword [eax*8 + 0x4fd954], esi
mov eax, dword [eax*8 + 0x4fd954]
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 0x41ece9
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 0x41ec81
push ebx
push ecx
lea eax, [esp + 0x94]
push eax
push str.Layout_File
lea edx, [esp + 0x24]
call fcn.004b1b10
add esp, 0x10
test eax, eax
je 0x41ec81
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x41ec83
xor esi, esi
mov eax, dword [esp + 0xc]
cmp ebp, eax
je 0x41ec94
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x41ece9
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ece2
call eax
cmp dword [0x4fd924], 0
mov ebx, eax
je 0x41ecd7
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4fd924]
test eax, eax
je 0x41ecd7
cmp dword [esp + 0xc], 0
je 0x41ecd7
mov ebx, dword [ebx + 0x50]
jmp 0x41ecda
mov ebx, dword [ebx + 0x28]
not ebx
and ebx, 1
add ebx, 3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10]
mov eax, ebx
mov dword [ecx*8 + 0x4fd954], ebx
pop ebx
pop esi
mov dword [ecx*8 + 0x4fd950], ebp
pop ebp
add esp, 0x288
ret
Function at 0x41ed10
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 + 0x4f81f4], al
je 0x41ee8f
inc edi
cmp edi, 0x6d
jl 0x41ed23
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 0x41ee21
push ebp
push 0x100
lea eax, [esp + 0x28]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
xor ebp, ebp
push esi
push ebp
push 2
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 2
jne 0x41ed88
movzx ebp, word [esp + 0x14]
movzx edi, byte [esp + 0x11]
lea eax, [esp + 0x14]
push esi
push 0
push 2
push eax
lea eax, [esp + 0x34]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [esp + 0x20], eax
test eax, eax
jns 0x41edc6
push esi
push 0
push 2
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x41ee0e
push 1
push esi
lea edx, [esp + 0x1a]
mov ecx, ebp
call fcn.0041f0d0
add esp, 8
mov byte [esp + 0x13], al
test al, al
je 0x41ee0e
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x24]
call fcn.0041e7b0
push esi
push 0
push 2
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
movzx eax, byte [esp + 0x27]
push 0
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp dword [esp + 0x20], 0
pop ebp
je 0x41ee1d
movzx eax, word [esp + 0x10]
jmp 0x41ee31
xor eax, eax
jmp 0x41ee31
push esi
movzx edi, al
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
movzx eax, ax
mov word [ebx], ax
test ax, ax
je 0x41ee4b
xor eax, eax
pop edi
mov word [ebx + 2], ax
mov eax, ebx
pop esi
pop ebx
add esp, 0x114
ret
cmp byte [esp + 0x128], 0
je 0x41ee7e
cmp byte [esp + 0xd], 0
je 0x41ee7e
push edi
push str.vk_02X
push dword [esp + 0x12c]
push ebx
call fcn.004b0610
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
xor eax, eax
pop edi
mov word [ebx], ax
mov eax, ebx
pop esi
pop ebx
add esp, 0x114
ret
mov esi, dword [esp + 0x124]
dec esi
push esi
push dword [edi*8 + 0x4f81f0]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x41efb0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
movzx eax, word [edi]
mov esi, eax
test ax, ax
je 0x41f0ba
cmp word [edi + 2], 0
jne 0x41efe0
push 1
push dword [esp + 0x20]
mov ecx, eax
call fcn.0041f0d0
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, 0xffffff80
je 0x41eff1
xor eax, eax
jmp 0x41eff9
push 2
push eax
call ebx
add esp, 8
mov ecx, esi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, esi
cmove edx, ecx
cmp dx, 0x56
jne 0x41f06c
movzx eax, word [edi + 2]
mov esi, eax
test eax, 0xffffff80
je 0x41f022
xor eax, eax
jmp 0x41f02a
push 2
push eax
call ebx
add esp, 8
mov ecx, esi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, esi
cmove edx, ecx
cmp dx, 0x4b
jne 0x41f06c
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp word [ecx], bx
pop edi
cmove ebx, edx
pop esi
mov al, bl
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor esi, esi
push edi
push dword [esi*8 + 0x4f81f0]
call ebx
add esp, 8
test eax, eax
je 0x41f0ae
inc esi
cmp esi, 0x6d
jl 0x41f074
cmp byte [esp + 0x14], 0
jne 0x41f0ba
xor edx, edx
mov ecx, edi
call fcn.0041eec0
movzx ecx, ax
test cx, cx
je 0x41f0ba
pop edi
pop esi
pop ebx
add esp, 4
jmp fcn.0041f9b0
mov al, byte [esi*8 + 0x4f81f4]
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x41f0d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp bx, 0xa
jne 0x41f0e3
pop edi
mov al, 0xd
pop ebx
pop ecx
ret
push ebp
push esi
push dword [esp + 0x18]
push ebx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov edx, eax
mov dword [esp + 0x10], eax
shr edx, 8
cmp dl, 0xff
jne 0x41f157
cmp al, 0xff
jne 0x41f157
cmp byte [esp + 0x1c], 0
je 0x41f160
movzx ebp, bx
test ebp, 0xffffff80
jne 0x41f160
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
push 0x103
push ebp
call esi
add esp, 8
test eax, eax
je 0x41f160
push 2
push ebp
call esi
push 1
push ebp
mov esi, eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 0x10
test eax, eax
mov al, bl
setne dl
and al, 0xdf
movzx ecx, al
test esi, esi
movzx eax, bl
cmove ecx, eax
mov bl, cl
jmp 0x41f15b
mov ebx, dword [esp + 0x10]
test dl, 0x38
je 0x41f168
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret
test edi, edi
je 0x41f1a8
mov al, dl
and al, 6
cmp al, 6
jne 0x41f179
or byte [edi], 8
jmp 0x41f197
test dl, 2
je 0x41f188
mov al, byte [edi]
test al, 3
jne 0x41f188
or al, 1
mov byte [edi], al
test dl, 4
je 0x41f197
mov al, byte [edi]
test al, 0xc
jne 0x41f197
or al, 4
mov byte [edi], al
test dl, 1
je 0x41f1a8
mov cl, byte [edi]
test cl, 0x30
jne 0x41f1a8
or cl, 0x10
mov byte [edi], cl
pop esi
pop ebp
pop edi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x41f590
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
movzx esi, cl
mov bl, dl
lea eax, [esi - 0x13]
cmp eax, 0x92
ja case.0x41f5ac.20
movzx eax, byte [eax + 0x41f84c]
jmp dword [eax*4 + 0x41f7e0]
mov ecx, 0x2a
xor eax, eax
movzx ecx, cx
test bl, bl
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x136
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x1d
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x11d
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x38
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x138
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x15b
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x15c
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x45
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x52
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4f
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x50
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x51
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4b
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4c
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4d
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x47
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x48
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x49
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x53
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x145
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x135
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x37
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4a
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x4e
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
xor eax, eax
mov ecx, 0x137
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, ax
test cx, cx
jne 0x41f79d
pop esi
xor eax, eax
pop ebx
ret
add esi, 0xfffffffd
cmp esi, 0xb4
ja case.0x41f7b3.4
movzx eax, byte [esi + 0x41f8ec]
jmp dword [eax*4 + 0x41f8e0]
or ecx, 0x100
xor eax, eax
test bl, bl
movzx ecx, cx
pop esi
cmove eax, ecx
pop ebx
ret
mov eax, ecx
or ecx, 0x100
test bl, bl
pop esi
cmovne eax, ecx
pop ebx
ret
Function at 0x41f9b0
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41fa28
je 0x41fa24
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41fa39.286
movzx eax, byte [eax + 0x41fadc]
jmp dword [eax*4 + 0x41fa90]
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.0x41fa39.286
movzx eax, byte [eax + 0x41fb3c]
jmp dword [eax*4 + 0x41fb14]
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 0x41fa81
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x41fa8d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop ebx
ret
Function at 0x4218e0
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x421dc0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x421df3
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 0x421dec
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 0x421e18
ja 0x421e14
cmp ebp, ecx
jbe 0x421e18
mov edi, ecx
sub edi, ebx
mov ecx, dword [esi + 4]
push edi
add ecx, ebx
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
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 0x423190
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 0x4231c6
cmp byte [ecx + 1], 0x3a
jne 0x4231c6
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x4231cf
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x423228
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x4231fc
nop dword [eax + eax]
cmp al, 0x5c
je 0x423235
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4231f0
xor esi, esi
test ebx, ebx
je 0x423228
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x42321a
call edi
cmp eax, 0xb7
jne 0x42323a
test esi, esi
je 0x423228
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x4231f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x423202
test esi, esi
je 0x423241
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x423250
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 0x42328d
cmp word [ecx + 2], 0x3a
jne 0x42328d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x42329d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x423311
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 0x4232da
cmp ax, 0x5c
je 0x42331e
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4232c8
xor esi, esi
test ebx, ebx
je 0x423311
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x4232f8
call edi
cmp eax, 0xb7
jne 0x423325
test esi, esi
je 0x423311
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4232c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x4232e0
test esi, esi
je 0x423331
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x423340
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 0x42354f
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x42354f
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x4233f2
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x4233a3
mov edx, ebx
mov ecx, esi
call fcn.004224c0
cmp dword [esi + 8], 0
jne 0x42353e
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.004227d0
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x4233db
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x4233db
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.004223a0
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 0x423428
test bl, 2
je 0x42341f
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x423412
call fcn.00423250
jmp 0x423417
call fcn.00423190
test eax, eax
je 0x423537
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x423475
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x42343c
call fcn.00423250
jmp 0x423441
call fcn.00423190
test eax, eax
je 0x423537
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 0x42346a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x423470
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x423537
mov edx, eax
mov ecx, esi
call fcn.004224c0
cmp dword [esi + 8], 0
jne 0x42351a
cmp dword [esi + 0x4c], 0
jne 0x4234b2
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x4234b2
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x42351a
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.004227d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4234fb
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 0x4234ee
cmp dword [esp + 0xc], ebx
je 0x4234f5
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
je 0x4234b8
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x42351a
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 0x42353e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004223a0
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.004223a0
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 0x423fd0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x423ffa
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebx, dword [esp + 0x20]
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
test bl, 2
cmove ecx, esi
mov edx, ecx
or edx, 4
test bl, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
test bl, 0x20
mov ebx, 0x41000000
cmove ecx, eax
mov eax, dword [esp + 0x14]
test eax, eax
cmove ebx, edx
or ebx, ecx
test esi, esi
jne 0x424061
test eax, eax
mov ebx, 0x41800000
mov edx, 0x81800000
cmove ebx, edx
or ebx, ecx
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 0x424142
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x424142
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x10], ax
jne 0x424137
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x34]
jb 0x424137
ja 0x4240f0
cmp dword [edi + 0x50], ecx
jbe 0x424137
push 0
push 0
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x424131
cmp eax, 0x454e
je 0x424131
cmp eax, 0x454c
je 0x424131
cmp eax, 0x4550
jne 0x424137
or ebx, 0x400000
push 0
push 0
push 0
push dword [edi + 0x64]
call esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
mov dword [ebp + 0x10], ebx
push eax
push ecx
call fcn.004cc5b0
mov ecx, dword [esp + 0x34]
mov dword [ebp], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x38]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004cc5b0
mov ecx, dword [esp + 0x24]
mov dword [ebp + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x28]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004cc5b0
mov dword [ebp + 8], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x10]
movzx eax, word [esp + 0x14]
shl ecx, 0x10
pop edi
or ecx, eax
xor eax, eax
pop esi
mov dword [ebp + 0xc], ecx
pop ebp
pop ebx
add esp, 0x44
ret