joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464674
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4647df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040474c
xor eax, eax
push ebp
push 0x4647ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.00404bfc
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4647b0
mov eax, dword [ebp - 8]
call fcn.0040273c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4647a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4647f0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00408d78
push dword [ebp - 0x18]
push 0x4647fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00408d78
push dword [ebp - 0x1c]
push 0x4647fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00408d78
push dword [ebp - 0x20]
push 0x4647fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00408d78
push dword [ebp - 0x24]
mov eax, esi
mov edx, 7
call fcn.00404ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4647b0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040275c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4647c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4647e6
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404770
ret
Function at 0x48a168
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x48a215
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, esi
call fcn.004047a0
mov eax, dword [ebp + 0x2c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x30]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edi
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004047a0
mov eax, dword [ebp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xc], eax
mov al, byte [ebp + 0x10]
mov byte [ebx + 0x10], al
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x14], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebx]
call fcn.00489f64
mov al, byte [ebp - 8]
mov byte [ebx + 0x34], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a21c
lea eax, [ebp - 0x20]
mov edx, dword [0x489efc]
call fcn.004052b0
ret
Function at 0x492b44
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
call fcn.00492b2c
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
mov dword [0x4ad5b8], eax
add esp, 0x24
ret
Function at 0x49d414
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc00
mov ebx, eax
push esp
push 0x3ff
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040483c
add esp, 0x400
pop ebx
ret

Function at 0x49d43c
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
lea eax, [ebp - 0x38]
mov edx, dword [0x489ed0]
call fcn.004051e0
xor eax, eax
push ebp
push 0x49d4dc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1388
push 0xbb8
push 1
push 2
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x49d4f4
mov edx, 0x10000
mov eax, edi
call fcn.0048a168
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x38]
mov edx, esi
call fcn.0048a6cc
cmp dword [ebp - 0x3c], 0
jne 0x49d4b1
cmp dword [ebp - 0x40], 0
jbe 0x49d4c0
jmp 0x49d4b3
jle 0x49d4c0
mov eax, esi
call fcn.004091ec
test al, al
je 0x49d4c0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d4e3
lea eax, [ebp - 0x38]
mov edx, dword [0x489ed0]
call fcn.004052b0
ret

Function at 0x49d658
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
xor edx, edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bec
lea eax, [ebp - 0x15c]
mov edx, dword [0x407ce8]
call fcn.004051e0
xor eax, eax
push ebp
push 0x49d7e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a04
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x49d6b4
cmp eax, dword [edx - 4]
jb 0x49d6b9
call fcn.00403858
inc eax
cmp byte [edx + eax - 1], 0x5c
je 0x49d6ce
lea eax, [ebp - 4]
mov edx, 0x49d7fc
call fcn.00404a0c
lea eax, [ebp - 0x160]
mov ecx, 0x49d808
mov edx, dword [ebp - 4]
call fcn.00404a50
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.00409368
test eax, eax
jne 0x49d798
mov eax, dword [ebp - 0x154]
and eax, 0x10
cmp eax, 0x10
je 0x49d738
push dword [ebp - 4]
push 0x49d7fc
push dword [ebp - 0x150]
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.00404ac4
mov eax, dword [ebp - 0x164]
call fcn.004093f8
jmp 0x49d785
mov eax, dword [ebp - 0x150]
mov edx, 0x49d814
call fcn.00404b48
je 0x49d785
mov eax, dword [ebp - 0x150]
mov edx, 0x49d820
call fcn.00404b48
je 0x49d785
push dword [ebp - 4]
push 0x49d7fc
push dword [ebp - 0x150]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404ac4
mov eax, dword [ebp - 0x168]
call fcn.0049d658
lea eax, [ebp - 0x15c]
call fcn.004093b8
test eax, eax
je 0x49d6ff
lea eax, [ebp - 0x15c]
call fcn.004093dc
mov eax, dword [ebp - 4]
call fcn.00404bfc
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d7ef
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404770
lea eax, [ebp - 0x15c]
mov edx, dword [0x407ce8]
call fcn.004052b0
lea eax, [ebp - 4]
call fcn.0040474c
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x26f03e32
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0xd464c45
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

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

Disassembly:
pushal
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x402520
Capabilities:
Parse pe header

Disassembly:
push ecx
inc esi
mov esi, dword [esi]
cld
pop ebp
inc eax
add byte [edi - 0x7b], dl
bnd je 0x40254c
mov edi, dword [0x140415c]
mov eax, dword [esi + 0x18]
iretd
push ebp
mov ebp, dword [esp + 0x19]
mov edx, 0x5a4d
pop edx
add byte [eax], al
cmp word [ebp], dx
je 0x402574
push 0x4b
call dword [0x40403c]
pop ebp
rdpmc
rcr byte [esi + 0x59], 0xc3
inc dword [esi + 0x1c]
pop edi
mov eax, esi
pop esi
pop ecx
ret
push ebx
mov ebx, dword [ebp + 0x3d]
add ecx, ebp
cmp dword [ebx], 0x4550
je 0x402592
push 0xb
call dword [0x40413c]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x24]
mov edi, dword [0x404050]
outsb dx, byte [esi]
add al, 0x68
add byte [eax], ah
add byte [eax], al
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x402553
adc dword [ebx + 0x50], 0x6a
add al, 0x68
add byte [eax], ah
add byte [eax], al
push edx
push eax
invalid
Function at 0x401530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push esi
push edx
mov dword [ebx + 0x1000f8], eax
lea edi, [ebx + 0x70]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebx + 0xc], eax
call fcn.00403a70
add esp, 0xc
push ebx
push 0
push esi
push edi
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4015d7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
jne 0x4015a1
push 0x82
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._d___d:__I_O__Pending_write._._._n
call fcn.004014f0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
call esi
cmp eax, 0x6f8
je 0x4015b3
call esi
cmp eax, 8
je 0x4015b3
call esi
call esi
push eax
push 0x93
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._d___d:__ERROR__Cannot_write_chunk:__u_n
call fcn.004014f0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
pop ebp
ret
Function at 0x401d10
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shl eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405549
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401da9
mov ecx, dword [ebp - 0x14]
add ecx, ecx
push ecx
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x41b2c8], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
add eax, eax
je 0x401d93
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4015f0
push 0
push 0
call edi
mov eax, dword [ebp - 0x14]
inc esi
add eax, eax
cmp esi, eax
jb 0x401d78
call fcn.00401fa0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0x3a98
call esi
jmp 0x401da0
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040232e
mov esp, ebp
pop ebp
ret
Function at 0x40c250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6758
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
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.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
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.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
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 0x40de50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6a28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
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 0x40def5
jmp 0x40dee1
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.0041cb50
push 0x4f80ac
lea eax, [ebp - 0x50]
push eax
call fcn.00499368
int3

Function at 0x40e3d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
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.0042bab0
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.00403ad0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
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 0x40e512
push esi
lea eax, [ebp - 0x2c]
push 0x4d1fe4
push eax
call fcn.004038a0
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [edi + 4]
sub eax, ecx
sar eax, 4
cmp eax, esi
jbe 0x40e556
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 0x40e509
mov eax, ecx
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e4e0
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 0x40e493
cmp edx, ecx
jbe 0x40e51d
mov ecx, edi
call fcn.0042b870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.004039a0
mov ecx, edi
call fcn.0042b870
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.00427d90
int3
Function at 0x4112f0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7058
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x4fa008]
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.00403ad0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
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.00403ad0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041d690
test al, al
je 0x4113da
push str._service
push dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push 0x4cddb4
push eax
call fcn.004038a0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.004039a0
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004204a0
push 0
push 0
push 0x4cd35c
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 0x4c7424
push 0x4c7444
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x41149c
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 0x41147c
push esi
call edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.StringStorage.0
call fcn.004039a0
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.0041ca90
push 0x4f80ac
lea eax, [ebp - 0x70]
push eax
call fcn.00499368
int3
Function at 0x4115b0
Capabilities:
Access peb ldr_data
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b711c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
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.00497c04
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 0x46ef60
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.0041dd80
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 3
call fcn.0041e470
push 0x2c
call fcn.00497c04
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.0041de90
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