joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4709e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x470ab9
cmp dword [ebp + 0x14], 0
je 0x470a32
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx]
test edx, edx
jne 0x470a6b
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00468b10
push eax
push 0x492d2c
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0046c520
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.00403140
jmp 0x470b53
mov ecx, dword [ebp + 0x14]
push ecx
push 0x492d4c
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00468b10
push eax
push 0x492d3c
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
call fcn.0046c520
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.00403140
jmp 0x470b53
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
je 0x470b4b
cmp dword [ebp + 0x14], 0
je 0x470ad5
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx]
test edx, edx
jne 0x470b00
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00468b10
push eax
push 0x492d50
mov ecx, dword [ebp + 8]
call fcn.00402740
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.00403140
jmp 0x470b53
mov eax, dword [ebp + 0x14]
push eax
push 0x492d80
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00468b10
push eax
push 0x492d68
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0046c520
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.0046c360
mov ecx, eax
call fcn.00403140
jmp 0x470b53
mov ecx, dword [ebp + 8]
call fcn.00402730
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402ce4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x412020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d5c
xor eax, eax
push ebp
push 0x402d55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x412020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x412020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403804
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x413044], 0
je 0x403865
cmp word [0x413218], 0xd7b2
jne 0x40382d
cmp dword [0x413220], 0
jbe 0x40382d
mov eax, 0x413214
call dword [0x413230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x412068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40388c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41202c], 0
jne 0x403881
push 0
push 0x412060
push 0x412068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4052f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405356
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403bf0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405340
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40535d
lea eax, [ebp - 0x10]
call fcn.00403980
ret

Function at 0x4094e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409519
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a70
jmp 0x409522
mov eax, ebx
mov edx, esi
call fcn.004039d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40952c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40954d
mov al, byte [esp]
jmp 0x40954f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409bd4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409a4c
mov eax, dword [0x412508]
cmp byte [eax], 0
je 0x409c50
mov eax, dword [0x41242c]
call fcn.00402854
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406e94
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409c98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409c86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x412408]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x413660]
call fcn.00404840
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x100029e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050820
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100682b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x40
mov word [esi + 0x1c], 1
mov byte [esi + 0x262], bl
mov dword [ebp - 4], ebx
call fcn.10019bd5
add esp, 4
mov dword [esi + 8], eax
jmp 0x10002a5c
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
mov dword [esi + 0x228], ebx
mov dword [esi + 0x22c], ebx
mov dword [esi + 0xc], 0x67452301
mov dword [esi + 0x10], 0xefcdab89
mov dword [esi + 0x14], 0x98badcfe
mov dword [esi + 0x18], 0x10325476
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002aa0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi]
push eax
call fcn.10019bad
add esp, 4
test eax, eax
jne 0x10002b2c
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push edi
push ecx
push 0x40
push 1
push edx
call fcn.10019ef2
mov edi, eax
cdq
add esp, 0x10
add dword [esi + 0x228], eax
adc dword [esi + 0x22c], edx
cmp edi, 0x40
jge 0x10002b27
push ebx
mov ebx, dword [esi + 8]
mov eax, 0x40
sub eax, edi
push eax
add ebx, edi
push 0
push ebx
call fcn.1001ba60
add esp, 0xc
mov byte [ebx], 0x80
mov byte [0x1006983f], 0
pop ebx
cmp edi, 0x38
jge 0x10002b27
mov ecx, dword [esi + 0x228]
mov edx, dword [esi + 0x22c]
mov esi, dword [esi + 8]
shld edx, ecx, 3
add ecx, ecx
add ecx, ecx
add ecx, ecx
pop edi
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret
mov eax, dword [esi + 8]
push 0x40
push 0
push eax
call fcn.1001ba60
add esp, 0xc
cmp byte [0x1006983f], 0
je 0x10002b4b
mov ecx, dword [esi + 8]
mov byte [ecx], 0x80
mov edx, dword [esi + 0x228]
mov eax, dword [esi + 0x22c]
mov esi, dword [esi + 8]
shld eax, edx, 3
add edx, edx
add edx, edx
add edx, edx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], edx
xor al, al
pop esi
ret
Function at 0x10004750
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100514ca
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], 0
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x19e]
mov dword [ebp - 4], 1
push ecx
mov word [ebp - 0x1a0], ax
call fcn.1001ba60
add esp, 0xc
lea edx, [ebp - 0x1a0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x100047cf
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x1005e2e3
mov ecx, esi
mov edi, eax
mov byte [esi], 0
call fcn.10007150
mov dword [ebp - 0x1a4], 1
test edi, edi
je 0x10004836
cmp word [edi + 8], 2
jne 0x10004836
mov edi, dword [edi + 0xc]
cmp dword [edi], 0
je 0x10004836
mov edi, dword [edi]
mov eax, dword [edi]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10004824
sub ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.10007150
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp + 0x1c], 0x10
jb 0x1000484e
mov ecx, dword [ebp + 8]
push ecx
call fcn.10019165
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret

Function at 0x10004870
Capabilities:
Check if file exists
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x1006ceb8
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0x1006ceb8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.1001ba60
add esp, 0xc
push 0x1c
push 0x1006be9c
push 0x1006be9c
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [0x1006bea0]
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..log
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10004960
push esi
lea ecx, [ebp - 0x108]
push 0x1005e3f0
push ecx
call fcn.100198db
mov esi, eax
mov eax, 0x1006ceb8
add esp, 8
lea edx, [eax + 1]
jmp 0x10004930
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004930
push esi
sub eax, edx
push eax
push 1
push 0x1006ceb8
call fcn.1001ab0f
push esi
push 2
push 1
push 0x1005e3f4
call fcn.1001ab0f
push esi
call fcn.1001995f
add esp, 0x24
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret
Function at 0x10004970
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10004a02
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10004a02
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.10019170
mov esp, ebp
pop ebp
ret
Function at 0x10004ab0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005146b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x14c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10004a20
push ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push 0x1005e2e3
mov ecx, edi
mov dword [ebp - 0x144], eax
mov byte [edi], bl
call fcn.10007150
push ebx
mov dword [ebp - 4], ebx
push 2
mov dword [ebp - 0x14c], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x13c], esi
cmp esi, ebx
je 0x10004c62
lea eax, [ebp - 0x138]
push eax
push esi
mov dword [ebp - 0x138], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10004c5b
push 0xc
call fcn.100199d3
mov esi, eax
add esp, 4
mov dword [ebp - 0x140], esi
mov eax, 1
mov dword [ebp - 4], eax
cmp esi, ebx
je 0x10004b97
lea ecx, [ebp - 0x114]
push ecx
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call fcn.100189b0
mov dword [esi], eax
jmp 0x10004b99
xor esi, esi
mov byte [ebp - 4], bl
mov dword [ebp - 0x140], esi
cmp esi, ebx
je 0x10004c10
mov edx, dword [ebp - 0x144]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x130], edx
je 0x10004c1a
lea eax, [esi + 8]
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x10004bf2
mov eax, dword [esi]
cmp eax, ebx
je 0x10004bd9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10004be9
push eax
call fcn.10019165
add esp, 4
push esi
call fcn.10019165
add esp, 4
mov edx, dword [ebp - 0x13c]
lea ecx, [ebp - 0x138]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10004b63
jmp 0x10004c55
push 0x8007000e
call fcn.10018c50
cmp dword [esi + 4], ebx
jne 0x10004c2a
mov eax, dword [esi]
push eax
call fcn.10018b30
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004c32
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.10007150
lea edi, [ebp - 0x140]
call fcn.100038a0
mov edi, dword [ebp - 0x148]
mov esi, dword [ebp - 0x13c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret
Function at 0x10004c80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x100682b0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10004a20
mov esi, eax
call fcn.10004970
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10004d1a
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.1001ba60
add esp, 0xc
push str.QueryFullProcessImageNameA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10004d31
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [esp + 0x1c], 0x104
call eax
test eax, eax
jne 0x10004d64
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
push esi
mov edi, eax
call ebx
test edi, edi
jne 0x10004d64
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call ebx
mov ecx, dword [esp + 0x11c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret
Function at 0x10004db0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100513f6
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x100682b0]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push edi
mov eax, dword [0x100682b0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov edi, 0xf
push 0x1005e2e3
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10007150
mov dword [esp + 0x170], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10004a20
cmp eax, ebx
jne 0x10004e56
lea eax, [esp + 0x18]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.10002330
cmp dword [esp + 0x2c], 0x10
jb 0x10004f2b
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x10004f23
mov ecx, eax
call fcn.10004a20
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x10004e6d
mov dword [esi + 0x14], edi
jmp 0x10004f06
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x10004eff
lea ecx, [esp + 0x34]
push ecx
push edi
mov dword [esp + 0x3c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10004ef8
jmp 0x10004ea0
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x3c], edx
je 0x10004ebc
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10004ea0
jmp 0x10004ef8
lea ecx, [esp + 0x58]
push ecx
lea ebx, [esp + 0x14]
call fcn.10003770
mov eax, ebx
mov byte [esp + 0x170], 1
call fcn.100038f0
push eax
lea ecx, [esp + 0x1c]
call fcn.10005aa0
mov edi, ebx
mov byte [esp + 0x170], 0
call fcn.100038a0
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0xf
lea edx, [esp + 0x18]
mov dword [esi + 0x10], ebx
push edx
mov ecx, esi
mov byte [esi], bl
call fcn.10002330
cmp dword [esp + 0x2c], 0x10
jb 0x10004f2b
mov eax, dword [esp + 0x18]
push eax
call fcn.10019165
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret
Function at 0x10004f50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x100682b0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10004a20
test eax, eax
je 0x10004ff9
mov ecx, eax
call fcn.10004a20
mov esi, eax
test esi, esi
je 0x10004ff9
call fcn.10004970
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10004ff9
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.1001ba60
add esp, 0xc
push str.QueryFullProcessImageNameA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10005010
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [esp + 0x1c], 0x104
call eax
test eax, eax
jne 0x10005043
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
push esi
mov edi, eax
call ebx
test edi, edi
jne 0x10005043
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004ff9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call ebx
mov ecx, dword [esp + 0x11c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10019170
mov esp, ebp
pop ebp
ret
Function at 0x10005700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100512a9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], ebx
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x1005e2e3
mov ecx, esi
mov dword [ebp - 0x3c], esi
mov byte [esi], bl
call fcn.10007150
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
mov dword [ebp - 4], ebx
push 0x1005e4b0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x100057c5
mov ecx, dword [ebp - 0x34]
xor eax, eax
push ecx
lea edx, [ebp - 0x30]
push str._08X
push edx
mov byte [ebp - 0x30], bl
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100057b0
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.10007150
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret