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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x120c2d38
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x12085fa9
inc eax
mov dword [esi + 0x10], eax
jmp 0x120860bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x12085fbd
mov eax, 0xffffffc7
jmp 0x120860be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x12085fce
cmp dword [esi + 8], eax
jne 0x12085fbd
cmp dword [esi + 8], eax
jne 0x12085fe7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x12085fe7
mov eax, 0xffffffc7
jmp 0x120860be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x12085ffb
push eax
mov ecx, ebx
call fcn.120857a0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.1205bfa0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1208602c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.1205bfc0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.12084f10
test eax, eax
mov dword [esp + 0x38], eax
je 0x1208605f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120c7a70
call fcn.1205c1a0
mov eax, dword [esp + 0x38]
jmp 0x120860be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.12085dd0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x120860a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.12085df0
mov esi, eax
test esi, esi
jne 0x120860d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.12085dd0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x12086075
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120c7a70
call fcn.1205c1a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120c7a70
call fcn.1205c1a0
mov eax, esi
jmp 0x120860be

Function at 0x12089190
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x120891f0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x120891f0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x120891f0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x120891f0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x12089230
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x1208f110
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120c3368
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.120bc908
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1208eab0
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.120bc836
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.120b9111
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.120b9111
push 1
push 0
push 0
mov ecx, esi
call fcn.120b90b9
push 1
push 0
push 1
mov ecx, esi
call fcn.120b90b9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.120bc97a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x1208f290
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120c3388
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.120bc908
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1208eab0
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.120bc836
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 0x1208f354
cmp dword [esp + 0x40], 1
jne 0x1208f352
cmp ecx, eax
jge 0x1208f354
mov eax, ecx
cmp eax, 0xc8
jge 0x1208f360
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.1208f110
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.120bc97a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x1208fad0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120c33f3
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.120b7548
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.120bcbb0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.120be0cc
test eax, eax
je 0x1208fbec
mov ecx, dword [esp + 0x3c]
call fcn.120bcbdd
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 0x1208fbb0
push edi
mov ecx, esi
call fcn.120ba22a
mov ecx, esi
call fcn.1208fd50
cmp dword [esp + 0x38], 1
jne 0x1208fbe5
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.120ba365
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 0x12092600
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x12092633
push esi
call fcn.12095710
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1209262c
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 0x120926b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x120926a2
mov eax, dword [esi + 8]
test eax, eax
je 0x12092657
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 0x1209269e
cmp eax, 2
je 0x120926a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1209264a
cmp eax, 3
je 0x1209267d
cmp eax, 1
jne 0x1209264a
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 0x1209264a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1209264a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.120926e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x120926c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.120926e0
add esp, 4
pop esi
ret
Function at 0x120a1360
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 0x182
je 0x120a139b
cmp eax, 0x1e6
je 0x120a139b
push eax
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov dword [ebp - 4], edx
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop ebx
shr eax, 0x17
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x120a13f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x120c38c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.120a18e0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x20], 0
call fcn.120a19a0
test eax, eax
jge 0x120a1457
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a1910
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.120a1920
mov edi, eax
push edi
call fcn.120b5cdb
mov esi, eax
add esp, 4
test esi, esi
jne 0x120a14a1
lea ecx, [esp + 0xc]
call fcn.120a1940
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a1910
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.120a19c0
cmp edi, eax
je 0x120a14e9
push esi
call fcn.120b5d04
add esp, 4
lea ecx, [esp + 0xc]
call fcn.120a1940
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a1910
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.120a1940
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ecx
push edx
push esi
push edi
push eax
mov ecx, ebx
call fcn.120a16e0
push esi
mov edi, eax
call fcn.120b5d04
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a1910
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x120a16e0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x120c3964
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x15c]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x168]
cmp eax, esi
jne 0x120a171d
push edi
push ebx
call fcn.120a1540
cmp eax, 5
ja case.default.0x120a1726
jmp dword [eax*4 + 0x120a18c8]
push str.Error:_CDXImage___Unsupported_Image_type.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x120a1726
lea ecx, [esp + 0xc]
call fcn.120a2fa0
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], esi
call fcn.120a3010
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a2fe0
jmp case.default.0x120a1726
lea ecx, [esp + 0xc]
call fcn.120a1a10
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 1
call fcn.120a1b10
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a1a50
jmp case.default.0x120a1726
lea ecx, [esp + 0xc]
call fcn.120a2a40
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x160]
push ecx
push edi
push ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 2
call fcn.120a2af0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a2a80
jmp case.default.0x120a1726
lea ecx, [esp + 0xc]
call fcn.120a26e0
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 3
call fcn.120a27d0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a2720
jmp case.default.0x120a1726
lea ecx, [esp + 0xf0]
call fcn.120a24a0
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], 4
call fcn.120a2530
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a24e0
mov ecx, dword [esp + 0x150]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x14

Function at 0x120a19c0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
and eax, ecx
ret 8
Function at 0x120a4d50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ChangeDisplaySettingsA
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
push esi
call ebp
push str.ClipCursor
push edi
mov dword [esi], 0x8c2
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 4
push esi
call ebp
push str.RegisterClassA
push edi
mov dword [esi], 0x4c2
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x40
push 0xa
push esi
call ebp
mov ecx, esi
mov eax, 0x90909090
add esi, 5
push str.SetCursorPos
mov dword [ecx], eax
push edi
lea edx, [esi + 6]
mov byte [ecx + 4], al
mov eax, 0x120a4cb0
sub eax, esi
mov dword [0x120f874c], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 5
push esi
call ebp
mov eax, 0x120a4d00
lea edx, [esi + 5]
sub eax, esi
mov dword [0x120f8750], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x120b8324
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x120b835c
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.120b63f5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.120b63cd
jmp 0x120b8368
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x120b9a15
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 0x120b9a57
call fcn.120bf3b6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x120b9a57
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x120b9a4e
xor eax, eax
jmp 0x120b9a5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.120b9a65
pop edi
pop esi
pop ebx
ret 4
Function at 0x417d5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x417d6d
pop dword [ebp - 0x38]
mov eax, 0xa11b7601
add eax, 0x5f26076c
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3ad83
push 0
mov eax, 0x3b9be0df
add eax, 0xc4a60135
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x5b47048e
sub ecx, 0x5b46c7ea
xor edi, edi
add edi, eax
mov ebx, 0xeadff385
add ebx, 0x15638c7b
add ebx, dword [ebp - 0x38]
mov edx, 0x38f87640
sub edx, 0x892a2b3c
sub dword [ebp - 0x28], edx
mov esi, dword [ebx]
xor dword [ebp - 0x2c], eax
xor esi, edx
add dword [ebp - 0xc], 0x9f54cc4e
mov dword [edi], esi
add dword [ebp - 0x30], ecx
add edi, 0xccb51ea1
sub edi, 0xccb51e9d
add ebx, 0xd9eede51
sub ebx, 0xd9eede4d
loop 0x417dce
add eax, 0x85c2ff03
add eax, 0x7a3de660
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x524fe03e
sub ecx, 0x520fe03e
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401120
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x40a008]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x401160
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00401445
add esp, 0x210
ret
push ebx
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x40b710
push 0x40b710
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
test ebx, ebx
jne 0x4011c4
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00401445
add esp, 0x210
ret
push esi
push edi
mov ecx, 0xe
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [esp + 0x11c]
mov eax, 0x40b710
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011e8
lea edi, [esp + 0x11c]
sub eax, edx
add edi, 0xffffffff
lea ecx, [ecx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401200
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x120]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401246
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push ebp
call esi
xor eax, eax
jmp 0x4012b5
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401250
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
mov edx, dword [esp + 0x10]
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
push 2
push 0
push str.EventMessageFile
push edx
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.TypesSupported
push ecx
mov dword [esp + 0x2c], 7
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push ebp
call esi
mov eax, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.00401445
add esp, 0x210
ret
Function at 0x401330
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40134e
pop edi
add esp, 0x1c
ret
push esi
push 0xf01ff
push 0x40b710
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401375
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x40136d
cmp dword [esp + 0xc], 4
jne 0x401393
pop esi
pop edi
add esp, 0x1c
ret
push ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 0x1c
ret

Function at 0x4013c0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4013db
pop edi
add esp, 0x1c
ret
push esi
push 0xf01ff
push 0x40b710
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401402
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x4013fa
cmp dword [esp + 0xc], eax
jne 0x40141f
pop esi
pop edi
add esp, 0x1c
ret
push ebx
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 0x1c
ret

Function at 0x401445
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a008]
jne 0x40144f
repz ret
jmp fcn.004019ab
Function at 0x4041f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00401b12
xor ebx, ebx
cmp dword [0x40b624], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4042c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404230
xor eax, eax
jmp 0x404389
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x404229
push eax
call fcn.00401aaf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b624], eax
call esi
push eax
call fcn.00401aaf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b628], eax
call esi
push eax
call fcn.00401aaf
mov dword [0x40b62c], eax
lea eax, [ebp - 8]
push eax
call fcn.004014fd
test eax, eax
pop ecx
pop ecx
je 0x404293
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040236c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4042c5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00401aaf
cmp eax, ebx
pop ecx
mov dword [0x40b634], eax
je 0x4042c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401aaf
pop ecx
mov dword [0x40b630], eax
mov eax, dword [0x40b630]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40433e
cmp dword [0x40b634], esi
je 0x40433e
push eax
call fcn.00401b1b
pop ecx
call eax
cmp eax, ebx
je 0x40430b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40b634]
call fcn.00401b1b
pop ecx
call eax
test eax, eax
je 0x40430b
test byte [ebp - 0x18], 1
jne 0x40433e
lea eax, [ebp - 0xc]
push eax
call fcn.00401534
test eax, eax
pop ecx
je 0x404326
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040236c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404335
or dword [ebp + 0x10], 0x200000
jmp 0x40436f
or dword [ebp + 0x10], 0x40000
jmp 0x40436f
mov eax, dword [0x40b628]
cmp eax, esi
je 0x40436f
push eax
call fcn.00401b1b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40436f
mov eax, dword [0x40b62c]
cmp eax, esi
je 0x40436f
push dword [ebp - 4]
push eax
call fcn.00401b1b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40b624]
call fcn.00401b1b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret