joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0040eae0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040eb2b
push eax
push esi
push dword [ebp + 8]
call fcn.0040eae0
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040eb2b
push eax
push esi
push dword [ebp + 8]
call fcn.0040eae0
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040eb1b
and al, 0x20
cld
invalid
invalid
popfd
invalid
Function at 0x442610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8a6d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], 0x4c05a4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x442674
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x442696
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442694
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x442696
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4c05a4
test edi, edi
je 0x4426b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4426d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8ab5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x442813
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
mov ebx, pe_nt_image_headers32
push 0x200
call fcn.0047cc0a
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xff
jne 0x4427ae
add ebx, ebx
mov byte [ebp - 4], 1
push edi
call fcn.0047cc05
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047cc0a
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x442757
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4427b3
mov ecx, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004037d0
mov byte [ebp - 4], 1
push edi
call fcn.0047cc05
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4427ff
mov ecx, dword [esi]
push esi
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 0xc
push 0x80004005
call fcn.004027c0
int3
Function at 0x44be20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa2e5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
movzx eax, word [ebp + 0xc]
xor edi, edi
mov esi, dword [0x4e33f0]
push 0xa
push eax
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44be8e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44be8e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x44be8e
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x44bfae
mov esi, dword [sym.imp.USER32.dll_GetDC]
push 0
call esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
test eax, eax
jle 0x44bf1d
imul eax, eax, 0x64
cmp eax, 0x25e0
jl 0x44bf1d
cmp eax, 0x38a0
jge 0x44bed8
mov esi, 0x20
jmp 0x44bf22
push 0
call esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
push 0x5a
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x60
je 0x44bf1d
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4c89e0]
divsd xmm0, qword [0x4c89e8]
addsd xmm0, qword [0x4c89c8]
cvttsd2si esi, xmm0
jmp 0x44bf22
mov esi, 0x18
push 0
push esi
push esi
push 1
push edi
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
je 0x44bfae
push 0
push esi
push esi
push 0x30000
push 1
push dword [ebp - 0x10]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov edi, eax
test edi, edi
je 0x44bfae
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 1
mov esi, eax
push 0xf7
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.00409950
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44bfae
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 0xc
Function at 0x46ec60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4b151d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e2054]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x20c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x20]
mov edi, dword [eax + 4]
push edx
or edi, 0x2001f
mov dword [ebp - 0x20], 0
push edi
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x46ed9d
xor esi, esi
test eax, eax
je 0x46ed08
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
and edi, 0x300
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x46ed9d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], pe_nt_image_headers32
push ecx
lea ecx, [ebp]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x46ed78
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0046ec60
mov esi, eax
test esi, esi
jne 0x46ed9d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], pe_nt_image_headers32
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x46ed46
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46ed89
push eax
call ebx
mov dword [ebp - 0x18], 0
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
call fcn.0046edf0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46edb5
push eax
call ebx
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0047c73c
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x472db0
Capabilities:
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x4b21fd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e2054]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040de10
mov dword [ebp - 4], 0
mov ecx, ebx
push eax
call fcn.00408ec0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472e26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x472e35
xor al, al
jmp 0x472f4d
call fcn.00404580
mov ecx, eax
test ecx, ecx
je 0x472f70
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x10]
mov ecx, dword [esi]
push 0
call fcn.0040d050
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 4], 1
jle 0x472e7c
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404b90
mov esi, dword [ebp - 0x10]
xor eax, eax
mov byte [ebp + 0x68], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
cmp byte [esi], al
je 0x472eb7
inc eax
cmp byte [eax + esi], 0
jne 0x472eb0
push eax
push esi
lea ecx, [ebp]
call fcn.0040f2d0
lea ecx, [ebp]
call fcn.0040f3a0
lea ecx, [ebp]
call fcn.0040f3a0
cmp byte [ebp + 0x68], 0
je 0x472f1a
xor edi, edi
nop dword [eax]
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [ebp + edi*2 + 0x6c], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [ebp + edi*2 + 0x6d], al
inc edi
cmp edi, 0x10
jl 0x472ee0
mov byte [ebp + 0x8c], 0
or edi, 0xffffffff
lea eax, [ebp + 0x6c]
mov ecx, ebx
push eax
call fcn.0040cab0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x472f4b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0047c73c
lea esp, [ebp + 0x94]
pop ebp
ret
push 0x80004005
call fcn.004027c0
int3
Function at 0x4015e7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
push 0x3f
mov esi, edx
pop ebx
cmp edi, 3
jl 0x401666
push 3
pop ebx
xor edx, edx
div ebx
push 0x3f
pop ebx
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffffd
add edi, eax
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
and edx, ebx
mov byte [ecx + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 3], al
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x40160c
test edi, edi
jne 0x40166f
mov byte [ecx], 0
jmp 0x4016ba
movzx eax, byte [esi]
shl eax, 0x10
dec edi
mov word [ecx + 3], 0x3d
je 0x401699
movzx edx, byte [esi + 1]
shl edx, 8
or eax, edx
mov edx, eax
shr edx, 6
and edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 2], dl
jmp 0x40169d
mov byte [ecx + 2], 0x3d
mov edx, eax
shr edx, 0xc
and edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
shr eax, 0x12
and eax, ebx
mov byte [ecx + 1], dl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x401806
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
ja 0x401815
xor eax, eax
jmp 0x401836
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x429878]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x401815
ret 8
Function at 0x401923
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x104
cmp dword [ebp + 0x7c], 1
jg 0x40193b
xor al, al
jmp 0x401a7d
push ebx
push esi
xor ecx, ecx
push edi
mov byte [ebp + 0x6e], cl
xor eax, eax
mov edi, 0x100
mov byte [ebp + eax - 0x92], al
inc eax
cmp eax, edi
jl 0x40194a
mov word [ebp - 0x94], cx
xor esi, esi
movzx ecx, byte [ebp - 0x94]
movzx ecx, byte [ecx + str.AdjustKernelTableFromSSDTSpace2]
lea eax, [ebp + esi - 0x92]
movzx edx, byte [eax]
add ecx, edx
movzx edx, byte [ebp - 0x93]
add ecx, edx
and ecx, 0x800000ff
jns 0x401992
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 0x93], cl
mov dl, byte [eax]
movzx ecx, cl
lea ecx, [ebp + ecx - 0x92]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
movzx eax, byte [ebp - 0x94]
inc eax
and eax, 0x8000001f
jns 0x4019be
dec eax
or eax, 0xffffffe0
inc eax
inc esi
mov byte [ebp - 0x94], al
cmp esi, edi
jl 0x40195f
xor edi, edi
mov byte [ebp + 0x6e], 1
cmp dword [ebp + 0x7c], edi
jle 0x401a78
movzx esi, byte [ebp - 0x93]
movzx eax, al
inc eax
and eax, 0x800000ff
jns 0x4019f1
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x94], al
movzx eax, al
lea eax, [ebp + eax - 0x92]
movzx ecx, byte [eax]
add ecx, esi
and ecx, 0x800000ff
jns 0x401a16
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 0x93], cl
mov dl, byte [eax]
movzx ecx, cl
lea ecx, [ebp + ecx - 0x92]
mov bl, byte [ecx]
mov byte [eax], bl
mov byte [ecx], dl
movzx esi, byte [ebp - 0x93]
movzx eax, byte [ebp - 0x94]
movzx edx, byte [ebp + esi - 0x92]
movzx ebx, byte [ebp + eax - 0x92]
mov ecx, dword [ebp + 0x78]
add edx, ebx
and edx, 0x800000ff
jns 0x401a61
dec edx
or edx, 0xffffff00
inc edx
movzx edx, dl
mov dl, byte [ebp + edx - 0x92]
xor byte [ecx + edi], dl
inc edi
cmp edi, dword [ebp + 0x7c]
jl 0x4019e2
pop edi
pop esi
mov al, 1
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x401e56
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.004046cc
mov eax, dword [eax]
imul eax, eax, 3
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call fcn.004046cc
cmp esi, 0x6400000
ja 0x401eb5
test esi, esi
jne 0x401e7a
inc esi
add esi, 4
cmp dword [0x42ca0c], 0
jne 0x401e8f
call fcn.00405c10
test al, al
je 0x401ebb
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x401eb1
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, eax
jmp 0x401eb7
xor esi, esi
test esi, esi
jne 0x401ebf
xor eax, eax
pop esi
ret
inc dword [0x42c9f4]
mov eax, dword [0x42c9f4]
push 0x10
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push 0x428e44
push eax
mov dword [esi], 0xdeadface
call fcn.00412d60
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x40215a
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov byte [esp + 0xf], bl
push 0x14
pop ecx
lea eax, [esp + 0x14]
mov byte [eax], bl
inc eax
dec ecx
jne 0x402175
call fcn.004046cc
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [0x42c9f0]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x401f98
push 0x10000
push ebx
mov byte [esp + 0x3c], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, 0xffffffff
je 0x4021ff
call fcn.004046cc
mov ecx, dword [esi]
imul ecx, ecx, 0x18
push dword [eax + ecx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4021e2
cmp eax, 0x102
jne 0x4021f8
call fcn.004046cc
mov ecx, dword [esi]
inc ecx
imul ecx, ecx, 0x18
inc dword [eax + ecx]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x24], bl
jne 0x40224a
call fcn.004046cc
push eax
push 0x78
pop eax
call fcn.00403b4d
inc dword [esi]
call fcn.004046cc
mov ecx, eax
mov eax, dword [esi]
xor edx, edx
div dword [ecx + 0x304]
mov dword [esi], edx
mov edi, edx
call fcn.004046cc
mov edx, dword [ebp + 8]
mov ecx, edi
imul ecx, ecx, 0x18
cmp edx, dword [eax + ecx + 0x14]
ja 0x402278
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax]
jne 0x40216e
jmp 0x402278
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00403925
mov esi, eax
call fcn.004046cc
mov dword [eax + 0x580c], esi
call fcn.004046cc
mov dword [eax + 0x5950], ebx
call fcn.004061d9
mov byte [esp + 0xf], 1
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40242d
Capabilities:
Create thread

Disassembly:
mov eax, 0x41da33
call fcn.004198ec
push ecx
push ecx
push ebx
xor ebx, ebx
test byte [0x432f88], 1
push edi
jne 0x402459
or dword [0x432f88], 1
mov dword [ebp - 4], ebx
call fcn.004023e2
or dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x304], ebx
je 0x40250d
cmp dword [ebp + 8], ebx
je 0x40250d
cmp dword [ebp + 0xc], ebx
jle 0x40250d
push dword [ebp + 0x18]
call fcn.004064f1
cmp eax, 0x4b
jg 0x40250d
cmp dword [esi + 0x580c], ebx
jne 0x40249b
call fcn.00403925
mov dword [esi + 0x580c], eax
push dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040647f
test al, al
je 0x40250d
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x5808]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esi + 0x5808]
cmp eax, 0xffffffff
je 0x4024ec
cmp dword [ebp - 0x10], 0x103
je 0x402509
cmp eax, 0xffffffff
je 0x4024ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x402283
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x5808], eax
mov al, 1
jmp 0x40250f
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c

Function at 0x402aaf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
push 0x44
pop ecx
mov edx, ecx
lea eax, [ebp - 0x58]
xor ebx, ebx
mov byte [eax], bl
inc eax
dec edx
jne 0x402ac4
push 0x10
pop edx
lea eax, [ebp - 0x10]
mov byte [eax], bl
inc eax
dec edx
jne 0x402ad0
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x858]
push eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x2c], 0x81
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4218ac
lea eax, [ebp - 0x858]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x858]
push eax
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x858]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402b47
cmp edi, ebx
je 0x402b43
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov al, 1
jmp 0x402b49
xor al, al
pop esi
pop ebx
leave
ret 8
Function at 0x402b4f
Capabilities:
Modify service
Start service

Disassembly:
push ebx
push ebp
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
jne 0x402b6d
xor al, al
pop ebp
pop ebx
ret 4
push esi
push edi
push 0xf01ff
push dword [esp + 0x18]
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
jne 0x402b94
push ebp
call edi
pop edi
mov al, bl
pop esi
jmp 0x402b68
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x402bc4
mov bl, 1
push esi
call edi
jmp 0x402b8b