joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56b208
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405270
xor eax, eax
push ebp
push 0x56b291
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.004035b4
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0x3c
mov eax, dword [ebp - 4]
call fcn.00405280
mov dword [ebp - 0x30], eax
mov eax, 0x56b29c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0xc
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 5
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b298
lea eax, [ebp - 4]
call fcn.00404dc0
ret

Function at 0x56b2a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405270
xor eax, eax
push ebp
push 0x56b31f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040ab00
test al, al
jne 0x56b2e4
mov eax, dword [ebp - 4]
call fcn.0040ab10
test al, al
je 0x56b304
push 5
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x56b334
call fcn.004050cc
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b326
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404de4
ret

Function at 0x56b348
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56b3cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00409f88
cmp dword [ebp - 0x10], 0
je 0x56b3af
push 0x56b3e0
push dword [ebp - 4]
push 0x56b428
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405140
push 5
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
push 0x56b45c
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b3d4
lea eax, [ebp - 0x10]
call fcn.00404dc0
lea eax, [ebp - 8]
call fcn.00404dc0
ret
Function at 0x56b464
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56b50e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409f88
cmp dword [ebp - 0xc], 0
je 0x56b4f3
xor eax, eax
mov dword [ebp - 8], eax
mov eax, 0x56b524
call fcn.0056ae98
test al, al
je 0x56b4f3
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00409f88
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x56b538
call fcn.004050cc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x56b54c
mov edx, 0x56b55c
mov eax, 0x80000001
call fcn.00569f14
test al, al
je 0x56b4f3
push 9
push 0
push 0
push 0x56b598
push 0x56b5a4
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b515
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404de4
ret

Function at 0x56c074
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
add eax, 0x18
mov edx, 0x40
call fcn.004086f8
pop ecx
pop ebp
ret
Function at 0x56c230
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405270
xor eax, eax
push ebp
push 0x56c37e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0056c074
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405280
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x56c35d
xor eax, eax
push ebp
push 0x56c356
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56c33f
xor eax, eax
push ebp
push 0x56c338
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c321
xor eax, eax
push ebp
push 0x56c31a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0056c0c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c321
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c33f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c35d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0056c1a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c385
lea eax, [ebp - 4]
call fcn.00404dc0
ret

Function at 0x56c6bc
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56c72d
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c724
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x56c734
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56c7a5
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c79c
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x56c7ac
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56c82b
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c822
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ChangeServiceConfigA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x56c834
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56c8b3
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c8aa
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ChangeServiceConfigA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x56c8bc
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56c93b
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c932
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ChangeServiceConfigA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x56c944
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x56c9da
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x56c9c3
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c9c3
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c9e1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x56c9e8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56ca55
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56ca4c
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x56d48c
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov eax, dword [0x5a6edc]
cmp dword [eax], 1
jne 0x56d57f
push 0x56d64c
push 0x56d664
call sub.user32.dll_FindWindowA
test eax, eax
je 0x56d4c0
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x56d645
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.004035b4
mov dword [ebp - 0x5c], 0x44
mov eax, dword [0x5a6158]
call fcn.00402acc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x56d578
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x5a6158]
push eax
push 0
push 0x56d674
push 0
call sub.kernel32.dll_SearchPathA
test eax, eax
jne 0x56d51b
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 4], eax
jmp 0x56d562
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x56d54b
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 4], eax
jmp 0x56d562
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56d645
mov eax, dword [ebp - 8]
call fcn.00402afc
ret
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x56d5a0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 4], eax
jmp 0x56d645
push 0x14
push 0x56d680
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x14], 0
jne 0x56d5cc
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 4], eax
jmp 0x56d645
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x56d5f3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 4], eax
jmp 0x56d645
cmp dword [ebp - 0x84], 4
jne 0x56d60c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x56d645
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x56d637
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 4], eax
jmp 0x56d645
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x570b7c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x570b85
mov eax, dword [ebp - 4]
add esp, 0xfffff960
xor ecx, ecx
mov dword [ebp - 0x46a4], ecx
mov dword [ebp - 0x469c], ecx
mov dword [ebp - 0x46a0], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x570d4c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x570d27
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x570d10
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4674
lea eax, [ebp - 0x4698]
push eax
push 3
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jb 0x570d10
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [0x56816c]
mov eax, 0x28
call fcn.00406070
mov dword [ebp - 0x20], eax
mov edx, 0x28
mov eax, dword [ebp - 0x20]
call fcn.004086f8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov edx, dword [ebp + edx*4 - 0x4698]
call fcn.00404fb8
lea eax, [ebp - 0x469c]
push eax
lea eax, [ebp - 0x46a0]
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov edx, dword [ebp + edx*4 - 0x4698]
call fcn.00404fb8
mov eax, dword [ebp - 0x46a0]
xor ecx, ecx
mov edx, 0x570d60
call fcn.0056caa8
mov edx, dword [ebp - 0x469c]
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.00404e14
cmp dword [ebp - 8], 0x30
jne 0x570cb9
mov eax, dword [ebp - 0x20]
add eax, 0x20
mov edx, 0x570d74
call fcn.00404e14
cmp dword [ebp - 8], 0xb
jne 0x570ccf
mov eax, dword [ebp - 0x20]
add eax, 0x20
mov edx, 0x570d88
call fcn.00404e14
push ebp
lea eax, [ebp - 0x46a4]
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov edx, dword [ebp + edx*4 - 0x4698]
call fcn.00404fb8
mov eax, dword [ebp - 0x46a4]
lea edx, [ebp - 0x20]
call fcn.00570668
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
call fcn.0041bb48
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x570c2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x570d2e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x572eb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x573069
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x1000
call fcn.00409adc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 0xb
call sub.ntdll.dll_ZwQuerySystemInformation
mov eax, dword [ebp - 0xc]
call fcn.00409adc
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x573047
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x572f22
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xb
call sub.ntdll.dll_ZwQuerySystemInformation
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x573029
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov edx, dword [0x5684b4]
mov eax, 0x1c
call fcn.00406070
mov dword [ebp - 0x24], eax
mov edx, 0x1c
mov eax, dword [ebp - 0x24]
call fcn.004086f8
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
mov ecx, pe_nt_image_headers32
call fcn.00405030
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040ad2c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
call fcn.00404e14
xor eax, eax
push ebp
push 0x572fbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x572fc3
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57304e
mov eax, dword [ebp - 0x14]
call fcn.00402afc
mov eax, dword [ebp - 0x18]
call fcn.00402afc
ret
Function at 0x573124
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5731db
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405280
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x573166
call fcn.004047c0
jmp 0x5731e2
mov eax, ebx
call fcn.00402acc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00405280
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x57318f
call fcn.004047c0
jmp 0x5731e2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5731ec
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x5731b0
call fcn.004047c0
jmp 0x5731e2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5731e2
mov eax, dword [ebp - 8]
call fcn.00402afc
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x588094
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x5a658c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0x20
jge 0x5880f6
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x58814d
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5a618c]
mov edx, dword [ebp - 0x10]
shl edx, 8
xor eax, edx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [edx + ecx]
xor eax, edx
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x5880c8
jmp 0x58814d
mov eax, dword [ebp - 8]
test eax, eax
jns 0x588100
add eax, 0x1f
sar eax, 5
inc eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jge 0x58814d
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5a618c]
mov edx, dword [ebp - 0x10]
shl edx, 8
xor eax, edx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [edx + ecx]
xor eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x58811b
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5a618c]
mov edx, dword [ebp - 0x10]
shl edx, 8
xor eax, edx
mov edx, dword [ebp - 0xc]
shr edx, 0x18
xor eax, edx
mov dword [ebp - 0x10], eax
shl dword [ebp - 0xc], 8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0x588152
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x589080
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x18], edx
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x28], edx
mov esp, ebp
pop ebp
ret