joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487c00
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00487ff0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x62bd64], 0
jne 0x487c3d
cmp dword [0x62bd60], 0
je 0x487c3d
mov eax, dword [0x62bd60]
mov dword [0x62bd64], eax
cmp dword [0x62bd64], 0
je 0x487cba
mov ecx, dword [0x62bd64]
cmp dword [ecx + 8], 0
je 0x487cba
mov edx, dword [0x62bd64]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x487cba
mov ecx, dword [0x62bd64]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x487cba
mov eax, dword [0x62bd64]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x487c89
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x487c90
xor eax, eax
jmp 0x487dd9
mov ecx, dword [0x62bd64]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.00591a40
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x487dd9
mov edx, dword [0x62bd60]
mov dword [0x62bd64], edx
jmp 0x487cd6
mov eax, dword [0x62bd64]
mov ecx, dword [eax + 4]
mov dword [0x62bd64], ecx
cmp dword [0x62bd64], 0
je 0x487d16
cmp dword [0x62bd64], 0
je 0x487d14
mov edx, dword [0x62bd64]
cmp dword [edx + 8], 0
je 0x487d14
mov eax, dword [0x62bd64]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x487d14
mov edx, dword [0x62bd64]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x487d14
jmp 0x487c6e
jmp 0x487cc8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00487de0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x487dd7
mov eax, dword [ebp - 0x18]
mov dword [0x62bd64], eax
mov ecx, dword [0x62bd64]
mov dword [ecx], 0x52727464
mov edx, dword [0x62bd64]
mov dword [edx + 8], 0
mov eax, dword [0x62bd64]
mov ecx, dword [0x62bd60]
mov dword [eax + 4], ecx
mov edx, dword [0x62bd64]
mov dword [0x62bd60], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x62bd64]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x487da7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x487dc7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x487d9e
mov eax, dword [0x62bd64]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x487c6e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x488b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x62bd60]
mov dword [ebp - 4], eax
jmp 0x488b39
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x488b60
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x488b5e
call sub.KERNEL32.dll_GetLastError
jmp 0x488b62
jmp 0x488b30
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x489000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x62bd70], eax
je 0x489024
mov eax, 0x10dd
jmp 0x4891cc
cmp dword [0x62bd74], 0
je 0x489037
mov eax, dword [0x62bd74]
jmp 0x4891cc
cmp dword [ebp + 0xc], 0
jne 0x489047
mov eax, 0x57
jmp 0x4891cc
cmp dword [ebp + 8], 0
jne 0x489057
mov eax, 6
jmp 0x4891cc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x489080
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x62bd74], ecx
mov edx, dword [ebp + 8]
mov dword [0x62bd78], edx
mov eax, dword [ebp - 8]
jmp 0x4891cc
push 0x18
call fcn.0048336c
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4890db
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x62bd74], ecx
cmp dword [ebp - 4], 0
je 0x4890ca
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048335e
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x62bd78], ecx
mov eax, dword [ebp - 8]
jmp 0x4891cc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00488fe0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00488fe0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x48911b
cmp dword [ebp - 0xc], 0x1e
jbe 0x489137
mov dword [ebp - 8], 9
cmp dword [0x62bd68], 0
je 0x489132
jmp 0x4890a9
jmp 0x4890a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x48915e
mov dword [ebp - 8], 9
cmp dword [0x62bd68], 0
je 0x489159
jmp 0x4890a9
jmp 0x4890a0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x489189
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x4890a0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x62bd80]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x62bd80], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4891e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x62bd70], eax
je 0x4891fd
mov eax, 0x10dd
jmp 0x4892e0
mov eax, dword [0x62bd80]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48927c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x489258
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x489258
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00488080
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.0048335e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x489205
mov dword [0x62bd80], 0
call fcn.00488960
mov ecx, dword [0x62bd7c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4892ca
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048335e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x489294
mov dword [0x62bd7c], 0
mov dword [0x62bd70], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4897c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x62bd74], 0
je 0x4897d9
mov eax, dword [0x62bd74]
jmp 0x489878
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x4897ea
xor eax, eax
jmp 0x489878
push 8
call fcn.0048336c
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x489842
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x48982b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.0048335e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x62bd74], eax
mov dword [0x62bd78], 0
mov eax, dword [ebp - 8]
jmp 0x489878
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x48985a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x48980a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x62bd7c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x62bd7c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x48ade0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push 0x5e8e68
mov dword [0x62bd9c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x62bd9c], eax
test eax, eax
jne 0x48ae04
mov eax, 0x16
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x62bd84], eax
test eax, eax
jne 0x48ae2f
push dword [0x62bd9c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x17
pop esi
ret
push str.GetAdaptersAddresses
push dword [0x62bd9c]
call esi
push str.GetBestRoute2
push dword [0x62bd9c]
mov dword [0x62bd8c], eax
call esi
push str.advapi32.dll
mov dword [0x62bd90], eax
mov dword [0x62bda0], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x62bda0], eax
test eax, eax
je 0x48ae7e
push str.SystemFunction036
push eax
call esi
mov dword [0x62bd88], eax
xor eax, eax
pop esi
ret

Function at 0x48ae90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00591a40
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x48aef0
cmp dword [ebp - 0x94], 6
jb 0x48aef0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret

Function at 0x48bd00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48bd36
cmp eax, 0xea
jne 0x48bd90
mov eax, dword [ebp - 4]
test eax, eax
je 0x48bd90
inc eax
push eax
call dword [0x624134]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x48bd90
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48bd7f
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x48bd7f
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x62413c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48bda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48bde1
cmp eax, 0xea
jne 0x48be3d
mov eax, dword [ebp - 4]
test eax, eax
je 0x48be3d
inc eax
push eax
call dword [0x624134]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x48be3d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48be2c
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x48be2c
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x62413c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48c1f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], esi
push eax
push 0
push esi
mov dword [edi], 0
mov dword [ebp - 0x10c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x48c357
lea eax, [ebp - 0x114]
push eax
push 1
push 0
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48c324
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x108], eax
mov dword [edi], eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0
push dword [ebp - 0x110]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48c2ab
cmp eax, 0xea
jne 0x48c30c
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x48c30c
inc eax
push eax
call dword [0x624134]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x48c30c
lea ecx, [ebp - 0x108]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x110]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48c2fb
mov ecx, dword [ebp - 0x108]
cmp ecx, 1
je 0x48c2fb
mov eax, dword [edi]
mov esi, 1
mov byte [ecx + eax], 0
jmp 0x48c30e
push dword [edi]
call dword [0x62413c]
add esp, 4
mov dword [edi], 0
xor esi, esi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48c357
mov esi, dword [ebp - 0x118]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x100
push ecx
lea ecx, [ebp - 0x104]
mov eax, ebx
push ecx
push eax
push esi
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x48c257
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004830fa
mov esp, ebp
pop ebp
ret
Function at 0x48cd10
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x48cd39
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
Function at 0x48d060
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x91b8], 0
je 0x48d08e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x48d0d2
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x48d18b
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x48d0f4
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x48d18b
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x48d121
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x48d144
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [ebp - 0x20], xmm0
push eax
mov word [ebp - 0x20], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
jmp 0x48d17c
cmp eax, 0x17
jne 0x48d144
lea ebx, [esi + 0x60]
mov edx, 0x5e90ec
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x48d157
add ecx, 4
add edx, 4
sub esi, 4
jae 0x48d133
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov eax, 0x17
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [ebx]
mov word [ebp - 0x20], ax
push 0x1c
movups xmmword [ebp - 0x18], xmm0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x48d144
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004830fa
mov esp, ebp
pop ebp
ret
Function at 0x48d820
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
sub eax, 2
je 0x48d89a
sub eax, 0x15
je 0x48d857
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x1c
mov eax, 0x17
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], 0
test eax, eax
je 0x48d884
push eax
jmp 0x48d887
push dword [esi + 0x14]
call fcn.004905c0
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x48d8cd
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x10
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x48d8bb
push eax
jmp 0x48d8be
push dword [esi + 0x14]
call fcn.004905c0
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
push edi
test eax, eax
je 0x48d8f1
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x48d8fc
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x48d9b2
push esi
push dword [ebx]
push edi
call fcn.0048d060
add esp, 0xc
test eax, eax
jns 0x48d95f
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x48d944
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x48d97e
push dword [esi + 0x91b4]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x48d9e5
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.0048cd10
add esp, 0x10
cmp eax, 0xffffffff
jne 0x48d9c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x48d9c6
cmp eax, 0x2733
je 0x48d9c6
push edi
push esi
call fcn.0048cce0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x48da03
push dword [esi + 0x91ac]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x48da03
push edi
push esi
call fcn.0048cce0
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x48da1d
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebx + 0x1c], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004830fa
mov esp, ebp
pop ebp
ret
Function at 0x48e500
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x48e51a
cmp edx, 0xffffffff
je 0x48e6d1
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x78], 0
jle 0x48e6d0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 8], ecx
push edi
mov edi, dword [ebx + 0x74]
add edi, ecx
cmp dword [edi + 0x38], 0
je 0x48e6bb
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x48e6b8
cmp dword [edi + 0x54], 0
jne 0x48e6b8
test esi, esi
je 0x48e5b5
push esi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48e6b5
mov edx, dword [esi]
xor eax, eax
test edx, edx
je 0x48e5bd
mov ecx, dword [ebp + 0xc]
mov esi, dword [edi + 0x20]
add ecx, 4
cmp dword [ecx], esi
je 0x48e58e
inc eax
add ecx, 4
cmp eax, edx
jb 0x48e580
jmp 0x48e5bd
mov esi, dword [ebp + 0xc]
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x48e5b1
lea edx, [esi + 4]
lea edx, [edx + eax*4]
nop
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov ecx, dword [esi]
dec ecx
cmp eax, ecx
jb 0x48e5a0
dec dword [esi]
jmp 0x48e5bd
cmp eax, edx
jne 0x48e6b8
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x48e5ce
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x48e5c6
lea eax, [ecx*8]
push eax
call dword [0x624134]
mov esi, eax
add esp, 4
test esi, esi
je 0x48e664
mov ecx, dword [edi + 0x38]
xor edx, edx
test ecx, ecx
je 0x48e606
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x48e5f2
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x48e626
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x48e631
push edx
push esi
push eax
call fcn.00490fe0
add esp, 0xc
push esi
mov edi, eax
call dword [0x62413c]
add esp, 4
test edi, edi
jns 0x48e661
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x48e6b2
cmp eax, 0x2733
je 0x48e6b2
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
call fcn.0048d2f0
jmp 0x48e6af
push edi
jmp 0x48e6a6
mov eax, dword [edi + 0x38]
mov esi, dword [ebx + 0x91b8]
mov edx, dword [edi + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test esi, esi
je 0x48e696
push dword [ebx + 0x91bc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x48e6a1
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x48e641
push eax
push dword [ebp - 4]
push ebx
call fcn.0048cc50
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x58
inc eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 0x78]
jl 0x48e537
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret