joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
push edi
jmp 0x4c6e9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e90
mov eax, 1
add ebx, ebx
jne 0x4c6eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6ec4
jne 0x4c6ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6ee3
dec eax
add ebx, ebx
jne 0x4c6ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6ea8
add ebx, ebx
jne 0x4c6edf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c6f35
xor ecx, ecx
sub eax, 3
jb 0x4c6efb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c6f6a
sar eax, 1
mov ebp, eax
jmp 0x4c6f06
add ebx, ebx
jne 0x4c6f06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6ed4
inc ecx
add ebx, ebx
jne 0x4c6f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6ed4
add ebx, ebx
jne 0x4c6f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c6f16
jne 0x4c6f32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c6f16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c6f54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c6f46
jmp 0x4c6e96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c6f54
add edi, ecx
jmp 0x4c6e96
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6f72
cmp byte [edi], 0x13
jne 0x4c6f72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c6f77
lea edi, [esi + 0xc2000]
mov eax, dword [edi]
or eax, eax
je 0x4c6fef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdc648]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdc79c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c6fa4
mov ecx, edi
jns 0x4c6fd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdc7a0]
or eax, eax
je 0x4c6fe9
mov dword [ebx], eax
add ebx, 4
jmp 0x4c6fc1
call dword [esi + 0xdc7b0]
mov ebp, dword [esi + 0xdc7a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c7023
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4039d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4039f4
xor eax, eax
jmp 0x403a74
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403a0b
xor eax, eax
jmp 0x403a74
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403a57
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403a57
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x403a2e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403a63
xor eax, eax
jmp 0x403a74
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x403a71
xor eax, eax
jmp 0x403a74
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403f40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a835
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00403e90
push eax
push str.Execute_:__ws
mov eax, dword [ebp - 0x6c]
add eax, 4
push eax
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x7c], esp
mov edx, dword [ebp - 0x6c]
add edx, 4
push edx
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
mov dword [ebp - 0x74], 0
push 0x3c
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00409600
add esp, 0xc
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp + 8]
call fcn.00401f70
mov dword [ebp - 0x58], eax
lea ecx, [ebp + 0xc]
call fcn.00401f70
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4040a9
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [ebp - 0x74], eax
push str.Execute_file_success.
mov ecx, dword [ebp - 0x6c]
add ecx, 4
push ecx
call fcn.00402860
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x80], esp
mov edx, dword [ebp - 0x6c]
add edx, 4
push edx
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x4040a7
mov ecx, 1
test ecx, ecx
je 0x4040a7
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x404088
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0x64
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x4040a3
cmp dword [ebp - 0x70], 0xffffffff
jne 0x4040a5
jmp 0x4040a7
jmp 0x40405f
jmp 0x4040e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Execute_file_failed_:_0x_08lx
mov edx, dword [ebp - 0x6c]
add edx, 4
push edx
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
mov eax, dword [ebp - 0x6c]
add eax, 4
push eax
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401e00
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404130
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a86d
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x4041e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41b9cc
mov eax, dword [ebp - 0x13c]
add eax, 4
push eax
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x154], esp
mov edx, dword [ebp - 0x13c]
add edx, 4
push edx
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
mov dword [ebp - 0x144], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov eax, dword [ebp - 0x144]
jmp 0x4042d9
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x404266
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41b9fc
mov edx, dword [ebp - 0x13c]
add edx, 4
push edx
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x158], esp
mov eax, dword [ebp - 0x13c]
add eax, 4
push eax
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov eax, dword [ebp - 0x148]
jmp 0x4042d9
lea ecx, [ebp + 8]
call fcn.00401f70
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.0040d6a5
add esp, 8
test eax, eax
jne 0x4042a3
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov eax, dword [ebp - 0x14c]
jmp 0x4042d9
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x140]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404266
mov dword [ebp - 0x150], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e00
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret 4
Function at 0x404340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.00401f70
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4043a8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
lea ecx, [ebp + 0x10]
call fcn.00401f70
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp + 0xc]
call fcn.00401e00
lea ecx, [ebp + 0x10]
call fcn.00401e00
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4043e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a8bd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
lea ecx, [ebp + 0xc]
call fcn.00401f70
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x404469
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.00401f70
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4044af
lea ecx, [ebp + 0x14]
call fcn.00402d10
push eax
lea ecx, [ebp + 0x14]
call fcn.00404300
push eax
push 1
push 0
lea ecx, [ebp + 0x10]
call fcn.00401f70
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
call fcn.00403710
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
jne 0x4044be
mov dword [ebp - 0x20], 1
jmp 0x4044c5
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x15], al
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401e00
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00401e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401e00
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
lea ecx, [ebp + 0xc]
call fcn.00401f70
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40457a
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.00401f70
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4045aa
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push 0
lea ecx, [ebp + 0x10]
call fcn.00401f70
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4045b9
mov dword [ebp - 0x14], 1
jmp 0x4045c0
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x14]
mov byte [ebp - 9], cl
lea ecx, [ebp + 0xc]
call fcn.00401e00
lea ecx, [ebp + 0x10]
call fcn.00401e00
mov al, byte [ebp - 9]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404720
Capabilities:
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a916
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a4], ecx
mov eax, 0x202
mov word [ebp - 0x1a8], ax
lea ecx, [ebp - 0x1a0]
push ecx
movzx edx, word [ebp - 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
je 0x40478c
mov eax, dword [ebp - 0x1b0]
jmp 0x4048e7
push 0x7fab
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push str.Server_Port
call fcn.004045f0
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
push str.SOFTWAREWOW6432NodeMSIMSI_CenterComponentSDK
call fcn.004045f0
push SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x425e3c
call fcn.00404340
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jle 0x4048db
mov ecx, 2
mov edx, dword [ebp - 0x1a4]
mov word [edx + 4], cx
movzx eax, word [ebp - 0x1b4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x1a4]
mov word [ecx + 6], ax
mov edx, dword [ebp - 0x1a4]
add edx, 8
push edx
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
jg 0x4048db
mov eax, dword [ebp - 0x1ac]
push eax
push str.Invalid_address___Address_not_supported_:__d.
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x14
push ecx
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
mov edx, dword [ebp - 0x1a4]
add edx, 0x14
push edx
call fcn.00401b60
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1d0], esp
push 0x41c080
call fcn.00401ba0
mov dword [ebp - 0x1d4], eax
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push 0x41c0b0
call fcn.004045f0
push SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x425e3c
call fcn.004043e0
mov eax, dword [ebp - 0x1ac]
jmp 0x4048e7
mov eax, dword [ebp - 0x1a4]
mov byte [eax + 0x18], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret
Function at 0x406060
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42501c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x425b9c], eax
cmp dword [0x425b9c], 0
jne 0x4060c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
jmp 0x4061bb
push 0xf01ff
push 0x41c648
mov eax, dword [0x425b9c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x425ba0], eax
cmp dword [0x425ba0], 0
jne 0x406121
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
jmp 0x4061bb
mov dword [ebp - 8], 0x41c680
lea ecx, [ebp - 8]
push ecx
push 1
mov edx, dword [0x425ba0]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jge 0x406174
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig2_failed_w_err_0x_08lx_n
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
jmp 0x4061bb
push 0
push 0
mov eax, dword [0x425ba0]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jge 0x4061bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed_w_err_0x_08lx_n
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
cmp dword [0x425b9c], 0
je 0x4061db
mov ecx, dword [0x425b9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x425b9c], 0
cmp dword [0x425ba0], 0
je 0x4061fb
mov edx, dword [0x425ba0]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x425ba0], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004081dc
mov esp, ebp
pop ebp
ret
Function at 0x406d90
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x425b9c], eax
cmp dword [0x425b9c], 0
jne 0x406deb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c558
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
jmp 0x406f6a
push 0x10024
push 0x41c57c
mov eax, dword [0x425b9c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x425ba0], eax
cmp dword [0x425ba0], 0
jne 0x406e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c590
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
jmp 0x406f6a
push 0x425bcc
push 1
mov ecx, dword [0x425ba0]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jl 0x406f26
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0
jmp 0x406e80
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x14
jge 0x406eb9
push 0x425bcc
mov eax, dword [0x425ba0]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x406eb5
cmp dword [0x425bd0], 3
jne 0x406eb1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406eb3
jmp 0x406eb9
jmp 0x406eb7
jmp 0x406eb9
jmp 0x406e77
cmp dword [0x425bd0], 1
jne 0x406ef5
push 0x41c5b4
push str._s_is_stopped._n
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
jmp 0x406f26
push 0x41c5d8
push str._s_failed_to_stop._n
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
mov ecx, dword [0x425ba0]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jge 0x406f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
push 0x425e2c
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x425e2c
call fcn.00401b60
mov ecx, 0x425ce8
call fcn.004031c0
cmp dword [0x425b9c], 0
je 0x406f8a
mov edx, dword [0x425b9c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x425b9c], 0
cmp dword [0x425ba0], 0
je 0x406fa9
mov eax, dword [0x425ba0]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x425ba0], 0
mov esp, ebp
pop ebp
ret
Function at 0x403f6c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4100a4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x220]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x404079
cmp dword [ebp - 0x218], esi
je 0x403fd9
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
test esi, esi
jne 0x404079
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
jmp 0x404040
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00403f6c
mov esi, eax
test esi, esi
jne 0x404079
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404009
cmp dword [ebp - 0x218], 0
je 0x40406f
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
push ebx
mov ecx, edi
call fcn.00403e6c
mov esi, eax
cmp dword [ebp - 0x218], 0
je 0x40408e
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f200
mov esp, ebp
pop ebp
ret 4