joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x100058aa
xor eax, eax
jmp 0x100059b2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x78
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xffff0000
jne 0x10005947
mov eax, dword [ebp + 0xc]
and eax, 0xffff
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx]
mov dword [ebp - 4], edx
jmp 0x100059af
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
test edx, edx
je 0x100059af
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10029630
add esp, 8
test eax, eax
jne 0x1000599b
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x100059af
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
jmp 0x10005950
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000f83f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x1000f863
cmp dword [edi + 0x54], 0
jne 0x1000f863
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1001b571
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1000f800
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10014f26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x10014f6d
call fcn.1001b571
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10014f6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10014f89
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10014aa0
mov esi, eax
test edi, edi
je 0x10014f87
test ebx, ebx
je 0x10014f87
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100156c1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1003d46a
call fcn.1002d23d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x100156e6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1001572c
lea ecx, [ebp - 0x10]
call fcn.10002b70
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000e237
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100010b0
mov eax, esi
call fcn.1002d315
ret 8
Function at 0x10018636
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x1001867e
call fcn.1001b571
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001867e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x100186c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x100186aa
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x100186aa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x100186be
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002924d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004f5f0]
jne 0x10029257
repz ret
jmp fcn.1002e6af

Function at 0x10037085
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10030c29
and dword [ebp - 4], 0
cmp dword [0x10076d78], 0
mov ebx, eax
jne 0x10037136
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100371e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10043a70
push edi
call esi
test eax, eax
je 0x100371e7
push eax
call fcn.10030bb7
mov dword [esp], 0x10043a60
push edi
mov dword [0x10076d78], eax
call esi
push eax
call fcn.10030bb7
mov dword [esp], 0x10043a4c
push edi
mov dword [0x10076d7c], eax
call esi
push eax
call fcn.10030bb7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10076d80], eax
call esi
push eax
call fcn.10030bb7
pop ecx
mov dword [0x10076d88], eax
test eax, eax
je 0x10037136
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10030bb7
pop ecx
mov dword [0x10076d84], eax
mov eax, dword [0x10076d84]
cmp eax, ebx
je 0x1003718e
cmp dword [0x10076d88], ebx
je 0x1003718e
push eax
call fcn.10030c32
push dword [0x10076d88]
mov esi, eax
call fcn.10030c32
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1003718e
test edi, edi
je 0x1003718e
call esi
test eax, eax
je 0x10037185
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10037185
test byte [ebp - 0xc], 1
jne 0x1003718e
or dword [ebp + 0x10], 0x200000
jmp 0x100371c7
mov eax, dword [0x10076d7c]
cmp eax, ebx
je 0x100371c7
push eax
call fcn.10030c32
pop ecx
test eax, eax
je 0x100371c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100371c7
mov eax, dword [0x10076d80]
cmp eax, ebx
je 0x100371c7
push eax
call fcn.10030c32
pop ecx
test eax, eax
je 0x100371c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10076d78]
call fcn.10030c32
pop ecx
test eax, eax
je 0x100371e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100371e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401720
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401740
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x401754
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401780
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401796
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4017a3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4020d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40214f
xor eax, eax
cmp ecx, ebx
je 0x402137
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402173
cmp ecx, ebx
je 0x40215a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0049473c
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x4021da
jmp 0x4021a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.004020d0
mov edi, eax
cmp edi, ebx
jne 0x402229
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x4021a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4021ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.004015b0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402210
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0049473c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402238
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049473c
mov esp, ebp
pop ebp
ret 4
Function at 0x403e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4b04d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ca1d0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x403ee2
call fcn.00401250
mov edi, eax
jmp 0x403fc4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x403efb
call fcn.00401250
jmp 0x403fbb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x403f16
call fcn.00401250
jmp 0x403fbb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x403f4c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403f3a
lea ecx, [ebp]
call fcn.00402070
lea ecx, [ebp - 0x20]
call fcn.00402010
mov eax, 0x8007000e
jmp 0x403fd6
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402b60
mov dword [ebp - 4], 1
jmp 0x403f78
mov eax, dword [ebp]
test eax, eax
jne 0x403f86
mov edi, 0x8007000e
jmp 0x403fbd
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x403f9f
call fcn.00401250
jmp 0x403fbb
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403cd0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x403fd4
lea ecx, [ebp]
call fcn.00402070
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0049473c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b05ca
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x9c]
mov dword [esp + 0x14], 4
call fcn.00412390
lea eax, [esi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x70]
sub eax, 0x10
mov byte [esp + 0x14], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 1
call fcn.00404be0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.00404be0
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], 0xffffffff
call fcn.00404d50
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x404ea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b062a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esp + 0xe]
xor edi, edi
push eax
lea edx, [esp + 0x13]
mov dword [esi + 4], edi
lea ecx, [esi + 0x10]
push edx
mov dword [esi + 8], edi
call fcn.00411950
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x15]
lea ecx, [esi + 0x30]
push edx
mov dword [esp + 0x28], edi
call fcn.0040a650
lea eax, [esp + 0x12]
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x50]
push edx
mov byte [esp + 0x28], 1
call fcn.0040a650
mov eax, dword [0x4d3dfc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dfc
mov byte [esp + 0x20], 2
call edx
add eax, 0x10
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], edi
lea ecx, [esi + 0x84]
xor eax, eax
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 0x32
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [esp + 0x20], 3
mov dword [ecx + 0x14], eax
call fcn.004011c0
cmp eax, edi
jge 0x404f69
push eax
call fcn.004010b0
lea ecx, [esi + 0x9c]
mov byte [esp + 0x20], 4
call fcn.004126e0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x405dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405de9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405e24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405e20
lea ebx, [ebx]
cmp esi, eax
jae 0x405e24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405e10
cmp esi, eax
jb 0x405e2a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406200
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406276
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x406245
cmp eax, 2
jne 0x406261
mov eax, dword [esp + 0x14]
test esi, esi
je 0x406270
test eax, eax
je 0x40626b
test al, 1
jne 0x406261
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x406270
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x406600
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 0x218]
push eax
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.00495964
xor eax, eax
add esp, 0x14
lea ecx, [esp + 8]
mov word [esp + 0x206], ax
mov dword [esp + 4], ecx
cmp dword [esi + 0x260], eax
jne 0x406668
mov edx, ecx
push edx
call fcn.00495984
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40669b
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.0049473c
add esp, 0x208
ret
Function at 0x4066f0
Capabilities:
Create service

Disassembly:
sub esp, 0xa10
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0xa0c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x406749
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40673e
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x40687c
push 0x104
lea ecx, [esp + 0x16]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4067e3
cmp eax, 0x104
je 0x4067e3
mov edx, 0x22
mov word [esp + 0x10], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [esp + eax*2 + 0x1e], cx
mov word [esp + eax*2 + 0x20], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4067fe
push 0x400
lea eax, [esp + 0x220]
push eax
push 0xd80a
call fcn.00405e40
add esp, 0xc
test eax, eax
jne 0x4067cd
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x220]
push 0x400
push ecx
call fcn.00405d90
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [esp + 0x224]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049473c
add esp, 0xa10
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x406876
push esi
call ebp
push 0x400
lea ecx, [esp + 0x220]
push ecx
push 0xd80b
call fcn.00405e40
add esp, 0xc
test eax, eax
jne 0x406866
push 0x4b30c0
lea edx, [esp + 0x220]
push 0x400
push edx
call fcn.00405d90
add esp, 0xc
push 0
push edi
lea eax, [esp + 0x224]
push eax
jmp 0x4067db
push eax
call ebp
push esi
call ebp
mov eax, 1
jmp 0x4067e5
Function at 0x406890
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.00494750
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4068eb
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4068e0
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x4068f5
mov eax, 1
jmp 0x406a86
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40694f
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.00405e40
add esp, 0xc
test eax, eax
jne 0x406942
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00494fc5
push eax
call fcn.004010d0
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x406a7c
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4069ad
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.00405e40
add esp, 0xc
test eax, eax
jne 0x406942
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00494fc5
push eax
call fcn.004010d0
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x406a7c
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x406a1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x406a1c
cmp eax, 0x425
jne 0x4069da
cmp dword [esp + 0x14], 3
je 0x406a1c
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.00405e40
add esp, 0xc
test eax, eax
jne 0x406a0c
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.00405d90
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x4068eb
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.00405e40
add esp, 0xc
test eax, eax
jne 0x406a71
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.00405d90
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x834]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049473c
add esp, 0x1020
ret