joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55fdf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x28
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x55fe23
xor eax, eax
jmp 0x55ffd6
mov edx, dword [ebp - 0x40]
add edx, 1
push edx
call fcn.00569df6
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov edx, dword [ebp - 0x40]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push ecx
call fcn.005d2630
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x3c]
add eax, 0x28
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x55fe7e
xor eax, eax
jmp 0x55ffd6
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00560240
test eax, eax
je 0x55ff89
mov edx, dword [ebp - 0x30]
shr edx, 0x10
and edx, 0xffff
mov eax, 2
imul ecx, eax, 0
mov eax, dword [ebp - 0x3c]
mov word [eax + ecx + 8], dx
mov ecx, dword [ebp - 0x30]
and ecx, 0xffff
mov edx, 2
shl edx, 0
mov eax, dword [ebp - 0x3c]
mov word [eax + edx + 8], cx
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x10
and ecx, 0xffff
mov edx, 2
shl edx, 1
mov eax, dword [ebp - 0x3c]
mov word [eax + edx + 8], cx
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
mov edx, 2
imul eax, edx, 3
mov edx, dword [ebp - 0x3c]
mov word [edx + eax + 8], cx
mov eax, dword [ebp - 0x28]
shr eax, 0x10
and eax, 0xffff
mov ecx, 2
imul edx, ecx, 0
mov ecx, dword [ebp - 0x3c]
mov word [ecx + edx + 0x10], ax
mov edx, dword [ebp - 0x28]
and edx, 0xffff
mov eax, 2
shl eax, 0
mov ecx, dword [ebp - 0x3c]
mov word [ecx + eax + 0x10], dx
mov edx, dword [ebp - 0x24]
shr edx, 0x10
and edx, 0xffff
mov eax, 2
shl eax, 1
mov ecx, dword [ebp - 0x3c]
mov word [ecx + eax + 0x10], dx
mov edx, dword [ebp - 0x24]
and edx, 0xffff
mov eax, 2
imul ecx, eax, 3
mov eax, dword [ebp - 0x3c]
mov word [eax + ecx + 0x10], dx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x24], edx
jmp 0x55ff8d
xor eax, eax
jmp 0x55ffd6
mov eax, dword [ebp - 0x3c]
add eax, 0x438
push eax
push 0x675318
mov ecx, dword [ebp - 0x3c]
call fcn.005602b0
mov ecx, dword [ebp - 0x3c]
add ecx, 0xc58
push ecx
push 0x675330
mov ecx, dword [ebp - 0x3c]
call fcn.005602b0
mov edx, dword [ebp - 0x3c]
add edx, 0x848
push edx
push 0x675350
mov ecx, dword [ebp - 0x3c]
call fcn.005602b0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret
Function at 0x561230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c3a3
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.00562a80
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x56128e
mov eax, 1
jmp 0x5612dc
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x228]
call fcn.0054d1b0
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0054d5a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0054d420
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret

Function at 0x561560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c429
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x818], 0
mov ax, word [0x690df4]
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.005d2630
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x400
lea eax, [ebp - 0x810]
push eax
push 0x690df4
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.0054d1b0
mov dword [ebp - 4], 0
push 0x674f9c
push 0x675530
lea ecx, [ebp - 0x814]
call fcn.00562e70
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0054d160
mov edx, dword [ebp - 0x818]
or edx, 1
mov dword [ebp - 0x818], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x814]
call fcn.0054d420
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret
Function at 0x561c20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c558
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6ab0d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0054d250
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp + 0xc]
call fcn.0054ed40
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x561d39
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.0054ed40
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x561d39
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x6744b4
mov edx, dword [ebp - 0x24]
push edx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
and eax, 0xffff
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
and edx, 0xffff
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
push edx
movzx eax, word [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
movzx edx, word [ebp - 0x1c]
push edx
push 0x675540
lea eax, [ebp - 0x28]
push eax
call fcn.0054dac0
add esp, 0x18
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0054d160
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0054d420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d420
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x561d90
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c58b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6ab0d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054d250
mov byte [ebp - 4], 1
push 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.00562ac0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x561de6
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x5c
lea ecx, [ebp + 8]
call fcn.00562ac0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x561e11
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0054d5a0
jmp 0x561e46
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 8]
call fcn.0054e340
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0054d5a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0054d420
push 0
lea ecx, [ebp - 0x14]
call fcn.0054ed40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x561e94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x561e94
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054d420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d420
mov eax, dword [ebp - 0x2c]
jmp 0x561f10
lea ecx, [ebp - 0x14]
call fcn.0054ed40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
and edx, 0x10
jne 0x561ed5
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054d420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d420
mov eax, dword [ebp - 0x34]
jmp 0x561f10
cmp dword [ebp - 0x10], 0xffffffff
jne 0x561edd
jmp 0x561eeb
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x561dec
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054d420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d420
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x562c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x10], 0
je 0x562c58
mov dword [ebp - 8], 1
jmp 0x562c5f
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
xor ecx, ecx
jne 0x562c65
cmp dword [ebp - 0x14], 0
jne 0x562c79
push 0x80004005
call fcn.0054da10
xor edx, edx
jne 0x562c49
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x562dc0
cmp dword [ebp + 8], 0
je 0x562dc0
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jbe 0x562daf
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jbe 0x562d95
cmp dword [ebp - 4], 2
jbe 0x562ce6
cmp dword [ebp - 4], 7
je 0x562d2b
jmp 0x562d95
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x562d0b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x562d26
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x562dc3
jmp 0x562dad
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x562d7b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x562d7b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
jne 0x562d7b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x562d93
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 4]
test ecx, ecx
je 0x562d93
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + eax], cx
mov eax, 0xd
jmp 0x562dc3
jmp 0x562dad
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x562dc3
jmp 0x562dc0
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x563970
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6ab0d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0054d250
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0054cfc0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x563c30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ecx + 8]
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.00565520
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x57eee0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x600], 0
je 0x57ef24
push esi
push 1
push edi
call fcn.005702e0
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.005702e0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x57ef5d
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x67a308
push 2
push eax
call fcn.005e3884
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.005e3884
add esp, 0x20
xor eax, eax
pop edi
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x6ab0d4]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, dword [ebp + eax*4 + 0x420]
push eax
push ebp
call fcn.0057f860
add esp, 8
push 0
push dword [esp + 0x128]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x57f3bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x57f38d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x57f3bf
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0056f000
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.0057ef70
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xd94], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005697c8
add esp, 0x104
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x560]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x57f918
cmp dword [ebx + ecx*4 + 0x438], 0x57f230
jne 0x57f918
cmp dword [esi], 0
je 0x57f8ac
test edi, edi
je 0x57f918
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0058e1d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x57f918
test al, 1
je 0x57f918
cmp dword [esi], 0
jne 0x57f901
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6ab104]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x57f901
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x57f918
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x57fa90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x57faad
push eax
call fcn.00578e30
add esp, 4
test eax, eax
jne 0x57facf
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x57faaa
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x57facf
xor al, al
ret
mov al, 1
ret
Function at 0x5806f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6ab0d4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x58092a
cmp byte [esi + 0x516], 0
jne 0x58092a
cmp byte [esi + 0x529], 0
jne 0x58092a
mov edi, dword [esp + 0x220]
lea eax, [esp + 0xc]
mov ebx, dword [esi]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5807a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0056f000
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0057ef70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005697c8
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.005d2630
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x580815
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0056f000
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0057ef70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005697c8
add esp, 0x20c
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.0057f920
add esp, 0x10
test al, al
jne 0x580886
call fcn.005e060c
mov esi, eax
call fcn.005e060c
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0056f000
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0057ef70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005697c8
add esp, 0x20c
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.0057f920
add esp, 0x10
test al, al
jne 0x58092a
call fcn.005e060c
mov esi, eax
call fcn.005e060c
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0056f000
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0057ef70
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005697c8
add esp, 0x20c
ret
push esi
call fcn.00580330
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005697c8
add esp, 0x20c
ret
Function at 0x5817a0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x5817ba
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x67a77c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x67a78c
push esi
call fcn.005ea79a
add esp, 8
test eax, eax
je 0x581802
test ebp, ebp
je 0x5817f3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x581828
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x581828
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x5818f7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x581845
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x6ab104]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5818ed
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5818ed
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x581886
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5818a1
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x5818b5
test ebp, ebp
je 0x5818e4
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6ab108]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x6ab108]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x586fc0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x568], 2
jne 0x586fd6
mov dword [esp + 4], eax
jmp fcn.00586f70
mov al, 1
ret

Function at 0x5879b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x5879c6
mov dword [esp + 4], eax
jmp fcn.005ab3d0
mov dword [esp + 4], eax
jmp fcn.00574f30