joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da5b
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 5
push str.ServicesActive
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40db3c
lea eax, [esi + 0x28]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], eax
xor ecx, ecx
lea eax, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
push 3
push 0x30
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00405eff
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push 3
push 0x30
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x40daf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40db3c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x40db3c
mov ebx, edi
cmp dword [ebx], 0
je 0x40db3c
push dword [ebx]
lea ecx, [ebp - 8]
call fcn.004035e5
push dword [ebp - 0x1c]
lea ecx, [ebp - 8]
call fcn.00403248
test eax, eax
jne 0x40db50
mov ecx, dword [ebp - 8]
call fcn.00405ea5
and dword [ebp - 8], 0
add ebx, 0x2c
inc esi
cmp esi, dword [ebp - 4]
jb 0x40db09
and dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x14]
call fcn.00405ea5
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret
imul esi, esi, 0x2c
lea ecx, [ebp - 0x18]
push dword [esi + edi]
call fcn.004035e5
push eax
lea ecx, [ebp - 0x14]
call fcn.00403437
mov ecx, dword [ebp - 0x18]
call fcn.00405ea5
mov ebx, dword [ebp - 0x28]
mov eax, dword [esi + edi + 0x24]
mov ecx, dword [ebp - 8]
and dword [ebp - 0x18], 0
mov dword [ebx + 0x2c], eax
call fcn.00405ea5
and dword [ebp - 8], 0
cmp dword [ebx + 0x2c], 0
jne 0x40dbd0
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x20], ebx
je 0x40db3c
mov esi, dword [ebp - 0x1c]
push 2
push esi
call fcn.0040d49c
push esi
call fcn.0040d508
push edi
mov dword [ebp - 0x20], ebx
call fcn.00401099
pop ecx
push 5
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x40da9f
jmp 0x40db3c
mov ecx, dword [ebp - 4]
xor esi, esi
test ecx, ecx
je 0x40db40
cmp dword [edi], 0
je 0x40db40
mov eax, dword [edi + 0x24]
cmp eax, dword [ebx + 0x2c]
jne 0x40dc29
push dword [edi]
lea ecx, [ebp - 8]
call fcn.004035e5
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40dc1a
push ecx
mov ecx, esp
push dword [edi]
call fcn.004035e5
lea ecx, [ebx + 0x44]
call fcn.004021bd
mov ecx, dword [ebp - 8]
call fcn.00405ea5
and dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x40dbdd
jmp 0x40db40
Function at 0x40e891
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401052
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e8f6
mov eax, dword [ebp - 0x10]
inc esi
mov dword [0x41955c], eax
mov ecx, dword [ebp + 8]
call fcn.00405ea5
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x40ea89
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
cmp dword [edi], 0
je 0x40ead4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x18]
je 0x40eacd
cmp dword [esi + 0x10], 0
je 0x40eaf8
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40eacd
push 0xfffffffffffffffe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, edi
call fcn.0040ec8c
lea ecx, [esi + 0x10]
call fcn.0040ec8c
lea ecx, [esi + 4]
call fcn.0040ec8c
lea ecx, [esi + 0xc]
call fcn.0040ec8c
lea ecx, [esi + 8]
call fcn.0040ec8c
and dword [esi + 0x18], 0
pop edi
pop esi
ret
Function at 0x40eafb
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov ecx, 0x419558
call fcn.0040ea89
and dword [ebp - 8], 0
lea eax, [ebp - 0x20]
and dword [ebp - 0xc], 0
xor esi, esi
and dword [ebp - 4], 0
inc esi
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
push 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x20], 0xc
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], esi
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40ec47
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0xc]
push 2
push esi
push 0
push eax
call edi
push eax
push dword [ebp - 4]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
test eax, eax
je 0x40ec47
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40ec47
push 2
push 0
push 0
push 0x419560
call edi
push eax
push dword [ebp - 8]
call edi
push eax
call ebx
test eax, eax
je 0x40ec47
push 2
push 0
push 0
push 0x419564
call edi
push eax
push dword [ebp - 0x10]
call edi
push eax
call ebx
test eax, eax
je 0x40ec47
lea ecx, [ebp - 8]
call fcn.0040ec8c
lea ecx, [ebp - 0x10]
call fcn.0040ec8c
push dword [ebp - 0xc]
lea eax, [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 4]
push ecx
mov ecx, esp
push eax
call fcn.0040362d
call fcn.0040e891
test eax, eax
je 0x40ec47
lea ecx, [ebp - 4]
call fcn.0040ec8c
lea ecx, [ebp - 0x14]
call fcn.0040ec8c
lea ecx, [ebp - 0xc]
call fcn.0040ec8c
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x419570
push 0
push 0x419558
push 0x40e92a
push 0
push 0
mov dword [0x419568], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41956c], eax
test eax, eax
jne 0x40ec7b
lea ecx, [ebp - 8]
call fcn.0040ec8c
lea ecx, [ebp - 4]
call fcn.0040ec8c
lea ecx, [ebp - 0xc]
call fcn.0040ec8c
lea ecx, [ebp - 0x10]
call fcn.0040ec8c
lea ecx, [ebp - 0x14]
call fcn.0040ec8c
mov ecx, 0x419558
call fcn.0040ea89
xor esi, esi
mov ecx, dword [ebp + 8]
call fcn.00405ea5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40ee9a
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
push 6
xor eax, eax
mov edi, edx
inc eax
mov esi, ecx
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
push ecx
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xc]
push dword [ecx]
push eax
call fcn.0040102c
add esp, 0xc
push 2
pop eax
push edi
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x802
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
cmp byte [0x419695], 0
jne 0x40ef48
xor esi, esi
inc esi
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
movzx ecx, byte [0x419695]
cmp eax, 0xffffffff
cmovne ecx, esi
mov byte [0x419695], cl
test cl, cl
je 0x40ef24
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40f1da
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x4198b4]
push esi
push edi
push 0x2000
mov esi, edx
call fcn.00401085
mov edi, eax
lea eax, [ebp + 0xc]
push 4
push eax
push edi
call fcn.0040102c
push 4
lea eax, [ebp + 8]
push eax
lea eax, [edi + 4]
push eax
call fcn.0040102c
push dword [ebp + 8]
lea eax, [edi + 8]
push esi
push eax
call fcn.0040102c
mov eax, dword [ebp + 8]
add esp, 0x28
add eax, 8
push 0
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
push edi
call fcn.00401099
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4198b4]
push ebx
push esi
push edi
mov esi, 0x2000
mov dword [ebp - 0xc], eax
push esi
call fcn.00401085
push esi
mov dword [ebp - 4], eax
call fcn.00401085
mov esi, dword [ebp + 8]
mov ebx, eax
and dword [ebp - 0x10], 0
mov edi, esi
and dword [ebp - 8], 0
xor eax, eax
pop ecx
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push 0
push 8
pop eax
sub eax, edi
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x40f32e
cmp eax, 0xffffffff
je 0x40f32e
mov ecx, dword [ebp - 4]
push eax
add ecx, edi
push ebx
push ecx
call fcn.0040102c
add edi, dword [ebp + 8]
add esp, 0xc
cmp edi, 8
jl 0x40f27a
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push 4
push edi
push eax
call fcn.0040102c
push 4
lea eax, [edi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040102c
mov eax, dword [ebp - 8]
add esp, 0x18
xor edi, edi
test eax, eax
jle 0x40f317
push 0
sub eax, edi
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x40f32e
cmp eax, 0xffffffff
je 0x40f32e
mov ecx, dword [ebp - 4]
push eax
add ecx, edi
push ebx
push ecx
call fcn.0040102c
add edi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x40f2e2
mov ecx, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [esi], ecx
mov dword [esi + 8], eax
call fcn.00401099
pop ecx
jmp 0x40f335
mov byte [0x419695], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40f33c
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
push 6
push 1
push 0x17
pop eax
push eax
mov di, dx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 0x17
mov ebx, eax
pop eax
push 0x10
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040102c
add esp, 0xc
mov word [ebp - 0x1a], di
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40f3b6
mov esi, 0x802
lea eax, [ebp - 0x820]
push esi
push 0
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x820]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40f3bd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [ecx]
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov si, dx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov edi, eax
push 0x10
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], bx
push eax
push edi
mov dword [ebp - 0x10], ecx
mov word [ebp - 0x12], si
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40f42b
mov esi, 0x802
lea eax, [ebp - 0x818]
push esi
push 0
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_InetNtopW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f432
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0x108
mov ebx, edx
mov edi, ecx
call fcn.00401085
mov esi, eax
pop ecx
test esi, esi
je 0x40f473
test edi, edi
je 0x40f473
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov dword [esi + 0x104], ebx
push eax
push eax
push esi
push 0x40ee44
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
jmp 0x40f47c
push esi
call fcn.00401099
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40f69f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
push 0
push dword [ecx]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f719
push 0x10
xor ebx, ebx
inc ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f719
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f719
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x28]
mov dword [edi], ecx
mov cx, word [eax + 0x1a]
mov word [edi + 4], cx
mov cx, word [eax + 0x18]
mov eax, edx
and eax, ebx
mov word [edi + 6], cx
mov dword [edi + 8], eax
mov ecx, edx
mov eax, edx
shr ecx, 3
shr eax, 1
and ecx, ebx
shr edx, 5
and eax, ebx
and edx, ebx
mov dword [edi + 0xc], eax
push esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x40f71b
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40f76b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push edi
push 0x208
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x208]
push 0
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
mov ecx, edi
push eax
call fcn.004035e5
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40f80e
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40f880
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x416e60
push 0x17
push edi
push 0x414490
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f880
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push edi
push edi
push 0x80
push edi
push edi
push edi
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
push str.rootCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x40f892
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x414648
mov ecx, esi
call fcn.004035e5
mov eax, esi
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push edi
push 0x20
push str.SELECT_Name_FROM_Win32_VideoController
mov dword [ebp - 0xc], edi
mov ecx, dword [eax]
push 0x416e58
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x40f8c1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
jmp 0x40f87a
mov dword [ebp - 8], edi
jmp 0x40f8fd
test eax, eax
js 0x40f917
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x28]
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.Name
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40f8f4
cmp word [ebp - 0x28], 8
je 0x40f937
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp eax, 1
jne 0x40f8c6
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40f88e
push dword [ebp - 0x20]
jmp 0x40f885

Function at 0x40fe3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
je 0x40fe53
lea ecx, [edi + 0xc]
call fcn.0041026f
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], ebx
call fcn.00405eff
push dword [ebp + 0x10]
mov esi, eax
push ebx
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov ebx, eax
push esi
call fcn.00402f91
mov ecx, esi
call fcn.00405eee
cmp dword [edi], 0
pop esi
je 0x40fea5
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x40ff27
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 5
pop eax
mov edi, ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.00401875
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jmp 0x40fffe
and dword [ebp - 0x34], 0
test byte [ebp - 0x284], 0x10
je 0x40ff82
xorps xmm0, xmm0
mov dword [ebp - 0x24], 1
movlpd qword [ebp - 0x2c], xmm0
jmp 0x40ff98
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x268]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 8]
call fcn.004035e5
push eax
lea ecx, [ebp - 0x34]
call fcn.00403437
mov ecx, dword [ebp - 8]
call fcn.00405ea5
and dword [ebp - 8], 0
lea eax, [ebp - 0x34]
sub esp, 0x18
mov esi, esp
mov ecx, esi
push eax
call fcn.0040362d
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
call fcn.00401776
mov ecx, dword [ebp - 0x34]
call fcn.00405ea5
lea eax, [ebp - 0x284]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ff64
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401361
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41001c
push ecx
call fcn.00401ad5
mov ecx, dword [ebp + 8]
call fcn.00405ea5
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41002b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x208
mov dword [ebp - 8], edi
call fcn.00405f53
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
push 5
mov ebx, eax
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
call fcn.004019f6
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
cmp esi, 0x104
jbe 0x41008d
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.00405f53
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor esi, esi
cmp word [ebx], si
je 0x410106
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0x14], esi
call fcn.004035e5
push eax
lea ecx, [ebp - 0x14]
call fcn.00403437
mov ecx, dword [ebp - 4]
call fcn.00405ea5
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub esp, 0xc
mov edi, eax
mov esi, esp
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040362d
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
call fcn.00401903
lea ecx, [ebp - 0x14]
call fcn.00403261
mov ecx, dword [ebp - 0x14]
lea ebx, [ebx + eax*2]
add ebx, 2
call fcn.00405ea5
xor esi, esi
mov dword [ebp - 0x14], esi
cmp word [ebx], si
jne 0x410094
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004013a8
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x41011e
push ecx
call fcn.00401b00
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41013d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x410154
lea ecx, [esi + 0xc]
call fcn.0041026f
push 2
push ebx
push ebx
push dword [esi + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [eax + 4]
push dword [eax]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [esi], ebx
je 0x410189
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x410192
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 3
push edi
push 1
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4101c6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
jmp 0x4101cb
mov dword [esi + 8], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x410346
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, 0x5a4d
mov dword [esi + 0x20], edi
cmp word [edi], ax
jne 0x410446
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x410446
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
jne 0x4103df
mov dword [esi + 0x40], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x24], eax
push dword [eax + 0x54]
push edi
call fcn.00402f91
mov ecx, dword [esi + 0x24]
and dword [ebp + 8], 0
movzx eax, word [ecx + 0x14]
lea ebx, [ecx + 0x18]
add ebx, eax
xor eax, eax
cmp ax, word [ecx + 6]
jae 0x41043e
sub esp, 0x30
mov ecx, esp
push ecx
push ebx
push edi
call fcn.00410ac3
lea ecx, [esi + 0x2c]
call fcn.00402296
mov eax, dword [esi + 0x24]
add ebx, 0x28
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x4103b3
jmp 0x41043e
mov edx, 0x8664
cmp cx, dx
jne 0x41043e
xor ebx, ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x18]
push dword [eax + 0x54]
push edi
call fcn.00402f91
mov ecx, dword [esi + 0x28]
xor edx, edx
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
mov dword [ebp + 8], eax
cmp dx, word [ecx + 6]
jae 0x41043e
sub esp, 0x30
mov ecx, esp
push ecx
push eax
push edi
call fcn.00410ac3
lea ecx, [esi + 0x2c]
call fcn.00402296
mov ecx, dword [esi + 0x28]
inc ebx
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [ebp + 8], eax
movzx ecx, word [ecx + 6]
cmp ebx, ecx
jl 0x410414
xor eax, eax
inc eax
mov dword [esi + 0x3c], eax
jmp 0x410448
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410620
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov edi, dword [eax + 0xc]
add edi, 0x14
mov esi, dword [edi]
jmp 0x410640
mov ecx, dword [esi + 0x28]
call fcn.004106de
test eax, eax
je 0x410649
mov esi, dword [esi]
cmp esi, edi
jne 0x410632
xor eax, eax
pop edi
pop esi
ret
mov eax, dword [esi + 0x10]
jmp 0x410646

Function at 0x4106c4
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4106db
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x4106dd
xor eax, eax
ret