joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4010f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x4011cd
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
cmp dword [ebp + 8], 0
je 0x4011c4
push 0x42e508
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
push 0x42e514
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
push 0x42e520
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
push 0x42e52c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x4011bb
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0
je 0x4011bb
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 0
je 0x4011bb
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
je 0x4011bb
mov dword [ebp - 4], 1
jmp 0x4011c2
mov dword [ebp - 4], 0
jmp 0x4011cb
mov dword [ebp - 4], 0
jmp 0x4011d4
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0
jne 0x4012aa
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0
je 0x4012a1
push str.DebugOpen
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], eax
push str.DebugClose
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], eax
push str.TraceWrite
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], eax
push str.DumpWrite
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0
je 0x401298
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], 0
je 0x401298
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x24], 0
je 0x401298
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x401298
mov dword [ebp - 0xc], 1
jmp 0x40129f
mov dword [ebp - 0xc], 0
jmp 0x4012a8
mov dword [ebp - 0xc], 0
jmp 0x4012b1
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
jne 0x4012bd
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x402720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40278c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402870
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4029cd
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x4029c4
push str.OpenA
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
push str.CloseA
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
push str.TraceWriteA
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
push str.DumpWriteA
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
push str.OpenW
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
push str.CloseW
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
push str.TraceWriteW
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
push str.DumpWriteW
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x4029bb
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x4029bb
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x4029bb
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
je 0x4029bb
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x4029bb
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1c], 0
je 0x4029bb
mov edx, dword [ebp - 8]
cmp dword [edx + 0x20], 0
je 0x4029bb
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
je 0x4029bb
mov dword [ebp - 4], 1
jmp 0x4029c2
mov dword [ebp - 4], 0
jmp 0x4029cb
mov dword [ebp - 4], 0
jmp 0x4029d4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x402c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x438df0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 4], 0
je 0x402d77
mov ecx, dword [ebp - 0x11c]
mov ecx, dword [ecx + 4]
call fcn.00402850
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402d77
mov dword [ebp - 0x114], 0
push 0x104
lea edx, [ebp - 0x110]
push edx
call fcn.00404990
add esp, 8
push 0x104
lea eax, [ebp - 0x110]
push eax
push str.BrLogAPI
push str.SoftwareBrotherBrUtilities
push 0x80000002
call fcn.00402720
mov dword [ebp - 0x114], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstA]
cmp dword [ebp - 0x114], 0
je 0x402d03
mov dword [ebp - 4], 0
jmp 0x402d2f
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x402d28
mov dword [ebp - 4], 0
jmp 0x402d2f
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x402d5f
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.00404990
add esp, 8
push str.BrLogAPI.dll
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.004049d0
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
call fcn.00402870
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004183cd
mov esp, ebp
pop ebp
ret
Function at 0x406b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce66
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x438df0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00405a80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00409a60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0xffffffff
mov edx, dword [ebp - 0x10]
mov byte [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
push 0xffffffffffffffff
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00409ad0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x406d90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.004070f0
push str.wlanapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x406de6
cmp dword [0x43a1a0], 0
je 0x406ddf
push 0x42eb74
push str._s_Cant_Open_WlanAPI.dll_n
push 0x20000
mov eax, dword [0x43a1a0]
push eax
call fcn.00403f10
add esp, 0x10
xor al, al
jmp 0x406eea
push str.WlanCloseHandle
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
push str.WlanOpenHandle
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
push str.WlanFreeMemory
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
push str.WlanGetProfile
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
push str.WlanGetProfileList
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], eax
push str.WlanQueryInterface
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
push str.WlanEnumInterfaces
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x24], 0
je 0x406ecd
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x406ecd
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c], 0
je 0x406ecd
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0
je 0x406ecd
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x406ecd
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x28], 0
je 0x406ecd
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
jne 0x406ee8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
xor al, al
jmp 0x406eea
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x406f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x438df0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x164], ecx
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00418d60
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x160]
push ecx
call fcn.00418d60
add esp, 0xc
mov dword [ebp - 0x160], 0x44
push 0x10
push 0
lea edx, [ebp - 0x118]
push edx
call fcn.00418d60
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x406f93
xor al, al
jmp 0x4070b8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
je 0x406fbc
cmp dword [ebp - 0x168], 1
je 0x406fef
cmp dword [ebp - 0x168], 2
je 0x407022
jmp 0x407055
mov ecx, dword [ebp + 0xc]
push ecx
push 0x100
lea edx, [ebp - 0x108]
push edx
call fcn.004198fb
add esp, 0xc
push str.__install
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.00419887
add esp, 0xc
jmp 0x407059
push str.net_start
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call fcn.004198fb
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.00419887
add esp, 0xc
jmp 0x407059
mov ecx, dword [ebp + 0xc]
push ecx
push 0x100
lea edx, [ebp - 0x108]
push edx
call fcn.004198fb
add esp, 0xc
push str.__remove
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.00419887
add esp, 0xc
jmp 0x407059
xor al, al
jmp 0x4070b8
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x160]
push edx
push 0
push 0
push 0x8000020
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40708d
xor al, al
jmp 0x4070b8
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183cd
mov esp, ebp
pop ebp
ret 8
Function at 0x407910
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x438df0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], ecx
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00418d60
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0x42ee44
push 0xffffffffffffffff
lea ecx, [ebp - 0x114]
push ecx
push 0x100
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x4079d2
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [0x43a1a0], 0
je 0x4079d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ee58
push str._s_client:_CallNamedPipe_failed__Error___d_n
push 0x10000
mov edx, dword [0x43a1a0]
push edx
call fcn.00403f10
add esp, 0x14
jmp 0x407a1e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x114]
mov dword [eax], ecx
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00419120
add esp, 0xc
cmp dword [0x43a1a0], 0
je 0x407a1e
push 0x42ee90
push str._s_Decode_Success_n
push 0x80000
mov edx, dword [0x43a1a0]
push edx
call fcn.00403f10
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183cd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ad10
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x438df0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x43a37c], 0
jne 0x40adb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43a378], eax
push 0x42f600
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 4], eax
mov eax, dword [0x43a378]
push eax
push 0x42f620
push str._s_error:__d
push 0x82
lea ecx, [ebp - 0x90]
push ecx
call fcn.00419d98
add esp, 0x14
lea edx, [ebp - 0x90]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 4], 0
je 0x40adb3
push 0
lea ecx, [ebp - 0x98]
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004183cd
mov esp, ebp
pop ebp
ret

Function at 0x40add0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x438df0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ae25
push 0x100
push 0x43a258
call fcn.0040b280
add esp, 8
push eax
push 0x42f650
push str.Unable_to_install__s____s_n
call fcn.0041a0d4
add esp, 0xc
jmp 0x40af1b
lea ecx, [ebp - 0x208]
push ecx
push str._s__s
push 0xffffffffffffffff
push 0x200
lea edx, [ebp - 0x410]
push edx
call fcn.00419db6
add esp, 0x14
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x40aefb
push 0
push 0
push 0x42f5ea
push 0
push 0
lea eax, [ebp - 0x410]
push eax
push 1
push 3
push 0x10
push 0xf01ff
push 0x42f694
push 0x42f6b4
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40aecc
push 0x42f6d4
push str._s_installed._n
call fcn.0041a0d4
add esp, 8
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40aeec
push 0x100
push 0x43a258
call fcn.0040b280
add esp, 8
push eax
push str.CreateService_failed____s_n
call fcn.0041a0d4
add esp, 8
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40af1b
push 0x100
push 0x43a258
call fcn.0040b280
add esp, 8
push eax
push 0x42f720
call fcn.0041a0d4
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183cd
mov esp, ebp
pop ebp
ret
Function at 0x40b070
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b1c9
push 0x10024
push 0x42f834
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b19d
push 0x43a35c
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40b14f
push 0x42f854
push str.Stopping__s.
call fcn.0041a0d4
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x43a35c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40b120
cmp dword [0x43a360], 3
jne 0x40b11c
push 0x42f884
call fcn.0041a0d4
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b11e
jmp 0x40b120
jmp 0x40b0e6
cmp dword [0x43a360], 1
jne 0x40b13d
push 0x42f888
push str._n_s_stopped._n
call fcn.0041a0d4
add esp, 8
jmp 0x40b14f
push 0x42f8b8
push str._n_s_failed_to_stop._n
call fcn.0041a0d4
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40b171
push 0x42f8f0
push str._s_removed._n
call fcn.0041a0d4
add esp, 8
jmp 0x40b191
push 0x100
push 0x43a258
call fcn.0040b280
add esp, 8
push eax
push str.DeleteService_failed____s_n
call fcn.0041a0d4
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40b1bd
push 0x100
push 0x43a258
call fcn.0040b280
add esp, 8
push eax
push str.OpenService_failed____s_n
call fcn.0041a0d4
add esp, 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40b1e9
push 0x100
push 0x43a258
call fcn.0040b280
add esp, 8
push eax
push str.OpenSCManager_failed____s_n
call fcn.0041a0d4
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4183cd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438df0]
jne 0x4183d7
repz ret
jmp fcn.0041dc2c

Function at 0x4266d7
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.0041d613
and dword [ebp - 4], 0
cmp dword [0x43cbf4], 0
mov ebx, eax
jne 0x426788
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426839
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432528
push edi
call esi
test eax, eax
je 0x426839
push eax
call fcn.0041d5a1
mov dword [esp], 0x432518
push edi
mov dword [0x43cbf4], eax
call esi
push eax
call fcn.0041d5a1
mov dword [esp], 0x432504
push edi
mov dword [0x43cbf8], eax
call esi
push eax
call fcn.0041d5a1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43cbfc], eax
call esi
push eax
call fcn.0041d5a1
pop ecx
mov dword [0x43cc04], eax
test eax, eax
je 0x426788
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d5a1
pop ecx
mov dword [0x43cc00], eax
mov eax, dword [0x43cc00]
cmp eax, ebx
je 0x4267e0
cmp dword [0x43cc04], ebx
je 0x4267e0
push eax
call fcn.0041d61c
push dword [0x43cc04]
mov esi, eax
call fcn.0041d61c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4267e0
test edi, edi
je 0x4267e0
call esi
test eax, eax
je 0x4267d7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4267d7
test byte [ebp - 0xc], 1
jne 0x4267e0
or dword [ebp + 0x10], 0x200000
jmp 0x426819
mov eax, dword [0x43cbf8]
cmp eax, ebx
je 0x426819
push eax
call fcn.0041d61c
pop ecx
test eax, eax
je 0x426819
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x426819
mov eax, dword [0x43cbfc]
cmp eax, ebx
je 0x426819
push eax
call fcn.0041d61c
pop ecx
test eax, eax
je 0x426819
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43cbf4]
call fcn.0041d61c
pop ecx
test eax, eax
je 0x426839
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42683b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret