joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2124ed
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x4a212506
cmp dword [0x4a2340b4], 0
je 0x4a217499
leave
ret 4
cmp dword [0x4a2340e4], 0
jne 0x4a212506
push edi
push 0x20c
call fcn.4a211896
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x4a217558
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x4a217558
mov ecx, dword [ebp + 8]
push esi
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x4a2174d9
mov edx, dword [0x4a234158]
sub ecx, esi
sar ecx, 1
add edx, ecx
lea esi, [edx + eax + 0xa]
lea eax, [esi + esi]
push eax
push edi
call fcn.4a212536
mov edi, eax
test edi, edi
je 0x4a21754f
cmp byte [0x4a234083], 0
mov dword [ebp - 4], edi
jne 0x4a229d8e
push 0x4a217560
push esi
push edi
call fcn.4a2120a9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a217524
push dword [ebp + 8]
sub eax, edx
push esi
sar eax, 1
push edi
mov dword [0x4a234158], eax
call fcn.4a2120a9
mov byte [0x4a234083], 1
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push dword [ebp - 4]
call fcn.4a21142e
pop esi
pop edi
jmp 0x4a212506

Function at 0x4a212b68
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
mov ax, word [0x4a250664]
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.4a2113a9
leave
ret 4

Function at 0x4a212c56
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
jne 0x4a21bed1
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.4a2113a9
leave
ret 0xc
push edi
mov edi, dword [sym.imp.msvcrt.dll_towupper]
push 0x3d
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0xc], ax
call edi
pop ecx
mov word [ebp - 0xa], ax
push 0x3a
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call fcn.4a212070
test eax, eax
je 0x4a229e98
push eax
push dword [ebp + 0xc]
push esi
call fcn.4a21185a
xor eax, eax
pop edi
jmp 0x4a212c83
Function at 0x4a212e73
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0x14], ebx
push 2
push ebx
sete al
push ebx
push dword [ebp + 0x18]
mov byte [ebp - 1], bl
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, dword [ebp + 0x1c]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4a212eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a234128], eax
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0x18
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4a21fd56
mov dword [0x4a234128], ebx
mov byte [ebp - 1], 1
cmp dword [esi], 0xffffffff
je 0x4a212f49
mov eax, dword [0x4a23412c]
cmp eax, ebx
je 0x4a2175b1
mov ecx, dword [0x4a234134]
cmp ecx, dword [0x4a234130]
jge 0x4a2175e0
cmp eax, ebx
je 0x4a212f45
mov ecx, dword [esi]
mov edx, dword [0x4a234134]
mov dword [eax + edx*4], ecx
inc dword [0x4a234134]
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
jne 0x4a212eaf
jmp 0x4a212ea4
mov dword [0x4a23412c], eax
jmp 0x4a212f30
push 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4a2175a7
lea ecx, [ecx*4 + 4]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp eax, ebx
je 0x4a22b272
inc dword [0x4a234130]
jmp 0x4a2175a7
push dword [ebp + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4a220e81
cmp dword [esi], 0xffffffff
jne 0x4a212eeb
jmp 0x4a212f0c
push dword [esi]
call edi
or dword [esi], 0xffffffff
jmp 0x4a212f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a234128], eax
push dword [esi]
call edi
or dword [esi], 0xffffffff
xor al, al
jmp 0x4a212eb2
Function at 0x4a213a0a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
inc ebx
xor edi, edi
and eax, 3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0xc
cmp eax, 2
ja 0x4a214abf
test byte [ebp + 0xc], bl
jne 0x4a214ab5
mov esi, 0x80000000
cmp eax, edi
jne 0x4a214a90
mov dword [ebp - 8], esi
push 3
cmp dword [ebp + 0xc], 0x10a
pop eax
push edi
je 0x4a21d64a
push 0x80
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a21d8fc
push 8
push ebx
call dword [sym.imp.msvcrt.dll__open_osfhandle]
test byte [ebp + 0xc], 8
pop ecx
pop ecx
mov dword [ebp + 0x10], eax
jne 0x4a21d67c
push dword [ebp + 0x10]
call fcn.4a213b3e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0x4a214a88
push dword [ebp + 8]
mov dword [ebp - 8], 0x40000000
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4a214aae
mov dword [ebp + 0x10], ebx
push 2
jmp 0x4a213a51
test byte [ebp + 0xc], 8
je 0x4a213a3f
or eax, 0xffffffff
jmp 0x4a213aa7
mov edi, 0x80
push edi
push 3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
or eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a21d8dd
xor edi, edi
jmp 0x4a213a84
push eax
call fcn.4a213b03
test eax, eax
jne 0x4a213a9c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x4a213a9c
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
or dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0xc], edi
call esi
cmp eax, 0xffffffff
je 0x4a229add
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a229b11
cmp word [ebp - 0xc], 0x1a
jne 0x4a213a9c
jmp 0x4a229b23
push 0
push edi
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a21d675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a234128], eax
cmp eax, 0x6e
jne 0x4a214abf
jmp 0x4a229ace
Function at 0x4a21453e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
xor ebx, ebx
pop ecx
mov dword [ebp + 8], eax
cmp byte [0x4a250668], bl
jne 0x4a2286b9
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0xc], eax
mov edi, str.c:Users_test00Desktop_shared_
mov esi, 0x2000
cmp dword [ebp + 0x10], esi
ja 0x4a2286cd
cmp dword [ebp + 0x10], ebx
je 0x4a2225df
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push dword [0x4a2341b8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov ebx, dword [ebp + 0x14]
mov esi, eax
push ebx
dec esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a2225e7
cmp dword [ebx], esi
jne 0x4a2225e7
mov eax, dword [ebp - 8]
mov dword [ebx], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ebx, dword [ebp + 0x14]
jmp 0x4a2145c4
xor eax, eax
jmp 0x4a2145cc
Function at 0x4a2167d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
je 0x4a224554
pop ebp
jmp fcn.4a214d9a

Function at 0x4a216a35
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a229db6
push esi
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x208
push edi
call fcn.4a212598
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x4a216ae2
push 4
lea eax, [ebp - 0x414]
push 0x4a216af4
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4a229dbd
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x4a229e1c
cmp word [eax], 0
je 0x4a229e1c
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x664]
push eax
push 0x37
lea eax, [ebp - 0x414]
push eax
call fcn.4a213117
push dword [ebp - 0x66c]
movzx esi, al
call fcn.4a212f5c
test esi, esi
je 0x4a216b09
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.4a2113a9
leave
ret 4
cmp word [ebp - 0x412], 0x5c
je 0x4a216b30
cmp word [ebp - 0x412], 0x3a
jne 0x4a216ae2
cmp word [ebp - 0x410], 0x5c
jne 0x4a216ae2
cmp word [ebp - 0x40e], si
jne 0x4a216ae2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4a216ae2
jmp 0x4a229e14
Function at 0x4a217010
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
mov eax, ecx
jmp 0x4a217145
push 0x228
push 0x4a217238
call fcn.4a2113e1
mov ecx, dword [ebp + 8]
mov ax, word [0x4a250664]
cmp word [ecx], ax
je 0x4a21c15b
push ecx
call fcn.4a2119d6
mov ebx, eax
mov dword [ebp - 0x234], ebx
test ebx, ebx
je 0x4a229f11
and dword [ebp - 4], 0
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a217050
sub eax, edx
sar eax, 1
lea eax, [ebx + eax*2]
mov dword [ebp - 0x230], eax
cmp eax, ebx
jbe 0x4a217078
lea ecx, [eax - 2]
cmp word [ecx], 0x20
je 0x4a229f19
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x22c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.msvcrt.dll_towupper]
call esi
movzx eax, ax
mov dword [ebp - 0x238], eax
push 0x3d
pop eax
mov word [ebp - 0x24], ax
movzx eax, word [ebx]
push eax
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
pop ecx
test eax, eax
je 0x4a22055a
cmp word [ebx + 2], 0x3a
jne 0x4a22055a
movzx eax, word [ebx]
push eax
call esi
pop ecx
mov word [ebp - 0x22], ax
push 0x3a
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x22c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x4a229f20
cmp eax, edi
ja 0x4a229f42
cmp word [ebp - 0x22c], 0
je 0x4a229fe5
cmp word [ebp - 0x22a], 0x3a
jne 0x4a229fe5
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a217130
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x22c]
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x226]
cmp eax, ecx
jbe 0x4a217168
lea ecx, [eax - 2]
mov dx, word [ecx]
cmp dx, word [0x4a250664]
je 0x4a212ccf
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x22c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
je 0x4a229f5f
cmp byte [0x4a234081], 0
je 0x4a2171a5
push 0
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.4a216e47
test eax, eax
je 0x4a229f42
cmp dword [ebp + 0xc], 2
je 0x4a2171c8
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x4a229f9b
test eax, 0x410
je 0x4a229fb0
cmp dword [ebp + 0xc], 0
je 0x4a2171e1
cmp dword [ebp + 0xc], 1
jne 0x4a2171f6
mov ax, word [ebp - 0x238]
cmp ax, word [ebp - 0x22]
jne 0x4a2171f6
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4a229f20
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.4a211730
test eax, eax
jne 0x4a229fcd
push 0
push edi
push 0x4a235260
call fcn.4a212c56
mov dword [ebp - 4], 0xfffffffe
call fcn.4a217259
xor eax, eax
call fcn.4a2113ca
ret 8
cmp word [ecx + 2], ax
jne 0x4a217031
mov eax, 0x400023c9
jmp 0x4a217229
mov ax, word [ebp - 0x238]
jmp 0x4a2170d4
Function at 0x4a217b0d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
and dword [esi], 0
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push 0x4a217b80
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a217b63
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x4a217b68
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
pop esi
leave
ret 4
Function at 0x4a2188d9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.4a21756d
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 8
mov edi, 0x4a234950
push edi
push 0x1e
push eax
mov dword [ebp - 0x108], eax
call esi
test eax, eax
je 0x4a224cc1
mov edi, 0x80
push edi
lea eax, [ebp - 0x104]
push eax
push 0x23
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a218953
mov ecx, 0x4a218b28
lea eax, [ebp - 0x104]
mov dx, word [eax]
cmp dx, word [ecx]
je 0x4a224cd3
sbb eax, eax
sbb eax, 0xffffffff
mov dword [0x4a234090], eax
push 0x4a218b24
push 0x20
pop ebx
push ebx
push 0x4a234bc0
call fcn.4a21185a
push 0x4a218b20
push ebx
push 0x4a234b80
call fcn.4a21185a
and dword [0x4a2341d0], 0
push edi
lea eax, [ebp - 0x104]
push eax
push 0x21
push dword [ebp - 0x108]
call esi
push 2
pop ecx
test eax, eax
je 0x4a2189b7
movzx eax, word [ebp - 0x104]
sub eax, 0x30
jne 0x4a224cfc
and dword [0x4a2341d0], 0
mov dword [0x4a2341cc], 0x4a218b0c
push edi
lea eax, [ebp - 0x104]
push eax
push 0x24
push dword [ebp - 0x108]
mov dword [0x4a2341c8], ecx
call esi
test eax, eax
je 0x4a2189e7
cmp word [ebp - 0x104], 0x31
jne 0x4a2189e7
mov dword [0x4a2341c8], 4
push 8
mov edi, 0x4a234940
push edi
push 0x1d
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224d34
push ebx
mov edi, 0x4a234d80
push edi
push 0x31
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224d46
push ebx
mov edi, 0x4a234d40
push edi
push 0x32
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224d57
push ebx
mov edi, 0x4a234d00
push edi
push 0x33
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224d68
push ebx
mov edi, 0x4a234cc0
push edi
push 0x34
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224d79
push ebx
mov edi, 0x4a234c80
push edi
push 0x35
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224d8a
push ebx
mov edi, 0x4a234c40
push edi
push 0x36
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224d9b
push ebx
mov edi, 0x4a234c00
push edi
push 0x37
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224dac
push 8
pop edi
push edi
mov ebx, 0x4a234930
push ebx
push 0xe
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224dbd
push edi
mov ebx, 0x4a234920
push ebx
push 0xf
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4a224dce
push 0x4a218b04
push 0
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a2113a9
leave
ret
Function at 0x4a21944c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, ecx
jmp 0x4a21954e
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [0x4a234128], 0
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov eax, ecx
push edi
mov dword [ebp - 8], 0x4a234874
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x4a21946e
sub eax, edx
push ebx
sar eax, 1
push ecx
mov dword [ebp - 4], eax
call fcn.4a212ed1
mov edi, eax
cmp word [edi], 0x3a
je 0x4a22961d
push 0x250
call fcn.4a212041
mov dword [esi + 0x18], eax
movzx ecx, word [edi]
mov ax, word [0x4a250664]
mov dword [ebp + 8], ecx
cmp cx, ax
je 0x4a220b68
movzx eax, ax
push eax
push dword [esi]
call fcn.4a212148
mov edi, eax
test edi, edi
je 0x4a2296dc
inc edi
inc edi
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4a212ec4
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a220b68
push 0x4a212ebc
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a220b68
cmp dword [0x4a234098], 4
je 0x4a2211e4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a219614
and dword [0x4a234128], 0
cmp ebx, 0xffffffff
je 0x4a21952a
test bl, 0x10
jne 0x4a220b68
mov edx, dword [esi]
xor ebx, ebx
inc ebx
xor edi, edi
mov ecx, edx
movzx eax, word [ecx]
test ax, ax
je 0x4a219553
cmp ax, word [0x4a250664]
je 0x4a219440
cmp ax, 0x3a
je 0x4a2195a2
inc ecx
inc ecx
inc ebx
jmp 0x4a219533
mov dword [esi + 0xc], edi
pop ebx
test edi, edi
je 0x4a220bba
cmp word [edi], ax
lea eax, [edi + 2]
je 0x4a22970d
mov dword [esi + 0x10], eax
push 0x2a
push edi
call fcn.4a2118eb
test eax, eax
jne 0x4a219624
push 0x3f
push edi
call fcn.4a2118eb
test eax, eax
jne 0x4a219624
push 0x2e
push edi
call fcn.4a2118eb
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 4
cmp ebx, 2
jne 0x4a21954e
jmp 0x4a219440
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a234128], eax
jmp 0x4a21951c
or dword [esi + 0x1c], 8
mov dword [0x4a2340f4], 1
jmp 0x4a21958e
mov ax, word [0x4a250664]
cmp word [ebp + 8], ax
jne 0x4a220b7b
mov dword [ebp - 8], 0x4a234876
push dword [esi]
call fcn.4a220bc9
test al, al
jne 0x4a220bac
mov edi, dword [ebp - 4]
mov ebx, dword [esi]
add edi, 5
lea eax, [edi + edi]
push eax
call fcn.4a212041
push ebx
push edi
push eax
mov dword [esi], eax
call fcn.4a21185a
push dword [ebp - 8]
push edi
push dword [esi]
call fcn.4a2120a9
mov eax, dword [esi + 0x18]
mov dword [eax], 0x10
jmp 0x4a21952a
mov dword [esi + 0x10], edx
mov edi, edx
jmp 0x4a21956e
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
Function at 0x4a219662
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x24
call fcn.4a212041
mov esi, eax
push esi
mov dword [esi], edi
call fcn.4a21944c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [esi]
push 0x208
mov dword [ebp - 0x210], eax
call fcn.4a212041
push 0
mov edi, 0x104
push edi
push eax
mov dword [0x4a234124], eax
call fcn.4a212c56
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.4a212faf
test eax, eax
jne 0x4a219794
movzx eax, word [0x4a250664]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.4a212148
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x4a235260
call fcn.4a21185a
test ebx, ebx
je 0x4a219772
movzx eax, word [ebx]
cmp ax, 0x3a
je 0x4a219772
cmp ax, word [0x4a250664]
jne 0x4a219742
cmp ebx, dword [ebp - 0x210]
je 0x4a219799
push ebx
push dword [ebp - 0x210]
call fcn.4a2197a2
movzx eax, word [eax]
cmp ax, 0x3a
je 0x4a219799
cmp ax, word [0x4a250664]
je 0x4a219799
movzx edi, word [ebx]
push dword [ebp - 0x210]
xor eax, eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a229714
and dword [0x4a234128], 0
mov word [ebx], di
cmp dword [0x4a234128], 0
jne 0x4a219794
push esi
call fcn.4a21944c
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x18], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a2113a9
leave
ret 4
xor eax, eax
inc eax
jmp 0x4a219783
inc ebx
inc ebx
jmp 0x4a219742
Function at 0x4a21bb60
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
push ebx
push esi
push edi
push 2
pop esi
jne 0x4a21bb76
push 3
pop esi
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
and dword [ebx], 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4a225acc
xor eax, eax
inc eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a225b13
push 0x400023d4
push 0x400023d3
push dword [ebp + 0xc]
call 0x4a22fe1b
sub eax, 0
je 0x4a225b0b
dec eax
dec eax
jne 0x4a225afa
mov eax, dword [ebp + 0x10]
and dword [eax], 0
or esi, 1
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
jmp 0x4a21bb96
xor eax, eax
inc eax
jmp 0x4a21bb98
xor eax, eax
jmp 0x4a21bb98
Function at 0x4a21c2f7
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x224]
xor esi, esi
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], esi
call fcn.4a21c44e
test eax, eax
jne 0x4a220616
cmp dword [ebp - 0x224], esi
je 0x4a220616
xor ebx, ebx
inc ebx
push 0x40002748
mov dword [ebp - 0x218], ebx
call fcn.4a21c56b
pop ecx
mov dword [ebp - 0x214], eax
cmp eax, esi
je 0x4a225d9c
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4a21c365
sub eax, edx
sar eax, 1
mov esi, 0x104
mov dword [ebp - 0x21c], eax
cmp eax, esi
jae 0x4a21c410
push 0x208
call fcn.4a211896
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4a21c410
push dword [ebp - 0x214]
mov dword [ebp - 0x220], ebx
push esi
push eax
call fcn.4a21185a
test edi, edi
je 0x4a2233d3
mov edi, dword [edi + 0x3c]
test edi, edi
je 0x4a225d87
push edi
push esi
push dword [ebp - 0x210]
call fcn.4a2120a9
test eax, eax
jne 0x4a21c3fc
xor esi, esi
cmp dword [ebp - 0x210], esi
je 0x4a21c3ee
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov byte [0x4a234083], 0
mov dword [ebp - 0x218], esi
cmp dword [ebp - 0x220], esi
je 0x4a21c410
cmp dword [ebp - 0x210], 0
je 0x4a21c410
push dword [ebp - 0x210]
call fcn.4a21142e
xor esi, esi
cmp dword [ebp - 0x214], esi
je 0x4a21c426
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x218], esi
jne 0x4a225d9c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a2113a9
leave
ret 4
cmp edi, esi
je 0x4a223420
push esi
push dword [edi + 0x3c]
call fcn.4a212b0d
mov dword [ebp - 0x210], eax
cmp eax, esi
je 0x4a21c3ee
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4a220638
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x4a21c3d1
jmp 0x4a225d92
lea ebx, [ebp - 0x20c]
push esi
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x4a21c3fc
push dword [ebp - 0x214]
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
mov eax, ebx
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x4a225d5e
push ebx
push esi
push dword [ebp - 0x210]
call fcn.4a2120a9
test eax, eax
je 0x4a21c3d1
jmp 0x4a21c3fc
mov dword [ebp - 0x210], esi
jmp 0x4a21c3d1
mov eax, dword [ebp - 0x21c]
add eax, eax
mov dword [ebp - 0x21c], eax
add ebx, dword [ebp - 0x21c]
push dword [ebp - 0x214]
push ebx
call edi
pop ecx
pop ecx
test eax, eax
je 0x4a223406
jmp 0x4a225d6c
and dword [ebp - 0x218], edi
jmp 0x4a21c3fc
mov dword [ebp - 0x218], 1
push esi
push 8
call fcn.4a216d44
pop ecx
pop ecx
jmp 0x4a21c432