joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d7a6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
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.00404d65
mov dword [ebp - 0x14], eax
cmp dword [0x4ca248], esi
jne 0x40d899
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d826
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d979
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d979
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d979
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ca248], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ca24c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ca250], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ca258], eax
test eax, eax
je 0x40d896
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ca254], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d8be
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d8b1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push 4
pop eax
jmp 0x40d97b
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push dword [0x4ca248]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d8b8
mov eax, dword [0x4ca254]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d931
cmp dword [0x4ca258], edi
je 0x40d931
push eax
call ebx
push dword [0x4ca258]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d931
test eax, eax
je 0x40d931
call ecx
test eax, eax
je 0x40d926
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 0x40d926
test byte [ebp - 8], 1
jne 0x40d931
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d961
mov eax, dword [0x4ca24c]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
call eax
mov esi, eax
test esi, esi
je 0x40d95e
mov eax, dword [0x4ca250]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ca248]
call ebx
test eax, eax
je 0x40d979
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d97b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fd7
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00402767
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00402767
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00402767
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402767
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00402767
mov dword [0x41203c], eax
call fcn.00402767
test eax, eax
jge 0x402550
push 8
call fcn.00402767
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402767
pop ecx
push 1
call fcn.00402767
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402767
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00402767
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00402767
jmp 0x402495

Function at 0x402767
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402776
pop dword [ebp - 0x2c]
mov eax, 0x402776
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3bafe
push 0
mov eax, 0x25d623a3
sub eax, 0x259542cb
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x685996e5
add ecx, 0x97a6b894
xor edx, edx
add edx, eax
mov edi, 0x3be2c3ac
add edi, 0xc45e7818
add edi, dword [ebp - 0x2c]
mov esi, 0xc14d917b
sub esi, 0x536911de
xor dword [ebp - 8], ecx
mov ebx, dword [edi]
add ebx, esi
mov dword [edx], ebx
sub dword [ebp - 0x28], esi
add edx, 0xf3a8eb3b
sub edx, 0xf3a8eb37
add edi, 0xa68d48eb
add edi, 0x5972b719
loop 0x4027d2
add eax, 0x5e8a0c1c
sub eax, 0x5e88db65
xor ebx, ebx
add ebx, eax
add eax, 0xe8e2a3eb
sub eax, 0xe8e2a3e6
mov ecx, 0x5c4585ba
add ecx, 0xa3fa7a46
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dbda9
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x65b4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10c], ecx
lea eax, [ebp - 0xd0]
push eax
call fcn.00404950
mov ecx, eax
call fcn.004092f0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], 0
push 0x6298ac
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0xec]
push eax
call fcn.00404a40
add esp, 0xc
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 1
push 0x6298a8
mov edx, dword [ebp - 0x11c]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00404a40
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xec]
call fcn.0040c050
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call fcn.0040c050
push str.actionserver.log
lea ecx, [ebp - 0x2c]
call fcn.004024c0
push 0x6298c4
lea ecx, [ebp - 0x2c]
call fcn.0040bf30
push eax
call fcn.005b0ac9
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4021f5
lea ecx, [ebp - 0x108]
push ecx
call fcn.004fffc0
add esp, 4
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x124]
call fcn.0040bf30
push eax
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0x6298c8
push 0x80
lea eax, [ebp - 0xb4]
push eax
call fcn.005b0ba7
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x108]
call fcn.0040c050
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x128]
mov cl, byte [eax]
mov byte [ebp - 0x12d], cl
add dword [ebp - 0x128], 1
cmp byte [ebp - 0x12d], 0
jne 0x40215e
mov edx, dword [ebp - 0x128]
sub edx, dword [ebp - 0x12c]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x30]
push eax
push 1
mov ecx, dword [ebp - 0x134]
push ecx
lea edx, [ebp - 0xb4]
push edx
call fcn.005b0d41
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x44
call fcn.0040bf30
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str._d:_u:_s
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005b0dc3
add esp, 0x14
mov edx, dword [ebp - 0x30]
push edx
push 1
push 2
push 0x6298ec
call fcn.005b0d41
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
call fcn.005b0f84
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040c050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b0968
mov esp, ebp
pop ebp
ret 4
Function at 0x402d50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e48fb
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x661c1c], 0
jne 0x402e2d
mov ecx, 0x661f08
call fcn.00408890
cmp dword [0x661c1c], 0
jne 0x402e23
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0xb0
call fcn.00594e6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x402dd5
mov ecx, dword [ebp - 0x1c]
call fcn.00456620
mov dword [ebp - 0x20], eax
jmp 0x402ddc
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x402e02
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x402e1a
push 0x62997c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
mov dword [0x661c1c], edx
mov ecx, 0x661f08
call fcn.00408850
mov eax, dword [0x661c1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402e50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d96db
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x661c20], 0
jne 0x402f2a
mov ecx, 0x661eec
call fcn.00408890
cmp dword [0x661c20], 0
jne 0x402f20
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x60
call fcn.00594e6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x402ed2
mov ecx, dword [ebp - 0x1c]
call fcn.00402ff0
mov dword [ebp - 0x20], eax
jmp 0x402ed9
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x402eff
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x402f17
push 0x62997c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
mov dword [0x661c20], edx
mov ecx, 0x661eec
call fcn.00408850
mov eax, dword [0x661c20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404860
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e95ab
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x661ee8
call fcn.0041b290
test eax, eax
jne 0x404926
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x170
call fcn.00594e6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4048d3
mov ecx, dword [ebp - 0x1c]
call fcn.00473050
mov dword [ebp - 0x20], eax
jmp 0x4048da
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x404900
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x404918
push 0x629934
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
push edx
mov ecx, 0x661ee8
call fcn.0041b2e0
mov ecx, 0x661ee8
call fcn.0041b290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404950
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dbcbb
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x661ee4
call fcn.0041b290
test eax, eax
jne 0x404a16
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x214
call fcn.00594e6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4049c3
mov ecx, dword [ebp - 0x1c]
call fcn.0040c110
mov dword [ebp - 0x20], eax
jmp 0x4049ca
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x4049f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x404a08
push 0x62994c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
push edx
mov ecx, 0x661ee4
call fcn.00404d30
mov ecx, 0x661ee4
call fcn.0041b290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409980
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d825b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x661f2c
call fcn.0041b290
test eax, eax
jne 0x409a43
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x34
call fcn.00594e6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4099f0
mov ecx, dword [ebp - 0x1c]
call fcn.00409a60
mov dword [ebp - 0x20], eax
jmp 0x4099f7
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x409a1d
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x409a35
push 0x629964
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
push edx
mov ecx, 0x661f2c
call fcn.004026b0
mov ecx, 0x661f2c
call fcn.0041b290
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cad0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5708
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x65b4e4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 4
jb 0x40cb4e
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x4c], eax
jmp 0x40cb5d
cmp dword [ebp - 0x14], 2
jb 0x40cb5d
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x48]
call fcn.00522200
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x48]
call fcn.00520cc0
cmp dword [ebp - 0x10], 0xfa0
jbe 0x40cb8c
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x4c], eax
jmp 0x40cb9e
cmp dword [ebp - 0x10], 0x7d0
jbe 0x40cb9e
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x74], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00520c60
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b0968
mov esp, ebp
pop ebp
ret

Function at 0x4104c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x65b4e4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41050e
xor eax, eax
jmp 0x410511
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005b0968
mov esp, ebp
pop ebp
ret
Function at 0x410630
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da737
mov eax, dword fs:[0]
push eax
mov eax, 0x108c
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1098], ecx
mov dword [ebp - 0x1094], 0
push 0x60a10f
lea ecx, [ebp - 0x30]
call fcn.0040bf50
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x38], ax
mov byte [ebp - 0x36], al
push 2
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.005b1b80
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1098]
call fcn.004103e0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x10], 0xffffffff
je 0x41082a
mov byte [ebp - 0x103c], 0
push 0xfff
push 0
lea ecx, [ebp - 0x103b]
push ecx
call fcn.005b4520
add esp, 0xc
lea edx, [ebp - 0x103c]
push edx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x41082a
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x1040], eax
push 1
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x1040]
push edx
call fcn.005b5c16
add esp, 0xc
test eax, eax
je 0x4107fb
mov eax, dword [ebp - 0x1040]
push eax
mov ecx, dword [ebp - 0x1098]
call fcn.004103e0
mov dword [ebp - 0x1044], eax
cmp dword [ebp - 0x1044], 0xffffffff
je 0x4107fb
push 0x40
push 0
lea ecx, [ebp - 0x108c]
push ecx
call fcn.005b4520
add esp, 0xc
mov edx, dword [ebp - 0x1040]
movsx eax, byte [edx]
push eax
push str._c:__
lea ecx, [ebp - 0x108c]
push ecx
call fcn.005b0b2c
add esp, 0xc
lea edx, [ebp - 0x108c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x1048], eax
cmp dword [ebp - 0x1048], 3
jne 0x4107fb
mov eax, dword [ebp - 0x1040]
mov cl, byte [eax]
push ecx
call fcn.00410520
add esp, 4
test eax, eax
je 0x4107fb
mov edx, dword [ebp - 0x1040]
push edx
call fcn.004fece0
add esp, 4
mov dword [ebp - 0x1090], eax
cmp dword [ebp - 0x1090], 0
je 0x4107fb
cmp dword [ebp - 0x1090], 0xffffffff
je 0x4107fb
cmp dword [ebp - 0x1090], 0x1e
jbe 0x4107fb
mov eax, dword [ebp - 0x1090]
cmp eax, dword [ebp - 0x34]
jbe 0x4107fb
mov ecx, dword [ebp - 0x1090]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x1040]
push edx
lea ecx, [ebp - 0x30]
call fcn.0040bee0
mov eax, dword [ebp - 0x1040]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x1040]
add edx, 1
mov dword [ebp - 0x1040], edx
test ecx, ecx
je 0x410819
jmp 0x4107fb
mov eax, dword [ebp - 0x1040]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x410704
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040c070
mov eax, dword [ebp - 0x1094]
or eax, 1
mov dword [ebp - 0x1094], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040c050
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b0968
mov esp, ebp
pop ebp
ret 8
Function at 0x413170
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcdeb
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x661c24], 0
jne 0x41324d
mov ecx, 0x661f4c
call fcn.00408890
cmp dword [0x661c24], 0
jne 0x413243
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0xf0
call fcn.00594e6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4131f5
mov ecx, dword [ebp - 0x1c]
call fcn.004d9330
mov dword [ebp - 0x20], eax
jmp 0x4131fc
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x413222
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x41323a
push 0x62997c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
mov dword [0x661c24], edx
mov ecx, 0x661f4c
call fcn.00408850
mov eax, dword [0x661c24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d811b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x661c28], 0
jne 0x41334a
mov ecx, 0x661f30
call fcn.00408890
cmp dword [0x661c28], 0
jne 0x413340
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x38
call fcn.00594e6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4132f2
mov ecx, dword [ebp - 0x1c]
call fcn.004e1840
mov dword [ebp - 0x20], eax
jmp 0x4132f9
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x41331f
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x413337
push 0x62997c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
mov dword [0x661c28], edx
mov ecx, 0x661f30
call fcn.00408850
mov eax, dword [0x661c28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret