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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cedfe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x51808c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0xf
mov byte [edi + 0x30], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
lea esi, [edi + 0x60]
mov byte [ebp - 4], 3
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4c72
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 eax, edi
mov dword [edi + 0x6c], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
mov dword [edi + 0x88], 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cedfe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x51808c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0xf
mov byte [edi + 0x30], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
lea esi, [edi + 0x60]
mov byte [ebp - 4], 3
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4c72
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 eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411130
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf386
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x51808c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push edi
call fcn.00411530
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x18]
call fcn.00411530
lea eax, [edi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x30]
call fcn.00411530
lea eax, [edi + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x48]
call fcn.00411530
lea esi, [ebx + 0x60]
mov byte [ebp - 4], 3
push 0x40
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004a4c72
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
push dword [ebp + 8]
lea eax, [edi + 0x60]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00411740
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411200
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cef4d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
sub esp, 0x18
mov ecx, esp
push 5
push str.ac_ct
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0040a470
mov edi, dword [ebp + 0xc]
push edi
call fcn.00410970
lea eax, [esi + 0x18]
push eax
sub esp, 0x18
mov ecx, esp
push 7
push str.ac_type
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0040a470
push edi
call fcn.00410970
lea eax, [esi + 0x30]
push eax
sub esp, 0x18
mov ecx, esp
push 7
push str.ac_item
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0040a470
push edi
call fcn.00410970
lea eax, [esi + 0x48]
push eax
sub esp, 0x18
mov ecx, esp
push 9
push str.ac_action
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0040a470
push edi
call fcn.00410970
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [esi + 0x60]
push eax
call fcn.00410b10
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
mov ecx, esp
push 8
push str.ac_param
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0040a470
push edi
call fcn.00410970
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x411375
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41136b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411394
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov al, 1
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.004a4a5b
mov esp, ebp
pop ebp
ret 8
call fcn.004aae73
int3
Function at 0x4122e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf4bd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x51808c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov byte [ecx + 4], 1
lea ebx, [ecx + 0x3630]
call fcn.0040d5c0
mov edi, eax
lea esi, [edi + 0x3678]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 0x40]
add eax, 0x35e8
mov dword [ebp - 4], 0
cmp edx, eax
je 0x412358
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x41234c
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [edi + 0x40]
push edx
call fcn.0040a470
mov edx, dword [ebp - 0x10]
lea ecx, [edi + 0x58]
lea eax, [edx + 0x3600]
cmp ecx, eax
je 0x41237e
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x412372
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0040a470
mov edx, dword [ebp - 0x10]
lea ecx, [edi + 0x10]
lea eax, [edx + 0x3618]
cmp ecx, eax
je 0x41239e
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x412395
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0040a470
lea ecx, [edi + 0x28]
cmp ecx, ebx
je 0x4123b8
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4123af
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.0040a470
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x70]
add eax, 8
push eax
call fcn.0040ccc0
cmp byte [edi + 0x3690], 0
jne 0x41241c
push 0x503319
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push edi
push 0x40ca80
push 0
mov dword [edi + 0x3694], eax
push 0
mov byte [edi + 0xc], 0
call fcn.004ab1ed
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
jne 0x41241c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.data__start_thread_error:_u
call fcn.00440b40
add esp, 8
push esi
mov byte [edi + 0x3690], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xc0000000
push 4
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00411530
lea ecx, [esi + 0x10]
call fcn.00417d70
test eax, eax
setne al
cmp byte [esi + 0xd0], 0
mov byte [esi + 0xa8], al
jne 0x413afd
push 0x503319
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x40ca80
push 0
mov dword [esi + 0xd4], eax
push 0
mov byte [esi + 0xc], 0
call fcn.004ab1ed
add esp, 0x18
mov dword [esi + 4], eax
lea ecx, [esi + 0x48]
cmp ecx, 0x51bf80
je 0x413b27
cmp dword [0x51bf94], 0x10
mov eax, 0x51bf80
push dword [0x51bf90]
cmovae eax, dword [0x51bf80]
push eax
call fcn.0040a470
lea ecx, [esi + 0x60]
cmp ecx, 0x51a5fc
je 0x413b51
cmp dword [0x51a610], 0x10
mov eax, 0x51a5fc
push dword [0x51a60c]
cmovae eax, dword [0x51a5fc]
push eax
call fcn.0040a470
lea ecx, [esi + 0x78]
cmp ecx, 0x51a68c
je 0x413b7b
cmp dword [0x51a6a0], 0x10
mov eax, 0x51a68c
push dword [0x51a69c]
cmovae eax, dword [0x51a68c]
push eax
call fcn.0040a470
lea ecx, [esi + 0x90]
cmp ecx, 0x51a6a4
je 0x413ba8
cmp dword [0x51a6b8], 0x10
mov eax, 0x51a6a4
push dword [0x51a6b4]
cmovae eax, dword [0x51a6a4]
push eax
call fcn.0040a470
lea ecx, [esi + 0x30]
cmp ecx, edi
je 0x413bc2
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x413bb9
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.0040a470
mov al, byte [esi + 0xa8]
pop edi
mov byte [esi + 0xd0], 1
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4143c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
xor al, al
mov byte [ebp - 1], al
cmp byte [edi + 0xa8], al
je 0x414480
push esi
mov esi, dword [ebp + 8]
mov edx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4143e6
mov edx, dword [esi]
mov ecx, edx
push ebx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4143f0
push 0
lea eax, [ebp + 8]
sub ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push ecx
push edx
push dword [edi + 0x14]
call ebx
test eax, eax
je 0x41447b
push 0
lea eax, [ebp + 8]
push eax
push 2
push 0x503b14
push dword [edi + 0x14]
call ebx
test eax, eax
je 0x41447b
cmp dword [esi + 0x2c], 0x10
lea edx, [esi + 0x18]
jb 0x414431
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414436
push 0
lea eax, [ebp + 8]
sub ecx, esi
push eax
push ecx
push edx
push dword [edi + 0x14]
call ebx
test eax, eax
je 0x41447b
push 0
lea eax, [ebp + 8]
push eax
push 2
push 0x503b14
push dword [edi + 0x14]
call ebx
movzx ecx, byte [ebp - 1]
test eax, eax
pop ebx
mov edx, 1
cmovne ecx, edx
pop esi
mov al, cl
pop edi
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebp - 1]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x414870
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf7a7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x224], esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x110
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x220], 1
push eax
call fcn.004a68e0
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
jb 0x41499d
push 0x503a70
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4149e0
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414994
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push ecx
push 0
push 0x8000
push 0x4eb660
call eax
test eax, eax
jne 0x414994
mov edx, dword [ebp - 0x21c]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414970
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00414bb0
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4149e0
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4149e0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149c2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00414bb0
mov ecx, dword [esi + 0x10]
mov eax, esi
test ecx, ecx
je 0x414a04
cmp dword [esi + 0x14], 8
jb 0x4149f1
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x414a02
push 0x5c
mov ecx, esi
call fcn.00414a20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
Function at 0x416260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x416300
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4162ff
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, edi
div ecx
test edx, edx
jne 0x4162ff
mov eax, edi
mov dword [ebp - 4], edx
div ecx
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4162fe
lea edi, [esi + 0x3f4]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00415bb0
cmp byte [esi + 4], 0
mov edx, ebx
je 0x4162d2
xor eax, eax
cmp dword [esi + 0x3cc], eax
jle 0x4162d2
nop
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, dword [esi + 0x3cc]
jl 0x4162c0
push dword [esi + 0x3cc]
push dword [ebp + 8]
push edi
call fcn.004a6ab0
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
add esp, 0xc
div ecx
inc dword [ebp - 4]
add ebx, ecx
add dword [ebp + 8], ecx
cmp dword [ebp - 4], eax
jb 0x4162a2
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4182d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41832d
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4182f0
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x41832d
lea eax, [ebx + ebx]
call fcn.004a55b0
mov edi, esp
test edi, edi
je 0x41832d
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x41832f
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41835f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41835f
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret

Function at 0x4183e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x41840b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4183f4
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x41a6f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
call fcn.0041a5f0
add esp, 0x10
test eax, eax
jne 0x41a719
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jns 0x41a72e
call fcn.004b3f1b
cmp dword [eax], 9
jne 0x41a72e
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WS2_32.dll_recv]
lea eax, [esp + 0xf]
push 2
push 1
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jns 0x41a756
call fcn.004b3f1b
cmp dword [eax], 4
lea eax, [esp + 0xf]
je 0x41a738
test esi, esi
pop edi
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ac30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x41ac63
cmp eax, 0x17
jne 0x41acdf
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.004a68e0
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x41acdf
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41acb0
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.0040a470
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret
Function at 0x41e9a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, closesocket
push edi
mov edi, dword [ebp + 0xc]
cmp edi, eax
mov dword [ebp - 0xc], esi
mov ecx, dword [esi + 0x34]
cmova edi, eax
mov ebx, dword [esi + 0x38]
mov dword [ebp + 0xc], edi
cmp ecx, ebx
jae 0x41ea09
mov eax, dword [esi + 0x28]
sub ebx, ecx
add eax, ecx
cmp edi, ebx
ja 0x41e9ee
push edi
push eax
push dword [ebp + 8]
call fcn.004a6ab0
add esp, 0xc
mov eax, edi
add dword [esi + 0x34], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push eax
push dword [ebp + 8]
call fcn.004a6ab0
add esp, 0xc
add dword [esi + 0x34], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x41ea22
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esi + 4]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
cmp edi, 0x1000
jae 0x41eaa8
mov eax, dword [esi + 0x28]
mov edi, ebx
mov esi, eax
push 0
push 0x1000
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jns 0x41ea63
call fcn.004b3f1b
cmp dword [eax], 4
je 0x41ea42
test ebx, ebx
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
jle 0x41e9fe
mov eax, dword [esi + 0x28]
cmp ebx, edi
jg 0x41ea8a
push ebx
push eax
push dword [ebp + 8]
call fcn.004a6ab0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
push dword [ebp + 8]
call fcn.004a6ab0
add esp, 0xc
mov dword [esi + 0x34], edi
mov eax, edi
mov dword [esi + 0x38], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x41eac5
call fcn.004b3f1b
cmp dword [eax], 4
je 0x41eaa8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41eba0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x51808c]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41ebf3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.0041ac30
add esp, 8
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret 8
Function at 0x41eda0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d056e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x51808c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4c72
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 + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x6c], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x88], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0xf
mov byte [edi + 0x88], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0xf
mov byte [edi + 0xa0], 0
lea esi, [edi + 0xb8]
mov byte [ebp - 4], 7
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4c72
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0xc0]
mov byte [ebp - 4], 8
push 0x88
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4c72
add esp, 0xc
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 + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov byte [edi + 0xd8], 0
mov eax, edi
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov byte [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov byte [edi + 0xfc], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov byte [edi + 0x108], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x18c], 0x14
mov dword [edi + 0x190], 0
mov dword [edi + 0x1bc], 0
mov byte [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 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 0x41f050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d05a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x51808c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x34]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4c72
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 eax, edi
mov dword [edi + 0x3c], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0xf
mov byte [edi + 0x3c], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xf
mov byte [edi + 0x54], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xbc], 0
mov word [edi + 0xc0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret