joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f7f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x46f838
call fcn.0047a1c3
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46f838
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46f854
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047a35c
mov ebx, eax
test edi, edi
je 0x46f852
test esi, esi
je 0x46f852
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x475b9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0047a1c3
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x475bd6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00475bf7
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f09b9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0047961a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4f09f5
call fcn.004f0bd8
mov dword [esi + 0xc], 1
jmp 0x4f09fa
call fcn.004f0bd8
cmp dword [esi], 0
je 0x4f0a43
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4f0a1d
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0046f8ab
jmp 0x4f0a2e
push 0xff
mov ecx, esi
call fcn.00413bf0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046d7af
jmp 0x4f0a67
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4f0a67
push dword [esi]
push dword [ebp - 4]
call fcn.0047cd1e
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f0b2d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004f0bd8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4f0b75
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046f8ab
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0046d7af
jmp 0x4f0b80
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047cd1e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5534f6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005840e6
call fcn.0047a217
cmp dword [eax + 0x14], 0
jne 0x553511
mov ecx, esi
pop esi
jmp fcn.005528fc
pop esi
ret

Function at 0x55fca6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00474d9a
call fcn.0047a217
cmp dword [eax + 0x14], 0
jne 0x55fcc1
mov ecx, esi
pop esi
jmp fcn.0055f58f
pop esi
ret
Function at 0x5a0525
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00592b0e
mov dword [ebp - 0x14], eax
cmp dword [0x64e8c8], esi
jne 0x5a0618
push 0x800
push esi
push 0x60a1b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5a05a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5a06f8
push esi
push esi
push 0x60a1b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5a06f8
push 0x60a1c8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a06f8
push eax
call ebx
push 0x60a1d4
push edi
mov dword [0x64e8c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x60a1e4
push edi
mov dword [0x64e8cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x64e8d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64e8d8], eax
test eax, eax
je 0x5a0615
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64e8d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5a063d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a0630
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5a0652
push 4
pop eax
jmp 0x5a06fa
cmp dword [ebp - 0x14], esi
je 0x5a0652
push dword [0x64e8c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5a0637
mov eax, dword [0x64e8d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5a06b0
cmp dword [0x64e8d8], edi
je 0x5a06b0
push eax
call ebx
push dword [0x64e8d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5a06b0
test eax, eax
je 0x5a06b0
call ecx
test eax, eax
je 0x5a06a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5a06a5
test byte [ebp - 8], 1
jne 0x5a06b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5a06e0
mov eax, dword [0x64e8cc]
cmp eax, edi
je 0x5a06dd
push eax
call ebx
test eax, eax
je 0x5a06dd
call eax
mov esi, eax
test esi, esi
je 0x5a06dd
mov eax, dword [0x64e8d0]
cmp eax, edi
je 0x5a06dd
push eax
call ebx
test eax, eax
je 0x5a06dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x64e8c8]
call ebx
test eax, eax
je 0x5a06f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5a06fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588376
mov esp, ebp
pop ebp
ret
Function at 0x5b03b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401486
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47782f
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x430], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsTGPClient.exe
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401579
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x40e
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.0044b400
add esp, 0xc
mov dword [ebp - 0x14], 0x208
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.InstallPath
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401554
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401d61
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x430]
or eax, 1
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 8]
jmp 0x40159c
push 0x4817c4
mov ecx, dword [ebp + 8]
call fcn.00401d61
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x430]
or eax, 1
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 8]
jmp 0x40159c
push 0x48184c
mov ecx, dword [ebp + 8]
call fcn.00401d61
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x430]
or eax, 1
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0044b3ec
leave
ret
Function at 0x4015b3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47789e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x258], 0
push 0x104
lea eax, [ebp - 0x254]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401630
push str._launcher_GetModuleFileNameW_wrong_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4816cf
mov ecx, dword [ebp + 8]
call fcn.00401c41
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x258]
or eax, 1
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 8]
jmp 0x401757
push 0x5c
lea eax, [ebp - 0x254]
push eax
call fcn.0044b47a
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40167c
push str._launcher_cannot_find_slash_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4816d7
mov ecx, dword [ebp + 8]
call fcn.00401c41
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x258]
or eax, 1
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 8]
jmp 0x401757
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov word [ecx], ax
lea eax, [ebp - 0x289]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00401ecc
mov dword [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401d61
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004056c3
pop ecx
pop ecx
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401f59
mov byte [ebp - 4], 2
push dword [0x481914]
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00401fee
cmp dword [ebp - 0x38], 0x10
jb 0x40170d
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2b4], eax
jmp 0x401716
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2b4], eax
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401cb5
mov eax, dword [ebp - 0x258]
or eax, 1
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401ecc
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b3ec
leave
ret
Function at 0x401a12
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4779e5
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x84], 0
cmp dword [ebp + 8], 1
jne 0x401a5a
push 0x2710
call fcn.0040176e
pop ecx
jmp 0x401c28
push str.tgp_pid
lea ecx, [ebp - 0x2c]
call fcn.00401c41
and dword [ebp - 4], 0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b0c7
pop ecx
pop ecx
mov byte [ebp - 0xa9], al
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp - 0xa9]
test eax, eax
je 0x401b20
cmp dword [ebp - 0x84], 0
jle 0x401b1b
push dword [ebp - 0x84]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x401af3
push 0x3e8
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401af3
push 0
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x88], 0
je 0x401b08
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.0040176e
pop ecx
jmp 0x401c28
and dword [ebp - 0x8c], 0
push str.StartFor
lea ecx, [ebp - 0x48]
call fcn.00401c41
mov dword [ebp - 4], 2
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040b0c7
pop ecx
pop ecx
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
call section..text
movzx eax, al
test eax, eax
je 0x401b8a
cmp dword [ebp - 0x8c], 0
jle 0x401b8a
push dword [ebp - 0x8c]
call fcn.00401031
pop ecx
jmp 0x401c28
push 0
call fcn.0040176e
pop ecx
movzx eax, al
test eax, eax
jne 0x401c28
push str.TGPMiniLoader.exe
lea ecx, [ebp - 0x64]
call fcn.00401c41
mov dword [ebp - 4], 4
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004015b3
pop ecx
pop ecx
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401ecc
mov byte [ebp - 4], 6
push str.reapir_tgp1
lea ecx, [ebp - 0x80]
call fcn.00401c41
mov byte [ebp - 4], 8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004011e4
pop ecx
pop ecx
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401ecc
mov byte [ebp - 4], 6
mov dword [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b3ec
leave
ret
Function at 0x4091f1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478943
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x1e4], 0
push 0x103
push 0
lea eax, [ebp - 0x1e3]
push eax
call fcn.0044b400
add esp, 0xc
lea eax, [ebp - 0x1e4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
jne 0x409337
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
push str.get_logical_driver_string_failed__error_code:_d
lea ecx, [ebp - 0xbc]
call fcn.004176fa
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x254], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x254]
call fcn.0041d73e
pop ecx
pop ecx
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp - 0x258]
call fcn.0041788c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.004108a4
cmp dword [ebp - 0x1f0], 0x10
jb 0x4092e2
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x288], eax
jmp 0x4092ee
lea eax, [ebp - 0x204]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0044bc86
push 0x48ea08
lea eax, [ebp - 0x21c]
push eax
call fcn.0044bba1
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x204]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x208], eax
jmp 0x409361
push dword [ebp - 0x208]
call fcn.0044af10
pop ecx
mov ecx, dword [ebp - 0x208]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
movsx eax, byte [eax]
test eax, eax
je 0x4093dd
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 3
je 0x409397
jmp 0x4093d8
push dword [ebp - 0x208]
lea ecx, [ebp - 0xd8]
call fcn.00401c41
mov dword [ebp - 4], 4
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp + 8]
call fcn.004124fc
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0xd8]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
jmp 0x409345
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b3ec
leave
ret
Function at 0x40a9e8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478d88
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40aa29
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x16c], eax
jmp 0x40aa32
mov eax, dword [ebp + 8]
mov dword [ebp - 0x16c], eax
push 0
push dword [ebp - 0x16c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x40ab4a
cmp dword [ebp - 0xc0], 0xb7
je 0x40ab4a
push str.create_directory_ex_fail__error_code:_1___path:_2_
lea ecx, [ebp - 0xbc]
call fcn.004176fa
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x120], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x120]
call fcn.0041dac0
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
push dword [ebp + 8]
push dword [ebp - 0x124]
call fcn.0041dba6
pop ecx
pop ecx
mov dword [ebp - 0x158], eax
push dword [ebp - 0x158]
lea eax, [ebp - 0xdc]
push eax
call fcn.00417d6f
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.004108a4
cmp dword [ebp - 0xc8], 0x10
jb 0x40aaf5
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x174], eax
jmp 0x40ab01
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0044bc86
push 0x48ea08
lea eax, [ebp - 0xe8]
push eax
call fcn.0044bba1
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0xdc]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b3ec
leave
ret

Function at 0x40abc1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 2
push dword [ebp + 8]
call fcn.0044b4a8
pop ecx
cmp eax, 2
jae 0x40abf3
xor al, al
jmp 0x40ac7e
mov eax, dword [0x4823b0]
mov dword [ebp - 0x210], eax
mov eax, dword [0x4823b4]
mov dword [ebp - 0x20c], eax
push 0x200
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.0044b400
add esp, 0xc
push 2
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0044dc60
add esp, 0x10
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 3
je 0x40ac7c
cmp dword [ebp - 0x214], 4
je 0x40ac7c
push str._Sys_wrapper_path_is_not_fixed_remote
push 0x481e97
push 0
call fcn.0040479d
add esp, 0xc
xor al, al
jmp 0x40ac7e
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b3ec
leave
ret
Function at 0x40af98
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478e7c
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x59]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x78], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00401ecc
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], 0
je 0x40b028
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401d61
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x50]
or eax, 1
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004056c3
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40b028
mov dword [ebp - 0x7c], 1
jmp 0x40b02c
and dword [ebp - 0x7c], 0
mov al, byte [ebp - 0x7c]
mov byte [ebp - 0x49], al
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x50]
and eax, 1
je 0x40b059
and dword [ebp - 0x50], 0xfffffffe
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401f59
mov byte [ebp - 4], 1
movzx eax, byte [ebp - 0x49]
test eax, eax
je 0x40b092
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.0040acff
add esp, 0xc
mov byte [ebp - 0x4a], al
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4a]
jmp 0x40b0b0
mov byte [ebp - 0x4b], 0
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401ecc
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b3ec
leave
ret