joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4467d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x446870
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4e4e38]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4e845c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4d97ac
mov dword [esp + 0x68], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x446938
cmp byte [eax], 0
je 0x446938
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.0048a9b0
pop esi
add esp, 0xcc
ret 0xc
Function at 0x447730
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.004c78a0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x44783a
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x447770
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x447770
mov ecx, dword [edi + 0x14c]
movzx eax, word [edi + 0x150]
jmp 0x447778
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4e845c]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.0049a540
lea ecx, [esp + 0x28]
add esp, 0x18
add ecx, eax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x4477c5
push eax
lea eax, [esp + 0x2014]
push str._____Specifically:__s_n
sub eax, ecx
push eax
push ecx
call fcn.0049a540
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x4477e6
push 0x4d76ec
push 0
push eax
mov ecx, edi
call fcn.00446bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4e6310
call fcn.0040ab40
test al, al
jne 0x447800
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, 2
jne 0x44783a
test esi, esi
jne 0x44782a
mov esi, dword [edi + 0x38c]
test esi, esi
jne 0x44782a
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004470d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.00446d50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x447cf0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1ec
push ebx
mov ebx, dword [esp + 0x1f4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x447d20
push 0x64
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x447d28
mov byte [esp + 0x90], 0
mov esi, dword [0x4ea060]
mov byte [esp + 0x10], 0
test esi, esi
je 0x447dfe
nop dword [eax + eax]
cmp byte [esi + 0x11], 0
je 0x447dad
mov eax, dword [0x50b874]
mov edx, dword [esi]
test al, 1
jne 0x447d67
push 0
or eax, 1
mov ecx, 0x50b878
push 0
mov dword [0x50b874], eax
call fcn.0042a360
mov eax, dword [0x4e9e00]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x447d76
xor eax, eax
jmp 0x447d82
xor eax, eax
cmp ecx, dword [0x50b878]
setne al
inc eax
sub eax, 0
je 0x447d93
sub eax, 1
je 0x447d93
mov eax, str.Object
jmp 0x447d98
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4d9bb4
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.0049a590
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x447d40
cmp byte [esp + 0x10], 0
je 0x447dfe
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447dc2
sub ecx, edx
cmp ecx, 0x7b
jbe 0x447df2
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
add edi, ecx
push esi
push 0x4d6530
push edi
call fcn.004b9880
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x447dfe
cmp byte [esp + ecx + 0xf], 0x20
jne 0x447dfe
mov byte [esp + ecx + 0xf], 0
mov eax, dword [0x4e7834]
cmp byte [eax + 0xd8], 0
je 0x447e1c
cmp byte [0x4ea0a1], 0
jne 0x447e1c
mov esi, 1
jmp 0x447e1e
xor esi, esi
mov eax, dword [0x4e7938]
cmp eax, 1
jle 0x447e2d
lea edi, [eax - 1]
jmp 0x447e2f
xor edi, edi
mov cl, 1
call fcn.0041b620
lea edx, [esp + 0xf8]
mov cl, al
call fcn.0041ba50
mov ecx, dword [0x4e7938]
mov edx, 0x4d0335
push eax
push dword [0x4e7954]
mov eax, dword [0x4e7924]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4d5980
cmovle eax, edx
cmp dword [0x4e796c], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4d597c
push eax
push dword [0x4ea068]
mov eax, ecx
push dword [0x4ea06c]
cmovne eax, edx
cmp dword [0x4e7970], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0xb8]
push ecx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.0049a540
add ebx, eax
mov edx, ebp
add esp, 0x3c
sub edx, ebx
add edx, 0xfffe
mov ecx, ebx
call fcn.004125e0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447ed2
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
add ebx, ecx
cmp dword [0x4e7968], 0
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
sub ebp, ebx
push eax
add ebp, 0xfffe
push ebp
push ebx
call fcn.0049a540
add esp, 0xc
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 8
Function at 0x44d270
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x20]
mov esi, ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00459f40
mov edi, eax
test edi, edi
je 0x44d364
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004a0100
mov ebx, eax
test ebx, ebx
je 0x44d364
push 0
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x44d2e6
cmp esi, dword [0x4e9a38]
je 0x44d2e6
mov ecx, edi
call fcn.004a0580
test al, al
jne 0x44d2e6
push 1
push esi
push dword [0x4e9a38]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x20]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x44d343
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
call fcn.0049e6b0
mov eax, dword [0x4e498c]
cmp dword [eax + 0x58], 0xffffffff
jle 0x44d343
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e9a38], eax
je 0x44d330
mov eax, dword [0x4e498c]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44d343
mov ecx, dword [0x4e498c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401a30
cmp byte [esp + 0x20], 0
je 0x44d359
push 0
push esi
push dword [0x4e9a38]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x44d38e
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop edi
pop esi
pop ebx
ret 0x14
push 0x4d0335
push 0
push 0x4d07c0
mov ecx, esi
call fcn.00446950
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x44ea50
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4e90f8]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00459f40
mov ebx, eax
test ebx, ebx
je 0x44ea80
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
jmp 0x44ea85
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.0049e6b0
cmp eax, 1
je 0x44eaa3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0
push 1
mov ecx, esi
call fcn.00401680
test ebx, ebx
je 0x44eb28
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x44eac8
mov edi, dword [esi + 0xc]
jmp 0x44eaca
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44eae2
test byte [edi + 0x15], 8
je 0x44eadd
mov ecx, edi
call fcn.004015a0
add edi, 0xc
jmp 0x44eae7
mov edi, 0x4eb4fc
mov dword [edi], ebx
cmp byte [esi + 0x17], 0
jne 0x44eaf4
mov edi, dword [esi + 0xc]
jmp 0x44eaf6
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44eb0e
test byte [edi + 0x15], 8
je 0x44eb09
mov ecx, edi
call fcn.004015a0
add edi, 0xc
jmp 0x44eb13
mov edi, 0x4eb4fc
cmp dword [edi], 0
jne 0x44eb5b
push 0
push 1
mov ecx, esi
call fcn.00401680
mov byte [eax], 0
jmp 0x44eb5b
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x44eb36
mov edi, dword [esi + 0xc]
jmp 0x44eb38
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44eb50
test byte [edi + 0x15], 8
je 0x44eb4b
mov ecx, edi
call fcn.004015a0
add edi, 0xc
jmp 0x44eb55
mov edi, 0x4eb4fc
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x44eb64
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x44eb85
cmp dword [0x4e9a60], 0
je 0x44eb85
push 1
mov ecx, 0x4e9a54
call fcn.00405bc0
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x44f920
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004c78a0
push esi
mov esi, dword [0x4e90f8]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x44f9e5
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.0049e6b0
test eax, eax
jne 0x44f977
pop edi
pop esi
add esp, 0x8000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401680
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x44f9a2
push eax
push 1
mov ecx, esi
call fcn.00401680
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x44f9ab
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x44f9d1
cmp dword [0x4e9a60], 0
je 0x44f9d1
push 1
mov ecx, 0x4e9a54
call fcn.00405bc0
pop edi
pop esi
add esp, 0x8000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x8000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4d0335
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.0049e6b0
pop edi
pop esi
add esp, 0x8000
ret 4
Function at 0x4525b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0x14]
push str.__s_s
push 0x800
push esi
call fcn.0049a540
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x4525f6
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4525f6
mov word [edi + esi], 0x22
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x452600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x121c
call fcn.004c78a0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4ea098]
lea ebx, [esp + 0x230]
mov ebp, 0x4d0335
push str.__s_s
mov eax, ebx
push 0x800
push eax
call fcn.0049a540
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x452671
lea eax, [esp + 0x229]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x452671
mov edi, dword [0x4ea098]
mov word [esp + esi + 0x228], 0x22
jmp 0x4526f2
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.0049b910
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4526af
nop dword [eax]
test esi, esi
jne 0x4526af
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.0049b910
mov edx, eax
add esp, 0x10
test edx, edx
je 0x452690
xor ecx, ecx
mov al, byte [esp + ecx + 0x18]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x11f], al
test al, al
jne 0x4526b1
test edx, edx
je 0x45278b
lea eax, [esp + 0x120]
push eax
push edi
lea ecx, [esp + 0x230]
call fcn.004525b0
add esp, 8
test al, al
je 0x45278b
lea edi, [esp + 0x120]
cmp byte [esp + 0x17], 0
je 0x452761
push str.AutoHotkey.exe
push edi
push str.__s_s
lea eax, [esp + 0xa34]
push 0x800
push eax
call fcn.0049a540
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45274c
lea eax, [esp + 0xa29]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45274c
mov word [esp + esi + 0xa28], 0x22
lea ebx, [esp + 0xa28]
jmp 0x45275a
cmp edi, dword [0x4ea098]
jne 0x452761
mov ebx, dword [0x4ea094]
lea ebp, [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4e9a70
call fcn.00447f20
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x121c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x121c
ret
Function at 0x455eb0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
push ebx
push edi
mov edi, dword [0x4e90f8]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
push 0
call fcn.0041c000
mov bh, al
add esp, 0xc
test bh, bh
jne 0x455f4a
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
push 0
call fcn.0046c120
add esp, 4
test eax, eax
jne 0x455f11
push 1
push eax
push 0xffffffffffffffff
push 0x4d0335
mov ecx, edi
call fcn.0049e6b0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.0046c380
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0049dfb0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
movzx eax, bl
test eax, 0xffffff80
jne 0x455f6b
push 2
push eax
call fcn.004b47c1
add esp, 8
test eax, eax
je 0x455f6b
and bl, 0xdf
mov al, bl
cmp al, 0x50
je 0x455f7f
xor ecx, ecx
mov edx, 2
cmp al, 0x54
cmovne edx, ecx
jmp 0x455f84
mov edx, 1
mov cl, bh
call fcn.0046c2e0
push 1
test al, al
mov edx, 0x4da740
push 0
mov ecx, 0x4d6524
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.0049e6b0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x455fb0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4e90f8]
push 0
call fcn.0049e6b0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4560a0
cmp byte [eax], 0
je 0x4560a0
push 0x103
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004b9880
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12f], 0
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456010
sub ecx, edx
cmp byte [esp + ecx + 0x1f], 0x5c
je 0x456031
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4560a0
mov word [esp + ecx + 0x20], 0x5c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4560a0
cmp byte [ebp + 0xc], 0
je 0x45605f
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x456067
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
call fcn.0049e6b0
mov ecx, dword [0x4e90f8]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401520
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x4560cc
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4d0335
push 0
push 0x4d07c0
mov ecx, esi
call fcn.00446950
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x457cf0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
mov al, byte [esi]
test al, al
je 0x457d1f
cmp byte [esi + 1], 0x3a
jne 0x457d1f
cmp byte [esi + 2], 0
jne 0x457d1f
mov byte [esp + 8], al
lea esi, [esp + 8]
mov word [esp + 9], 0x5c3a
mov byte [esp + 0xb], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x457d81
cmp byte [0x4ea0a0], al
je 0x457dcb
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x457d62
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop esi
add esp, 0x110
ret
mov ecx, dword [0x4e9dfc]
push 0x4d0335
push 0
push 0x4d07c0
call fcn.00446950
pop esi
add esp, 0x110
ret
cmp byte [0x4ea0a0], 0
je 0x457dcb
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x457da4
lea esi, [esp + 0xc]
jmp 0x457da8
test esi, esi
je 0x457db5
push 0xffffffffffffffff
push esi
mov ecx, 0x4e6374
call fcn.00405700
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
call fcn.0049e6b0
pop esi
add esp, 0x110
ret
Function at 0x4583c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], esi
test edi, edi
je 0x458486
cmp byte [edi], 0
je 0x458486
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45840c
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
mov al, bl
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call fcn.004b4423
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x45846e
cmp byte [ebx - 1], 0x3a
je 0x45846e
test esi, esi
je 0x45842e
mov eax, edi
mov byte [ebx], 0
jmp 0x458454
mov esi, ebx
sub esi, edi
lea eax, [esi + 1]
call fcn.004c78d0
mov eax, esp
push esi
push edi
push eax
mov dword [ebp - 4], eax
call fcn.004b9880
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 8]
mov edx, eax
mov ecx, eax
call fcn.004583c0
test esi, esi
je 0x458464
mov byte [ebx], 0x5c
cmp byte [ebx + 1], 0
je 0x458490
test al, al
je 0x458490
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458fd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edi
test esi, esi
je 0x459021
push 0
push 1
mov ecx, esi
call fcn.00401680
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x458ffb
mov edi, dword [esi + 0xc]
jmp 0x458ffd
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x459018
test byte [edi + 0x15], 8
je 0x459010
mov ecx, edi
call fcn.004015a0
mov ebp, dword [edi + 0xc]
add edi, 0xc
jmp 0x459058
mov edi, 0x4eb4fc
mov ebp, dword [edi]
jmp 0x459058
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
lea edx, [esp + 0x24]
call fcn.0049e0f0
add esp, 4
test eax, eax
jne 0x459050
mov eax, dword [0x4e498c]
pop edi
pop esi
pop ebp
mov dword [eax + 0x30], 0
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x20], 1
cmp edi, 0xffffffff
je 0x4590a8
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x45909d
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e498c]
mov dword [ecx + 0x30], eax
cmp edi, 0xffffffff
je 0x4590c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4590d0
push ebx
call fcn.004b2343
add esp, 4
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004469f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x459190
Capabilities:
Copy file
Extract resource via kernel32 functions
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x1c], ebx
call fcn.00417810
cmp eax, 1
sete al
cmp dword [0x4e79bc], 0
mov byte [esp + 0x13], al
je 0x459339
mov esi, dword [ebp + 0xc]
test al, al
jne 0x45921f
mov ecx, esi
call fcn.00470080
test al, al
je 0x45921f
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x459203
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4d0335
push 0
push 0x4d07c0
mov ecx, ebx
call fcn.00446950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4591d6
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x459244
sub ecx, esi
mov eax, 0x103
cmp ecx, 0x104
cmovae ecx, eax
lea eax, [ecx + 1]
push eax
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004b19e0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call fcn.004b9e37
add esp, 4
lea eax, [esp + 0x20]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x45932e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45932e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45932e
cmp dword [esi], 0x4034b50
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
jne 0x45930b
push 0
push ebx
push 0
call eax
push eax
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.0049da40
add esp, 8
test eax, eax
je 0x459306
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne bl
call fcn.004b2343
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x459390
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0
call eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x459390
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x459390
push 0
lea eax, [esp + 0x24]
push eax
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push dword [0x4ea08c]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
movzx eax, byte [esp + 0x13]
xor eax, 1
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov ecx, 0x4d0335
mov eax, dword [0x4e6378]
setne bl
test eax, eax
je 0x45938d
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call esi
mov ecx, dword [esp + 0x1c]
xor bl, 1
movzx eax, bl
push eax
call fcn.004469f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc