joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4584a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4585bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4585bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046f632
mov esi, eax
test esi, esi
je 0x4585bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4585bd
mov ecx, esi
call fcn.00458410
cmp edi, eax
jge 0x4585bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x458543
mov dword [esp + 0x34], 1
jmp 0x45859e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4585bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00457980
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46ffd6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47000e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046e08d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046e065
jmp 0x47001a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4716cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47170d
call fcn.00477849
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47170d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471704
xor eax, eax
jmp 0x471715
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047171b
pop edi
pop esi
pop ebx
ret 4
Function at 0x477d79
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x477da7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477dc5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00477cdf
jmp 0x477dc5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477dc5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00477cdf
test edi, edi
mov eax, edi
jne 0x477daf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402370
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push edi
push ecx
push ebx
push ebp
push edx
push eax
call dword [0x58d234]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], esi
jne 0x4023f3
mov eax, dword [0x58d390]
test eax, eax
je 0x4023f3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov dword [esp + 0x28], eax
je 0x4023c5
cmp eax, 3
jne 0x4023ec
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edi
push ebx
push ebp
push edx
push eax
call fcn.00402060
mov esi, dword [esp + 0x44]
add esp, 0x18
cmp esi, 0xffffffff
jne 0x4023f3
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x4031b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4031c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x4031dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4031fe
cmp esi, eax
jae 0x4031d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4031f0
cmp esi, eax
jae 0x4031d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5326b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
call fcn.00404420
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401400
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4041e2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406890
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53146b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068e4
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, 0x58d240
call fcn.00403060
mov ecx, dword [0x58d240]
push 0x5c
push ecx
call fcn.004bb5c9
add esp, 8
test eax, eax
jne 0x406917
or eax, 0xffffffff
jmp 0x40691d
sub eax, dword [0x58d240]
inc eax
push eax
lea edx, [esp + 0xc]
push edx
mov ecx, 0x58d240
call fcn.00448cc0
push eax
mov ecx, 0x58d23c
mov dword [esp + 0x128], 0
call fcn.004038f0
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40696d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x58d23c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40e120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5326b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
mov al, byte [esp + 0x24]
mov byte [esp + 0x24], al
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push 1
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00404420
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401400
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1b6
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x417bc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5304eb
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x30]
add eax, 0xdc
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x417c02
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x417c1d
call fcn.0052a247
mov dword [esi + 0x14], 0
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x4180d0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x41813c
mov eax, dword [esi + 0x1030]
cmp eax, dword [esi + 0x102c]
jne 0x418115
mov ecx, dword [esi + 0x20]
mov eax, 0x1000
cmp ecx, eax
jge 0x4180f8
mov eax, ecx
mov ecx, dword [esi + 0x18]
push eax
lea eax, [esi + 0x2c]
mov dword [esi + 0x1030], 0
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
mov dword [esi + 0x102c], eax
mov eax, dword [esi + 0x102c]
test eax, eax
je 0x41815d
mov ecx, dword [esi + 0x1030]
mov edx, dword [esi + 0x14]
mov edx, dword [edx + 0x34]
push 0x417f90
push esi
sub eax, ecx
push eax
lea ecx, [ecx + esi + 0x2c]
push ecx
push edx
jmp 0x418153
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
push 0x417f90
push esi
push edx
mov edx, dword [esi + 0x1c]
add edx, eax
mov eax, dword [ecx + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFileEx]
test eax, eax
jne 0x418185
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x34]
cmp ecx, 0xffffffff
je 0x418176
push ecx
mov dword [eax + 0x34], 0xffffffff
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call fcn.00417bc0
push esi
call fcn.0051fe99
add esp, 4
pop esi
ret 4
Function at 0x419480
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x531aa8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push edi
mov edi, ecx
mov eax, dword [edi + 0x58]
test eax, eax
jne 0x41966d
push ebx
mov ebx, dword [esp + 0x2c]
test ebx, ebx
push ebp
push esi
je 0x419575
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
push 0x104
call fcn.0051fe94
mov ebp, eax
add esp, 4
mov dword [esp + 0x34], ebp
mov byte [ebp], 0
test esi, esi
mov dword [esp + 0x2c], 0
je 0x41953f
cmp byte [ebx], 0x5c
je 0x41953f
mov eax, dword [esi + 0xc]
add esi, 0xc
push 0x5c
push eax
call fcn.004bb5c9
add esp, 8
test eax, eax
jne 0x419502
or eax, 0xffffffff
jmp 0x419504
sub eax, dword [esi]
inc eax
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00448cc0
mov edx, dword [eax]
mov eax, ebx
lea esi, [esp + 0x34]
call fcn.004062f0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41954c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41954c
xor eax, eax
mov edx, ebx
lea esi, [esp + 0x34]
call fcn.004062f0
mov eax, ebp
lea ecx, [edi + 0x30]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419554
sub eax, esi
push eax
push ebp
call fcn.00403060
push ebp
mov dword [esp + 0x30], 0xffffffff
call fcn.0051fe99
add esp, 4
mov ebp, dword [esp + 0x38]
cmp word [ebp], 0xa
mov esi, 0x1000
je 0x4195bc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0xb
push 0
push ebp
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov esi, dword [esp + 0x1c]
cmp esi, 0x80
jge 0x4195b1
mov esi, 0x1000
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
push 0
push esi
push 0
push 0
call ebp
push 0
push esi
push esi
push 0
mov dword [edi + 0x58], eax
call ebp
push 0x58d24c
mov dword [edi + 0x5c], eax
call fcn.00403750
mov dword [edi + 0x28], 0
mov eax, dword [0x58d26c]
test eax, eax
je 0x4195f8
lea ecx, [eax + 0x24]
jmp 0x4195fa
xor ecx, ecx
lea eax, [edi + 0x24]
mov dword [eax], ecx
mov ecx, dword [0x58d270]
test ecx, ecx
je 0x419614
mov ecx, dword [0x58d26c]
mov dword [ecx + 0x28], eax
jmp 0x41961a
mov dword [0x58d270], edi
push 0x58d254
mov dword [0x58d26c], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [edi + 0x60]
test eax, eax
jne 0x419643
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x64
call esi
mov eax, dword [edi + 0x60]
test eax, eax
je 0x419638
mov edx, dword [edi + 0x90]
mov eax, dword [edx - 0xc]
test eax, eax
pop esi
pop ebp
pop ebx
je 0x41966d
mov ecx, edi
call fcn.004197c0
mov eax, dword [edi + 0x90]
push 0
push eax
push 0x4005
call fcn.0052bbee
mov ecx, dword [esp + 0x18]
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x41a3b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x532618
push eax
mov dword fs:[0], esp
lea eax, [esp + 0x10]
add ecx, 0x30
push eax
mov dword [esp + 0xc], 0
call fcn.0040f010
mov dword [esp + 8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a400
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4

Function at 0x41de00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5310a2
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.0051f9cb
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esi], 0x55d6b0
mov ecx, esi
mov dword [esi + 0x1c], 0x55d69c
call fcn.0052b47e
mov dword [esp + 0x10], 1
mov dword [esi], 0x561678
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [esp + 0x10], 2
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x10], 3
mov dword [esi + 0x80], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], 1
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xb0], eax
mov byte [esp + 0x10], 4
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xb4], eax
mov byte [esp + 0x10], 5
lea edx, [esi + 0x28]
mov dword [esi + 0xb8], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
xor eax, eax
mov edi, edx
mov dword [esi + 0xc8], 1
mov ecx, 0x16
rep stosd dword es:[edi], eax
push 0x542148
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0x7f05
mov dword [edx], 0x58
mov dword [esi + 0x38], 0x400
call fcn.00455b50
mov dword [esi + 0x3c], eax
add esp, 4
lea eax, [esi + 0xf0]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
mov ecx, dword [esp + 8]
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x41e751
Capabilities:
Delete registry value
Delete service
Persist via run registry key

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0041e930
mov eax, dword [0x58a840]
test ah, ah
mov eax, dword [esi + 0xc8]
js 0x41e7b1
test eax, eax
je 0x41e7c6
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x41e7ad
mov eax, dword [esi + 0x20]
push ebx
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x41e7a9
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
pop esi
pop ecx
ret
test eax, eax
je 0x41e7c6
lea eax, [esp + 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x41e7d5
lea ecx, [esp + 4]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x41e7ae
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret

Function at 0x41e810
Capabilities:
Persist via run registry key
Query or enumerate registry value
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x58a840]
test ah, ah
push ebx
push esi
push edi
mov esi, ecx
js 0x41e881
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x41e881
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x41e91b
mov eax, dword [esi + 0x20]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x41e877
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x7f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0xc8]
test eax, eax
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 1
je 0x41e8c1
lea eax, [esp + 0xc]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x41e8d0
lea ecx, [esp + 0xc]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x41e91b
mov esi, dword [esi + 0x20]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e910
push 5
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e930
Capabilities:
Query service status
Stop service

Disassembly:
mov eax, dword [0x58a840]
sub esp, 0x1c
test ah, ah
push ebx
push ebp
push esi
push edi
mov edi, ecx
js 0x41e9de
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x41e9de
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x41ea17
mov edi, dword [edi + 0x20]
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x41e9cf
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41e9c8
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x41e9c8
cmp dword [esp + 0x14], 1
je 0x41e9c8
push 1
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x41e9b1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [edi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call ebx
mov esi, eax
test esi, esi
je 0x41ea17
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
call ebp
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [edi + 0x20]
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x41e9f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x41ea20
Capabilities:
Create process on windows
Persist via run registry key
Query or enumerate registry value
Start service

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41ea45
push 0
push 0x10
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
ret
mov ecx, esi
call fcn.0041e930
mov ecx, esi
pop esi
jmp fcn.0041e810
Function at 0x41eb00
Capabilities:
Access the windows event log
Persist via windows service
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5318a8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x41ec2b
push str.SYSTEMCurrentControlSetServicesEventlogApplication_
lea ecx, [esp + 8]
call fcn.00403380
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x41eb52
push 6
push 0x55d584
jmp 0x41eb5a
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.00404200
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x41ebd1
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41ebd1
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ec6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov eax, dword [0x58d244]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push str.EventMessageFile
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esi + 0xa4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ec2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esi + 0x20]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x41ec3c
push 0x55d584
jmp 0x41ec3d
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x41ec6f
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 1
push 0
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8