joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4519a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00451550
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004515d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004515d0
lea ecx, [esi + 0xc]
call fcn.00465fe1
lea ecx, [esi + 0x10]
call fcn.00465fe1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00453e10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00453e10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00453e10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00466056
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00466056
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x452648
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474ea8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x452658
call fcn.00452b70
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45273b
cmp byte [edi], 0
je 0x45273b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45267d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00451370
test eax, eax
jne 0x45269d
push 0x52f598
lea ecx, [esi + 0x38]
call fcn.00466193
jmp 0x45273b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004513c0
test eax, eax
jne 0x4526cc
mov ecx, esi
call fcn.004514c0
push edi
add esi, 0x38
push 0x52f574
push esi
call fcn.00463e5a
add esp, 0xc
jmp 0x45273b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00453400
test eax, eax
je 0x452734
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00452810
test eax, eax
jne 0x452750
push edi
lea eax, [esi + 0x38]
push 0x52f550
push eax
call fcn.00463e5a
add esp, 0xc
mov ecx, esi
call fcn.00452b70
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4527f8
mov ecx, dword [0x52f808]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00463e5a
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00451470
test eax, eax
jne 0x4527ba
push 0x52f534
lea ecx, [esi + 0x38]
call fcn.00466193
jmp 0x4527ca
push 0xfa
mov ecx, esi
call fcn.00453400
test eax, eax
jne 0x4527e7
mov ecx, esi
call fcn.00452b70
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00466056
jmp 0x45273b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00466056
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4683fd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x468435
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004664b1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00466489
jmp 0x468441
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469aef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x469b31
call fcn.0046f6a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469b31
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469b28
xor eax, eax
jmp 0x469b39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469b3f
pop edi
pop esi
pop ebx
ret 4

Function at 0x46fbd7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46fc05
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fc23
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046fb3d
jmp 0x46fc23
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46fc23
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046fb3d
test edi, edi
mov eax, edi
jne 0x46fc0d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0x400
push 0
push edi
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 1
call fcn.0041d590
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x20]
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017ac
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x447d3c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4017ac
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4017c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x20]
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
test esi, esi
je 0x401802
push edi
push ecx
mov ecx, esp
push esi
call fcn.00401e40
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00401570
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401852
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401852
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 0x1c
push dword [ebp + 0x1c]
push dword [ebp - 0x10]
push 1
push 0
push 0x447d3c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xc]
mov esi, eax
test ecx, ecx
je 0x40187a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x401890
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439173
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x4510e0]
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
mov dword [ebp - 0x820], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x818], edi
xor eax, eax
mov dword [ebp - 4], 0
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x814], 0
xor ebx, ebx
call fcn.0041d590
mov esi, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push esi
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a5e
push 0x400
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0041d590
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push ebx
push dword [ebp - 0x814]
call edi
cmp eax, 0x103
je 0x401a05
push esi
push ecx
mov esi, esp
mov dword [ebp - 0x81c], esi
call fcn.00409d5c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x401a54
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x401a2e
movzx edi, ax
push edi
call fcn.0040a185
test eax, eax
je 0x4019ac
push edi
push eax
mov ecx, esi
call fcn.00401cf0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [ebp - 0x820]
mov byte [ebp - 4], 0
push dword [ebp - 0x814]
call fcn.00401890
test eax, eax
jne 0x4019cc
inc ebx
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041d590
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push ebx
push dword [ebp - 0x814]
call edi
mov esi, dword [ebp + 0x10]
cmp eax, 0x103
jne 0x401957
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x401a16
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401a5e
lea esi, [eax + 1]
jmp 0x401a60
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a31
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
mov ecx, esi
call fcn.00402100
jmp 0x4019b2
push 0x80004005
call fcn.004022b0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401a84
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0041bcb9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401bd5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401c10
lea ebx, [ebx]
cmp esi, edx
jae 0x401c14
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401c00
cmp esi, edx
jb 0x401c19
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4024b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x278], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402502
lea eax, [ebp - 0x274]
push eax
push esi
mov dword [ebp - 0x274], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x402516
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0041d590
push str.winlogon.EXE
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0041c0d9
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
add esp, 0x18
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0041bd50
add esp, 8
test eax, eax
jne 0x402579
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x402579
cmp dword [ebp - 0x48], edi
je 0x402589
lea eax, [ebp - 0x274]
push eax
push esi
call ebx
test eax, eax
jne 0x402546
jmp 0x402595
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x278], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x278]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 8
Function at 0x4025c0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
push 0x11c
lea eax, [ebp - 0x144]
push 0
push eax
movq qword [ebp - 0x28], xmm0
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
call fcn.0041d590
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x144], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40263d
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x144], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4026b6
push 0x4473ac
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402660
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x40266a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x134]
cmp eax, 1
jbe 0x4026b6
cmp eax, 2
jne 0x4026b6
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x13c]
cmp ecx, 6
jne 0x40269f
test eax, eax
jne 0x4026a1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret
jb 0x4026a6
cmp eax, 1
jae 0x40268f
cmp ecx, 5
jne 0x4026b6
sub eax, 0
je 0x4026b6
dec eax
je 0x40268f
dec eax
je 0x40268f
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret
Function at 0x403270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439778
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4510e0]
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
mov edi, edx
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
mov dword [ebp - 4], 2
call fcn.0041d590
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x50], 0
call fcn.00406f10
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
add esp, 0x18
cmp dword [eax - 0xc], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403336
test edi, edi
je 0x40332f
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x403338
xor edi, edi
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x403357
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403377
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403397
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 0x10]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4033b8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
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.0041bcb9
mov esp, ebp
pop ebp
ret
Function at 0x404700
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4047d5
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4047c8
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40479c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40478c
cmp dword [ebp - 0x1c], 1
jne 0x40478c
cmp dword [ebp + 0xc], 0
je 0x40477e
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x4047d5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor esi, esi
jmp 0x4047da
xor edi, edi
mov edi, edi
push 0x12c
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4047c1
cmp dword [ebp - 0x38], 1
je 0x404771
cmp edi, 0xa
jl 0x4047a0
jmp 0x404771
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4047f7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 8
Function at 0x404810
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
jne 0x404850
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 0xc
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x234], edi
call fcn.0041d590
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40494b
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
jle 0x404929
jmp 0x4048a0
push dword [ebx + esi*4]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041bd50
add esp, 8
test eax, eax
je 0x4048bd
inc esi
cmp esi, edi
jl 0x4048a0
jmp 0x404929
cmp dword [ebp + 0x10], 0
jne 0x404967
push dword [ebp - 0x228]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4048f5
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404929
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x228], eax
je 0x404922
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x234], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404891
mov edi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407d80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4510e0]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x28], 9
sete al
xor ecx, ebp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret

Function at 0x4083f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439880
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4510e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00409d5c
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x408439
push 0x80004005
call fcn.004022b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
cmp edi, 0x7b
je 0x4084a6
push edi
push str.TENXWGuard
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_s64__03d.dll
push eax
call fcn.004073f0
mov esi, dword [ebp - 0x10]
add esp, 0x14
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push edi
push str.TENXWGuard
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_s32__03d.dll
push eax
call fcn.004073f0
mov esi, dword [ebp - 0x10]
add esp, 0x14
push esi
call ebx
inc edi
cmp edi, 0x3e8
jl 0x408455
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4084cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4084f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret