joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100051e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edi]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10005200
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005206
sub eax, edx
push ebx
sar eax, 1
mov ebx, eax
lea ecx, [ebx + ebx + 0x20]
push esi
push ecx
call dword [0x100201c0]
mov esi, eax
add esp, 4
test esi, esi
je 0x10005293
mov eax, dword [edi + 0xc]
add ebx, ebx
push ebx
push eax
push esi
call fcn.1001f10a
mov eax, dword [ebp + 8]
push eax
push 0x10020e00
push 0x10
add ebx, esi
push ebx
call dword [0x10020140]
mov ecx, dword [edi + 8]
mov edx, dword [ebp - 4]
add esp, 0x1c
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
mov ebx, eax
call dword [0x100201bc]
add esp, 4
test ebx, ebx
jne 0x10005282
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100052a5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100052d9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [ebp - 8], eax
cmp ebx, eax
ja 0x100052e6
mov dword [ebp - 8], ebx
mov edx, dword [edi + 0x10]
push eax
push 0
push edx
call fcn.1001f110
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp ebx, eax
ja 0x100052fe
mov eax, ebx
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ecx
call fcn.1001f10a
mov edx, dword [ebp - 8]
add esp, 0xc
push esi
mov dword [edi + 0x1c], edx
mov dword [edi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10005931
cmp dword [esi + 0x10], 0
je 0x10005931
push edi
mov edi, dword [ebp + 8]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x1000588a
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x10]
push ebx
add esi, edi
xor ebx, ebx
mov dword [ebp - 0xc], esi
cmp dword [esi], ebx
jne 0x100058a5
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
jns 0x100058d1
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x100058e3
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [eax + edi + 2]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000591e
lea ecx, [ebp - 8]
push ecx
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
lea edx, [ebp - 8]
push edx
push eax
push 4
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
inc ebx
cmp dword [ecx + ebx*4], 0
lea esi, [ecx + ebx*4]
mov ecx, dword [ebp - 4]
jne 0x100058a2
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
cmp ebx, dword [esi + 0x10]
jb 0x10005ad5
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
lea eax, [eax + eax + 0x20]
push edi
push eax
call dword [0x100201c0]
mov edi, eax
add esp, 4
test edi, edi
je 0x10005bc5
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
lea ecx, [eax + eax]
push ecx
push edx
push edi
call fcn.1001f10a
mov eax, dword [esi + 0xc]
push ebx
push 0x10020e00
lea ecx, [edi + eax*2]
push 0x10
push ecx
call dword [0x10020140]
mov edx, dword [esi + 4]
mov eax, dword [esi]
add esp, 0x1c
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
mov dword [ebp - 4], eax
call dword [0x100201bc]
mov edi, dword [ebp - 4]
add esp, 4
test edi, edi
je 0x10005bc5
mov ecx, dword [esi]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esi + 0x14]
cmp eax, dword [edx + ebx*4]
jne 0x10005bc5
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10005bc5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10005b82
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10005ba1
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov edx, dword [eax + edx*4]
cmp edx, dword [eax + ebx*4]
jae 0x10005ba1
push ecx
call dword [0x100201bc]
add esp, 4
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + ebx*4]
lea edi, [eax + ebx*4]
push ecx
call dword [0x100201c0]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
jne 0x10005bcd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov edx, dword [ebp - 8]
push ecx
push edx
push eax
call fcn.1001f10a
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edx, edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edx
cmp ebx, edx
jbe 0x10005c03
mov ecx, dword [esi + 0x14]
xor eax, eax
add eax, dword [ecx]
add ecx, 4
dec ebx
mov dword [esi + 0x1c], eax
jne 0x10005bf8
pop edi
mov dword [esi + 0x20], edx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x10025018]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x68]
or eax, dword [ebx + 0x6c]
push esi
push edi
mov dword [esp + 0x1c], ebx
je 0x1000c547
mov esi, dword [ebx + 0x78]
lea edi, [esp + 0x30]
mov dword [esp + 0x10], pe_nt_image_headers32
cmp esi, 0x100
jbe 0x1000c457
push esi
call dword [0x100201c0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000c453
lea edi, [esp + 0x30]
jmp 0x1000c457
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x74]
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x68]
mov ebx, dword [ebx + 0x70]
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
cmp esi, ecx
jb 0x1000c4f2
ja 0x1000c47f
cmp eax, edx
jbe 0x1000c4f2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 1
push edi
xor eax, eax
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ebx
call edx
mov ecx, eax
or ecx, edx
je 0x1000c533
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
push edi
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x24]
call edx
sub dword [esp + 0x20], eax
sbb esi, edx
add ebx, eax
adc dword [esp + 0x2c], edx
add dword [ebp + 8], eax
adc dword [ebp + 0xc], edx
xor eax, eax
cmp esi, eax
ja 0x1000c47f
jb 0x1000c4ee
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
ja 0x1000c47f
mov eax, dword [esp + 0x20]
test esi, esi
jne 0x1000c4fa
test eax, eax
je 0x1000c533
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 1
push edi
push esi
push eax
mov eax, dword [esp + 0x3c]
push eax
push ebx
call edx
mov ecx, dword [esp + 0x18]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push edx
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push ebx
push esi
call eax
add esi, eax
adc ebx, edx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], ebx
cmp dword [esp + 0x10], 0x100
jbe 0x1000c547
push edi
call dword [0x100201bc]
add esp, 4
mov ecx, dword [esp + 0x134]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001e770
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001e770
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10025018]
jne 0x1001e77a
repz ret
jmp fcn.1001ec2d
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x66e368cc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x51369f9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402d03
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x2c
push 1
mov ebx, 0x1bc
call fcn.00431f50
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402d4f
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x402d60
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402d7d
push 6
call fcn.00430d71
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402da2
mov eax, 0x4643a8
push eax
push 3
mov ebx, 0x19c
call fcn.00431db0
add esp, 0x28
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ecx, 0x80000101
jne 0x402dd6
and eax, 0xff
jmp 0x402e21
cmp ecx, 0x80000201
jne 0x402de1
cwde
jmp 0x402e21
cmp ecx, 0x80000301
je 0x402e21
cmp ecx, 0x80000401
je 0x402e21
mov dword [ebp - 0x1c], eax
cmp ecx, 0x80000501
je 0x402e11
cmp ecx, 0x80000601
je 0x402e16
push 2
call fcn.00430d71
add esp, 4
fld dword [ebp - 0x1c]
jmp 0x402e1c
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.00402ab9
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
je 0x402e3c
cmp dword [ebp - 8], 9
je 0x402e3c
xor eax, eax
jmp 0x402e41
mov eax, 1
jmp 0x402e46
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402e57
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4033ea
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0xf0000000
push 0x18
push 0x464300
push 0x464300
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403438
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403493
mov dword [ebp - 0xc], esp
push 0
push 0x18
push 0x464300
push 0x464300
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40347c
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403493
mov eax, 0x4643a8
jmp 0x403502
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0040351a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4034b8
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4034e3
push 6
call fcn.00430d71
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4034fd
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403502
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403513
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x404a07
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.00432620
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404a4c
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404a63
mov eax, 0x464300
push eax
push 1
mov ebx, 0x130
call fcn.00432120
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404a9f
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404acd
mov eax, dword [ebp - 4]
test eax, eax
je 0x404ac8
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404ad7
mov eax, 0x464300
jmp 0x404ad7
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404ae8
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x404e86
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x1c
call fcn.00430d7d
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push connect
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404eef
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404fb7
mov dword [ebp - 0x14], esp
push connect
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404f28
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404f95
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404f5a
push 6
call fcn.00430d71
add esp, 4
test eax, eax
je 0x404f73
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404f95
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404fb7
push 6
call fcn.00430d71
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x404fbf
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x405518
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x405533
call fcn.004055a3
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
cmp dword [ebp - 4], esp
je 0x40555f
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405589
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x40559d
mov esp, ebp
pop ebp
ret 8
Function at 0x405895
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4058e1
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405ab3
mov dword [ebp - 0x10], esp
push 0xf01ff
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40591a
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405a91
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00432660
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00432660
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00432660
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00432660
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00432660
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0xffffffff
push 0xffffffff
push 0xffffffff
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x405a16
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405a29
push ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405a39
push ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405a49
push ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x405a59
push ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405a69
push ebx
call fcn.00430d89
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405a91
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405ab3
push 6
call fcn.00430d71
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x405abb
mov esp, ebp
pop ebp
ret 8
Function at 0x405ac1
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405b0d
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405bc6
mov dword [ebp - 0x10], esp
push 0x10
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405b46
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405ba4
mov dword [ebp - 0x10], esp
push 0
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405b7f
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405ba4
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405bc6
push 6
call fcn.00430d71
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x405bce
mov esp, ebp
pop ebp
ret 4
Function at 0x405bd4
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x28], 0
mov eax, 0
sete al
test eax, eax
je 0x405c09
mov eax, 0x10
jmp 0x405c0c
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
test eax, eax
je 0x405c2d
mov eax, 3
jmp 0x405c30
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x2c], eax
mov dword [ebp - 0xc], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405c61
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405d8e
cmp dword [ebp + 0x1c], 0
je 0x405ca3
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push dword [ebp + 0x24]
push 2
mov ebx, 0xc8
call fcn.00431f80
add esp, 0x1c
mov dword [ebp + 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00432660
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x44]
push dword [ebx]
mov ebx, dword [ebp + 0x3c]
push dword [ebx]
mov ebx, dword [ebp + 0x34]
push dword [ebx]
push 0
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 1
push dword [ebp + 0x2c]
push dword [ebp + 0x24]
push 0xf01ff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405d1c
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405d2f
push ebx
call fcn.00430d89
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405d4a
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00405da5
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405d6c
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405d8e
push 6
call fcn.00430d71
add esp, 4
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x405d9f
mov esp, ebp
pop ebp
ret 0x44