joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401664e6
Capabilities:
Print debug messages

Disassembly:
jmp 0x14041bff0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14041c016
jmp 0x14041c093
mov rcx, qword [rbp + 0x30]
call fcn.140164c31
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14041c02f
jmp 0x14041c093
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14041c04c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140161e46
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140162b16
test eax, eax
jne 0x14041c093
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1401667d9
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401e2130
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x168]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
cmp dword [rbp + 0x148], 0xffffffff
jne 0x1401e220f
mov r9d, dword [rbp + 0x140]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT_guild_id_FROM___s__WHERE_char_id_d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401e21c3
mov eax, dword [0x1404eded8]
add eax, 8
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_guild.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor eax, eax
jmp 0x1401e22ff
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401e21f9
xor r9d, r9d
lea r8, [rbp + 0x48]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x48]
call fcn.140161abd
mov dword [rbp + 0x148], eax
jmp 0x1401e2203
mov dword [rbp + 0x148], 0
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
cmp dword [rbp + 0x148], 0
jne 0x1401e221f
xor eax, eax
jmp 0x1401e22ff
mov ecx, dword [rbp + 0x148]
call fcn.140168de0
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1401e2255
mov r8d, dword [rbp + 0x148]
mov edx, dword [rbp + 0x140]
lea rcx, str.Character__ds_guild__d_not_found__n
call fcn.140164be6
xor eax, eax
jmp 0x1401e22ff
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x2ee0]
and eax, 0x8000
test eax, eax
je 0x1401e2283
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x2ee0]
btr eax, 0xf
mov rcx, qword [rbp + 8]
mov word [rcx + 0x2ee0], ax
mov dword [rbp + 0x24], 0
jmp 0x1401e2294
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 8]
movsx eax, word [rax + 8]
cmp dword [rbp + 0x24], eax
jge 0x1401e22bd
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x50
mov rcx, qword [rbp + 8]
mov edx, dword [rbp + 0x140]
cmp dword [rcx + rax + 0x5c], edx
jne 0x1401e22bb
jmp 0x1401e22bd
jmp 0x1401e228c
xor eax, eax
test eax, eax
jne 0x1401e2283
mov rax, qword [rbp + 8]
movsx eax, word [rax + 8]
cmp dword [rbp + 0x24], eax
jge 0x1401e22fa
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x50
mov ecx, 1
mov rdx, qword [rbp + 8]
mov word [rdx + rax + 0x78], cx
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x50
mov rcx, qword [rbp + 8]
mov byte [rcx + rax + 0xa0], 1
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140166dab
Capabilities:
Set environment variable

Disassembly:
jmp 0x14040d5e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x140167459
Capabilities:
Parse pe header

Disassembly:
jmp 0x140300780
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1403007a0
xor al, al
jmp 0x140300821
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1403007b3
xor al, al
jmp 0x140300821
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1403007dd
xor al, al
jmp 0x140300821
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1403007f1
xor al, al
jmp 0x140300821
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140300803
xor al, al
jmp 0x140300821
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14030081f
xor al, al
jmp 0x140300821
mov al, 1
add rsp, 0x38
ret

Function at 0x140167850
Capabilities:
Get common file path

Disassembly:
jmp 0x1403ee1f0
push rdi
sub rsp, 0x270
mov rax, qword [0x1404ee780]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x1403ee249
lea rcx, [rsp + 0x50]
call fcn.1403edfe0
jmp 0x1403ee31c
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], 0x25
lea r9, [0x1404a1b50]
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.14016b90f
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140163f39
lea rcx, [rsp + 0x38]
call fcn.14016a80c
test rax, rax
jne 0x1403ee2b1
call fcn.140163d54
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.140168723
mov eax, dword [rsp + 0x40]
jmp 0x1403ee31c
lea rcx, [rsp + 0x38]
call fcn.14016a80c
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1403ee2f8
call fcn.140163d54
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.140168723
mov eax, dword [rsp + 0x48]
jmp 0x1403ee31c
lea rcx, [rsp + 0x38]
call fcn.14016a80c
mov rcx, rax
call fcn.1403edfe0
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.140168723
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140165226
add rsp, 0x270
pop rdi
ret
Function at 0x140167a49
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140219100
push rbp
push rdi
sub rsp, 0x3d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x398], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
lea rax, str.conf_packet_athena.conf
mov qword [rbp + 8], rax
mov dword [rbp + 0x24], 0x1000
mov eax, 2
mov word [rbp + 0x204], ax
lea rdx, [rbp + 0x50]
movzx ecx, word [rbp + 0x204]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140219181
lea rcx, str.socket_init:_WinSock_not_available__n
call fcn.140164be6
jmp 0x14021928b
movzx eax, word [rbp + 0x50]
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x1402191a8
movzx eax, word [rbp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
test eax, eax
je 0x1402191b9
lea rcx, str.socket_init:_WinSock_version_mismatch__2.0_or_compatible_required___n
call fcn.140164be6
jmp 0x14021928b
mov edx, reloc.WS2_32.dll_recv
lea rcx, [0x140515b50]
call fcn.14016a9e7
mov dword [0x140515b44], eax
mov dword [0x140515b90], 0
lea rcx, str.Server_uses_e_1_37mselecte_0m_as_event_dispatcher_n
call fcn.140168c9b
mov r8d, 0x200
xor edx, edx
lea rcx, [0x140521ba0]
call fcn.140167e40
mov rcx, qword [rbp + 8]
call fcn.140165802
xor ecx, ecx
call fcn.1402193e0
mov qword [0x140515b48], rax
lea r9, [0x14016940c]
lea r8, [0x1401614c3]
lea rdx, [0x140167053]
xor ecx, ecx
call fcn.140215950
mov r8d, 0x80000
xor edx, edx
lea rcx, [0x14052a1d0]
call fcn.140167e40
lea rdx, str.connect_check_clear
lea rcx, [0x140215420]
call fcn.140163656
call fcn.140169092
add rax, 0x3e8
mov dword [rsp + 0x20], 0x493e0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140215420]
mov rcx, rax
call fcn.14016ace9
mov edx, dword [rbp + 0x24]
lea rcx, str.Server_supports_up_to_e_1_37m_ue_0m_concurrent_connections._n
call fcn.140168c9b
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret
Function at 0x140168002
Capabilities:
Reference sql statements

Disassembly:
jmp 0x140200890
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
movsxd rax, dword [rbp + 0x120]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x120]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
mov eax, dword [rax + rcx + 8]
mov dword [rbp + 4], eax
movsxd rax, dword [rbp + 0x120]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x120]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
movzx eax, word [rax + rcx + 2]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
sub eax, 0xc
cdqe
cmp rax, 0xb490
je 0x140200944
mov eax, dword [rbp + 0x24]
sub eax, 0xc
mov r8d, eax
mov edx, 0xb490
lea rcx, str.inter_storage:_data_size_error__llu____d_n
call fcn.140164be6
jmp 0x140200a3a
mov r9d, dword [rbp + 4]
lea r8, [0x1404f2ad4]
lea rdx, str.SELECT__guild_id__FROM___s__WHERE__guild_id__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x14020098b
mov eax, dword [0x1404edfb0]
add eax, 0xf
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_storage.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
jmp 0x140200a2e
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
test rax, rax
jbe 0x140200a2e
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
movsxd rax, dword [rbp + 0x120]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x120]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
lea rax, [rax + rcx + 0xc]
mov rdx, rax
mov ecx, dword [rbp + 4]
call fcn.14016899e
movsxd rax, dword [rbp + 0x120]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x120]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
xor r9d, r9d
mov r8d, dword [rbp + 4]
mov edx, dword [rax + rcx + 4]
mov ecx, dword [rbp + 0x120]
call fcn.140167f30
xor al, al
jmp 0x140200a81
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
movsxd rax, dword [rbp + 0x120]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x120]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
mov r9d, 1
mov r8d, dword [rbp + 4]
mov edx, dword [rax + rcx + 4]
mov ecx, dword [rbp + 0x120]
call fcn.140167f30
mov al, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1401684da
Capabilities:
Terminate process

Disassembly:
jmp 0x140324750
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14032477e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140169d85
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140168fd9
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401a1dd0
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1b8]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov r9d, dword [rbp + 0x180]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__account_id___class___guild_id__FROM___s__WHERE__char_id____d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401a1e7f
mov eax, dword [0x1404ed0a8]
add eax, 7
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_logif.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov eax, 1
jmp 0x1401a1f90
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
cmp rax, 1
jne 0x1401a1ea2
mov rcx, qword [0x1404f6de0]
call fcn.140161626
cmp eax, 0xffffffff
jne 0x1401a1eb8
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov eax, 1
jmp 0x1401a1f90
xor r9d, r9d
lea r8, [rbp + 0x88]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov dword [rbp + 0x44], eax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov dword [rbp + 4], eax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov dword [rbp + 0x24], eax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 4]
mov r8d, dword [rbp + 0x180]
mov edx, dword [rbp + 0x44]
mov ecx, dword [rbp + 0x188]
call fcn.14016640f
mov ecx, dword [rbp + 0x44]
call fcn.1401660a4
mov eax, 0x2b0d
mov word [rbp + 0x64], ax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x66], eax
movzx eax, byte [rbp + 0x188]
mov byte [rbp + 0x6a], al
mov edx, 7
lea rcx, [rbp + 0x64]
call fcn.140160a19
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x1401694f2
Capabilities:
Set current directory

Disassembly:
jmp 0x140414ea0
mov qword [rsp + 8], rcx
sub rsp, 0x68
lea rcx, [rsp + 0x30]
call fcn.140163ea8
call fcn.140165ac8
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.140163845
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140414eed
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x30]
call fcn.1401649a7
mov eax, dword [rsp + 0x24]
jmp 0x140414f12
lea rcx, [rsp + 0x30]
call fcn.140163cc3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x30]
call fcn.1401649a7
mov eax, dword [rsp + 0x28]
add rsp, 0x68
ret
Function at 0x14016956a
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401e1e90
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x188]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov qword [rbp + 8], 0
cmp dword [rbp + 0x168], 0xffffffff
jne 0x1401e1f77
mov r9d, dword [rbp + 0x160]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT_guild_id_FROM___s__WHERE_char_id_d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401e1f2b
mov eax, dword [0x1404ededc]
add eax, 9
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_guild.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor eax, eax
jmp 0x1401e2081
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401e1f61
xor r9d, r9d
lea r8, [rbp + 0x68]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x68]
call fcn.140161abd
mov dword [rbp + 0x168], eax
jmp 0x1401e1f6b
mov dword [rbp + 0x168], 0
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
cmp dword [rbp + 0x168], 0
jne 0x1401e1f87
xor eax, eax
jmp 0x1401e2081
mov ecx, dword [rbp + 0x168]
call fcn.140168de0
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1401e1fa4
xor eax, eax
jmp 0x1401e2081
mov dword [rbp + 0x44], 0
jmp 0x1401e1fb5
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
movsx eax, word [rax + 8]
cmp dword [rbp + 0x44], eax
jge 0x1401e1fde
movsxd rax, dword [rbp + 0x44]
imul rax, rax, 0x50
mov rcx, qword [rbp + 8]
mov edx, dword [rbp + 0x160]
cmp dword [rcx + rax + 0x5c], edx
jne 0x1401e1fdc
jmp 0x1401e1fde
jmp 0x1401e1fad
xor eax, eax
test eax, eax
jne 0x1401e1fa4
mov rax, qword [rbp + 8]
movsx eax, word [rax + 8]
cmp dword [rbp + 0x44], eax
jge 0x1401e2018
movsxd rax, dword [rbp + 0x44]
imul rax, rax, 0x50
xor ecx, ecx
mov rdx, qword [rbp + 8]
mov word [rdx + rax + 0x78], cx
movsxd rax, dword [rbp + 0x44]
imul rax, rax, 0x50
mov rcx, qword [rbp + 8]
mov byte [rcx + rax + 0xa0], 1
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
jmp 0x1401e2030
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
movsx eax, word [rax + 8]
cmp dword [rbp + 0x44], eax
jge 0x1401e205c
movsxd rax, dword [rbp + 0x44]
imul rax, rax, 0x50
mov rcx, qword [rbp + 8]
movsx eax, word [rcx + rax + 0x78]
test eax, eax
je 0x1401e205a
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
jmp 0x1401e2028
cmp dword [rbp + 0x24], 0
jne 0x1401e207c
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x2ee0]
bts eax, 0xf
mov rcx, qword [rbp + 8]
mov word [rcx + 0x2ee0], ax
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140169e7f
Capabilities:
Print debug messages

Disassembly:
jmp 0x1403e75e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14016a113
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1403234d0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140322e20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140323519
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1405fc020]
jmp 0x140323528
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x14016a348
Capabilities:
Set environment variable

Disassembly:
jmp 0x140414d50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140163ea8
lea rcx, [rsp + 0x48]
call fcn.140163ea8
call fcn.140165ac8
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140163845
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140414dbf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1401649a7
lea rcx, [rsp + 0x78]
call fcn.1401649a7
mov eax, dword [rsp + 0x24]
jmp 0x140414e50
call fcn.140165ac8
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140163845
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140414e06
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1401649a7
lea rcx, [rsp + 0x78]
call fcn.1401649a7
mov eax, dword [rsp + 0x2c]
jmp 0x140414e50
lea rcx, [rsp + 0x48]
call fcn.140163cc3
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140163cc3
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1401649a7
lea rcx, [rsp + 0x78]
call fcn.1401649a7
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14016a721
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401fbd00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov qword [rbp + 0x78], 0
mov edx, 0x18
mov rcx, qword [rbp + 0x170]
call fcn.1401631fb
mov r9, rax
mov r8, qword [rbp + 0x170]
lea rdx, [rbp + 8]
mov rcx, qword [0x1404f6de0]
call fcn.140167314
lea r9, [rbp + 8]
lea r8, [0x1404f32d4]
lea rdx, str.SELECT__party_id__FROM___s__WHERE__name__s
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401fbdc0
mov eax, dword [0x1404edf68]
add eax, 7
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_party.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
jmp 0x1401fbdf9
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401fbdf9
xor r9d, r9d
lea r8, [rbp + 0x58]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x58]
call fcn.140161abd
mov ecx, eax
call fcn.140169db7
mov qword [rbp + 0x78], rax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov rax, qword [rbp + 0x78]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x14016a9e7
Capabilities:
Get hostname
Resolve dns

Disassembly:
jmp 0x140218f20
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x288]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov dword [rbp + 4], 0
cmp qword [rbp + 0x260], 0
je 0x140218f87
cmp dword [rbp + 0x268], 0
jg 0x140218f8e
xor eax, eax
jmp 0x14021906b
mov edx, 0xff
lea rcx, [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x140218fba
lea rcx, str.socket_getips:_No_hostname_defined__n
call fcn.140164be6
xor eax, eax
jmp 0x14021906b
lea rcx, [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0
jne 0x140218fe8
lea rcx, str.socket_getips:_Cannot_resolve_our_own_hostname_to_an_IP_address_n
call fcn.140164be6
xor eax, eax
jmp 0x14021906b
mov rax, qword [rbp + 0x168]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x148], rax
jmp 0x140219004
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x268]
cmp dword [rbp + 4], eax
jge 0x140219048
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x148]
cmp qword [rcx + rax*8], 0
je 0x140219048
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x148]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x260]
mov dword [rdx + rcx*4], eax
jmp 0x140218ffc
cmp dword [rbp + 4], 0
jne 0x140219068
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x260]
mov dword [rcx + rax*4], 0x7f000001
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret