joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f59
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d9c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d9c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f43
inc ebx
jmp 0x402f2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f60
lea eax, [ebp - 8]
call fcn.00404abc
ret

Function at 0x402f68
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404abc
test esi, esi
jne 0x402f9f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404bac
jmp 0x402fc0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d9c
mov dword [esp], eax
test esi, esi
je 0x402fc0
cmp dword [ebx], 0
je 0x402fc0
dec esi
jmp 0x402fa7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x498020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ba8
xor eax, eax
push ebp
push 0x403ba1
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 0x403be4
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 0x403ba8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x498020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x498020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4048b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49d04c], 0
je 0x404915
cmp word [0x49d220], 0xd7b2
jne 0x4048dd
cmp dword [0x49d228], 0
jbe 0x4048dd
mov eax, 0x49d21c
call dword [0x49d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x498070
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 0x40493c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x498030], 0
jne 0x404931
push 0
push 0x498068
push 0x498070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b3c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a38
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406ce4
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 0x406d4a
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.00404d2c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040358c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d34
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d51
lea eax, [ebp - 0x10]
call fcn.00404abc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f7c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40965d
test al, 0x10
jne 0x409661
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cf30
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 0x40cf69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bac
jmp 0x40cf72
mov eax, ebx
mov edx, esi
call fcn.00404b10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cf7c
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 0x40cf9d
mov al, byte [esp]
jmp 0x40cf9f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d634
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d49c
mov eax, dword [0x49ca2c]
cmp byte [eax], 0
je 0x40d6b0
mov eax, dword [0x49c608]
call fcn.00403344
call fcn.00402cc8
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.0040991c
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 0x40d6f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d6e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49c55c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49d668]
call fcn.00406150
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 0x40dfc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e096
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b54
lea eax, [ebp - 8]
call fcn.00404fcc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f7c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e080
mov eax, ebx
call fcn.00402b3c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e079
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f7c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e063
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e0a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e063
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e080
mov eax, dword [ebp - 0x10]
call fcn.00402b6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e09d
lea eax, [ebp - 8]
call fcn.00404abc
ret

Function at 0x40e61c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e680
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d2c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004092a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e687
lea eax, [ebp - 0xc]
call fcn.00404abc
ret

Function at 0x40ef88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x49c658]
cmp dword [eax], 0
je 0x40efbe
push 0xa
push 0x40f014
mov eax, dword [0x49c658]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x49c658]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40f00a
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x49cad8]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40f00a
mov ebx, dword [esp + 4]
push 0xa
push 0x40f014
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40f00a
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40efd5
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x42387c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004236d4
dec esi
jne 0x42389e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4249e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49d890
cmp dword [edi], 0
jne 0x424a5c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49d88c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4985d0
mov ecx, 2
call fcn.00402d5c
mov edx, 0x4249b8
lea eax, [esi + 5]
call fcn.004249d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004249d8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x424a31
mov dword [0x49d88c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x425468
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
test dl, dl
je 0x425476
add esp, 0xfffffff0
call fcn.00403fe4
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00403c94
push 0
push 0x4985fc
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
call sub.kernel32.dll_CreatePipe
push 0
push 1
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_SetHandleInformation
mov eax, esi
test bl, bl
je 0x4254b9
call fcn.0040403c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4255a4
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x42573b
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4255d1
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4255db
mov eax, esi
call fcn.00404f7c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov edx, edi
call fcn.00404b54
lea eax, [ebp - 0x1c]
call fcn.00404fcc
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x42571e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4253a4]
call fcn.00425468
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x4253a4]
call fcn.00425468
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x60]
mov edx, 0x44
call fcn.00407aa4
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8000020
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404f7c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CreateProcessA
mov eax, dword [ebp - 8]
call fcn.004254fc
mov eax, dword [ebp - 0xc]
call fcn.004254fc
push ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dl, 1
mov eax, dword [0x425404]
call fcn.00425510
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov dl, 1
mov eax, dword [0x425404]
call fcn.00425510
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
call fcn.004238ac
mov eax, dword [ebp - 0x14]
call fcn.004238ac
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425725
mov eax, dword [ebp - 0x14]
call fcn.00403cc4
mov eax, dword [ebp - 0x10]
call fcn.00403cc4
mov eax, dword [ebp - 0xc]
call fcn.00403cc4
mov eax, dword [ebp - 8]
call fcn.00403cc4
ret
Function at 0x425824
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404f6c
xor eax, eax
push ebp
push 0x425a52
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00424f38
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x13c], 0x128
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0xc]
call fcn.00424f58
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x425a13
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404d2c
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0040980c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408de8
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 4]
call fcn.0040980c
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00408de8
mov edx, dword [ebp - 0x14c]
pop eax
call fcn.00404ec8
jne 0x425a03
mov esi, dword [ebp - 0x134]
push esi
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4259fd
xor eax, eax
push ebp
push 0x4259f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 0x104
call fcn.00405108
push 0x104
mov eax, dword [ebp - 0x10]
call fcn.00404f7c
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0042533c
test eax, eax
jbe 0x4259d7
mov eax, dword [ebp - 0x10]
call fcn.00404f7c
call fcn.0040991c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405108
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 0x10]
call fcn.00408de8
mov eax, dword [ebp - 0x154]
push eax
lea edx, [ebp - 0x158]
mov eax, dword [ebp - 4]
call fcn.00408de8
mov edx, dword [ebp - 0x158]
pop eax
call fcn.00404ec8
jne 0x4259df
push 0
mov eax, dword [ebp - 0x134]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
jmp 0x4259df
lea eax, [ebp - 0x10]
call fcn.00404abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4259fd
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp dword [ebp - 8], 1
je 0x425a1b
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0xc]
call fcn.00424f78
mov ebx, eax
test ebx, ebx
jne 0x4258aa
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425a59
lea eax, [ebp - 0x158]
mov edx, 7
call fcn.00404ae0
lea eax, [ebp - 0x10]
call fcn.00404abc
lea eax, [ebp - 4]
call fcn.00404abc
ret
Function at 0x425a64
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
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 - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404f6c
mov eax, dword [ebp - 0xc]
call fcn.00404f6c
xor eax, eax
push ebp
push 0x425ba1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404abc
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.00404f7c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x425b79
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, 0x24024
call fcn.00402b3c
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x24024
push edi
mov eax, dword [ebp + 0xc]
push eax
push 0x130
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov esi, dword [ebp - 0x18]
dec esi
test esi, esi
jl 0x425b64
inc esi
xor ebx, ebx
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00408de8
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + ebx*8]
mov eax, dword [edi + eax*4]
lea edx, [ebp - 0x2c]
call fcn.00409b24
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00425bb4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00408de8
mov edx, dword [ebp - 0x24]
pop eax
call fcn.00404ec8
jne 0x425b60
lea eax, [ebx + ebx*8]
mov eax, dword [edi + eax*4]
mov edx, dword [ebp + 8]
call fcn.00409b24
jmp 0x425b64
inc ebx
dec esi
jne 0x425b0c
mov edx, 0x24024
mov eax, edi
call fcn.00402b6c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425ba8
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404ae0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404ae0
ret
Function at 0x425bb4
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x425bbd
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404f6c
mov eax, dword [ebp - 8]
call fcn.00404f6c
xor eax, eax
push ebp
push 0x425db7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404abc
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404f7c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x425d8f
push 1
mov eax, dword [ebp - 8]
call fcn.00404f7c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x425d8f
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x14]
call fcn.00408dc8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x425d7f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
jne 0x425c7e
call fcn.004044f8
jmp 0x425d8f
mov eax, esi
mov edx, dword [ebp - 0x10]
mov ebx, dword [edx + 0xc]
mov edx, ebx
call fcn.00404cb4
cmp byte [ebx + 1], 0x22
jne 0x425d10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00404cb4
mov eax, dword [ebp - 0x20]
call fcn.00404d7c
push eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00404cb4
mov eax, dword [ebp - 0x24]
mov edx, 2
pop ecx
call fcn.00404fdc
push esi
mov edx, dword [ebp - 0x1c]
mov eax, 0x425dd0
call fcn.004050c0
dec eax
push eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00404cb4
mov eax, dword [ebp - 0x28]
mov edx, 2
pop ecx
call fcn.00404fdc
push 0x425dd0
push dword [esi]
push 0x425dd0
mov eax, esi
mov edx, 3
call fcn.00404e3c
jmp 0x425d64
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00404cb4
mov eax, dword [ebp - 0x2c]
call fcn.00409634
test al, al
jne 0x425d64
push esi
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00404cb4
mov edx, dword [ebp - 0x30]
mov eax, 0x425ddc
call fcn.004050c0
dec eax
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0xc]
call fcn.00404cb4
mov eax, dword [ebp - 0x34]
mov edx, 1
pop ecx
call fcn.00404fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425d86
mov edx, 0x24
mov eax, dword [ebp - 0x10]
call fcn.00402b6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425dbe
lea eax, [ebp - 0x34]
mov edx, 7
call fcn.00404ae0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ae0
ret

Function at 0x441618
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44161e
ret
Function at 0x443a90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x443ae1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x443ac8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x443ab8
jmp 0x443ae1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x443ac9
pop ebx
mov esp, ebp
pop ebp
ret