joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54ef60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615f03
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x6c0924]
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 ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x6c0a2c]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0054ee50
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x54f141
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.005b1170
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x67f8bc
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x54f141
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x54f035
cmp eax, 2
jne 0x54f141
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x54f056
test cl, 1
jne 0x54f141
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x54f05c
jmp 0x54f141
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x54f141
call fcn.00403160
mov ecx, eax
test ecx, ecx
je 0x54f16c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.0054d0b0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x67f8c4
push eax
call fcn.004082f0
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.0054d640
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x54f125
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x54f0c6
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.0054f1c0
push dword [0x6c0a34]
lea eax, [ebp - 0x74]
push dword [0x6c0a30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x54f102
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x54f11e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x54f143
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x54f141
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x54f14e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0052e057
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c00
int3
Function at 0x54f2b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615f38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6c0924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x6c0a2c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0054ee50
test eax, eax
je 0x54f3d8
mov esi, dword [ebp - 0x18]
mov edi, dword [0x6c0a2c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x54f383
cmp dword [esi], 0
je 0x54f376
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x54f343
mov eax, 1
jmp 0x54f3a4
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x54f37c
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x54f3a4
cmp dword [esi + 4], 0
jne 0x54f383
mov eax, 1
jmp 0x54f3a4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x54f3ce
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x54f3b6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x54f3db
xor ebx, ebx
jmp 0x54f47f
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x54f47f
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x54f438
mov ecx, dword [ebx]
test ecx, ecx
je 0x54f49e
push ecx
push eax
call fcn.005c090e
add esp, 8
test eax, eax
je 0x54f438
mov edx, dword [edi]
test edx, edx
je 0x54f438
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54f410
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x54f443
lea eax, [edx + 0xd]
jmp 0x54f478
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54f450
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x67f8bc
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x54f48a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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
push 0x80004005
call fcn.00402c00
int3
Function at 0x550c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x550c71
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x550c3f
cmp eax, 2
jne 0x550c5b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x550c6b
test ecx, ecx
je 0x550c66
test cl, 1
jne 0x550c5b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x550c6b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x552500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61625b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x6c0924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x14]
push 0x20000
push 0
push esi
mov dword [ebp - 0x14], edi
call fcn.005b1170
add esp, 0xc
lea eax, [ebx + 0x20014]
push 0
push eax
push 0x20000
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x55265b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call fcn.00478bf0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x55263d
push 0x61
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x44], cl
lea ecx, [ebp - 0x44]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x30], 0xf
call fcn.00408d00
push 3
push 0x622424
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408d00
mov byte [ebp - 4], 1
call fcn.00478bf0
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x58
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d3b0
mov esi, eax
push str.RecvData_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.0040e670
add esp, 8
mov ecx, esi
push dword [ebp - 0x10]
call fcn.00487b80
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.0040ec90
lea ecx, [ebp - 0x2c]
call fcn.00405e70
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00405e70
mov edi, dword [ebp - 0x14]
lea esi, [ebx + 0x14]
cmp dword [ebp - 0x10], 0xe8
mov dword [ebx + 0xc], 6
jne 0x55265b
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x20014]
add eax, esi
push eax
push esi
push dword [ecx + 4]
call fcn.00459940
mov dword [edi + 0x10], 0
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 0x5526a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61629b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x6c0924]
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 ebx, ecx
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 8]
jne 0x5526e5
mov dword [ebx + 0xc], 8
jmp 0x552852
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.0052e0c5
mov esi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test esi, esi
je 0x552714
push dword [ebp - 0x18]
push 0
push esi
call fcn.005b1170
add esp, 0xc
mov byte [esi], 0
jmp 0x552719
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, ecx
mov dword [ebp - 0x14], 0
push eax
push ecx
push esi
call fcn.005b0670
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x14]
sub eax, dword [edi + 4]
add esp, 0xc
inc eax
push 0
push ecx
push eax
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x552840
mov dword [ebx + 0xc], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
call fcn.00478bf0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x552827
push 0x61
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x4c], cl
lea ecx, [ebp - 0x4c]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x38], 0xf
call fcn.00408d00
push 3
push 0x622424
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.00408d00
mov byte [ebp - 4], 1
call fcn.00478bf0
mov edi, eax
lea ecx, [ebp - 0xe4]
push 0x48
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040d3b0
mov esi, eax
push str.send_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.0040e670
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.00487b80
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.0040ec90
lea ecx, [ebp - 0x34]
call fcn.00405e70
lea ecx, [ebp - 0x4c]
call fcn.00405e70
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0xe8
jne 0x552847
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
jmp 0x552847
mov dword [ebx + 0xc], 0
push 1
push esi
call fcn.0052dbb4
add esp, 8
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.0052e057
mov esp, ebp
pop ebp
ret 4

Function at 0x554a6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x56a790
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x56a7e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x56a7da
shr eax, 8
cmp al, 2
jne 0x56a7da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x56d930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x628], 0
je 0x56d974
push esi
push 1
push edi
call fcn.00570320
push dword [edi + 0x5b4]
mov eax, dword [edi + 0x628]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00570320
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x56d9aa
push dword [edi + 0x5b0]
lea eax, [eax + eax*2]
push 1
add eax, 0x6810d8
push 2
push eax
call fcn.005c7a64
push dword [edi + 0x5b0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005c7a64
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0056e2c0
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x56de14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x56ddec
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0057f730
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0056d9b0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0xd5c], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x56e388
cmp dword [ebx + ecx*4 + 0x1bc], 0x56dce0
jne 0x56e388
cmp dword [esi], 0
je 0x56e309
test edi, edi
je 0x56e388
mov eax, dword [ebx + ecx*4 + 0x1a8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.0057caf0
add esp, 0x14
cmp eax, 0xffffffff
je 0x56e388
test al, 1
je 0x56e388
mov ecx, dword [esi]
test ecx, ecx
jne 0x56e363
mov eax, dword [ebx]
mov eax, dword [eax + 0x920]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6c0adc]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x56e381
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x56e388
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x573bb0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x573bf9
mov al, byte [esi]
push eax
call fcn.0056d750
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x573bd7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x574f90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x574fb1
cmp dword [esi + 0x8c], 0
je 0x574fb1
push 2
push 3
push esi
call fcn.0057f6b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005805c0
add esp, 4
test esi, esi
je 0x574fd4
cmp dword [esi + 0x8c], 0
je 0x574fd4
push 3
push esi
call fcn.0057f6f0
add esp, 8
pop esi
pop ebp
ret

Function at 0x575c20
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d0], 2
jne 0x575c35
pop ebp
jmp fcn.00575bd0
mov al, 1
pop ebp
ret
Function at 0x57cff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x57d010
push eax
call fcn.005765b0
add esp, 4
test eax, eax
jne 0x57d02e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x57d00c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x57d00c
mov al, 1
pop ebp
ret

Function at 0x57d7f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ce1a8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x57d841
push 3
push 2
push eax
push 6
call fcn.005a4ee0
add esp, 0x10
test al, al
je 0x57d835
mov dword [0x6ce1a8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6ce1a8], 1
jmp 0x57d846
cmp eax, 2
je 0x57d886
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x57d86d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x57d886
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x57d9a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x57d9e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0057f730
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0056da90
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0056da90
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x57db20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x57dd18
cmp byte [ebx + 0x282], 0
push esi
jne 0x57dd0e
cmp byte [ebx + 0x29e], 0
jne 0x57dd0e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x57dbbe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0057f730
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0056d9b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.005b1170
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x57dc27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0057f730
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0056d9b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0057d1f0
add esp, 0xc
test al, al
jne 0x57dc84
call fcn.005b4bb2
mov esi, dword [eax]
call fcn.005b4bb2
push esi
push ebx
mov edi, eax
call fcn.0057f730
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0056d9b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x5c], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x6c], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x7c], xmm0
mov dword [ebx + 0x84], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x88], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0057d1f0
add esp, 0xc
test al, al
jne 0x57dd0e
call fcn.005b4bb2
mov esi, dword [eax]
call fcn.005b4bb2
push esi
push ebx
mov edi, eax
call fcn.0057f730
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0056d9b0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0057d710
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x57e640
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0xac4], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x57e69d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0056da90
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
push dword [esi + 0xac8]
mov dword [ebp - 0x10], 1
call fcn.0057e880
push dword [esi + 0xacc]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0057e880
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x57e70d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0056da90
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052e057
mov esp, ebp
pop ebp
ret

Function at 0x57e860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00405840
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.005d411f