joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455e20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4effb4]
cmp byte [eax + 0xc], 0
je 0x455f8d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455f86
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f0ba0], 0
jne 0x455e74
push 0x455f94
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x455f9c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0ba0], eax
cmp dword [0x4ebdec], 0
jne 0x455f6f
push 0x455fac
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4ebdec], eax
cmp dword [0x4ebdec], 0
je 0x455f6f
push 0x455fb8
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0ba4], eax
push 0x455fc8
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0ba8], eax
push 0x455fdc
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bac], eax
push 0x455ff4
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bb0], eax
push 0x45600c
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bb4], eax
push 0x456020
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bb8], eax
push 0x456038
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bbc], eax
push 0x456050
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bc0], eax
push 0x45606c
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bc4], eax
push 0x456078
mov eax, dword [0x4ebdec]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f0bc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f8d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45a334
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404600
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45a383
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404870
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461bfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x461c4c]
test si, 4
je 0x461c10
or bl, 1
test si, 8
je 0x461c1a
or bl, 4
test si, 1
je 0x461c24
or bl, 8
test si, 2
je 0x461c2e
or bl, 0x10
test si, 0x10
je 0x461c38
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461c47
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x461c50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x461c88]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461c69
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461c78
or bl, 4
test esi, 0x20000000
je 0x461c83
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46834c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46835e
add esp, 0xfffffff0
call fcn.00403b08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fda0
mov eax, dword [0x4ef964]
mov dword [eax + 4], ebx
mov dword [eax], 0x4686f0
mov eax, dword [0x4ef978]
mov dword [eax + 4], ebx
mov dword [eax], 0x4686fc
mov eax, ebx
call fcn.00468708
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.004037a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.004037a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.004037a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.004037a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416a44]
call fcn.004037a0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x464b20
push eax
push 0
push 0
mov eax, dword [0x4efc10]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421864]
call fcn.0042309c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421864]
call fcn.0042309c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421864]
call fcn.0042309c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00468b58
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468a20
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468a20
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x468a20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46849b
call fcn.00403b60
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x468804
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4689af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x468990
mov dl, 1
mov eax, dword [0x4170a8]
call fcn.004037a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404600
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46897f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00456180
test al, al
je 0x468972
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4689c0
lea eax, [ebp - 0x254]
call fcn.00409fa4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x468972
xor eax, eax
push ebp
push 0x46896b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4689f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x468954
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404870
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x468954
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468972
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x468875
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b894
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4689b6
lea eax, [ebp - 0x260]
call fcn.00404600
ret

Function at 0x4692f8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4f0bec]
cmp byte [eax + 0xa5], 0
jne 0x469369
cmp dword [0x4f0c04], 0
jne 0x46932a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4692b4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f0c04], eax
cmp dword [0x4f0c00], 0
jne 0x469345
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f0c00], eax
cmp dword [0x4f0c08], 0
jne 0x469369
push esp
push 0
push 0
push 0x469258
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4f0c08], eax
pop edx
ret
Function at 0x4699fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f0bec]
cmp dword [eax + 0x30], 0
je 0x469aa6
cmp dword [ebx + 0x94], 0
jne 0x469aa0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46998c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x469aa0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x469a66
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x469aa0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004190fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x469a75
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46a604
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46a639
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004046f0
jmp 0x46a646
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404654
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46b810
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46b851
mov eax, esi
call fcn.00451704
test al, al
je 0x46b851
mov eax, dword [ebx + 0x84]
call fcn.00451400
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46b851
push 0
mov eax, dword [ebx + 0x84]
call fcn.00451400
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46c590
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415fc4]
call fcn.00404fbc
xor eax, eax
push ebp
push 0x46c6d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ec020], 0
jne 0x46c5e3
mov ecx, dword [0x4ef7c0]
mov dl, 1
mov eax, dword [0x407ca0]
call fcn.0040caf4
call fcn.00403f70
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004031b8
mov eax, ebx
call fcn.00404e68
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46c6e4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406130
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e78
test eax, eax
jle 0x46c67b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46c674
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404888
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404870
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408b84
test eax, eax
jne 0x46c674
mov ebx, 0x15
jmp 0x46c680
mov ebx, 0x10
jmp 0x46c680
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4ec020]
call fcn.0046c48c
mov eax, dword [ebp - 8]
call fcn.0046c48c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c6db
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404624
lea eax, [ebp - 0x10]
mov edx, dword [0x415fc4]
call fcn.0040508c
ret
Function at 0x478d48
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x4ec360
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x478e0c
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x478d80
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x478e23
dec edx
je 0x478e64
jmp 0x478ec1
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x478ec1
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47a1e4
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
push 0
mov eax, dword [0x4f0668]
push eax
mov eax, 0x479dc4
push eax
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f1568], eax
mov eax, ebx
pop ebx
ret

Function at 0x47b008
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407688
ret
Function at 0x47eadc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47eb0a
mov eax, ebx
call fcn.0047f590
cmp dword [ebx + 0x40], 0
je 0x47eb03
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47eb7b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47eb6d
cmp dword [ebx + 8], 0
je 0x47eb2c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47eb3e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47eb6d
cmp dword [ebx + 8], 0
je 0x47eb1f
cmp eax, 3
je 0x47eb51
dec eax
jne 0x47eb1f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47eb1f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47eb1f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47eb99
cmp dword [ebx + 0x14], 0xcc
je 0x47eb99
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047eba4
pop ebx
ret

Function at 0x48f1c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x48f297
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00402b14
mov ebx, eax
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402d34
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
mov edi, eax
shl edi, 2
add edi, 0xa
mov eax, edi
call fcn.00402b14
mov dword [ebp - 8], eax
mov edx, edi
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.004031b8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fdiv dword [0x48f2a8]
call fcn.00402fb0
dec eax
test eax, eax
jl 0x48f24e
inc eax
xor dword [ebx], 0x3476346d
add ebx, 4
dec eax
jne 0x48f242
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00478d48
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004047f8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00404654
mov eax, dword [ebp - 8]
call fcn.00402b44
mov eax, dword [ebp - 0xc]
call fcn.00402b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f29e
lea eax, [ebp - 0x10]
call fcn.00404600
ret
Function at 0x48f63c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404ab0
xor eax, eax
push ebp
push 0x48f772
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404600
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00404ac0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x48f74f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x24024
call fcn.00402b14
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x24024
push esi
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_EnumServicesStatusA
lea eax, [ebp - 0x1c]
call fcn.00404600
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x48f72f
inc edi
xor ebx, ebx
push dword [ebp - 0x1c]
push 0x48f78c
lea eax, [ebx + ebx*8]
mov eax, dword [esi + eax*4 + 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409104
push dword [ebp - 0x20]
push 0x48f798
lea edx, [ebp - 0x28]
lea eax, [ebx + ebx*8]
mov eax, dword [esi + eax*4]
call fcn.00409b24
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0048f434
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404980
inc ebx
dec edi
jne 0x48f6dc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
call fcn.00404654
mov edx, 0x24024
mov eax, esi
call fcn.00402b44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f779
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404624
lea eax, [ebp - 8]
call fcn.00404600
ret
Function at 0x48fe90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ab0
xor eax, eax
push ebp
push 0x490088
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00404600
push 0
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ac0
push eax
call sub.kernel32.dll_OpenFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48ff01
mov eax, dword [ebp - 8]
mov edx, 0x4900a0
call fcn.00404654
jmp 0x49005f
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00409104
cmp esi, 0x3e8
jae 0x48ff45
lea eax, [esi + 0xa]
call fcn.00402b14
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
jmp 0x48ff9b
push 0
push 0
mov dword [ebp - 0xc0], esi
xor eax, eax
mov dword [ebp - 0xbc], eax
fild qword [ebp - 0xc0]
fdiv dword [0x4900b0]
call fcn.00402fb0
add eax, 0x1f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
mov esi, 0x3e8
lea eax, [esi + 0xa]
call fcn.00402b14
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x10], 0xc8
jbe 0x48ffbb
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp byte [eax + edx - 0xc7], 0x5a
jne 0x48ffbb
sub dword [ebp - 0x10], 0xc8
xor ecx, ecx
mov dl, 1
mov eax, dword [0x479184]
call fcn.0041fda0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x40]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
call fcn.00404600
mov esi, 0x10
lea ebx, [ebp - 0xb8]
lea ecx, [ebp - 0xc4]
xor eax, eax
mov al, byte [ebx]
mov edx, 2
call fcn.0040912c
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 8]
call fcn.004048c8
mov eax, dword [ebp - 8]
inc ebx
dec esi
jne 0x490003
mov eax, dword [ebp - 8]
push dword [eax]
push 0x4900bc
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x18]
call fcn.004037d0
mov eax, dword [ebp - 0x14]
call fcn.00402b44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49008f
lea eax, [ebp - 0xc4]
call fcn.00404600
lea eax, [ebp - 0x1c]
call fcn.00404600
lea eax, [ebp - 4]
call fcn.00404600
ret