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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6af362
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x73c280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00518d60
mov dword [edi], vtable.CSkyObject.0
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea esi, [edi + 0x134]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c8dfe
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x1bc], 0
xorps xmm0, xmm0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c8], 0x3f800000
mov dword [edi + 0x1cc], 0x3f800000
mov dword [edi + 0x1d0], 0x3f800000
movups xmmword [edi + 0x1d8], xmm0
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0xf
mov byte [edi + 0x1d8], 0
lea ecx, [edi + 0x1f4]
mov byte [ebp - 4], 3
call fcn.0052b9f0
mov dword [edi + 0x174], 0
mov dword [edi + 0x170], 0
mov dword [edi + 0x16c], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x160], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x158], 0
mov dword [edi + 0x154], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x178], 0x3f800000
mov dword [edi + 0x164], 0x3f800000
mov dword [edi + 0x150], 0x3f800000
mov dword [edi + 0x13c], 0x3f800000
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x1b8], 0x3f800000
mov dword [edi + 0x1a4], 0x3f800000
mov dword [edi + 0x190], 0x3f800000
mov dword [edi + 0x17c], 0x3f800000
mov byte [ebp - 4], 4
mov dword [edi + 0xf8], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xfc], 0x3f800000
mov dword [edi + 0xe8], 0x3f800000
mov dword [edi + 0xd4], 0x3f800000
mov dword [edi + 0xc0], 0x3f800000
mov ecx, dword [0x74ac88]
call fcn.005068b0
mov dword [edi + 0x130], eax
mov eax, edi
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov word [edi + 0x1f0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x686d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x686d3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x686d3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4095c9
Capabilities:
Read file on windows

Disassembly:
push 0x54
mov eax, 0x416a1f
call fcn.00414056
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x50], ecx
jb 0x4095e5
mov eax, dword [ebx]
jmp 0x4095e7
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.msvcr100.dll__stat64i32]
pop ecx
pop ecx
test eax, eax
je 0x409602
xor al, al
call fcn.004140a0
ret 4
cmp dword [ebx + 0x14], 0x10
jb 0x40960c
mov eax, dword [ebx]
jmp 0x40960e
mov eax, ebx
push 0x4198fc
push eax
call dword [sym.imp.msvcr100.dll_fopen]
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
cmp eax, esi
je 0x4095f8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.00415407
mov edi, dword [ebp - 0x60]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x48], esi
jbe 0x409674
mov eax, dword [ebp - 0x5c]
sub eax, edi
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
sub eax, esi
push eax
lea eax, [edi + esi]
push 1
push eax
call dword [sym.imp.msvcr100.dll_fread]
add esp, 0x10
test eax, eax
je 0x409696
add esi, eax
cmp esi, dword [ebp - 0x48]
jb 0x409651
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_fclose]
pop ecx
mov byte [edi + esi], 0
mov eax, edi
mov ecx, dword [ebp - 0x50]
push eax
push ebx
call fcn.0040930e
test eax, eax
jne 0x409684
mov bl, 1
jmp 0x4096d4
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_ferror]
pop ecx
test eax, eax
je 0x409674
cmp dword [ebx + 0x14], 0x10
jb 0x4096ac
mov ebx, dword [ebx]
call dword [sym.imp.msvcr100.dll__errno]
push dword [eax]
call dword [sym.imp.msvcr100.dll_strerror]
push eax
push ebx
push str.Failed_to_read_file__s:__s_n
call fcn.004115c7
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_fclose]
add esp, 0x14
xor bl, bl
lea ecx, [ebp - 0x60]
call fcn.00409d10
mov al, bl
jmp 0x4095fa

Function at 0x40a8ce
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.msvcr100.dll_memset
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x40a96e
cmp eax, edi
ja 0x40a96e
push esi
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call sub.msvcr100.dll_memset
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push 0x4199fc
lea eax, [ebp + 0x88]
push esi
push eax
call dword [sym.imp.msvcr100.dll__snprintf]
add esp, 0x20
cmp eax, ebx
jle 0x40a96e
mov byte [ebp + eax + 0x88], bl
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
jmp 0x40a970
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413fde
add ebp, 0x190
leave
ret
Function at 0x40b6e8
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x416c04
call fcn.00413fed
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00415407
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x40b720
mov eax, dword [ebx]
jmp 0x40b722
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x20]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
cmp eax, edi
je 0x40b7a0
cmp eax, esi
jae 0x40b7a0
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.00415407
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x30]
mov byte [ebp - 4], 1
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_GetLongPathNameA]
cmp eax, edi
je 0x40b77f
cmp eax, esi
jae 0x40b77f
push dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
call fcn.00404c84
lea ecx, [ebp - 0x30]
call fcn.00409d10
jmp 0x40b7ca
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x40b79b
push eax
push dword [ebp - 0x20]
push str.Unable_to_get_long_path_name_for___s_:_GetLongPathName_failed__error__d__n
call fcn.0041130e
add esp, 0xc
push dword [ebp - 0x20]
jmp 0x40b76d
cmp dword [ebx + 0x14], 0x10
jb 0x40b7aa
mov esi, dword [ebx]
jmp 0x40b7ac
mov esi, ebx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push 0x41a818
call fcn.0041130e
mov ecx, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.004080ea
lea ecx, [ebp - 0x20]
call fcn.00409d10
mov eax, dword [ebp + 8]
call fcn.0041408c
ret
Function at 0x40bafa
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
mov eax, 0x416ca2
call fcn.00414056
lea eax, [ebp - 0x24]
push eax
xor ebx, ebx
push ebx
push 8
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40bb4c
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40bbf7
lea eax, [ebp - 0x24]
push eax
push 8
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40bbf7
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 0x400
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00415407
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov byte [ebp - 4], 1
jmp 0x40bb9d
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [ebp - 0x38]
cmp eax, 0x7a
jne 0x40bbe6
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00401fa0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00415407
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
push ecx
sub eax, esi
push eax
push esi
push 2
push dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
call edi
test eax, eax
je 0x40bb77
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40bbff
lea ecx, [ebp - 0x38]
call fcn.00409d10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b269
xor al, al
call fcn.004140a0
ret
xor edi, edi
mov byte [ebp - 0x19], bl
cmp dword [esi], ebx
jbe 0x40bc28
lea ebx, [esi + 4]
push dword [ebp - 0x3c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40bc24
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x40bc0b
jmp 0x40bc28
mov byte [ebp - 0x19], 1
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebp - 0x38]
call fcn.00409d10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b269
mov al, byte [ebp - 0x19]
jmp 0x40bbf9
Function at 0x40f43b
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
imul edi, edi, 0x3e8
mov al, byte [0x4252d0]
test al, al
je 0x40f464
call fcn.00415407
push edi
push dword [0x4252d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x424e14]
cmp ecx, eax
sbb esi, esi
shr eax, 0x14
push eax
mov eax, dword [ebp - 0x1c]
shr ecx, 0x14
push ecx
shr eax, 0x14
push eax
push str.Memory_status:_total___u_available___u_limit___u_n
push 4
call fcn.00411620
add esp, 0x14
neg esi
je 0x40f4b9
push str.Low_memory_condition___skipping_refresh_operation_n
push 3
call fcn.00411620
pop ecx
pop ecx
jmp 0x40f456
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413fde
leave
ret

Function at 0x40f5dc
Capabilities:
Get memory capacity

Disassembly:
cmp dword [0x425220], 0
jne 0x40f5f8
cmp dword [0x425218], 0
jne 0x40f5f3
jmp fcn.0040f43b
jmp fcn.0040f371
jmp fcn.0040f4c7

Function at 0x40fdb2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x1bc
mov eax, 0x417336
call fcn.00414056
mov eax, dword [ebp + 8]
push 0x5c
push eax
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040a42d
push 0x41cb30
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00415407
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00403933
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40fe08
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c0]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x1c4], eax
cmp eax, 0xffffffff
je 0x40fed6
cmp byte [ebp + 0xc], bl
je 0x40feaf
test byte [ebp - 0x1c0], 0x10
je 0x40feaf
push 2
mov edi, 0x41cb34
lea esi, [ebp - 0x194]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40feaf
push 3
mov edi, 0x41cb38
lea esi, [ebp - 0x194]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40feaf
push 0x5c
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x80]
push eax
call fcn.0040a42d
lea ecx, [ebp - 0x194]
push ecx
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.00415407
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.0040fdb2
add esp, 0x20
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00403933
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00403933
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c4]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x40fe25
push dword [ebp - 0x1c4]
call dword [sym.imp.kernel32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403933
call fcn.004140a0
ret
Function at 0x412d04
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x424eb0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
je 0x412d38
push eax
push str.Unable_to_initialize_socket_library__error__d_n
call fcn.004115c7
pop ecx
pop ecx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00413fde
add esp, 0x194
ret

Function at 0x412f61
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0x28
mov eax, 0x417882
call fcn.00414056
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x34], esi
mov dword [esi], vtable.Socket.0
call fcn.00415407
and dword [ebp - 4], 0
push 6
push 1
push 2
mov byte [esi + 0x14], 0
call dword [sym.imp.ws2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x412fcf
and dword [ebp - 0x20], 0
push 0xf
pop eax
push eax
push str.socket___failed
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x30], 0
call fcn.00404698
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
push 0x421b08
lea eax, [ebp - 0x30]
push eax
call sub.msvcr100.dll__CxxThrowException
mov dword [esi + 8], accept
mov eax, esi
call fcn.004140a0
ret

Function at 0x413a0e
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x41399d
push 0
push 0
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x413a54
call dword [sym.imp.msvcr100.dll__errno]
push dword [eax]
call dword [sym.imp.msvcr100.dll_strerror]
push eax
push str.Unable_to_start_thread:__s_n
call fcn.0041130e
add esp, 0xc
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x413fde
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424eb0]
jne 0x413fe8
repz ret
jmp fcn.00414667
Function at 0x415407
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x415416
pop dword [ebp - 0xc]
mov eax, 0x415416
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x9f2f5d82
add dword [ebp - 0x1c], 0xaf22e7c9
mov dword [ebp - 0x18], 0xc94ccb78
sub dword [ebp - 0x18], 0x97197f33
mov dword [ebp - 0x14], 0x4044284e
sub dword [ebp - 0x14], 0xf3f7e420
mov dword [ebp - 0x10], 0xc9c83494
add dword [ebp - 0x10], 0x3637cb6c
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x5ceca9b2
add dword [ebp - 0x1c], 0x1785bfa4
mov dword [ebp - 0x18], 0x6ab28a4c
sub dword [ebp - 0x18], 0x294628d7
mov dword [ebp - 0x14], 0x5f9aa6c8
sub dword [ebp - 0x14], 0xfc2b3a5c
mov dword [ebp - 0x10], 0x4eb1727d
sub dword [ebp - 0x10], 0x4eb1727d
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3c51f
push 0
call eax
mov ecx, 0x9fa2fb1d
add ecx, 0x605d5c56
mov edx, eax
mov esi, 0x555c57a0
add esi, 0xaae63e60
add esi, dword [ebp - 0xc]
mov ebx, 0x4444aaa4
add dword [ebp - 8], 0x57d5227b
mov edi, dword [esi]
sub dword [ebp - 4], 0x390fe297
sub edi, ebx
mov dword [ebp - 4], 0x3cb6772e
mov dword [edx], edi
xor dword [ebp - 4], esi
add edx, 0xf0ec7388
add edx, 0xf138c7c
add esi, 4
loop 0x415523
add eax, 0xd8011279
sub eax, 0xd7ffc1da
mov ebx, eax
add eax, 5
mov ecx, 0x8e7b838c
add ecx, 0x71c47c74
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x7d72f1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7cf410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
jne 0x7d7314
push ebx
call dword [0x7e801c]
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0xc], 0x646f632e
mov dword [ebp - 8], 0x65
movzx edi, word [esi + 0x14]
push dword [esi + 0x88]
add edi, 0x18
push esi
add edi, esi
call fcn.007d0824
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x7d73bd
movzx edx, word [esi + 6]
xor ecx, ecx
test edx, edx
jle 0x7d736a
lea eax, [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x7d7362
lea eax, [ebp - 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 4]
je 0x7d736a
add edi, 0x28
inc ecx
cmp ecx, edx
jl 0x7d734e
cmp ecx, edx
je 0x7d73bd
mov ecx, dword [esi + 0x34]
add ecx, dword [edi + 0xc]
mov edi, 0x7d0e30
xor edx, edx
mov eax, dword [ecx + edx*4]
cmp eax, dword [edi + edx*4]
jne 0x7d73bd
inc edx
cmp edx, 4
jne 0x7d737b
xor edx, edx
mov eax, dword [ecx + edx*4 + 0x140]
cmp eax, dword [edi + edx*4]
jne 0x7d73bd
inc edx
cmp edx, 4
jne 0x7d738b
cmp dword [ecx + 0x124], 0
je 0x7d73ad
push 0x7d767c
jmp 0x7d73b2
push 0x7d7661
push esi
push ebx
push ecx
call fcn.007d73ce
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007d8d46
mov esp, ebp
pop ebp
ret
Function at 0x8b4360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
xor ebp, ebp
push edi
test ebx, ebx
je 0x8b43c6
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, ebx
mov dword [esp + 0x14], eax
mov edi, dword [eax + 0x78]
add edi, ebx
cmp dword [edi + 0x18], esi
jbe 0x8b43c6
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x20]
lea eax, [eax + esi*4]
mov ecx, dword [eax + ebx]
add ecx, ebx
test ecx, 0xffff0000
je 0x8b43b5
test edx, 0xffff0000
je 0x8b43b5
push edx
push ecx
call dword [0x100d411c]
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
inc eax
jmp 0x8b43bc
xor eax, eax
cmp ecx, edx
sete al
test eax, eax
jne 0x8b43cd
inc esi
cmp esi, dword [edi + 0x18]
jb 0x8b4387
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ebp, dword [eax + ebx]
add ebp, ebx
cmp ebp, edi
jb 0x8b43c6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x7c]
add eax, edi
cmp ebp, eax
ja 0x8b43c6
xor ecx, ecx
mov eax, ebp
cmp byte [ebp], cl
je 0x8b4409
lea esp, [esp]
lea eax, [eax + 1]
inc ecx
cmp byte [eax], 0
jne 0x8b4400
lea esi, [ecx + 1]
xor edi, edi
test esi, esi
je 0x8b441d
push esi
call fcn.008ae760
add esp, 4
mov edi, eax
push esi
push ebp
push edi
call fcn.008265f0
add esp, 0xc
mov esi, edi
cmp byte [edi], 0
je 0x8b443b
nop
cmp byte [esi], 0x2e
je 0x8b444d
inc esi
cmp byte [esi], 0
jne 0x8b4430
push edi
xor esi, esi
call fcn.008ae750
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
mov byte [esi], 0
call dword [0x100d41d4]
mov ecx, eax
lea eax, [esi + 1]
push eax
push ecx
call fcn.008b4360
add esp, 8
mov esi, eax
push edi
call fcn.008ae750
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret