joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042950
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.10064ac0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.CopyFile___s___s__n
call fcn.100387a0
add esp, 0xc
push 0x10090844
mov edx, dword [ebp + 8]
push edx
call fcn.1005c29c
add esp, 8
mov dword [ebp - 0x10008], eax
cmp dword [ebp - 0x10008], 0
jne 0x100429a1
jmp 0x10042a48
push 0x10090848
mov eax, dword [ebp + 0xc]
push eax
call fcn.1005c29c
add esp, 8
mov dword [ebp - 0x1000c], eax
cmp dword [ebp - 0x1000c], 0
jne 0x100429d2
mov ecx, dword [ebp - 0x10008]
push ecx
call fcn.1005bae0
add esp, 4
jmp 0x10042a48
mov edx, 1
test edx, edx
je 0x10042a2a
mov eax, dword [ebp - 0x10008]
push eax
push 0x10000
push 1
lea ecx, [ebp - 0x10004]
push ecx
call fcn.1005b9c8
add esp, 0x10
mov dword [ebp - 0x10010], eax
cmp dword [ebp - 0x10010], 0
jne 0x10042a09
jmp 0x10042a2a
mov edx, dword [ebp - 0x1000c]
push edx
mov eax, dword [ebp - 0x10010]
push eax
push 1
lea ecx, [ebp - 0x10004]
push ecx
call fcn.1005c51c
add esp, 0x10
jmp 0x100429d2
mov edx, dword [ebp - 0x10008]
push edx
call fcn.1005bae0
add esp, 4
mov eax, dword [ebp - 0x1000c]
push eax
call fcn.1005bae0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret

Function at 0x10042df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push str.SV_WriteLevelFile___n
call fcn.100387a0
add esp, 4
push 0x100c3594
call fcn.1003c530
push eax
push 0x10090910
push 0x80
lea eax, [ebp - 0x84]
push eax
call fcn.10031f90
add esp, 0x14
push 0x10090928
lea ecx, [ebp - 0x84]
push ecx
call fcn.1005c29c
add esp, 8
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x10042e6d
lea edx, [ebp - 0x84]
push edx
push 0x1009092c
call fcn.10038500
add esp, 8
jmp 0x10042edf
mov eax, dword [ebp - 0x88]
push eax
push 1
push 0x20800
push 0x100c39d4
call fcn.1005c51c
add esp, 0x10
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.10038370
add esp, 4
mov edx, dword [ebp - 0x88]
push edx
call fcn.1005bae0
add esp, 4
push 0x100c3594
call fcn.1003c530
push eax
push 0x10090940
push 0x80
lea eax, [ebp - 0x84]
push eax
call fcn.10031f90
add esp, 0x14
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [0x100f976c]
mov eax, dword [edx + 0x18]
call eax
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x10043490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push str.SV_ReadServerFile___n
call fcn.100387a0
add esp, 4
call fcn.1003c530
push eax
push str._s_save_current_server.ssv
push 0x80
lea eax, [ebp - 0x84]
push eax
call fcn.10031f90
add esp, 0x10
push 0x10090a98
lea ecx, [ebp - 0x84]
push ecx
call fcn.1005c29c
add esp, 8
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
jne 0x1004350b
lea edx, [ebp - 0x84]
push edx
push str.Couldnt_read__s_n
call fcn.10038500
add esp, 8
jmp 0x10043664
mov eax, dword [ebp - 0x1ac]
push eax
push 0x20
lea ecx, [ebp - 0xa4]
push ecx
call fcn.1003bee0
add esp, 0xc
mov edx, dword [ebp - 0x1ac]
push edx
push 0x80
lea eax, [ebp - 0x1a4]
push eax
call fcn.1003bee0
add esp, 0xc
mov ecx, 1
test ecx, ecx
je 0x100435b8
mov edx, dword [ebp - 0x1ac]
push edx
push 0x80
push 1
lea eax, [ebp - 0x84]
push eax
call fcn.1005b9c8
add esp, 0x10
test eax, eax
jne 0x1004356a
jmp 0x100435b8
mov ecx, dword [ebp - 0x1ac]
push ecx
push 0x80
lea edx, [ebp - 0x124]
push edx
call fcn.1003bee0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x84]
push ecx
push str.Set__s___s_n
call fcn.100387a0
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.1003b3b0
add esp, 8
jmp 0x1004353e
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.1005bae0
add esp, 4
call fcn.10047220
lea edx, [ebp - 0x1a4]
mov dword [ebp - 0x1b4], edx
mov dword [ebp - 0x1b0], 0x100bbf48
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b4]
mov dl, byte [ecx]
mov byte [ebp - 0x1a5], dl
mov eax, dword [ebp - 0x1b0]
mov cl, byte [ebp - 0x1a5]
mov byte [eax], cl
mov edx, dword [ebp - 0x1b4]
add edx, 1
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b0]
add eax, 1
mov dword [ebp - 0x1b0], eax
cmp byte [ebp - 0x1a5], 0
jne 0x100435ee
call fcn.1003c530
push eax
push str._s_save_current_game.ssv
push 0x80
lea ecx, [ebp - 0x84]
push ecx
call fcn.10031f90
add esp, 0x10
lea edx, [ebp - 0x84]
push edx
mov eax, dword [0x100f976c]
mov ecx, dword [eax + 0x14]
call ecx
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x10045d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x807c
call fcn.10064ac0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100c2fe0], 0
jne 0x10045db5
jmp 0x10045f8c
push 0x54
push 0
lea eax, [ebp - 0x8058]
push eax
call fcn.10060570
add esp, 0xc
push 0x8000
lea ecx, [ebp - 0x8004]
push ecx
lea edx, [ebp - 0x807c]
push edx
call fcn.10039e40
add esp, 0xc
push 0x14
lea eax, [ebp - 0x807c]
push eax
call fcn.100389b0
add esp, 8
mov ecx, dword [0x100c3590]
push ecx
lea edx, [ebp - 0x807c]
push edx
call fcn.10038a30
add esp, 8
push 0x12
lea eax, [ebp - 0x807c]
push eax
call fcn.100389b0
add esp, 8
mov dword [ebp - 0x8060], 1
mov ecx, dword [0x100f976c]
mov edx, dword [ecx + 0x44]
imul edx, dword [ebp - 0x8060]
mov eax, dword [0x100f976c]
add edx, dword [eax + 0x40]
mov dword [ebp - 0x805c], edx
mov ecx, dword [0x100f976c]
mov edx, dword [ebp - 0x8060]
cmp edx, dword [ecx + 0x48]
jge 0x10045f03
mov eax, dword [ebp - 0x805c]
cmp dword [eax + 0x58], 0
je 0x10045ed1
mov ecx, dword [ebp - 0x805c]
cmp dword [ecx], 0
je 0x10045ed1
mov edx, dword [ebp - 0x805c]
cmp dword [edx + 0x28], 0
jne 0x10045e9f
mov eax, dword [ebp - 0x805c]
cmp dword [eax + 0x40], 0
jne 0x10045e9f
mov ecx, dword [ebp - 0x805c]
cmp dword [ecx + 0x4c], 0
jne 0x10045e9f
mov edx, dword [ebp - 0x805c]
cmp dword [edx + 0x50], 0
je 0x10045ed1
mov eax, dword [ebp - 0x805c]
mov ecx, dword [eax + 0xb8]
and ecx, 1
jne 0x10045ed1
push 1
push 0
lea edx, [ebp - 0x807c]
push edx
mov eax, dword [ebp - 0x805c]
push eax
lea ecx, [ebp - 0x8058]
push ecx
call fcn.10039090
add esp, 0x14
mov edx, dword [ebp - 0x8060]
add edx, 1
mov dword [ebp - 0x8060], edx
mov eax, dword [0x100f976c]
mov ecx, dword [eax + 0x44]
imul ecx, dword [ebp - 0x8060]
mov edx, dword [0x100f976c]
add ecx, dword [edx + 0x40]
mov dword [ebp - 0x805c], ecx
jmp 0x10045e43
push 0
lea eax, [ebp - 0x807c]
push eax
call fcn.100389e0
add esp, 8
mov ecx, dword [0x100c2ff4]
push ecx
mov edx, dword [0x100c2fec]
push edx
lea eax, [ebp - 0x807c]
push eax
call fcn.10039f30
add esp, 0xc
push 0x100c2fe4
call fcn.10039e70
add esp, 4
mov ecx, dword [ebp - 0x806c]
push ecx
call fcn.10031a30
add esp, 4
mov dword [ebp - 0x8064], eax
mov edx, dword [0x100c2fe0]
push edx
push 1
push 4
lea eax, [ebp - 0x8064]
push eax
call fcn.1005c51c
add esp, 0x10
mov ecx, dword [0x100c2fe0]
push ecx
push 1
mov edx, dword [ebp - 0x806c]
push edx
mov eax, dword [ebp - 0x8074]
push eax
call fcn.1005c51c
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x1004ae50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x584], 0
cmp dword [0x100c3580], 4
jne 0x1004af5b
cmp dword [0x100f9764], 0
je 0x1004af5b
mov eax, dword [0x100bbe4c]
movss xmm0, dword [eax + 0x14]
ucomiss xmm0, dword [0x10079ffc]
lahf
test ah, 0x44
jnp 0x1004aead
mov dword [ebp - 0x584], 0
jmp 0x1004af5b
mov ecx, dword [0x100f9764]
push ecx
push 1
push 4
lea edx, [ebp - 0x584]
push edx
call fcn.1005b9c8
add esp, 0x10
mov dword [ebp - 0x588], eax
cmp dword [ebp - 0x588], 1
je 0x1004aee0
call fcn.1004ad80
jmp 0x1004b0da
mov eax, dword [ebp - 0x584]
push eax
call fcn.10031a30
add esp, 4
mov dword [ebp - 0x584], eax
cmp dword [ebp - 0x584], 0xffffffff
jne 0x1004af08
call fcn.1004ad80
jmp 0x1004b0da
cmp dword [ebp - 0x584], 0x578
jle 0x1004af23
push str.SV_SendClientMessages:_msglen___MAX_MSGLEN
push 1
call fcn.10038830
add esp, 8
mov ecx, dword [0x100f9764]
push ecx
push 1
mov edx, dword [ebp - 0x584]
push edx
lea eax, [ebp - 0x57c]
push eax
call fcn.1005b9c8
add esp, 0x10
mov dword [ebp - 0x588], eax
cmp dword [ebp - 0x588], 1
je 0x1004af5b
call fcn.1004ad80
jmp 0x1004b0da
mov dword [ebp - 0x58c], 0
mov ecx, dword [0x100bbfcc]
mov dword [ebp - 0x580], ecx
jmp 0x1004af93
mov edx, dword [ebp - 0x58c]
add edx, 1
mov dword [ebp - 0x58c], edx
mov eax, dword [ebp - 0x580]
add eax, 0x2214
mov dword [ebp - 0x580], eax
cvtsi2ss xmm0, dword [ebp - 0x58c]
mov ecx, dword [0x100bbe7c]
movss xmm1, dword [ecx + 0x14]
comiss xmm1, xmm0
jbe 0x1004b0da
mov edx, dword [ebp - 0x580]
cmp dword [edx], 0
jne 0x1004afbc
jmp 0x1004af73
mov eax, dword [ebp - 0x580]
cmp dword [eax + 0x172c], 0
je 0x1004b01f
mov ecx, dword [ebp - 0x580]
add ecx, 0x1728
push ecx
call fcn.10039e70
add esp, 4
mov edx, dword [ebp - 0x580]
add edx, 0x2b8
push edx
call fcn.10039e70
add esp, 4
mov eax, dword [ebp - 0x580]
add eax, 0x294
push eax
push str._s_overflowed_n
push 2
call fcn.1004a3b0
add esp, 0xc
mov ecx, dword [ebp - 0x580]
push ecx
call fcn.10047b40
add esp, 4
cmp dword [0x100c3580], 3
je 0x1004b03a
cmp dword [0x100c3580], 4
je 0x1004b03a
cmp dword [0x100c3580], 5
jne 0x1004b05f
lea edx, [ebp - 0x57c]
push edx
mov eax, dword [ebp - 0x584]
push eax
mov ecx, dword [ebp - 0x580]
add ecx, 0x16e0
push ecx
call fcn.1003e2e0
add esp, 0xc
jmp 0x1004b0d5
mov edx, dword [ebp - 0x580]
cmp dword [edx], 3
jne 0x1004b093
mov eax, dword [ebp - 0x580]
push eax
call fcn.1004adb0
add esp, 4
test eax, eax
je 0x1004b082
jmp 0x1004af73
mov ecx, dword [ebp - 0x580]
push ecx
call fcn.1004ac50
add esp, 4
jmp 0x1004b0d5
mov edx, dword [ebp - 0x580]
cmp dword [edx + 0x1738], 0
jne 0x1004b0bc
mov eax, dword [ebp - 0x580]
mov ecx, dword [0x100b86e4]
sub ecx, dword [eax + 0x16f0]
cmp ecx, 0x3e8
jle 0x1004b0d5
push 0
push 0
mov edx, dword [ebp - 0x580]
add edx, 0x16e0
push edx
call fcn.1003e2e0
add esp, 0xc
jmp 0x1004af73
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x1004e6f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [0x100bb474], eax
mov ecx, dword [ebp + 0xc]
mov dword [0x100bb468], ecx
push str._HFILE
call fcn.1004e640
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x1004e73e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jge 0x1004e73e
mov eax, dword [ebp - 4]
mov ecx, dword [0x100bb468]
mov edx, dword [ecx + eax*4 + 4]
push edx
call fcn.1005bf40
add esp, 4
mov dword [ebp - 8], eax
push str._HPARENT
call fcn.1004e640
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x1004e775
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jge 0x1004e775
mov ecx, dword [ebp - 4]
mov edx, dword [0x100bb468]
mov eax, dword [edx + ecx*4 + 4]
push eax
call fcn.1005bf40
add esp, 4
mov dword [ebp - 0xc], eax
push str._HCHILD
call fcn.1004e640
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x1004e7ab
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jge 0x1004e7ab
mov edx, dword [ebp - 4]
mov eax, dword [0x100bb468]
mov ecx, dword [eax + edx*4 + 4]
push ecx
call fcn.1005bf40
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x1004e7bd
cmp dword [ebp - 0xc], 0
je 0x1004e7bd
cmp dword [ebp - 0x10], 0
jne 0x1004e7cf
push str.Qhost_not_present._n
call fcn.1005c129
add esp, 4
jmp 0x1004e886
push str.Initializing_for_qhost._n
call fcn.1005c129
add esp, 4
mov edx, dword [ebp - 8]
mov dword [0x100bb46c], edx
mov eax, dword [ebp - 0xc]
mov dword [0x100bb464], eax
mov ecx, dword [ebp - 0x10]
mov dword [0x100bb460], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100bb45c], eax
cmp dword [0x100bb45c], 0
jne 0x1004e821
push str.Couldnt_create_heventDone_n
call fcn.1005c129
add esp, 4
jmp 0x1004e886
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x1004e8b0
push 0
push 0
call fcn.1005e827
add esp, 0x18
test eax, eax
jne 0x1004e859
mov eax, dword [0x100bb45c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Couldnt_create_QHOST_thread_n
call fcn.1005c129
add esp, 4
jmp 0x1004e886
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x100bb458], eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x100bb470], eax
push 0x19
push 0x50
mov ecx, dword [0x100bb458]
push ecx
call fcn.1004ecd0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x1004ea50
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1004eaf0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
mov word [ebp - 4], ax
mov cx, word [ebp + 0xc]
mov word [ebp - 2], cx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
add ecx, 1
imul edx, ecx, 0x50
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x100bb458]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004eb3f
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1004eb50
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx]
test edx, edx
je 0x1004ec4b
mov eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x1004eb85
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0xd
mov eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
push ecx
call fcn.1005d5ca
add esp, 4
mov byte [ebp - 0x1d], al
mov edx, 1
mov word [ebp - 0x18], dx
mov dword [ebp - 0x14], 1
mov eax, 1
mov word [ebp - 0x10], ax
movsx cx, byte [ebp - 0x1d]
mov word [ebp - 0xe], cx
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx]
push eax
call fcn.1004ec60
add esp, 4
mov word [ebp - 0xc], ax
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx]
mov byte [ebp - 0xa], dl
mov eax, dword [ebp - 0x1c]
movsx cx, byte [eax]
mov word [ebp - 0xa], cx
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
push eax
call fcn.1005defd
add esp, 4
test eax, eax
je 0x1004ebfb
mov dword [ebp - 0x24], 0x80
jmp 0x1004ec02
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x28]
push edx
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [0x100bb470]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x28]
push edx
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [0x100bb470]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x1004eb66
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x10051220
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100510b0
add esp, 0xc
test eax, eax
je 0x10051252
mov eax, 1
jmp 0x10051398
mov dword [ebp - 0x18], 0
jmp 0x10051264
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x10051396
cmp dword [ebp - 0x18], 0
jne 0x10051283
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x100b86f0]
mov dword [ebp - 0x20], edx
jmp 0x10051290
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x100b86e8]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x10051298
jmp 0x1005125b
mov dword [ebp - 0x28], 0x10
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10051327
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2733
jne 0x100512e1
jmp 0x1005125b
mov eax, dword [0x100fc024]
movss xmm0, dword [eax + 0x14]
ucomiss xmm0, dword [0x10079ffc]
lahf
test ah, 0x44
jnp 0x1005130d
call fcn.10051eb0
push eax
push 0x10092630
call fcn.10038500
add esp, 8
jmp 0x10051322
call fcn.10051eb0
push eax
push str.NET_GetPacket:__s
push 1
call fcn.10038830
add esp, 0xc
jmp 0x1005125b
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.10050550
add esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0xc]
jne 0x10051381
mov edx, dword [ebp + 0xc]
sub esp, 0x14
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [edx + 0x10]
mov dword [eax + 0x10], edx
call fcn.100507c0
add esp, 0x14
push eax
push str.Oversize_packet_from__s_n
call fcn.10038500
add esp, 8
jmp 0x1005125b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x10], ecx
mov eax, 1
jmp 0x10051398
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x100513b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x10051401
sub esp, 0x14
mov eax, esp
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x20]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100511a0
add esp, 0x20
jmp 0x10051583
cmp dword [ebp + 0x14], 1
jne 0x10051421
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x100b86f0]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1005141f
jmp 0x10051583
jmp 0x10051490
cmp dword [ebp + 0x14], 2
jne 0x10051441
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x100b86f0]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x1005143f
jmp 0x10051583
jmp 0x10051490
cmp dword [ebp + 0x14], 3
jne 0x10051461
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x100b86e8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x1005145f
jmp 0x10051583
jmp 0x10051490
cmp dword [ebp + 0x14], 4
jne 0x10051481
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x100b86e8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1005147f
jmp 0x10051583
jmp 0x10051490
push str.NET_SendPacket:_bad_address_type
push 0
call fcn.10038830
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.10050440
add esp, 8
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x10051583
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2733
jne 0x100514de
jmp 0x10051583
cmp dword [ebp - 0x1c], 0x2741
jne 0x100514f8
cmp dword [ebp + 0x14], 1
je 0x100514f3
cmp dword [ebp + 0x14], 4
jne 0x100514f8
jmp 0x10051583
mov ecx, dword [0x100fc024]
movss xmm0, dword [ecx + 0x14]
ucomiss xmm0, dword [0x10079ffc]
lahf
test ah, 0x44
jnp 0x10051525
call fcn.10051eb0
push eax
push 0x10092698
call fcn.10038500
add esp, 8
jmp 0x10051583
cmp dword [ebp - 0x1c], 0x2741
jne 0x1005156e
sub esp, 0x14
mov edx, esp
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
mov ecx, dword [ebp + 0x18]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x20]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x24]
mov dword [edx + 0x10], eax
call fcn.100507c0
add esp, 0x14
push eax
call fcn.10051eb0
push eax
push str.NET_SendPacket_Warning:__s_:__s_n
call fcn.100387a0
add esp, 0xc
jmp 0x10051583
call fcn.10051eb0
push eax
push str.NET_SendPacket_ERROR:__s_n
push 1
call fcn.10038830
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret
Function at 0x100515a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 1
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x100515ff
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x273f
je 0x100515f8
call fcn.10051eb0
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s
call fcn.10038500
add esp, 8
xor eax, eax
jmp 0x1005170d
lea eax, [ebp - 0x1c]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x10051631
call fcn.10051eb0
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.10038500
add esp, 8
xor eax, eax
jmp 0x1005170d
push 4
lea edx, [ebp - 0x20]
push edx
push 0x20
push 0xffff
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10051667
call fcn.10051eb0
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.10038500
add esp, 8
xor eax, eax
jmp 0x1005170d
cmp dword [ebp + 8], 0
je 0x10051695
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
test ecx, ecx
je 0x10051695
push 0x1009277c
mov edx, dword [ebp + 8]
push edx
call fcn.1005df8e
add esp, 8
test eax, eax
jne 0x1005169e
mov dword [ebp - 0x10], 0
jmp 0x100516ae
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10050900
add esp, 8
cmp dword [ebp + 0xc], 0xffffffff
jne 0x100516bc
xor edx, edx
mov word [ebp - 0x12], dx
jmp 0x100516cb
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
mov ecx, 2
mov word [ebp - 0x14], cx
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x1005170a
call fcn.10051eb0
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.10038500
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
jmp 0x1005170d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret