joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e166
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e234
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
inc edi
mov dword [ebp + 8], esi
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x100e229
cmp dword [ebp - 4], edi
jne 0x100e229
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x100e23c
mov edi, dword [ebp + 8]
shr edi, 1
cmp edi, 0x104
ja 0x100e229
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101821a
test eax, eax
pop ecx
mov dword [esi], eax
je 0x100e229
lea ecx, [edi + edi]
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x100e21e
mov dword [ebp - 8], 1
jmp 0x100e23f
push dword [esi]
call fcn.0100390d
and dword [esi], 0
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 0x14
mov dword [ebp - 8], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100e229
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x100e232

Function at 0x100e252
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e2cc
and dword [ebp - 4], ebx
push esi
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100e2c2
cmp dword [ebp + 8], esi
jne 0x100e2c2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100e2b1
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
xor ebx, ebx
inc ebx
test eax, eax
je 0x100e2c2
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x100e2cb
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x100e518
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x100e52b
cmp word [eax], cx
jne 0x100e52d
xor eax, eax
push esi
push 1
push ecx
push eax
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push 0x20
pop eax
cmp eax, esi
sbb eax, eax
neg eax
pop esi
pop ebp
ret 0xc

Function at 0x100e565
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x100e683
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x100e676
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 8], eax
je 0x100e672
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call esi
cmp byte [ebp + 0xc], 0
je 0x100e635
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100e635
push eax
push ebx
call esi
push dword [ebp + 0xc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp + 0xc]
call edi
push 0x16
push ebx
push 0x317
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 0xcc0020
push 0
push 0
push ebx
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 8]
call edi
push ebx
call edi
pop edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
pop esi
leave
ret 0xc
Function at 0x100e779
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push 4
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x100e7d4
push edi
push 4
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x100e7d0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100e7cd
cmp dword [ebp - 0x1c], 4
jne 0x100e7cd
mov dword [ebp - 4], 1
push edi
call esi
push ebx
call esi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x10160ac
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call esi
push 1
push dword [edi + 4]
call esi
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x101864e
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1018661
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101865d
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1018682
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10186c1
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10186b7
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10186c3
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10186a7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d3a0
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4570d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x228], 0
call fcn.00424660
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x4421bc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jbe 0x40d406
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042199f
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea eax, [ebp - 0x20c]
neg ecx
push str.Intel
push eax
lea eax, [esi + 0x10]
sbb ecx, ecx
and ecx, eax
push ecx
call fcn.0040ba90
add esp, 8
push eax
call fcn.0040ba90
add esp, 8
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.0040e8d0
cmp dword [eax + 0x14], 8
jb 0x40d445
mov eax, dword [eax]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d464
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d464
mov bl, 1
jmp 0x40d466
xor bl, bl
mov eax, dword [ebp - 0x210]
cmp eax, 8
jb 0x40d484
inc eax
lea ecx, [ebp - 0x224]
push eax
push dword [ebp - 0x224]
call fcn.004056f0
test bl, bl
jne 0x40d4e6
mov ecx, esi
lea eax, [esi + 0x10]
neg ecx
push str.Logs
sbb ecx, ecx
and ecx, eax
push ecx
call fcn.0040ba90
add esp, 8
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.0040e8d0
cmp dword [eax + 0x14], 8
jb 0x40d4b7
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d4d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d4d5
mov bl, 1
jmp 0x40d4d7
xor bl, bl
lea ecx, [ebp - 0x224]
call fcn.00402810
test bl, bl
je 0x40d4f8
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042199f
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x10]
neg esi
push str.IntelCPHS.log
sbb esi, esi
and esi, eax
push esi
call fcn.0040ba90
add esp, 8
mov ecx, eax
push 0
call fcn.00406e20
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
xor ecx, ebp
pop esi
call fcn.0042199f
mov esp, ebp
pop ebp
ret
Function at 0x40d5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4570d8]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40d74e
cmp byte [ebx + 0x3e], 0
je 0x40d74e
mov eax, dword [ebx]
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x441310]
mov ecx, ebx
call esi
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x40d660
xor al, al
jmp 0x40d750
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp esi, 0x10
lea edx, [ebp - 0x28]
mov esi, dword [edi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
mov esi, dword [esi + 0x20]
lea eax, [ebx + 0x40]
push edx
push eax
mov ecx, esi
call dword [0x441310]
mov ecx, edi
call esi
sub eax, 0
je 0x40d6dd
sub eax, 1
je 0x40d6e1
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x40d734
xor bl, bl
jmp 0x40d736
mov byte [ebx + 0x3e], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x40d716
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call fcn.0042959b
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x40d6d9
cmp byte [ebx + 0x3e], 0
je 0x40d734
test edi, edi
jne 0x40d693
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.00404fd0
jmp 0x40d690
mov bl, 1
cmp esi, 0x10
jb 0x40d74a
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409d20
mov al, bl
jmp 0x40d750
mov al, 1
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.0042199f
mov esp, ebp
pop ebp
ret
Function at 0x412240
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4570d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x214], 0
push ecx
mov dword [ebp - 0x210], 0
mov edi, dword [ebx + 4]
or edi, 0x2001f
mov dword [ebp - 0x20c], 0
push edi
push 0
push eax
push dword [ebx]
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x41238f
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4122c2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
test esi, esi
jne 0x41238f
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x208], 0x100
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41235b
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00412240
mov esi, eax
test esi, esi
jne 0x41238f
lea eax, [ebp - 0x224]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x412310
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x412376
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
push dword [ebp - 0x21c]
mov ecx, ebx
mov dword [ebp - 0x210], 0
call fcn.00410f10
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4123a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042199f
mov esp, ebp
pop ebp
ret 4
Function at 0x412740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f666
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4570d8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x4127e8
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], eax
test esi, esi
jne 0x4127e8
call fcn.00410860
mov edi, eax
jmp 0x4128d3
push dword [ebp - 0x41c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x412806
call fcn.00410860
jmp 0x4128c6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x412824
call fcn.00410860
jmp 0x4128c6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x412845
mov edi, 0x8007000e
jmp 0x4128c8
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00410610
jmp 0x41286f
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x412886
mov edi, 0x8007000e
jmp 0x4128c8
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4128a6
call fcn.00410860
jmp 0x4128c6
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004125e0
mov edi, eax
test esi, esi
je 0x4128d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4128f0
lea ecx, [ebp - 0x418]
call fcn.00411030
nop dword [eax]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042199f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4132d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4132e9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4132f5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4132f0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x413330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x413345
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413350
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x413aa0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f780
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4570d8]
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]
lea ecx, [ebp - 0x104]
push 1
call fcn.00401f70
mov dword [eax + 0x60], 0x64
add eax, 0x10
push str.ClientMonitor::startMonitor___session_0x
push eax
mov dword [ebp - 4], 0
call fcn.00401240
mov edx, eax
add esp, 8
test edx, edx
jne 0x413b07
xor ecx, ecx
jmp 0x413b0e
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push edi
call fcn.0040fce0
mov esi, eax
test esi, esi
jne 0x413b30
xor ecx, ecx
jmp 0x413b37
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [ecx + 0x14], eax
mov eax, dword [esi]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.004075e0
movzx eax, ax
mov ecx, esi
push eax
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x94]
call fcn.0040c830
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x94], vtable.std::ios_base.0
call fcn.004209c4
push 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.004214b3
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x413bc3
push dword [edi + 0x70]
mov ecx, eax
push dword [edi + 0x24]
push edi
call fcn.0040f9b0
mov esi, eax
mov dword [ebp - 0x40], eax
jmp 0x413bc8
xor esi, esi
mov dword [ebp - 0x40], esi
push 0
push 4
push esi
push 0x411880
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x413c16
push 0xc
push esi
call fcn.00421d90
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ClientMonitor::startMonitor___CreateThread
lea ecx, [ebp - 0x3c]
call fcn.00408120
push 0x453ea8
lea eax, [ebp - 0x3c]
push eax
call fcn.00423c96
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x441310]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x413c71
push 0xc
push dword [ebp - 0x40]
call fcn.00421d90
mov eax, dword [edi]
add esp, 8
mov esi, dword [eax + 8]
mov ecx, esi
push edi
call dword [0x441310]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ClientMonitor::startMonitor___ResumeThread
lea ecx, [ebp - 0x4c]
call fcn.00402410
push 0x452ed0
lea eax, [ebp - 0x4c]
push eax
call fcn.00423c96
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0042199f
mov esp, ebp
pop ebp
ret 4
Function at 0x41a4b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, 0xc
push esi
mov esi, ecx
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 4], esi
mul edx
push edi
mov dword [esi + 0x10], 0
seto cl
mov dword [0x458a7c], esi
neg ecx
mov dword [esi + 8], 0
or ecx, eax
push 0x458e6e
push ecx
call fcn.00421d87
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
je 0x41a528
mov edx, ebx
test ebx, ebx
je 0x41a52a
lea ecx, [edi + 4]
nop word [eax + eax]
mov dword [ecx + 4], 0
lea ecx, [ecx + 0xc]
mov dword [ecx - 0xc], 0
sub edx, 1
jne 0x41a510
jmp 0x41a52a
xor edi, edi
mov dword [esi + 0xc], edi
test edi, edi
je 0x41a60f
lea eax, [ebx + ebx*2]
shl eax, 2
push eax
push 0
push edi
call fcn.00424660
add esp, 0xc
mov dword [esi + 8], ebx
xor edi, edi
test ebx, ebx
jle 0x41a5c4
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00426fdd
mov ecx, dword [ebp - 8]
test eax, eax
push 0
cmovne ecx, eax
mov dword [ebp - 8], ecx
call fcn.00427002
push eax
call fcn.004107c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, esi
push eax
push 0
push eax
push 0x41f730
push 0
push 0
call fcn.00429dfe
mov edx, dword [ebp - 4]
add esp, 0x24
mov ecx, dword [edx + 0xc]
mov dword [esi + ecx + 4], eax
mov eax, dword [edx + 0xc]
cmp dword [esi + eax + 4], 0
je 0x41a5e9
push dword [ebp - 8]
call fcn.00427002
push eax
call fcn.004107c0
inc edi
add esp, 8
add esi, 0xc
cmp edi, ebx
jl 0x41a552
cmp byte [0x458ab4], 0
jne 0x41a5dd
push 0x443adc
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x458ab0], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00426fdd
mov eax, dword [ebp - 4]
add esp, 4
mov byte [0x458ab4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
mov byte [0x458ab4], 1
call fcn.00410a50
int3
Function at 0x41c5b0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x4570d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
mov ebx, ecx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41c609
push 1
lea ecx, [ebx + 0x40]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41c5fa
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x41c75f
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41c6c4
cmp eax, 0x104
je 0x41c6c4
mov ecx, 0x22
mov word [ebp - 0x210], cx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x41c775
xor ecx, ecx
push 0xf003f
push ecx
push ecx
mov word [ebp + eax - 0x210], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41c6d7
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.0041b040
add esp, 0xc
test eax, eax
jne 0x41c6af
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.00429c33
push eax
call fcn.004107c0
add esp, 0x10
push 0
lea eax, [ebx + 0x40]
push eax
lea eax, [ebp - 0xa10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042199f
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x41c751
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.0041b040
add esp, 0xc
test eax, eax
jne 0x41c749
push str.Could_not_start_service
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.00429c33
push eax
call fcn.004107c0
add esp, 0x10
push 0
push edi
jmp 0x41c6b5
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042199f
mov esp, ebp
pop ebp
ret
call fcn.00421c59
int3