joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aeb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
mov word [esp + 0xc], ax
mov ebx, ebp
mov ax, word [0x4e829c]
mov dword [esp + 8], ecx
mov word [esp + 0xe], ax
mov dword [esp + 0x10], 0x90028
mov dword [esp + 0x14], 0x3e003c
mov dword [esp + 0x18], 0x3d003a
mov dword [esp + 0x1c], 0x2d002b
mov dword [esp + 0x20], 0x2f002a
mov dword [esp + 0x24], 0x7e0021
mov dword [esp + 0x28], 0x7c0026
mov dword [esp + 0x2c], 0x5b005e
mov dword [esp + 0x30], 0x3f002e
mov dword [esp + 0x34], 0x7b
push esi
push edi
test ebp, ebp
je 0x42af75
movzx eax, word [ebp]
test ax, ax
je 0x42af75
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x42afe5
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x42af50
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x42af40
mov ecx, ebp
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42af80
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x42afb4
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x42afad
cmp eax, 9
jne 0x42afb4
sub edi, 2
cmp edi, ebp
ja 0x42afa0
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x42aff3
cmp byte [esp + 0x4c], 0
je 0x42afd9
mov ecx, dword [esp + 0x10]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0043eb10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
test ebx, ebx
je 0x42af75
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x42af95
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x43e210
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 0x43e2b0
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4e74d0]
mov dword [esp + 0x40], eax
movzx eax, word [edx + 2]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], str.File
mov dword [esp + 0x68], 0
mov eax, dword [eax*4 + 0x4eb07c]
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 0x43e378
cmp word [eax], 0
je 0x43e378
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.0048e080
pop esi
add esp, 0xcc
ret 0xc
Function at 0x43f1a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004bd970
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x43f29d
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x43f1e0
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x43f1e0
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x43f1e8
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
push dword [ecx*4 + 0x4eb07c]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004a19b0
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x43f23b
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.004a19b0
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x43f25c
push 0x4d7240
push 0
push eax
mov ecx, edi
call fcn.0043e570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x43f29d
test esi, esi
jne 0x43f28d
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x43f28d
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0043eb10
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.0043e770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x445e70
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.00454e70
mov edi, eax
test edi, edi
je 0x445f6f
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004a7c00
mov ebx, eax
test ebx, ebx
je 0x445f6f
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x445eec
cmp esi, dword [0x4eb104]
je 0x445eec
mov ecx, edi
call fcn.004a80a0
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x445ef2
push 1
push esi
push dword [0x4eb104]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x445ef2
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x445f4f
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc14
call fcn.004a5f40
mov eax, dword [0x4e7024]
cmp dword [eax + 0x58], 0xffffffff
jle 0x445f4f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4eb104], eax
je 0x445f3c
mov eax, dword [0x4e7024]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x445f4f
mov ecx, dword [0x4e7024]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004016d0
cmp byte [esp + 0xf], 0
je 0x445f61
push 0
push esi
push dword [0x4eb104]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x445f9c
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4eac
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4bfb90
push 0
push 0x4d4eac
mov ecx, esi
call fcn.0043e390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4479e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4eb028]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00454e70
mov ebx, eax
test ebx, ebx
je 0x447a10
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x447a15
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004a5f40
cmp eax, 1
je 0x447a33
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x447ac1
push edi
push 0
push 1
call fcn.004014f0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x447a5c
mov edi, dword [esi + 0xc]
jmp 0x447a5e
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x447a76
test byte [edi + 0x15], 8
je 0x447a71
mov ecx, edi
call fcn.00401350
add edi, 0xc
jmp 0x447a7b
mov edi, 0x4ed8fc
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x447a8b
mov edi, dword [esi + 0xc]
jmp 0x447a8d
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x447aa5
test byte [edi + 0x15], 8
je 0x447aa0
mov ecx, edi
call fcn.00401350
add edi, 0xc
jmp 0x447aaa
mov edi, 0x4ed8fc
cmp dword [edi], 2
jae 0x447afe
push 0
push 1
mov ecx, esi
call fcn.004014f0
xor ecx, ecx
mov word [eax], cx
jmp 0x447afe
push 0
push 1
call fcn.004014f0
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x447ad9
mov edi, dword [esi + 0xc]
jmp 0x447adb
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x447af3
test byte [edi + 0x15], 8
je 0x447aee
mov ecx, edi
call fcn.00401350
add edi, 0xc
jmp 0x447af8
mov edi, 0x4ed8fc
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x447b07
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x447b27
cmp dword [0x4ec4f4], 0
je 0x447b27
push ecx
mov ecx, 0x4ec4e8
call fcn.00405c10
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 0x447bc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004bd970
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.004406e0
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 [0x4e7024]
call fcn.004a8270
test eax, eax
je 0x447c1f
lea eax, [esp + 8]
push eax
push 0x4a7610
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0x1838]
jne 0x447c2f
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x447c48
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 0x447c71
mov ecx, esi
call fcn.00401350
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4e9820], 0
je 0x447c81
mov ecx, esi
call fcn.00401350
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x448d10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004bd970
push esi
mov esi, dword [0x4eb028]
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 0x448dd6
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004a5f40
test eax, eax
jne 0x448d67
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.004014f0
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x448d94
push eax
push 1
mov ecx, esi
call fcn.004014f0
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x448d9d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x448dc2
cmp dword [0x4ec4f4], 0
je 0x448dc2
push ecx
mov ecx, 0x4ec4e8
call fcn.00405c10
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, 0x4bfb90
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004a5f40
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x44bda0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2214
call fcn.004bd970
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov byte [esp + 0x17], dl
push esi
push dword [0x4ec480]
lea ebp, [esp + 0x228]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004a19b0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x44be00
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x44be00
mov eax, dword [0x4ec480]
jmp 0x44be59
lea ecx, [esp + 0x18]
call fcn.0044c360
test eax, eax
je 0x44bef1
push esi
lea eax, [esp + 0x1c]
push eax
push str.__s_s
lea eax, [esp + 0x22c]
push 0x800
push eax
call fcn.004a19b0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x44bef1
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x44bef1
lea eax, [esp + 0x18]
cmp byte [esp + 0x17], 0
mov dword [esp + ebx*2 + 0x220], 0x22
je 0x44bec2
push 0x4dc194
push eax
push str.__s_s
lea eax, [esp + 0x122c]
push 0x800
push eax
call fcn.004a19b0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x44bec2
lea eax, [esp + 0x1222]
push eax
call edi
cmp eax, 0xffffffff
je 0x44bec2
mov dword [esp + ebx*2 + 0x1220], 0x22
lea ebp, [esp + 0x1220]
lea eax, [esp + 0x220]
jmp 0x44bec7
mov eax, 0x4bfb90
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4eb990
call fcn.0043f870
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2214
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2214
ret
Function at 0x450180
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 [0x4eb028]
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.00416200
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45021e
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0046ba90
add esp, 4
test eax, eax
jne 0x4501e4
push 1
push eax
push 0xffffffffffffffff
push 0x4bfb90
mov ecx, edi
call fcn.004a5f40
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.0046bcf0
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004a5760
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 0x450230
xor eax, eax
jmp 0x45023c
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 0x45025a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45025f
mov edx, 1
mov cl, bl
call fcn.0046bc50
push 1
test al, al
mov edx, 0x4dc68c
push 0
mov ecx, 0x4dc688
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x450290
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 [0x4eb028]
push 0
call fcn.004a5f40
mov eax, dword [ebp + 8]
test eax, eax
je 0x4503df
cmp word [eax], 0
je 0x4503df
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 0x4502f0
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x26], 0x5c
je 0x45031d
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4503df
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 0x4503df
cmp byte [ebp + 0xc], 0
je 0x45034f
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x450357
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4bfc14
shr edi, 0x14
call fcn.004a5f40
mov esi, dword [0x4eb028]
cmp byte [esi + 0x17], 0
jne 0x450383
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x45039a
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 0x4503c1
mov ecx, esi
call fcn.00401350
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4e9820], 0
je 0x4503d1
mov ecx, esi
call fcn.00401350
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x45040c
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4eac
call fcn.004a5f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4bfb90
push 0
push 0x4d4eac
mov ecx, esi
call fcn.0043e390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4525a0
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x4525d4
cmp word [esi + 2], 0x3a
jne 0x4525d4
cmp word [esi + 4], 0
jne 0x4525d4
mov word [esp + 4], ax
lea esi, [esp + 4]
xor eax, eax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x45262c
cmp byte [0x4ec488], al
je 0x452652
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x452610
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4eac
call fcn.004a5f40
pop esi
add esp, 8
ret
mov ecx, dword [0x4ebfdc]
push 0x4bfb90
push 0
push 0x4d4eac
call fcn.0043e390
pop esi
add esp, 8
ret
cmp byte [0x4ec488], 0
je 0x452652
mov ecx, esi
call fcn.00452660
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc14
call fcn.004a5f40
pop esi
add esp, 8
ret

Function at 0x452660
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004bd970
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x452699
push ecx
lea esi, [esp + 8]
mov ecx, 0x4e8a20
push esi
call fcn.0046c6b0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x4526a9
push ecx
push esi
mov ecx, 0x4e8a20
call fcn.0046c6b0
pop esi
add esp, 0x10000
ret
Function at 0x452d10
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 0x452de6
cmp word [ebx], 0
je 0x452de6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x452d59
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 0x452dce
cmp word [esi - 2], 0x3a
je 0x452dce
test edi, edi
je 0x452d91
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00452d10
mov ecx, 0x5c
mov word [esi], cx
jmp 0x452dc3
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004bd9a0
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.00452d10
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x452df0
test al, al
je 0x452df0
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 0x453bc0
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 0x453c0f
push 0
push 1
mov ecx, esi
call fcn.004014f0
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x453bea
mov edi, dword [esi + 0xc]
jmp 0x453bec
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x453c06
test byte [edi + 0x15], 8
je 0x453bff
mov ecx, edi
call fcn.00401350
add edi, 0xc
mov edi, dword [edi]
jmp 0x453c45
mov edi, 0x4ed8fc
mov edi, dword [edi]
jmp 0x453c45
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004a5970
add esp, 4
test eax, eax
jne 0x453c3d
mov eax, dword [0x4e7024]
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 0x453caa
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x453c83
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 [0x4e7024]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x453cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e7024]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x453cca
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x453ced
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc14
call fcn.004a5f40
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x453d1a
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4eac
call fcn.004a5f40
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4bfb90
push 0
push 0x4d4eac
call fcn.0043e390
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x453d50
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 0x453e26
test ebx, ebx
je 0x453da5
mov esi, eax
nop
mov ecx, 0x4dcc38
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x453e26
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x453d80
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x453d70
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 [0x4e7024]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x453de6
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc14
call fcn.004a5f40
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x453e0c
mov ecx, dword [0x4e97f8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4eac
call fcn.004a5f40
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4bfb90
push 0
push 0x4d4eac
mov ecx, ebp
call fcn.0043e390
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x453d40
push 0
push 1
push ebx
mov ecx, ebp
call fcn.00454310
pop edi
pop esi
pop ebp
pop ebx
ret 4