joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ebc7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49ec06
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49ec06
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49ec06
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49ec06
cmp dword [ecx + 0x74], 0xe
jbe 0x49ec06
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4b2920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b294d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b294d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4b2d21
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4da968
push 0x4da960
push str.FlsAlloc
push 0x1e
call fcn.004b33b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b2d55
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4b2d5b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b2d9f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4da978
push 0x4da970
push str.FlsGetValue
push 0x20
call fcn.004b33b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b2dd6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b6330
Capabilities:
Hash data using murmur3

Disassembly:
test esp, ebp
jo 0x4b63a7
call fcn.0049e8e7
or esi, edi
rol edx, 0x16
xor edx, 0x3bb889d
and eax, 0x1211e317
and edx, 0x16872810
dec ebx
add esi, eax
mov ecx, 0x7b9eb8
shr edx, 0x12
neg eax
call fcn.00402719
dec eax
neg ebx
not eax
xchg eax, edx
not esi
and ebx, dword [0x5007ad]
invalid
xchg edx, eax
loop 0x4b6358
not ecx
test esp, esi
jo 0x4b63b2
not esi
dec edi
rol esi, 0x19
sub esi, eax
rol esi, 0x1c
mov esi, eax
mov esi, eax
add ebx, dword [0x50078c]
add dword [ebx], esp
adc eax, 0x50036f
sbb cl, byte [ebx + 0x5004ce15]
add al, ch
xlatb
cmp dh, 0xff

Function at 0x4b6370
Capabilities:
Hash data using murmur3

Disassembly:
add byte [edi - 0x81c1d3e], al
rol dword [ebp - 0x8c88f0c], 1
salc

Function at 0x4b6390
Capabilities:
Hash data using murmur3

Disassembly:
xor edx, eax
mov ecx, 0x4442d0
mov dword [0x50445d], 0x30f9ca3
test eax, eax
jb 0x4b63c7
ror edx, 1
and edx, dword [0x50036f]
xchg esi, edx
rol ebx, 0x1a
mov edx, dword [0x5004ce]
call fcn.0049e695
rol eax, 0xd
loop 0x4b6397
xor esi, eax
add eax, esi
mov edi, eax
mov dword [0x504326], esi
shl esi, 8
sub esi, eax
xor eax, 0xa8fa188
ror esi, 0x18
mov ecx, esi
add ebx, ebp
sub eax, esp
not edi
xor edi, eax
sub esi, esp
xor dword [0x504128], esi
or esi, edi
dec esi
mov edx, esi
call fcn.0049e695
neg edi
sub esi, esp
or dword [0x504250], 0x2e577c67
mov ecx, 0x4c8523
xor dword [0x50417c], 0xc459c42
inc eax
xchg esi, eax
neg eax
call fcn.00406360
shl eax, 0x19
invalid
Function at 0x4b6480
Capabilities:
Hash data using murmur3

Disassembly:
sub eax, esp
loop 0x4b640c
fdiv st(7)
shr byte [ebx], cl
enter 0xffffffffffffe081, 0x3a
add bh, dh
and dword [ecx - 0x5500543a], eax
add al, 0x33
invalid
not edx
sub ecx, eax
and eax, 0x21fe023a
add esi, 0x4aaffab
xor esi, eax
not esi
neg esi
ror edx, 0x1e
shl ebx, 0x16
xchg esi, eax
xor edx, esi
xor eax, eax
inc edx
mov eax, eax
shr eax, 0xd
mov ebx, eax
ror esi, 0xd
test eax, eax
jo 0x4b6433
invalid
push str.KERNEL32.dll
xor ebx, eax
sub esi, dword [0x5004c8]
xor dword [0x504230], edx
add dword [0x504407], ecx
call fcn.0049e695
cmp dh, 0xff
xchg esi, eax
dec eax
xor ecx, 0x108332e4
xor dword [0x504634], 0x13936e90
dec esi
call fcn.0040767c
xor dword [0x5045ec], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040169f
not edx
mov dword [0x504514], 0xa39c3e9
xor esi, eax
sub dword [0x50440b], ecx
dec esi
call fcn.0040872c
ror esi, 0x17
mov dword [0x504360], edi
call fcn.00406f99
mov dword [0x5046ea], ecx
or dword [0x504292], edx
not esi
add esi, 0x9b9f428
add edx, dword [0x504b80]
rol eax, 0x1a
rcr byte [edx], 0x87
rol byte [ecx + 0x50464605], 0
fiadd word fs:[edi + 0xe]
xchg eax, eax
ror eax, 0x1a
sub esi, 0x9b9f428
not esi
sub dword [0x50459c], esi
or dword [0x5047f8], edi
call fcn.00403527
invalid
invalid
invalid
inc esp

Function at 0x4b64f0
Capabilities:
Hash data using murmur3

Disassembly:
sub eax, esp
loop 0x4b640c
fdiv st(7)
shr byte [ebx], cl
enter 0xffffffffffffe081, 0x3a
add bh, dh
and dword [ecx - 0x5500543a], eax
add al, 0x33
invalid
not edx
sub ecx, eax
and eax, 0x21fe023a
add esi, 0x4aaffab
xor esi, eax
not esi
neg esi
ror edx, 0x1e
shl ebx, 0x16
xchg esi, eax
xor edx, esi
xor eax, eax
inc edx
mov eax, eax
shr eax, 0xd
mov ebx, eax
ror esi, 0xd
test eax, eax
jo 0x4b6433
invalid
push str.KERNEL32.dll
xor ebx, eax
sub esi, dword [0x5004c8]
xor dword [0x504230], edx
add dword [0x504407], ecx
call fcn.0049e695
cmp dh, 0xff
xchg esi, eax
dec eax
xor ecx, 0x108332e4
xor dword [0x504634], 0x13936e90
dec esi
call fcn.0040767c
xor dword [0x5045ec], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040169f
not edx
mov dword [0x504514], 0xa39c3e9
xor esi, eax
sub dword [0x50440b], ecx
dec esi
call fcn.0040872c
ror esi, 0x17
mov dword [0x504360], edi
call fcn.00406f99
mov dword [0x5046ea], ecx
or dword [0x504292], edx
not esi
add esi, 0x9b9f428
add edx, dword [0x504b80]
rol eax, 0x1a
rcr byte [edx], 0x87
rol byte [ecx + 0x50464605], 0
fiadd word fs:[edi + 0xe]
xchg eax, eax
ror eax, 0x1a
sub esi, 0x9b9f428
not esi
sub dword [0x50459c], esi
or dword [0x5047f8], edi
call fcn.00403527
invalid
invalid
invalid
inc esp

Function at 0x4b6573
Capabilities:
Hash data using murmur3

Disassembly:
add bh, dh
fdiv dword [ebx]
cmp eax, 0x50488e
Function at 0x4b65d0
Capabilities:
Hash data using murmur3

Disassembly:
push eax
add byte [eax + 0x6c], ch
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ebx], si
xor eax, 0x504c05
call fcn.0040500f
xor esi, eax
or dword [0x504656], 0x32b58920
dec esi
xor edx, dword [0x504e58]
not edi
mov dword [0x50412e], edx
xor dword [0x5044ce], ecx
xchg esi, esi
xchg esi, esi
xor dword [0x504684], ecx
xor dword [0x5045a0], edx
not edi
inc esi
and dword [0x504635], 0x2e3b17a0
xor esi, eax
call fcn.00401544
push 0x416c6175
call fcn.00405fbf
dec esi
call fcn.00404172
rol esi, 0xe
call fcn.00401ab2
sub edi, eax
xor ecx, edx
sub dword [0x5042f8], 0x881e9bc
add edi, eax
call fcn.004066b8
xor ecx, eax
xor dword [0x50468f], 0xdc4a8b2
neg esi
xor edi, dword [0x504de2]
sub esi, 0x357ddb4
xor edx, esp
xor edx, esp
add esi, 0x357ddb4
neg esi
sub dword [0x504367], 0xaed2d20
xor ecx, eax
call fcn.00408c0b
sub edi, eax
xor ecx, edx
add edi, eax
call fcn.00402719
ror esi, 0xe
call fcn.00406c2f
inc esi
call fcn.00401255
push 0x74726956
xchg ecx, eax
add esi, esp
xor esi, eax
sub esi, 0x1a3037b
call fcn.004022be
sub edx, dword [0x504b53]
add eax, 0x25e23538
Function at 0x4ba221
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4ba2be
push ebx
push esi
call fcn.004ba30f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004ba16a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ba26b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ba2bd
push edi
push eax
call fcn.004b5061
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4ba28b
call fcn.004b4716
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ba2bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004ba16a
add esp, 0x20
test eax, eax
jne 0x4ba2aa
push edi
call fcn.004b4716
jmp 0x4ba2b2
push ebx
call fcn.004b4716
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4ba2c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ba2d2
pop esi
ret
push ebx
push edi
push esi
call fcn.004ba30f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b5061
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ba2fa
push ebx
push esi
push edi
call fcn.004a0b20
add esp, 0xc
push 0
call fcn.004b4716
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ba351
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba5ba
Function at 0x5610a3
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00561253
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x5611a1
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x561144
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x561187
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x56115b
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x561176
test al, 0x40
je 0x56116d
mov ecx, dword [edi + 0x20]
jmp 0x561174
test al, 0x80
je 0x561187
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x561187
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x561113
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x402f60
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4318ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
lea edi, [esi + 0x10]
push edi
mov dword [esp + 0x2c], ebx
mov dword [esi], 0x435944
mov dword [esi + 4], ebx
call ebp
lea eax, [esi + 0x2c]
push eax
mov dword [esi + 0x28], edi
call ebp
mov dword [esi + 0x44], ebx
lea ebp, [esi + 0x48]
push ebx
mov ecx, ebp
mov byte [esp + 0x2c], 2
call fcn.00409950
push 0x10
mov byte [esp + 0x2c], 3
call fcn.0042421a
mov edi, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x402fe8
mov byte [edi], bl
mov dword [esp + 0x10], edi
mov byte [esp + 0x14], bl
push ebx
push ebp
lea ecx, [esi + 0xc0]
push edi
mov byte [esp + 0x34], 5
call fcn.0040b9d4
push edi
call fcn.00424215
add esp, 4
lea eax, [esi + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x1d1]
lea ecx, [esi + 0x1d8]
mov byte [esp + 0x28], 9
mov byte [esi + 0x1d0], bl
mov byte [edi], bl
mov dword [esi + 0x1d4], ebx
call fcn.0040be10
lea ecx, [esi + 0x200]
mov byte [esp + 0x28], 0xa
call fcn.00408df0
push 0x1c
mov byte [esp + 0x2c], 0xb
mov dword [esi + 0x214], ebx
call fcn.0042479d
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x28], 0xc
je 0x40307f
lea ecx, [esi + 0xc0]
push ecx
mov ecx, eax
call fcn.00401530
jmp 0x403081
xor eax, eax
cmp ebp, ebx
mov byte [esp + 0x28], 0xb
mov dword [esi + 0x1d4], eax
mov dword [esi + 0xbc], edi
mov dword [esi + 0x1ac], esi
je 0x40309f
lea ebx, [esi + 0x58]
mov ecx, dword [esi + 0xb8]
push ebx
push ecx
lea ecx, [esi + 0x200]
call fcn.00408f20
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x404560
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4045c9
push esi
push str._programfiles_R_controledwinvnc4.exe::Enabled:LMRC
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 4]
inc eax
push eax
push str._programfiles_R_controledwinvnc4.exe::Enabled:LMRC
push 1
push 0
push str._programfiles_R_controledwinvnc4.exe
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x4045c8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x4064e0
Capabilities:
Delete service
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431b92
push eax
mov al, byte [0x4442fc]
mov dword fs:[0], esp
sub esp, 0x230
test al, al
push ebp
push esi
push edi
je 0x40663f
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
mov dword [esp + 0x244], 0
jne 0x406550
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_open_Service_Control_Manager
lea ecx, [esp + 0x3c]
call fcn.004080dc
push 0x43cf90
lea eax, [esp + 0x38]
push eax
call fcn.0042409a
mov ebp, dword [esp + 0x24c]
push 0xf003f
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
mov byte [esp + 0x244], 1
jne 0x40659a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_locate_the_service
lea ecx, [esp + 0x3c]
call fcn.004080dc
push 0x43cf90
lea ecx, [esp + 0x38]
push ecx
call fcn.0042409a
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4065c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_remove_the_service
lea ecx, [esp + 0x3c]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 0x38]
push edx
call fcn.0042409a
lea ecx, [esp + 0xc]
call fcn.0040dfa0
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x20]
mov byte [esp + 0x248], 2
call fcn.0040dfb0
push 0
push str.SYSTEMCurrentControlSetServicesEventLogApplication
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 3
call fcn.0040e1d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 2
call fcn.0040e110
push ebp
lea ecx, [esp + 0x10]
call fcn.0040dcb0
lea ecx, [esp + 0xc]
mov byte [esp + 0x244], 1
call fcn.0040e110
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x4066b4
lea ecx, [esp + 0xc]
call fcn.0040dfa0
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x20]
mov dword [esp + 0x248], 4
call fcn.0040dfb0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 5
call fcn.0040e1d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 4
call fcn.0040e110
mov edx, dword [esp + 0x24c]
push edx
lea ecx, [esp + 0x10]
call fcn.0040dcf0
lea ecx, [esp + 0xc]
mov dword [esp + 0x244], 0xffffffff
call fcn.0040e110
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x23c
ret
Function at 0x407200
Capabilities:
Create process on windows
Create process suspended
Persist via run registry key
Start service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431cb7
push eax
mov al, byte [0x4442fc]
mov dword fs:[0], esp
sub esp, 0x48c
test al, al
push esi
push edi
je 0x40730c
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0x49c], 0
jne 0x407275
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_open_Service_Control_Manager
lea ecx, [esp + 0x8c]
call fcn.004080dc
push 0x43cf90
lea eax, [esp + 0x88]
push eax
call fcn.0042409a
mov ecx, dword [esp + 0x4a4]
push 0x10
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
mov byte [esp + 0x49c], 1
jne 0x4072c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_open_the_service
lea ecx, [esp + 0x8c]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 0x88]
push edx
call fcn.0042409a
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4072fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_start_the_service
lea ecx, [esp + 0x8c]
call fcn.004080dc
push 0x43cf90
lea eax, [esp + 0x88]
push eax
call fcn.0042409a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x40742f
mov esi, dword [esp + 0x4a4]
push esi
call fcn.00407110
add esp, 4
test eax, eax
je 0x407348
push str.rdr::Exception
push str.the_service_is_already_running
lea ecx, [esp + 0x8c]
call fcn.00401120
push 0x43cf08
lea ecx, [esp + 0x88]
push ecx
call fcn.0042409a
lea ecx, [esp + 0x10]
call fcn.0040dfa0
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x24]
mov dword [esp + 0x4a0], 2
call fcn.0040dfb0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a8], 3
call fcn.0040e1d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x49c], 2
call fcn.0040e110
push esi
lea ecx, [esp + 0x14]
call fcn.0040e420
mov esi, eax
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
push esi
push 0
mov byte [esp + 0x4c4], 4
mov dword [esp + 0x68], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407412
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.unable_to_start_service
lea ecx, [esp + 0x294]
call fcn.004080dc
push 0x43cf90
lea edx, [esp + 0x290]
push edx
call fcn.0042409a
push esi
call fcn.00424033
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x49c], 0xffffffff
call fcn.0040e110
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x494]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x498
ret
Function at 0x407da4
Capabilities:
Create thread

Disassembly:
mov eax, 0x431d76
call fcn.00425878
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4371b8
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x20
mov dword [ebp - 4], ebx
mov byte [esi + 0x38], bl
call fcn.0042479d
cmp eax, ebx
pop ecx
je 0x407de8
push edi
mov ecx, eax
call fcn.004026d0
jmp 0x407dea
xor eax, eax
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [ebp + 8], ebx
mov dword [esi + 0x30], eax
jne 0x407e07
mov dword [ebp + 8], str.Unnamed
push dword [ebp + 8]
call fcn.00405292
pop ecx
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x407cfa
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.created
push esi
mov dword [esi + 4], eax
mov dword [esi + 0x10], ebx
call fcn.00407cb7
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x407e4d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x431d76
call fcn.00425878
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x18]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4371b8
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x20
mov dword [ebp - 4], ebx
mov byte [esi + 0x38], bl
call fcn.0042479d
cmp eax, ebx
pop ecx
je 0x407e9d
push edi
mov ecx, eax
call fcn.004026d0
jmp 0x407e9f
xor eax, eax
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.Native
mov dword [esi + 0x30], eax
call fcn.00405292
mov dword [esp], str.created
push esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 3
call fcn.00407cb7
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x407ee6
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x10], 0
jne 0x407f12
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], 1
call fcn.00402700
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x408a00
Capabilities:
Find taskbar

Disassembly:
push 0xffffffffffffffff
push 0x431e81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [edi], ebx
mov dword [esp + 0x230], ebx
mov byte [edi + 4], bl
call fcn.004066e0
test al, al
jne 0x408a88
push edi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408a7f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x78
je 0x408a7f
call esi
push eax
push str.OpenProcessToken_failed
lea ecx, [esp + 0x28]
call fcn.004080dc
push 0x43cf90
lea eax, [esp + 0x24]
push eax
call fcn.0042409a
mov byte [edi + 4], 1
jmp 0x408b19
push str.WTSQueryUserToken
push str.wtsapi32.dll
lea ecx, [esp + 0x18]
call fcn.0040ce30
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x230], 1
je 0x408ab6
push edi
push 0xffffffffffffffff
call eax
mov byte [edi + 4], 1
jmp 0x408b09
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x408b09
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x408b09
push eax
push ebx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x408b09
push edi
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.0040c600
mov ecx, dword [esp + 0x228]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret