joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435930
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 [0x51cbe0]
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 0x4359f5
movzx eax, word [ebp]
test ax, ax
je 0x4359f5
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x435a65
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4359d0
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x4359c0
mov ecx, ebp
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435a00
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x435a34
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x435a2d
cmp eax, 9
jne 0x435a34
sub edi, 2
cmp edi, ebp
ja 0x435a20
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x435a73
cmp byte [esp + 0x4c], 0
je 0x435a59
mov ecx, dword [esp + 0x10]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0044ddc0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
test ebx, ebx
je 0x4359f5
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x435a15
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call fcn.004d95fc
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 0x43c530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004e88a0
push esi
push edi
push dword [esp + 0x10018]
lea eax, [esp + 0xc]
push dword [esp + 0x10018]
push 0x50cfcc
push 0x8001
push eax
call fcn.004af740
add esp, 0x14
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x10010]
cmp eax, 0xffffffff
je 0x43c5b8
test al, 0x10
je 0x43c5b8
lea eax, [edi*4 + 0x408]
push eax
call fcn.004cfec5
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x43c5b8
lea ecx, [edi*2 + 2]
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.004cc730
add esp, 0xc
mov dword [esi + 4], edi
pop edi
pop esi
add esp, 0x10004
ret 0xc
pop edi
mov dword [esi], 0x4f03e8
pop esi
add esp, 0x10004
ret 0xc
Function at 0x44e410
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004e88a0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x44e521
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x44e450
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44e450
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x44e458
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
mov eax, dword [0x51f66c]
push dword [eax + ecx*4]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004af740
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x44e4ac
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.004af740
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x44e4cd
push 0x50a9a4
push 0
push eax
mov ecx, edi
call fcn.0044d780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x51d380
call fcn.0040b8e0
test al, al
jne 0x44e4e7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x44e521
test esi, esi
jne 0x44e511
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x44e511
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0044ddc0
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.0044d9a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x454f00
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.00463ca0
mov edi, eax
test edi, edi
je 0x454fff
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004b5ad0
mov ebx, eax
test ebx, ebx
je 0x454fff
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x454f7c
cmp esi, dword [0x5203dc]
je 0x454f7c
mov ecx, edi
call fcn.004b5f60
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x454f82
push 1
push esi
push dword [0x5203dc]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x454f82
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x454fdf
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x4f04b0
call fcn.004b3e10
mov eax, dword [0x51b98c]
cmp dword [eax + 0x58], 0xffffffff
jle 0x454fdf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5203dc], eax
je 0x454fcc
mov eax, dword [0x51b98c]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x454fdf
mov ecx, dword [0x51b98c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401860
cmp byte [esp + 0xf], 0
je 0x454ff1
push 0
push esi
push dword [0x5203dc]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne 0x45502c
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4f03e8
push 0
push 0x5068e4
mov ecx, esi
call fcn.0044d520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x456950
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x520308]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00463ca0
mov ebx, eax
test ebx, ebx
je 0x456980
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x456985
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004b3e10
cmp eax, 1
je 0x4569a3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x456a31
push edi
push 0
push 1
call fcn.00401630
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x4569cc
mov edi, dword [esi + 0xc]
jmp 0x4569ce
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4569e6
test byte [edi + 0x15], 8
je 0x4569e1
mov ecx, edi
call fcn.00401490
add edi, 0xc
jmp 0x4569eb
mov edi, 0x522be8
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x4569fb
mov edi, dword [esi + 0xc]
jmp 0x4569fd
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x456a15
test byte [edi + 0x15], 8
je 0x456a10
mov ecx, edi
call fcn.00401490
add edi, 0xc
jmp 0x456a1a
mov edi, 0x522be8
cmp dword [edi], 2
jae 0x456a6e
push 0
push 1
mov ecx, esi
call fcn.00401630
xor ecx, ecx
mov word [eax], cx
jmp 0x456a6e
push 0
push 1
call fcn.00401630
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x456a49
mov edi, dword [esi + 0xc]
jmp 0x456a4b
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x456a63
test byte [edi + 0x15], 8
je 0x456a5e
mov ecx, edi
call fcn.00401490
add edi, 0xc
jmp 0x456a68
mov edi, 0x522be8
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x456a77
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x456a97
cmp dword [0x5217d4], 0
je 0x456a97
push ecx
mov ecx, 0x5217c8
call fcn.004069b0
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 0x456b30
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004e88a0
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.0044f7f0
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 [0x51b98c]
call fcn.004b6130
test eax, eax
je 0x456b8f
lea eax, [esp + 8]
push eax
push 0x4b54e0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0x1838]
jne 0x456b9f
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x456bb8
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 0x456be1
mov ecx, esi
call fcn.00401490
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x51eae4], 0
je 0x456bf1
mov ecx, esi
call fcn.00401490
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x457b20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004e88a0
push esi
mov esi, dword [0x520308]
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 0x457be6
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004b3e10
test eax, eax
jne 0x457b77
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401630
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x457ba4
push eax
push 1
mov ecx, esi
call fcn.00401630
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x457bad
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x457bd2
cmp dword [0x5217d4], 0
je 0x457bd2
push ecx
mov ecx, 0x5217c8
call fcn.004069b0
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, 0x4f03e8
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004b3e10
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x45ac90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004e88a0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x521758]
lea ebp, [esp + 0x430]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004af740
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45acff
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45acff
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x521758]
jmp 0x45adc6
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b0c60
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45ad48
test esi, esi
jne 0x45ad48
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.004b0c60
mov edx, eax
add esp, 0x10
test edx, edx
je 0x45ad20
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 0x45ad50
test edx, edx
je 0x45ae6e
push edi
lea eax, [esp + 0x224]
push eax
push str.__s_s
lea eax, [esp + 0x434]
push 0x800
push eax
call fcn.004af740
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x45ae6e
lea eax, [esp + 0x42a]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45ae6e
mov dword [esp + esi*2 + 0x428], 0x22
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x45ae3f
push 0x50fff8
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.004af740
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x45ae28
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45ae28
mov dword [esp + ebx*2 + 0x1428], 0x22
lea ebp, [esp + 0x1428]
lea eax, [esp + 0x428]
jmp 0x45ae44
cmp esi, dword [0x521758]
jne 0x45ae3f
mov ebp, dword [0x521754]
lea eax, [esp + 0x428]
jmp 0x45ae44
mov eax, 0x4f03e8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x520c68
call fcn.0044ec20
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 [0x520308]
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.0047abf0
add esp, 4
test eax, eax
jne 0x45f114
push 1
push eax
push 0xffffffffffffffff
push 0x4f03e8
mov ecx, edi
call fcn.004b3e10
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.0047ae60
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004b3630
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 0x45f16b
push 2
push esi
call fcn.004d4154
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x45f189
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45f18e
mov edx, 1
mov cl, bl
call fcn.0047adc0
push 1
test al, al
mov edx, 0x5103cc
push 0
mov ecx, 0x5103c8
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004b3e10
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 [0x520308]
push 0
call fcn.004b3e10
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 fcn.004d95fc
add esp, 0xc
lea ecx, [esp + 0x28]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x22e], ax
nop dword [eax]
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 [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4f04b0
shr edi, 0x14
call fcn.004b3e10
mov esi, dword [0x520308]
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.00401490
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x51eae4], 0
je 0x45f301
mov ecx, esi
call fcn.00401490
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne 0x45f33c
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4f03e8
push 0
push 0x5068e4
mov ecx, esi
call fcn.0044d520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x461270
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x4612a4
cmp word [esi + 2], 0x3a
jne 0x4612a4
cmp word [esi + 4], 0
jne 0x4612a4
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 0x4612fc
cmp byte [0x521760], al
je 0x461322
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne 0x4612e0
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
pop esi
add esp, 0x10
ret
mov ecx, dword [0x5212b4]
push 0x4f03e8
push 0
push 0x5068e4
call fcn.0044d520
pop esi
add esp, 0x10
ret
cmp byte [0x521760], 0
je 0x461322
mov ecx, esi
call fcn.00461330
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x4f04b0
call fcn.004b3e10
pop esi
add esp, 0x10
ret

Function at 0x461330
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004e88a0
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x461369
push ecx
lea esi, [esp + 8]
mov ecx, 0x51d3e4
push esi
call fcn.0047b6c0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x461379
push ecx
push esi
mov ecx, 0x51d3e4
call fcn.0047b6c0
pop esi
add esp, 0x10000
ret

Function at 0x461390
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004e88a0
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4613c0
lea eax, [esp]
push eax
call fcn.004d9070
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x461a90
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 0x461b64
cmp word [ebx], 0
je 0x461b64
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x461ad9
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 fcn.004cbcce
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x461b4c
cmp word [esi - 2], 0x3a
je 0x461b4c
test edi, edi
je 0x461b10
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00461a90
mov ecx, 0x5c
mov word [esi], cx
jmp 0x461b41
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004e87c0
mov esi, esp
push edi
push ebx
push esi
call fcn.004d95fc
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.00461a90
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x461b6e
test al, al
je 0x461b6e
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 0x462950
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 0x46299f
push 0
push 1
mov ecx, esi
call fcn.00401630
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x46297a
mov edi, dword [esi + 0xc]
jmp 0x46297c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x462996
test byte [edi + 0x15], 8
je 0x46298f
mov ecx, edi
call fcn.00401490
add edi, 0xc
mov edi, dword [edi]
jmp 0x4629d5
mov edi, 0x522be8
mov edi, dword [edi]
jmp 0x4629d5
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004b3840
add esp, 4
test eax, eax
jne 0x4629cd
mov eax, dword [0x51b98c]
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 0x462a3a
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x462a13
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 [0x51b98c]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x462a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51b98c]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x462a59
push ebx
call fcn.004cfed0
add esp, 4
test edi, edi
je 0x462a7c
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x4f04b0
call fcn.004b3e10
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne 0x462aa9
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4f03e8
push 0
push 0x5068e4
call fcn.0044d520
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x462ae0
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 0x462bb6
test ebx, ebx
je 0x462b35
mov esi, eax
nop
mov ecx, 0x510978
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x462bb6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x462b10
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x462b00
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 [0x51b98c]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x462b76
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x4f04b0
call fcn.004b3e10
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x462b9c
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4f03e8
push 0
push 0x5068e4
mov ecx, ebp
call fcn.0044d520
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x462ad0
push 0
push 1
push ebx
mov ecx, ebp
call fcn.00463130
pop edi
pop esi
pop ebp
pop ebx
ret 4