joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a61f0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x4a637c
cmp dword [esi + 0x34], ebx
mov dword [esp + 8], ebx
jle 0x4a637c
push ebp
push edi
xor edi, edi
mov eax, dword [esi + 0x18]
add eax, edi
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x18]
add eax, edi
mov byte [eax + 0x18], bl
mov eax, dword [esi + 0x18]
add eax, edi
mov byte [eax + 0x19], 1
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x148]
add eax, 0x148
sub ecx, eax
mov eax, dword [ecx - 0x66aa]
cmp eax, 2
je 0x4a624e
cmp eax, 3
jne 0x4a6278
mov ebp, dword [esi + 0x18]
add ebp, edi
call fcn.00469520
xor edx, edx
mov dx, word [ebp]
mov ecx, eax
push edx
call fcn.00468a60
cmp eax, ebx
je 0x4a6278
cmp dword [eax + 4], 2
jne 0x4a6278
mov eax, dword [esi + 0x18]
add eax, edi
mov byte [eax + 0x19], bl
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x148]
add eax, 0x148
sub ecx, eax
cmp dword [ecx - 0x66aa], 0xc
je 0x4a62bb
mov ebp, dword [esi + 0x18]
add ebp, edi
call fcn.00469520
xor edx, edx
mov dx, word [ebp]
mov ecx, eax
push edx
call fcn.00468a60
cmp eax, ebx
je 0x4a62bb
cmp dword [eax + 4], 7
jne 0x4a62bb
mov eax, dword [esi + 0x18]
add eax, edi
mov byte [eax + 0x19], bl
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x148]
add eax, 0x148
sub ecx, eax
cmp dword [ecx - 0x66aa], 0xc
jne 0x4a6363
mov ebp, dword [esi + 0x18]
add ebp, edi
call fcn.00469520
xor edx, edx
mov dx, word [ebp]
mov ecx, eax
push edx
call fcn.00468a60
cmp eax, ebx
je 0x4a6363
cmp dword [eax + 4], 7
jne 0x4a6363
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x18]
cmp word [edi + edx], 0xce
mov ecx, dword [eax + 0x16c]
lea eax, [edi + edx]
jne 0x4a6334
fld dword [eax + 0xc]
fld dword [eax + 0x10]
mov eax, dword [eax + 0x14]
fxch st(1)
mov edx, eax
fstp dword [ecx + 0x9c]
mov dword [esp + 0x1c], eax
mov dword [ecx + 0xa4], edx
fstp dword [ecx + 0xa0]
mov eax, dword [esi + 0x18]
add eax, edi
cmp word [eax], 0xcd
jne 0x4a6363
fld dword [eax + 0xc]
mov edx, dword [eax + 0x14]
fld dword [eax + 0x10]
mov eax, edx
fxch st(1)
mov dword [esp + 0x28], edx
fstp dword [ecx + 0x90]
mov dword [ecx + 0x98], eax
fstp dword [ecx + 0x94]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x34]
inc eax
add edi, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4a6215
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4a64a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
call fcn.004a63f0
mov ecx, esi
pop esi
jmp fcn.004a61f0
Function at 0x4a7ba0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x527696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ecx, edi
mov dword [esi], 0x53740c
call fcn.004a5f10
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 4], eax
mov byte [esi + 0x4e], al
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov word [esi + 0x4c], ax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4a7cd0
Capabilities:
Print debug messages

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x4a7d99
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ebx, [ebx]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a7d38
mov edx, dword [esp + 0x18]
sub edx, ecx
cmp edx, dword [eax + 4]
jbe 0x4a7d8c
cmp esi, dword [edi + 4]
mov ebx, dword [esi]
je 0x4a7d2d
mov eax, dword [esi + 4]
mov dword [eax], ebx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push esi
mov dword [ecx + 4], edx
call fcn.004f503d
mov eax, dword [edi + 8]
add esp, 4
dec eax
mov dword [edi + 8], eax
push 0x53743c
mov esi, ebx
call ebp
jmp 0x4a7d8e
mov ecx, dword [esp + 0x18]
sub ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
jge 0x4a7d50
fadd dword [0x52e350]
fcomp dword [0x537438]
fnstsw ax
test ah, 0x41
jne 0x4a7d8c
cmp esi, dword [edi + 4]
mov ebx, dword [esi]
je 0x4a7d81
mov edx, dword [esi + 4]
mov dword [edx], ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push esi
mov dword [eax + 4], ecx
call fcn.004f503d
mov eax, dword [edi + 8]
add esp, 4
dec eax
mov dword [edi + 8], eax
push str.Trap_Removed_without_activation_n
mov esi, ebx
call ebp
jmp 0x4a7d8e
mov esi, dword [esi]
cmp esi, dword [edi + 4]
jne 0x4a7cf0
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 4
Function at 0x4a8040
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5276cb
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Trap_RouteAllTrap_to_ForcedEntered_n
mov ebx, ecx
call edi
mov eax, dword [ebx + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x4a80a7
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x4a80a0
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], eax
call fcn.004a7f70
push str.Trap_RESERVE_To_NOTIFY_AddForcedEnteredPlayer_n
call edi
mov esi, dword [esi]
cmp esi, dword [ebx + 4]
jne 0x4a8073
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
xor edx, edx
cmp eax, ecx
je 0x4a81c2
mov esi, dword [eax + 8]
mov edi, dword [esi + 0x20]
test edi, edi
je 0x4a80c1
inc edx
mov eax, dword [eax]
cmp eax, ecx
jne 0x4a80b6
test edx, edx
jle 0x4a81c2
push ebp
push edx
push 0x14
call fcn.004c19a0
mov edi, eax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
add esp, 8
xor ebp, ebp
cmp esi, eax
mov dword [esp + 0x10], edi
je 0x4a8146
lea esp, [esp]
mov edi, dword [esi + 8]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4a8112
mov eax, dword [esp + 0x10]
push ebp
push eax
call fcn.004c19e0
push edi
push eax
inc ebp
call fcn.0045cbe0
add esp, 0x10
jmp 0x4a813b
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov ecx, edi
mov dword [esp + 0x20], edx
call fcn.004a7f70
push str.Trap_RESERVE_To_NOTIFY_AddForcedEnteredPlayer_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esi]
cmp esi, dword [ebx + 4]
jne 0x4a80f0
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
push 0x59d
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00411590
mov ecx, eax
call fcn.00425500
push 0x10
mov ebx, eax
call fcn.004f5012
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebp
mov dword [esp + 0x30], ebp
je 0x4a8194
push edi
call fcn.004c1a10
add esp, 4
push eax
push edi
mov ecx, esi
call fcn.0042b460
jmp 0x4a8196
xor eax, eax
push eax
mov ecx, ebx
mov dword [esp + 0x34], 0xffffffff
call fcn.0041f330
push edi
call fcn.004c19d0
mov edx, dword [esp + 0x3c]
add esp, 4
push ebx
push edx
call fcn.00411590
mov ecx, eax
call fcn.004141d0
pop ebp
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4a82c0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x52770b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
push str.Notify_Trap_activation_to_ForcedEnteredPlayer_n
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x30]
xor esi, esi
cmp edi, esi
je 0x4a841c
cmp dword [edi + 0x20], esi
je 0x4a841c
cmp dword [ebx + 0xc], esi
je 0x4a841c
mov eax, dword [edi + 0x28]
cmp eax, esi
je 0x4a841c
push ebp
mov ebp, dword [edi + 0x2c]
sub ebp, eax
sar ebp, 3
cmp ebp, esi
jle 0x4a841b
push 1
push 0x14
call fcn.004c19a0
mov ebx, eax
push esi
push ebx
mov dword [esp + 0x24], ebx
call fcn.004c19e0
push edi
push eax
call fcn.0045cbe0
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
push 0x59d
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00411590
mov ecx, eax
call fcn.00425500
push 0x10
mov dword [esp + 0x38], eax
call fcn.004f5012
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
xor eax, eax
cmp esi, eax
mov dword [esp + 0x2c], eax
je 0x4a8396
push ebx
call fcn.004c1a10
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.0042b460
mov ecx, dword [esp + 0x34]
push eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0041f330
xor esi, esi
xor ebx, ebx
cmp ebp, esi
jle 0x4a83e7
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x10]
lea eax, [ecx + ebx*8]
mov ecx, dword [edx + 0xc]
push eax
call fcn.00466cd0
mov esi, eax
test esi, esi
je 0x4a83e0
mov ecx, dword [esp + 0x34]
call fcn.0041f3c0
push eax
push esi
call fcn.00411590
mov ecx, eax
call fcn.004141d0
inc ebx
cmp ebx, ebp
jl 0x4a83b0
xor esi, esi
mov ecx, dword [esp + 0x34]
cmp ecx, esi
je 0x4a83f5
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c19d0
mov eax, dword [edi + 0x28]
add esp, 4
cmp eax, esi
je 0x4a8412
push eax
call fcn.004f503d
add esp, 4
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], esi
pop ebp
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4b7290
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x52806b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ecx, edi
call fcn.004b5560
mov dword [edi + 4], eax
mov ecx, 1
mov byte [eax + 0x11], cl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], 0x3f800000
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4b84e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5281d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4b9f00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5282c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0xc], esi
call fcn.0048aa20
mov dword [edi + 4], eax
mov byte [eax + 0x19], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x38]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0040519c
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x34], 0x52ded4
mov byte [esi + 0x44], bl
lea edi, [esi + 0x48]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.004b97e0
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4baa10
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x566450]
push esi
xor esi, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push edi
mov dword [esp + 8], esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x20]
push edi
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4baa96
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4baa73
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
call fcn.004da561
add esp, 0x14
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 8]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
pop esi
call fcn.004da561
add esp, 0x14
ret

Function at 0x4bac10
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x566450]
push ebx
push esi
push 0
push 2
push 2
mov dword [esp + 0x28], eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bac46
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004da561
add esp, 0x18
ret 8
mov al, byte [esp + 0x28]
test al, al
push edi
je 0x4bac94
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x30]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x40], 1
call edi
cmp eax, 0xffffffff
je 0x4bacd1
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x20], 0x10000
call edi
cmp eax, 0xffffffff
je 0x4bacd1
push 0
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4bace5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.004da561
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], esi
add ebx, 8
mov dword [ebx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
pop edi
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x1c]
pop esi
mov al, 1
pop ebx
call fcn.004da561
add esp, 0x18
ret 8
Function at 0x4bad20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x566450]
mov dword [esp + 0x190], eax
mov al, byte [esp + 0x198]
cmp al, 1
push esi
mov esi, ecx
mov byte [esi], al
jne 0x4bad56
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4bad71
mov ecx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x1a0]
push ecx
push edx
mov ecx, esi
call fcn.004bac10
test al, al
jne 0x4bad89
xor al, al
pop esi
mov ecx, dword [esp + 0x190]
call fcn.004da561
add esp, 0x194
ret 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0xe8]
push eax
call edi
mov dword [esi + 0x24], esi
add esi, 0x18
lea ecx, [esi + 0x34]
push ecx
call edi
lea edx, [esi + 0x64]
push edx
call edi
lea eax, [esi + 0xac]
push eax
call edi
mov ecx, esi
call fcn.004c3a80
mov ecx, dword [esp + 0x198]
pop edi
mov al, 1
pop esi
call fcn.004da561
add esp, 0x194
ret 0xc

Function at 0x4bb080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52836b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x38]
mov ecx, edi
mov dword [esp + 8], esi
call fcn.00422640
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [esi], eax
mov byte [esi + 4], al
mov dword [esi + 8], eax
xor ecx, ecx
lea edx, [esi + 0xc]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [esp + 0x14], eax
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], al
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x28]
push eax
call fcn.004c39d0
lea ecx, [esi + 0x30]
push ecx
call fcn.004c39d0
mov ecx, dword [esp + 0x14]
add esp, 8
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4bb800
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x566450]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x24], eax
push edi
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
jbe 0x4bb87b
mov eax, dword [esi + 0x2c]
mov edi, dword [eax]
mov ebx, dword [esi + 0x20]
mov eax, dword [ebx + 4]
lea ecx, [esi + 0x1c]
lea edx, [edi + 8]
push edx
push eax
push ebx
call fcn.004928f0
push 1
lea ecx, [esi + 0x1c]
mov ebp, eax
call fcn.004bb2b0
mov dword [ebx + 4], ebp
mov ecx, dword [ebp + 4]
mov dword [ecx], ebp
cmp edi, dword [esi + 0x2c]
je 0x4bb874
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edx], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push edi
mov dword [ecx + 4], edx
call fcn.004f503d
mov eax, dword [esi + 0x30]
add esp, 4
dec eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
test eax, eax
ja 0x4bb823
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x24]
test eax, eax
jbe 0x4bb979
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
mov edi, dword [ebx + 8]
lea ecx, [esp + 0x10]
call fcn.004baa00
mov cl, byte [edi + 6]
mov byte [esp + 0x11], cl
mov ecx, dword [esi + 0xc]
mov word [esp + 0x18], 2
mov edx, dword [edi]
push 0x10
mov dword [esp + 0x20], edx
mov ax, word [edi + 4]
lea edx, [esp + 0x1c]
push edx
push 0
mov word [esp + 0x26], ax
mov eax, dword [ecx + 4]
push 2
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x4bb98c
mov ecx, dword [esi + 0x7c]
add ecx, eax
mov edx, ecx
mov dword [esi + 0x7c], ecx
mov dword [esp + 0x14], edx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov ebp, eax
sub ebp, dword [edx + ecx*8]
cmp ebp, dword [esi + 0x88]
jbe 0x4bb93f
movzx ebp, byte [esi + 0x8c]
inc ecx
cmp ecx, ebp
mov dword [esi + 0x94], ecx
jl 0x4bb92d
mov dword [esi + 0x94], 0
mov ecx, dword [esi + 0x94]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push edi
call fcn.004f503d
mov eax, dword [esi + 0x20]
add esp, 4
cmp ebx, eax
je 0x4bb96e
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
push ebx
mov dword [edx + 4], eax
call fcn.004f503d
mov eax, dword [esi + 0x24]
add esp, 4
dec eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
test eax, eax
ja 0x4bb890
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x18]
call fcn.004da561
add esp, 0x1c
ret
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
call fcn.004da561
add esp, 0x1c
ret
Function at 0x4bb9a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x58
mov eax, dword [0x566450]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x60], eax
push edi
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x60]
test eax, eax
jbe 0x4bba1b
mov eax, dword [esi + 0x5c]
mov edi, dword [eax]
mov ebx, dword [esi + 0x50]
mov eax, dword [ebx + 4]
lea ecx, [esi + 0x4c]
lea edx, [edi + 8]
push edx
push eax
push ebx
call fcn.004928f0
push 1
lea ecx, [esi + 0x4c]
mov ebp, eax
call fcn.004bb2b0
mov dword [ebx + 4], ebp
mov ecx, dword [ebp + 4]
mov dword [ecx], ebp
cmp edi, dword [esi + 0x5c]
je 0x4bba14
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edx], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push edi
mov dword [ecx + 4], edx
call fcn.004f503d
mov eax, dword [esi + 0x60]
add esp, 4
dec eax
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x60]
test eax, eax
ja 0x4bb9c3
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x54]
test eax, eax
jbe 0x4bbb31
mov eax, dword [esi + 0x50]
mov ebx, dword [eax]
mov edi, dword [ebx + 8]
mov eax, dword [esi + 0xc]
mov word [esp + 0x14], 2
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
mov dx, word [edi + 4]
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1e], dx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 4]
push 0
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4bba8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0x28]
push str._SAFEUDP_ERROR_FlushSend_____sendto___ErrCode_d__n
push edx
call fcn.004da4d8
add esp, 0xc
jmp 0x4bbae7
mov ecx, dword [esi + 0x7c]
add ecx, eax
mov eax, ecx
mov dword [esi + 0x7c], ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov ebp, eax
sub ebp, dword [edx + ecx*8]
cmp ebp, dword [esi + 0x88]
jbe 0x4bbae7
movzx ebp, byte [esi + 0x8c]
inc ecx
cmp ecx, ebp
mov dword [esi + 0x94], ecx
jl 0x4bbad5
mov dword [esi + 0x94], 0
mov ecx, dword [esi + 0x94]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x4bbaf7
push eax
call fcn.004f503d
add esp, 4
push edi
call fcn.004f503d
mov eax, dword [esi + 0x50]
add esp, 4
cmp ebx, eax
je 0x4bbb26
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
push ebx
mov dword [edx + 4], eax
call fcn.004f503d
mov eax, dword [esi + 0x54]
add esp, 4
dec eax
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
test eax, eax
ja 0x4bba30
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.004da561
add esp, 0x58
ret