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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492948
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 0x449209
inc eax
mov dword [esi + 0x10], eax
jmp 0x44931c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44921d
mov eax, 0xffffffc7
jmp 0x44931e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44922e
cmp dword [esi + 8], eax
jne 0x44921d
cmp dword [esi + 8], eax
jne 0x449247
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x449247
mov eax, 0xffffffc7
jmp 0x44931e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44925b
push eax
mov ecx, ebx
call fcn.00448a00
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.004160c0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44928c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004160e0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00448170
test eax, eax
mov dword [esp + 0x38], eax
je 0x4492bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5615f8
call fcn.004162c0
mov eax, dword [esp + 0x38]
jmp 0x44931e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00449030
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x449303
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00449050
mov esi, eax
test esi, esi
jne 0x449333
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00449030
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4492d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5615f8
call fcn.004162c0
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], 0x5615f8
call fcn.004162c0
mov eax, esi
jmp 0x44931e

Function at 0x44c450
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x44c4b0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x44c4b0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x44c4b0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x44c4b0
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 0x44c4f0
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 0x452610
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492f78
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.004873ec
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00451fb0
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.0048731a
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.0048390b
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.0048390b
push 1
push 0
push 0
mov ecx, esi
call fcn.004838b3
push 1
push 0
push 1
mov ecx, esi
call fcn.004838b3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048745e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x452790
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492f98
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.004873ec
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00451fb0
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.0048731a
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 0x452854
cmp dword [esp + 0x40], 1
jne 0x452852
cmp ecx, eax
jge 0x452854
mov eax, ecx
cmp eax, 0xc8
jge 0x452860
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00452610
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.0048745e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x452fd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x493003
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.00481cf7
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.00487694
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048a0a3
test eax, eax
je 0x4530ec
mov ecx, dword [esp + 0x3c]
call fcn.004876c1
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 0x4530b0
push edi
mov ecx, esi
call fcn.00484c53
mov ecx, esi
call fcn.00453250
cmp dword [esp + 0x38], 1
jne 0x4530e5
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.00484de6
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 0x455b10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x455b43
push esi
call fcn.00458c10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x455b3c
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 0x455bc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x455bb2
mov eax, dword [esi + 8]
test eax, eax
je 0x455b67
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 0x455bae
cmp eax, 2
je 0x455bb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x455b5a
cmp eax, 3
je 0x455b8d
cmp eax, 1
jne 0x455b5a
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 0x455b5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x455b5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00455bf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x455bd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00455bf0
add esp, 4
pop esi
ret

Function at 0x4636a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x463706
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x463706
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4636e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x463ed0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x463f08
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x464b90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x464bd9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x465050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493780
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.00464c00
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00464c80
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00464c80
lea ecx, [esi + 0xc]
call fcn.00480641
lea ecx, [esi + 0x10]
call fcn.00480641
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00466210
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00466210
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00466210
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004806b6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004806b6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4814d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0048b945
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x481503
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00481516
pop edi
pop esi
pop ebx
ret 8

Function at 0x482aed
Capabilities:
Get graphical window text

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

Function at 0x4843d9
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 0x48441b
call fcn.0048b945
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48441b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x484412
xor eax, eax
jmp 0x484423
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00484429
pop edi
pop esi
pop ebx
ret 4

Function at 0x48be75
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 0x48bea3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48bec1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048bddb
jmp 0x48bec1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48bec1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048bddb
test edi, edi
mov eax, edi
jne 0x48beab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402490
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea edi, [ebp - 0x114]
mov ecx, 0x45
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movzx eax, word [ebp + 0xc]
mov esi, esp
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [0x455044]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4024de
xor eax, eax
jmp 0x4025c5
mov esi, esp
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x455044]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402508
xor eax, eax
jmp 0x4025c5
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40252b
xor eax, eax
jmp 0x4025c5
mov esi, esp
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x455044]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 0x2c], eax
mov esi, esp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x40258c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 0x44], eax
xor eax, eax
jmp 0x4025c5
mov esi, esp
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00402fe0
mov esi, esp
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00402fe0
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4025ec]
call fcn.00403010
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x114
cmp ebp, esp
call fcn.00402fe0
mov esp, ebp
pop ebp
ret

Function at 0x402a20
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402a67
xor eax, eax
jmp 0x402a99
mov esi, esp
lea eax, [ebp - 0x38]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 0x14], eax
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00402fe0
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x402ac0]
call fcn.00403010
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.00402fe0
mov esp, ebp
pop ebp
ret
Function at 0x402af0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402b37
xor eax, eax
jmp 0x402b63
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 0x14], eax
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00402fe0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.00402fe0
mov esp, ebp
pop ebp
ret

Function at 0x402c30
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 1
push 3
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402c8f
xor eax, eax
jmp 0x402ca7
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00402fe0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.00402fe0
mov esp, ebp
pop ebp
ret

Function at 0x402cc0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
lea edi, [ebp - 0xdc]
mov ecx, 0x37
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp esi, esp
call fcn.00402fe0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402d07
xor eax, eax
jmp 0x402d6d
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp esi, esp
call fcn.00402fe0
test eax, eax
jne 0x402d44
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00402fe0
cmp eax, 0x420
je 0x402d44
mov dword [ebp - 0xdc], 0
jmp 0x402d4e
mov dword [ebp - 0xdc], 1
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x14], ecx
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00402fe0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
add esp, 0xdc
cmp ebp, esp
call fcn.00402fe0
mov esp, ebp
pop ebp
ret

Function at 0x4036e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4036ea
repz ret
jmp fcn.004074f0
Function at 0x402636
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
push edi
xor edi, edi
mov dword [ebp - 0x7c], edi
mov dword [esi + 4], 1
cmp dword [eax - 0xc], edi
jne 0x40267b
push 0x104
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x40268d
push eax
lea eax, [ebp - 0x70]
push 0x104
push eax
call fcn.004571f6
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [esi + 0x3c], eax
je 0x4027ef
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [esi + 0x3c]
mov dword [esi], eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4027dd
push ebx
mov ecx, esi
call fcn.004021a5
lea ebx, [esi + 0x44]
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x4026ec
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], edi
jne 0x40272c
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push str.VarFileInfoTranslation
push dword [esi]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40272c
mov eax, dword [ebp - 0x78]
movzx eax, word [eax]
push eax
mov edi, str._4.4X
push edi
push ebx
call fcn.004023ec
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 2]
push eax
lea eax, [esi + 0x48]
push edi
push eax
call fcn.004023ec
add esp, 0x18
lea eax, [esi + 0x4c]
push eax
push str.CompanyName
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x50]
push eax
push str.FileDescription
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x54]
push eax
push str.FileVersion
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x58]
push eax
push str.InternalName
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x5c]
push eax
push str.LegalCopyright
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x60]
push eax
push str.OriginalFilename
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x64]
push eax
push str.ProductName
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x68]
push eax
push str.ProductVersion
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x6c]
push eax
push str.Comments
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x70]
push eax
push str.SpecialBuild
mov ecx, esi
call fcn.004024ea
lea eax, [esi + 0x74]
push eax
push str.PrivateBuild
mov ecx, esi
call fcn.004024ea
pop ebx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.004550ad
add ebp, 0x98
leave
ret
Function at 0x403e53
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push edi
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push 0x301
mov dword [ebp - 0x2c8], ecx
mov edi, 0x160
push edi
lea ecx, [ebp - 0x164]
push ecx
push 0
push eax
mov dword [ebp - 0x2cc], eax
call esi
push 0x303
push edi
lea eax, [ebp - 0x2c4]
push eax
push 0
push dword [ebp - 0x2cc]
call esi
mov edi, dword [ebp + 0x14]
or esi, 0xffffffff
cmp edi, esi
jne 0x403ecf
push dword [ebp - 0x164]
push esi
push dword [ebx + 0x258]
call fcn.00403da1
mov edi, eax
cmp dword [ebp + 0x18], esi
je 0x403ed9
mov esi, dword [ebp + 0x18]
jmp 0x403eed
push dword [ebp - 0x2c4]
push esi
push dword [ebx + 0x258]
call fcn.00403da1
mov esi, eax
push 0
lea eax, [ebx + 0x254]
push eax
mov ecx, ebx
call fcn.00403e11
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x158]
push dword [ebp - 0x2c8]
mov ecx, ebx
push eax
call fcn.00403947
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004550ad
leave
ret 0x14