joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d1f0
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 0x44d290
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4f75a0]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4fa57c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4eadf4
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 0x44d359
cmp word [eax], 0
je 0x44d359
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.0049be40
pop esi
add esp, 0xcc
ret 0xc
Function at 0x44e270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004cb9b0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x44e381
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x44e2b0
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44e2b0
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x44e2b8
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x4fa57c]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004af890
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x44e30c
push eax
mov ecx, edx
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.004af890
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44e32d
push 0x4e6fac
push 0
push eax
mov ecx, edi
call fcn.0044d5d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x4f8ae8
call fcn.0040b850
test al, al
jne 0x44e347
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x44e381
test esi, esi
jne 0x44e371
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44e371
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0044dc10
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.0044d800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x454ea0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00463c60
mov edi, eax
test edi, edi
je 0x454f9f
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004b5c40
mov ebx, eax
test ebx, ebx
je 0x454f9f
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x454f1c
cmp esi, dword [0x4fb2ec]
je 0x454f1c
mov ecx, edi
call fcn.004b60e0
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x454f22
push 1
push esi
push dword [0x4fb2ec]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x454f22
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x454f7f
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cdd08
call fcn.004b3f70
mov eax, dword [0x4f70f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x454f7f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fb2ec], eax
je 0x454f6c
mov eax, dword [0x4f70f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x454f7f
mov ecx, dword [0x4f70f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401830
cmp byte [esp + 0xf], 0
je 0x454f91
push 0
push esi
push dword [0x4fb2ec]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4f70f4]
test byte [eax + 0x100], 1
jne 0x454fcc
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e413c
call fcn.004b3f70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4cdc40
push 0
push 0x4e413c
mov ecx, esi
call fcn.0044d370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x456910
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4fb218]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00463c60
mov ebx, eax
test ebx, ebx
je 0x456940
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x456945
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004b3f70
cmp eax, 1
je 0x456963
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x4569f1
push edi
push 0
push 1
call fcn.00401600
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x45698c
mov edi, dword [esi + 0xc]
jmp 0x45698e
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4569a6
test byte [edi + 0x15], 8
je 0x4569a1
mov ecx, edi
call fcn.00401460
add edi, 0xc
jmp 0x4569ab
mov edi, 0x4fdaf8
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x4569bb
mov edi, dword [esi + 0xc]
jmp 0x4569bd
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4569d5
test byte [edi + 0x15], 8
je 0x4569d0
mov ecx, edi
call fcn.00401460
add edi, 0xc
jmp 0x4569da
mov edi, 0x4fdaf8
cmp dword [edi], 2
jae 0x456a2e
push 0
push 1
mov ecx, esi
call fcn.00401600
xor ecx, ecx
mov word [eax], cx
jmp 0x456a2e
push 0
push 1
call fcn.00401600
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x456a09
mov edi, dword [esi + 0xc]
jmp 0x456a0b
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x456a23
test byte [edi + 0x15], 8
je 0x456a1e
mov ecx, edi
call fcn.00401460
add edi, 0xc
jmp 0x456a28
mov edi, 0x4fdaf8
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x456a37
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x456a57
cmp dword [0x4fc6e4], 0
je 0x456a57
push ecx
mov ecx, 0x4fc6d8
call fcn.004068c0
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 0x456af0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004cb9b0
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.0044f690
push dword [ebp + 0x14]
xor eax, eax
mov byte [esp + 0x1839], 1
push dword [ebp + 0x10]
cmp edx, 6
push dword [ebp + 0xc]
cmove eax, esi
push dword [ebp + 8]
mov dword [esp + 0x1868], eax
push dword [0x4f70f4]
call fcn.004b62b0
test eax, eax
je 0x456b4f
lea eax, [esp + 8]
push eax
push 0x4b5650
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0x1838]
jne 0x456b5f
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x456b78
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x456ba1
mov ecx, esi
call fcn.00401460
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4f99f4], 0
je 0x456bb1
mov ecx, esi
call fcn.00401460
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x457af0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004cb9b0
push esi
mov esi, dword [0x4fb218]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x457bb6
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004b3f70
test eax, eax
jne 0x457b47
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401600
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x457b74
push eax
push 1
mov ecx, esi
call fcn.00401600
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x457b7d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x457ba2
cmp dword [0x4fc6e4], 0
je 0x457ba2
push ecx
mov ecx, 0x4fc6d8
call fcn.004068c0
pop edi
pop esi
add esp, 0x10000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x10000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4cdc40
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004b3f70
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x45ac60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004cb9b0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4fc668]
lea ebp, [esp + 0x430]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004af890
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45accf
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45accf
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4fc668]
jmp 0x45ad96
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b0de0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45ad18
test esi, esi
jne 0x45ad18
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b0de0
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45acf0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x45ad20
test edx, edx
je 0x45ae3e
push edi
lea eax, [esp + 0x224]
push eax
push str.__s_s
lea eax, [esp + 0x434]
push 0x800
push eax
call fcn.004af890
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45ae3e
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45ae3e
mov dword [esp + esi*2 + 0x428], 0x22
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x45ae0f
push 0x4ec600
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.004af890
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x45adf8
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45adf8
mov dword [esp + ebx*2 + 0x1428], 0x22
lea ebp, [esp + 0x1428]
lea eax, [esp + 0x428]
jmp 0x45ae14
cmp esi, dword [0x4fc668]
jne 0x45ae0f
mov ebp, dword [0x4fc664]
lea eax, [esp + 0x428]
jmp 0x45ae14
mov eax, 0x4cdc40
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4fbb78
call fcn.0044ea70
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x241c
ret
Function at 0x45f0b0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4fb218]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 8]
xor edx, edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.0041e390
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45f14e
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0047ac20
add esp, 4
test eax, eax
jne 0x45f114
push 1
push eax
push 0xffffffffffffffff
push 0x4cdc40
mov ecx, edi
call fcn.004b3f70
pop edi
pop esi
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.0047ae80
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004b3790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
movzx esi, word [eax]
test esi, 0xffffff80
je 0x45f160
xor eax, eax
jmp 0x45f16c
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x45f18a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45f18f
mov edx, 1
mov cl, bl
call fcn.0047ade0
push 1
test al, al
mov edx, 0x4ec9d4
push 0
mov ecx, 0x4ec9d0
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004b3f70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45f1c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4fb218]
push 0
call fcn.004b3f70
mov eax, dword [ebp + 8]
test eax, eax
je 0x45f30f
cmp word [eax], 0
je 0x45f30f
push 0x103
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x28]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x22e], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f220
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x26], 0x5c
je 0x45f24d
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x45f30f
mov dword [esp + ecx*2 + 0x28], 0x5c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45f30f
cmp byte [ebp + 0xc], 0
je 0x45f27f
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x45f287
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4cdd08
shr edi, 0x14
call fcn.004b3f70
mov esi, dword [0x4fb218]
cmp byte [esi + 0x17], 0
jne 0x45f2b3
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x45f2ca
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], ebx
or al, 0x18
mov dword [esi + 4], edi
mov byte [esi + 0x15], al
jge 0x45f2f1
mov ecx, esi
call fcn.00401460
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4f99f4], 0
je 0x45f301
mov ecx, esi
call fcn.00401460
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f70f4]
test byte [eax + 0x100], 1
jne 0x45f33c
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e413c
call fcn.004b3f70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4cdc40
push 0
push 0x4e413c
mov ecx, esi
call fcn.0044d370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x461230
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x461264
cmp word [esi + 2], 0x3a
jne 0x461264
cmp word [esi + 4], 0
jne 0x461264
mov word [esp + 8], ax
lea esi, [esp + 8]
xor eax, eax
mov dword [esp + 0xa], 0x5c003a
mov word [esp + 0xe], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4612bc
cmp byte [0x4fc670], al
je 0x4612e2
mov eax, dword [0x4f70f4]
test byte [eax + 0x100], 1
jne 0x4612a0
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e413c
call fcn.004b3f70
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4fc1c4]
push 0x4cdc40
push 0
push 0x4e413c
call fcn.0044d370
pop esi
add esp, 0x10
ret
cmp byte [0x4fc670], 0
je 0x4612e2
mov ecx, esi
call fcn.004612f0
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cdd08
call fcn.004b3f70
pop esi
add esp, 0x10
ret

Function at 0x4612f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cb9b0
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x461329
push ecx
lea esi, [esp + 8]
mov ecx, 0x4f8b4c
push esi
call fcn.0047b6e0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x461339
push ecx
push esi
mov ecx, 0x4f8b4c
call fcn.0047b6e0
pop esi
add esp, 0x10000
ret

Function at 0x461350
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cb9b0
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x461381
lea eax, [esp]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x461a40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x461b16
cmp word [ebx], 0
je 0x461b16
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x461a89
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x461afe
cmp word [esi - 2], 0x3a
je 0x461afe
test edi, edi
je 0x461ac1
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00461a40
mov ecx, 0x5c
mov word [esi], cx
jmp 0x461af3
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004cb9e0
mov esi, esp
push edi
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.00461a40
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x461b20
test al, al
je 0x461b20
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x10]
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 - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462920
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x46296f
push 0
push 1
mov ecx, esi
call fcn.00401600
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x46294a
mov edi, dword [esi + 0xc]
jmp 0x46294c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x462966
test byte [edi + 0x15], 8
je 0x46295f
mov ecx, edi
call fcn.00401460
add edi, 0xc
mov edi, dword [edi]
jmp 0x4629a5
mov edi, 0x4fdaf8
mov edi, dword [edi]
jmp 0x4629a5
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004b39a0
add esp, 4
test eax, eax
jne 0x46299d
mov eax, dword [0x4f70f4]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x462a0a
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x4629e3
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f70f4]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x462a1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f70f4]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x462a2a
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x462a4d
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cdd08
call fcn.004b3f70
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4f70f4]
test byte [eax + 0x100], 1
jne 0x462a7a
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e413c
call fcn.004b3f70
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4cdc40
push 0
push 0x4e413c
call fcn.0044d370
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x462ab0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
movzx eax, word [ebx]
mov ebp, ecx
mov edi, ebx
test ax, ax
je 0x462b86
test ebx, ebx
je 0x462b05
mov esi, eax
nop
mov ecx, 0x4ecf80
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x462b86
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x462ae0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x462ad0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f70f4]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x462b46
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cdd08
call fcn.004b3f70
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x462b6c
mov ecx, dword [0x4f99cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e413c
call fcn.004b3f70
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4cdc40
push 0
push 0x4e413c
mov ecx, ebp
call fcn.0044d370
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x462aa0
push 0
push 1
push ebx
mov ecx, ebp
call fcn.00463100
pop edi
pop esi
pop ebp
pop ebx
ret 4