joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453a40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ecx
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
push 0x130a
push dword [eax + 0x24]
movups xmmword [ebp - 0x14], xmm0
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sub eax, 0xd
cdq
sub eax, edx
push 0
mov edi, eax
mov eax, dword [ebp - 0x18]
push 0
push 0x130b
sar edi, 1
push dword [eax + 0x24]
call esi
cmp dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov esi, 4
cmove esi, ecx
mov ecx, dword [ebp - 0x10]
add ecx, edi
sub edx, esi
lea eax, [ecx + 0xd]
push eax
push edx
push ecx
lea eax, [edx - 0xe]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047df69
mov esp, ebp
pop ebp
ret 8
Function at 0x45e070
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeb11
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ax, word [0x4b5d3c]
movups xmm0, xmmword [str.Computer]
push 0x2e
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push 0
push eax
movups xmmword [ebp - 0x50], xmm0
call fcn.0047f8f0
add esp, 0xc
mov dword [ebp - 0x4bc], 0x20
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, dword [edi + 4]
lea eax, [ebp - 0x4b4]
push 0x58
push 0
push eax
mov dword [ebp - 0x45c], 0
call fcn.0047f8f0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x4b4], 0x58
mov dword [ebp - 0x498], eax
lea eax, [ebp - 0x458]
mov dword [ebp - 0x490], eax
mov eax, dword [0x4fc9c0]
mov dword [ebp - 0x4ac], eax
xor eax, eax
mov word [ebp - 0x258], ax
mov word [ebp - 0x458], ax
lea eax, [ebp - 0x50]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x494], 0x104
push 0x104
push eax
mov dword [ebp - 0x478], 0x4b5db0
mov dword [ebp - 0x48c], 0x100
mov dword [ebp - 0x480], 0x880002
mov dword [ebp - 0x4a8], 0x4b5d40
mov dword [ebp - 0x4b0], esi
call fcn.0048d34b
push eax
call fcn.00406930
add esp, 0x20
mov dword [ebp - 0x484], str.Save_Autoruns_Output_to_File
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [ebp - 0x4b0], 0
jne 0x45e1b0
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x45c], 0
lea eax, [ebp - 0x4b4]
push eax
je 0x45e1c8
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x45e1ce
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x45e2af
cmp dword [ebp - 0x49c], 1
mov ecx, edi
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004585e0
mov esi, dword [edi + 4]
test al, al
jne 0x45e292
push str.Failed_to_save_output_to_file
lea ecx, [ebp - 0x4c4]
call fcn.00405020
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00404f30
add esp, 0xc
mov byte [ebp - 4], 1
push 0x40
push ecx
mov ecx, esp
mov dword [ecx], 0x10
mov ecx, dword [eax]
push ecx
mov eax, esp
push esi
mov dword [eax], ecx
call fcn.004432e0
add esp, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x4c0]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45e26e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45e2af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45e2af
push 0x40
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x81
mov eax, esp
push esi
mov dword [eax], str.Save_successful.
call fcn.004432e0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45e2d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeb95
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4e54fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [edi + 0x320], 0
jne 0x45e41f
push 0x24c
call fcn.0047dbfa
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x45e3b4
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x18], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [ebp - 4], 3
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movups xmmword [esi + 0x24], xmm0
xor ecx, ecx
lea eax, [esi + 0x4c]
movups xmmword [esi + 0x34], xmm0
xor edx, edx
movq qword [esi + 0x44], xmm0
mov word [eax], cx
lea ecx, [esi + 0x14c]
mov word [ecx], dx
mov dword [esi + 0x24], 0x28
mov dword [esi + 0x30], 0x100
mov dword [esi + 0x44], 0x459b90
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], 0x800080
mov dword [esi + 0x38], ecx
mov byte [ebp - 4], 6
mov dword [esi], vtable.WTL::CFindReplaceDialog.0
mov byte [ebp - 4], dl
jmp 0x45e3b6
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x324]
mov dword [edi + 0x320], esi
or dword [esi + 0x30], 0x1801
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x45e3e3
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x45e404
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x4c]
push 0x80
push eax
call fcn.0048d34b
push eax
call fcn.00406930
add esp, 0x14
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x45e445
call fcn.0047c2a0
mov dword [esi + 0x14], eax
test eax, eax
jne 0x45e445
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x320]
push 0xa
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push eax
call fcn.0047c3a2
lea edi, [esi + 8]
test edi, edi
je 0x45e4b8
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 4], eax
mov dword [ebp - 0x1c], 0x4e6144
mov byte [ebp - 0x18], 0
mov dword [ebp - 4], 7
push 0x4e6144
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e615c]
mov dword [edi + 8], eax
mov byte [ebp - 0x18], 1
mov dword [0x4e615c], edi
mov dword [ebp - 4], 0xffffffff
push 0x4e6144
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x24]
mov byte [ebp - 0x18], 0
push eax
call dword [sym.imp.COMDLG32.dll_FindTextW]
mov edi, dword [ebp - 0x14]
jmp 0x45e41f
push 1
push 0xc0000005
call fcn.00439670
int3
Function at 0x460f40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 4], 0x100
jne 0x460f7f
push 0x3e9
push dword [edi + 0x284]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x460f7f
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x2ec]
test eax, eax
je 0x460f97
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x460fad
mov eax, dword [edi - 4]
test eax, eax
je 0x460fbb
push ebx
push eax
push dword [edi - 0x30]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
je 0x460fbb
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_IsWindow]
xor esi, esi
test eax, eax
je 0x4610db
push esi
push esi
push 0x1304
push dword [edi + 0x74]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 8], eax
test eax, eax
jle 0x461060
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp dword [ebx + 4], 0x100
jne 0x461060
cmp dword [ebx + 8], 9
jne 0x461060
shr ax, 0xf
test al, al
je 0x461060
mov ebx, dword [ebp + 8]
cmp ebx, 1
jle 0x461050
mov esi, dword [edi + 0xa0]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x461029
test esi, esi
cmovg ebx, esi
lea esi, [ebx - 1]
jmp 0x461039
test esi, esi
js 0x461037
lea eax, [ebx - 1]
cmp esi, eax
jge 0x461037
inc esi
jmp 0x461039
xor esi, esi
push esi
lea ecx, [edi + 0x50]
call fcn.00466870
push dword [edi + 0xa0]
lea ecx, [edi + 0x50]
call fcn.00460000
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test byte [edi + 0x105], 2
je 0x46108e
cmp dword [ebx + 4], 0x100
jne 0x46108e
cmp dword [ebx + 8], 0x1b
jne 0x46108e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xa0]
cmp eax, 0xffffffff
je 0x4610db
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x24]
push ecx
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x24], 8
push 0x133c
push dword [edi + 0x74]
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
call esi
push ebx
push 0
push 0x37f
push dword [ebp - 0xc]
call esi
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4664f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
mov edi, ecx
push 0
push 0x1304
push dword [edi + 0x24]
call ebx
test eax, eax
je 0x4666a4
push esi
push 0
push 0
push 0xb
push dword [edi + 4]
call ebx
push 0
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00468280
xor esi, esi
push esi
push esi
push 0x1304
push dword [edi + 0x24]
call ebx
test eax, eax
jle 0x4665f3
nop word [eax + eax]
test byte [edi + 0xb4], 1
lea ecx, [ebp - 0x30]
mov eax, dword [edi + 0x24]
xorps xmm0, xmm0
push ecx
push esi
push 0x133c
mov dword [ebp - 0x30], 8
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
push eax
je 0x466592
call ebx
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x46659f
call ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 8
push eax
push esi
xorps xmm0, xmm0
push 0x133c
push dword [edi + 0x24]
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
call ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
push eax
call fcn.0047dfa3
add esp, 4
inc esi
push 0
push 0
push 0x1304
push dword [edi + 0x24]
call ebx
cmp esi, eax
jl 0x466550
push 0
push 0
push 0x1309
push dword [edi + 0x24]
call ebx
mov dword [edi + 0x50], 0xffffffff
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xfffffd1b
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0x4e
push esi
call ebx
push 0
push 1
push 0xb
push dword [edi + 4]
call ebx
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, edi
call fcn.004688b0
mov edx, dword [edi + 0x60]
pop esi
test edx, edx
je 0x4666a4
mov cl, byte [edi + 0xb4]
mov al, cl
shr al, 3
and al, 1
movzx eax, al
push eax
mov al, cl
shr al, 2
and al, 1
movzx eax, al
push eax
mov al, cl
shr cl, 4
shr al, 5
and cl, 1
and al, 1
movzx eax, al
push eax
movzx eax, cl
mov ecx, edi
push eax
push dword [edi + 0x68]
push edx
call fcn.00453690
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4666b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
push 0
mov edi, ecx
push 0
push 0xb
push dword [edi + 4]
call ebx
push 0
push 0
push 0x1304
push dword [edi + 0x24]
call ebx
cmp eax, 1
jne 0x4666f1
push 0
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00468280
test byte [edi + 0xb4], 1
lea ecx, [ebp - 0x30]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [edi + 0x24]
push ecx
push esi
push 0x133c
mov dword [ebp - 0x30], 8
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
push eax
je 0x466736
call ebx
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x466743
call ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 8
push eax
push esi
xorps xmm0, xmm0
push 0x133c
push dword [edi + 0x24]
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
call ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
push eax
call fcn.0047dfa3
add esp, 4
push 0
push esi
push 0x1308
push dword [edi + 0x24]
call ebx
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x50], 0xffffffff
cmp ecx, esi
jne 0x4667ea
test esi, esi
jle 0x4667a4
lea eax, [esi - 1]
jmp 0x4667f0
push 0
push 0
push 0x1304
push dword [edi + 0x24]
call ebx
test eax, eax
jle 0x4667b9
push esi
jmp 0x4667f1
push 0
push 1
push 0xb
push dword [edi + 4]
call ebx
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, edi
call fcn.004688b0
mov ecx, edi
call fcn.004684e0
jmp 0x4667f8
lea eax, [ecx - 1]
cmovle eax, ecx
push eax
mov ecx, edi
call fcn.00466870
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x50]
push ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffd1b
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0x4e
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x467550
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub eax, dword [ecx + 0x2d8]
mov dword [ebp + 8], eax
add ecx, 0x48
pop ebp
jmp fcn.00466870
Function at 0x469a20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x469aa9
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x469ab8
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x469a63
push edi
mov ecx, esi
call fcn.00405640
push edi
push dword [esi]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x469a8a
mov ecx, dword [esi]
test ecx, ecx
je 0x469a8e
push dword [ecx - 8]
push ecx
call fcn.0048ca27
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x469ab8
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x469ab8
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
call fcn.004058d0
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.00406ac0
int3
Function at 0x46b8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afc96
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4e54fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov edi, dword [ebp + 0xc]
push eax
push 0
push esi
push dword [edi]
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46b9d1
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x46b929
cmp eax, 2
jne 0x46b9d1
mov eax, dword [ebp - 0x14]
shr eax, 1
mov dword [ebp - 0x18], eax
je 0x46b9d1
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00407c10
add esp, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
mov ecx, edi
push esi
call fcn.0040f8f0
mov esi, dword [ebp + 8]
mov ecx, esi
test eax, eax
je 0x46b99b
push 0x4c7a1c
call fcn.00405020
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46b9be
push eax
call fcn.0047dfa3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
call fcn.00405020
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46b9be
push ecx
call fcn.0047dfa3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0x4c7a1c
call fcn.00405020
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46e840
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 0
push eax
call fcn.0047f8f0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46e8a7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46ecc0
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0365
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x46ed99
push 0xf01ff
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x46ed8b
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46ed6c
cmp dword [ebp - 0x28], 1
je 0x46ed5b
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46ed6c
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x46ed8b
mov bl, 1
jmp 0x46ed6e
xor bl, bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x46ee76
push eax
call esi
jmp 0x46ee76
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x46ed99
push eax
call esi
call fcn.00406d20
mov ecx, eax
test ecx, ecx
je 0x46eea5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
mov eax, 0x4c5fe4
lea ecx, [ebp - 0x30]
test eax, 0xffff0000
jne 0x46edd1
movzx eax, ax
push eax
call fcn.004054c0
jmp 0x46eddd
push 1
push 0x4c5fe4
call fcn.004056b0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push 0x4e5fb0
push eax
call fcn.0040a8e0
mov byte [ebp - 4], 8
push edi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00404f30
add esp, 0x18
mov byte [ebp - 4], 9
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
sete bl
mov byte [ebp - 4], 8
or edi, 0xffffffff
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ee3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ee5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46ee76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x46ee87
push ecx
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406ac0
int3
Function at 0x46fb50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b057d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e54fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46fba6
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x46fb8c
mov eax, dword [eax]
test eax, eax
jne 0x46fba6
xor al, al
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
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46fc62
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x46fc5f
mov esi, dword [esi]
mov esi, dword [esi]
cmp byte [esi + 0xd], al
jne 0x46fc58
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x34]
mov edi, dword [eax + 0x30]
jb 0x46fc09
mov eax, dword [eax]
push ecx
push edx
push edi
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x46fc3c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x46fc38
cmp esi, dword [eax + 8]
jne 0x46fc38
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x46fc28
mov esi, eax
jmp 0x46fc52
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x46fc52
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x46fc46
cmp byte [esi + 0xd], 0
je 0x46fbf5
mov edi, dword [ebp - 0x1c]
mov bl, 1
jmp 0x46fc64
mov edi, dword [ebp - 0x1c]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x46fc7d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, bl
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