joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092a0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5130
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov al, 1
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x14], al
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
jne 0x40931b
mov ecx, dword [ebx]
mov eax, dword [edx + 0x10]
mov edi, edx
cmp ecx, eax
jb 0x40930b
ja 0x409304
mov eax, dword [ebx + 4]
cmp eax, dword [edx + 0x14]
jb 0x40930b
mov edx, dword [edx + 8]
xor al, al
jmp 0x40930f
mov edx, dword [edx]
mov al, 1
cmp byte [edx + 0xd], 0
mov byte [ebp - 0x14], al
je 0x4092f1
mov ecx, dword [ebp - 0x1c]
mov esi, edi
test al, al
je 0x4093bb
cmp edi, dword [ecx]
jne 0x40935b
push dword [ebp + 0x14]
push ecx
push edi
push 1
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x10]
push eax
call fcn.00409070
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [edi + 0xd], 0
je 0x409366
mov esi, dword [edi + 8]
jmp 0x4093bb
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x40939d
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x409393
mov ecx, edi
nop dword [eax]
mov edx, eax
cmp ecx, dword [eax]
jne 0x409393
mov esi, eax
mov ecx, edx
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x409380
cmp byte [esi + 0xd], 0
jne 0x4093bb
mov esi, eax
jmp 0x4093bb
mov esi, eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4093bb
nop dword [eax + eax]
mov esi, eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4093b0
mov ecx, dword [ebx]
cmp dword [esi + 0x10], ecx
jb 0x40940f
ja 0x4093cc
mov eax, dword [esi + 0x14]
cmp eax, dword [ebx + 4]
jb 0x40940f
mov ebx, dword [ebp + 0x14]
lea ecx, [ebx + 0x30]
call fcn.00407660
lea ecx, [ebx + 0x24]
call fcn.00407660
lea ecx, [ebx + 0x18]
call fcn.00407660
push 0x3c
push ebx
call fcn.00497c44
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push ecx
push edi
push dword [ebp - 0x14]
jmp 0x409330
Function at 0x409970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b523f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x10]
mov dword [edi], vtable.ControlCommandLine.0
lea esi, [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea eax, [edi + 0x20]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea eax, [edi + 0x30]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea eax, [edi + 0x40]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
lea esi, [eax + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea eax, [edi + 0x50]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov dword [edi + 0x60], vtable.Rect.0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
lea eax, [edi + 0x78]
mov byte [edi + 0x74], 0
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
and eax, 0xfffffffe
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov dword [edi + 0x88], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d0f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b59b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0x86
mov dword [esi + 0xc], vtable.Control.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.SetPasswordsDialog.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], vtable.CheckBox.0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], vtable.CheckBox.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], vtable.CheckBox.0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], vtable.TextBox.0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], vtable.TextBox.0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], vtable.CheckBox.0
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], vtable.CheckBox.0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], vtable.CheckBox.0
mov dword [esi + 0x88], 0
mov dword [esi + 0x84], vtable.TextBox.0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], vtable.TextBox.0
lea edi, [esi + 0x9c]
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.0044d520
lea ebx, [esi + 0xc0]
mov byte [ebp - 4], 0xb
mov ecx, ebx
call fcn.0044d520
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 0xc
call fcn.0044d520
mov cl, byte [ebp + 8]
mov al, cl
mov byte [esi + 0x109], cl
xor al, 1
mov byte [esi + 0x108], al
lea eax, [esi + 0x10c]
mov dword [ebp + 8], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov word [eax + 0x11c], 1
add eax, 0x120
mov dword [ebp + 8], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov byte [ebp - 4], 0x11
mov ecx, 0x9c57
mov esi, dword [edi]
call fcn.0044ecf0
push eax
mov ecx, edi
call dword [esi + 8]
mov esi, dword [edi]
mov ecx, 0x9c55
call fcn.0044ecf0
push eax
mov ecx, edi
call dword [esi + 0xc]
mov esi, dword [ebx]
mov ecx, 0x9c58
call fcn.0044ecf0
push eax
mov ecx, ebx
call dword [esi + 8]
mov esi, dword [ebx]
mov ecx, 0x9c55
call fcn.0044ecf0
push eax
mov ecx, ebx
call dword [esi + 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, 0x9ca7
mov esi, dword [edi + 0xe4]
call fcn.0044ecf0
push eax
lea ecx, [edi + 0xe4]
call dword [esi + 8]
mov esi, dword [edi + 0xe4]
mov ecx, 0x9ca8
call fcn.0044ecf0
push eax
lea ecx, [edi + 0xe4]
call dword [esi + 0xc]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ecf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5c88
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 5
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40ed95
jmp 0x40ed81
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [ebp - 0x50]
call fcn.0041c9e0
push 0x4f89dc
lea eax, [ebp - 0x50]
push eax
call fcn.00499378
int3

Function at 0x40f270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5d30
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebx + 0x6c]
lea ecx, [ebx + 0x6c]
lea eax, [ebx + 0x24]
push eax
call dword [edx + 0x18]
push 0
push 0
push 0xf0
push dword [ebx + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
lea edi, [ebx + 0x54]
mov ecx, edi
setne al
mov byte [ebx + 0x34], al
push dword [ebx + 0x28]
call fcn.0042b930
mov dword [ebp - 0x2c], vtable.StringStorage.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov dword [ebp - 4], 1
xor esi, esi
mov edx, dword [edi + 8]
sub edx, dword [edi + 4]
sar edx, 4
xor ebx, ebx
mov dword [ebp - 0x18], edx
mov ecx, dword [edi + 0x10]
cmp edx, ecx
mov eax, ecx
cmovb eax, edx
cmp esi, eax
jae 0x40f3b2
push esi
lea eax, [ebp - 0x2c]
push 0x4d272c
push eax
call fcn.00404740
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [edi + 4]
sub eax, ecx
sar eax, 4
cmp eax, esi
jbe 0x40f3f6
mov eax, dword [edi + 0x14]
mov ecx, dword [ebx + ecx + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x40f3a9
mov eax, ecx
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f380
sub eax, dword [ebp - 0x10]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x14]
push 1
push 0
push dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x18]
inc esi
add ebx, 0x10
jmp 0x40f333
cmp edx, ecx
jbe 0x40f3bd
mov ecx, edi
call fcn.0042b6f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.00404840
mov ecx, edi
call fcn.0042b6f0
mov ecx, dword [ebp - 0x1c]
push 1
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00427c10
int3
Function at 0x412190
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b62b8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], vtable.StringStorage.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], vtable.StringStorage.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041d510
test al, al
je 0x41227a
push str._service
push dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push 0x4ccda4
push eax
call fcn.00404740
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.00404840
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00420320
push 0
push 0
push 0x4cc34c
push 0
push 0
mov byte [ebp - 4], 4
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
push 1
push 2
push 0x10
push 0xf01ff
push 0x4c6414
push 0x4c6434
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x41233c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 2
push edi
mov dword [ebp - 0x10], 0x1388
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x41231c
push esi
call edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.StringStorage.0
call fcn.00404840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x70]
call fcn.0041c920
push 0x4f89dc
lea eax, [ebp - 0x70]
push eax
call fcn.00499378
int3
Function at 0x412450
Capabilities:
Access peb ldr_data
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b637c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ecx + 0xf0]
lea esi, [ecx + 0x10]
sub edx, dword [ecx + 0xec]
mov eax, 0x66666667
push dword [ebp + 8]
imul edx
lea ecx, [esi + 0x20]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0xa8], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp + 0x10]
push 0x4c
mov byte [esi + 0x30], al
call fcn.00497c14
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ebx
lea eax, [ebx + 8]
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x14]
push eax
push 4
push ebx
push 0x46ef80
push 0
mov dword [ebx], vtable.Thread.0
mov byte [ebx + 0xc], 0
push 0
mov byte [ebx + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 4], eax
mov dword [ebx], vtable.ListenLogServer.0
lea eax, [ebx + 0x2c]
push 1
mov dword [ebx + 0x14], vtable.SecurityAttributes.0
mov byte [ebx + 0x24], 1
push eax
mov dword [ebx + 0x28], vtable.SecurityDescriptor.0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov byte [ebp - 4], 2
lea eax, [ecx + 0x10]
lea ecx, [ebx + 0x44]
mov dword [ebx + 0x40], eax
call fcn.0041dc00
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 3
call fcn.0041e2f0
push 0x2c
call fcn.00497c14
add esp, 4
mov dword [ebp + 8], eax
push 0xffffffffffffffff
push 0
push 0x10000
push edi
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0041dd10
push dword [ebx + 4]
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne al
mov byte [ebx + 0xc], al
mov dword [ecx + 0x78], ebx
add ecx, 0xc0
call fcn.004523c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413e10
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b66b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], vtable.StringStorage.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.0041d510
mov dword [ebp - 0x1c], vtable.StringStorage.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00404970
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
push str._slave
push str._controlservice
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push str.__s___s__s
push eax
call fcn.00404740
add esp, 0x14
lea ecx, [ebp - 0x48]
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call fcn.0041f6b0
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x413f4d
mov eax, dword [ebp - 0x18]
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413f20
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x18]
push 1
push 0
push str.tvncontrol
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], vtable.RegistryKey.0
test edx, edx
je 0x413f6b
cmp edx, dword [ebp - 0x40]
je 0x413f64
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.StringStorage.0
call fcn.00404840
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.StringStorage.0
call fcn.00404840
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.00404840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4165c0
Capabilities:
Create thread
Resume thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6b79
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 8]
mov dword [esi], vtable.Thread.0
push eax
push 4
push esi
push 0x46ef80
push 0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [esi + 0x10]
mov dword [esi], vtable.TcpServer.0
call fcn.004555d0
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x48]
push ebx
mov byte [ebp - 4], 1
call fcn.00403eb0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov edx, ebx
push eax
mov word [esi + 0x58], ax
call fcn.00456110
add esp, 4
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 3
je 0x416682
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x41676d
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x10]
call fcn.00455970
push 0xa
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x416783
mov dword [ebp - 0x20], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 4
mov dword [esi], vtable.RfbServer.0
mov dword [esi + 0x5c], eax
call fcn.004460c0
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 5
mov dword [esi + 0x94], eax
test edi, edi
je 0x4166fd
mov dword [esi + 0x60], 2
mov eax, dword [edi + 4]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x74], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
mov eax, dword [ebp + 0xc]
movzx eax, ax
test edi, edi
jne 0x416733
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4cf3f8
push dword [esi + 0x94]
call fcn.00406360
add esp, 0x10
jmp 0x416757
push dword [edi + 0x10]
push dword [edi + 8]
push dword [edi + 0xc]
push dword [edi + 4]
push eax
mov eax, dword [ebp + 8]
push eax
push str.Rfb_server_started_at__s:_d_with___d__d__d__d__view_port_specified
push dword [esi + 0x94]
call fcn.00406360
add esp, 0x20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x38]
call fcn.00456230
push 0x4f8bd4
lea eax, [ebp - 0x38]
push eax
call fcn.00499378
lea ecx, [ebp - 0x50]
call fcn.00456230
push 0x4f8bd4
lea eax, [ebp - 0x50]
push eax
call fcn.00499378
int3