joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140161540
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401f6220
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x138]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov r8d, 0x20
xor edx, edx
mov rcx, qword [rbp + 0x110]
call fcn.140167e40
mov rax, qword [rbp + 0x110]
mov ecx, dword [rbp + 0x100]
mov dword [rax], ecx
mov rax, qword [rbp + 0x110]
mov ecx, dword [rbp + 0x108]
mov dword [rax + 4], ecx
mov eax, dword [rbp + 0x108]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x100]
lea r8, [0x1404f3cd4]
lea rdx, str.SELECT__class____hp____sp____kill_counter____life_time__FROM___s__WHERE__mer_id____d_AND__char_id____d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f62e8
mov eax, dword [0x1404edf50]
add eax, 9
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mercenary.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor al, al
jmp 0x1401f642e
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
je 0x1401f630b
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
xor al, al
jmp 0x1401f642e
xor r9d, r9d
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x110]
mov word [rcx + 8], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x110]
mov dword [rcx + 0xc], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x110]
mov dword [rcx + 0x10], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 3
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x110]
mov dword [rcx + 0x14], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 4
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.14016b1bc
mov rcx, qword [rbp + 0x110]
mov qword [rcx + 0x18], rax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
cmp dword [0x1404f4e28], 0
je 0x1401f642c
mov rax, qword [rbp + 0x110]
movsx eax, word [rax + 8]
mov rcx, qword [rbp + 0x110]
mov r9d, dword [rcx + 4]
mov r8d, eax
mov rax, qword [rbp + 0x110]
mov edx, dword [rax]
lea rcx, str.Mercenary_loaded__ID:__d___Class:__d___CID:__d_._n
call fcn.140168c9b
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1401618bf
Capabilities:
Reference sql statements

Disassembly:
jmp 0x140181e30
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x140181e76
mov eax, 0xfffffffe
jmp 0x140182073
mov rcx, qword [rbp + 0x100]
call fcn.140164c31
cmp rax, 4
jae 0x140181e92
mov eax, 0xfffffffe
jmp 0x140182073
mov rcx, qword [rbp + 0x100]
call fcn.1401650f5
test eax, eax
je 0x140181eac
mov eax, 0xfffffffe
jmp 0x140182073
lea rdx, [0x1404f4824]
mov rcx, qword [rbp + 0x100]
call fcn.140166ae0
test eax, eax
jne 0x140181ecd
mov eax, 0xffffffff
jmp 0x140182073
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140181ef0
mov eax, 0xfffffffe
jmp 0x140182073
cmp dword [0x1404f4e08], 1
jne 0x140181f53
mov dword [rbp + 4], 0
jmp 0x140181f0a
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x18
jge 0x140181f51
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140181f51
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [0x1404f4a05]
call fcn.140164bdc
test rax, rax
jne 0x140181f4f
mov eax, 0xfffffffe
jmp 0x140182073
jmp 0x140181f02
jmp 0x140181fb4
cmp dword [0x1404f4e08], 2
jne 0x140181fb4
mov dword [rbp + 4], 0
jmp 0x140181f6d
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x18
jge 0x140181fb4
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140181fb4
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [0x1404f4a05]
call fcn.140164bdc
test rax, rax
je 0x140181fb2
mov eax, 0xfffffffe
jmp 0x140182073
jmp 0x140181f65
movzx eax, byte [0x1404f49ec]
test eax, eax
je 0x14018200d
mov r9, qword [rbp + 0x108]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT_1_FROM___s__WHERE_BINARY__name____s_LIMIT_1
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x14018200b
mov eax, dword [0x1404ed04c]
add eax, 0x27
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov eax, 0xfffffffe
jmp 0x140182073
jmp 0x140182059
mov r9, qword [rbp + 0x108]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT_1_FROM___s__WHERE__name____s_LIMIT_1
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x140182059
mov eax, dword [0x1404ed04c]
add eax, 0x2c
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov eax, 0xfffffffe
jmp 0x140182073
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
test rax, rax
jbe 0x140182071
mov eax, 0xffffffff
jmp 0x140182073
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140161c2f
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140210ae0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405f99ea]
call fcn.14016a9fb
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x140210b1c
mov rcx, qword [rbp + 0x100]
call fcn.140162184
jmp 0x140210b37
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x140210b37
mov rcx, qword [rbp + 0x100]
call fcn.140165320
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140161cde
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1401b6d80
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1405f866b]
call fcn.14016a9fb
mov qword [rbp + 8], 0
jmp 0x1401b6dbe
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1401b6e14
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1401b6db3
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14016290e
Capabilities:
Get common file path

Disassembly:
jmp 0x1403d9a50
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add rsp, 0x28
ret
Function at 0x140162f08
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401f5400
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x228]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov dword [rbp + 0x84], 0
xor eax, eax
mov word [rbp + 0xa4], ax
xor eax, eax
mov word [rbp + 0xc4], ax
movsxd rax, dword [rbp + 0x1f0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x1f0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
lea rax, [rax + rcx + 6]
mov r8d, 0x18
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14016b4b9
mov edx, 0x18
lea rcx, [rbp + 8]
call fcn.1401612cf
mov r9, rax
lea r8, [rbp + 8]
lea rdx, [rbp + 0x38]
mov rcx, qword [0x1404f6de0]
call fcn.140167314
lea r9, [rbp + 0x38]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__char_id___class___base_level__FROM___s__WHERE__name____s
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f5512
mov eax, dword [0x1404edf3c]
add eax, 0xb
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
jmp 0x1401f55ac
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401f55ac
xor r9d, r9d
lea r8, [rbp + 0xe8]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0xe8]
call fcn.140161abd
mov dword [rbp + 0x84], eax
xor r9d, r9d
lea r8, [rbp + 0xe8]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0xe8]
call fcn.140161abd
mov word [rbp + 0xa4], ax
xor r9d, r9d
lea r8, [rbp + 0xe8]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0xe8]
call fcn.140161abd
mov word [rbp + 0xc4], ax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
movzx eax, word [rbp + 0xc4]
movzx ecx, word [rbp + 0xa4]
movsxd rdx, dword [rbp + 0x1f0]
lea r8, [0x14050db40]
mov rdx, qword [r8 + rdx*8]
movsxd r8, dword [rbp + 0x1f0]
lea r9, [0x14050db40]
mov r8, qword [r9 + r8*8]
mov rdx, qword [rdx + 8]
mov r8, qword [r8 + 0x38]
mov qword [rbp + 0x1b8], r8
lea r9, [rbp + 8]
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x20], eax
mov r9d, ecx
mov r8d, dword [rbp + 0x84]
mov rax, qword [rbp + 0x1b8]
mov edx, dword [rdx + rax + 2]
mov ecx, dword [rbp + 0x1f0]
call fcn.14016951a
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140168bb0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret
Function at 0x140164c31
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140397aa0
mov rax, rcx
neg rcx
test rax, 7
je 0x140397abd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140397b18
test al, 7
jne 0x140397ab0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140397ad1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140397b42
test dh, dh
je 0x140397b3c
shr rdx, 0x10
test dl, dl
je 0x140397b36
test dh, dh
je 0x140397b30
shr rdx, 0x10
test dl, dl
je 0x140397b2a
test dh, dh
je 0x140397b24
shr edx, 0x10
test dl, dl
je 0x140397b1e
test dh, dh
jne 0x140397ad1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140164ca4
Capabilities:
Query environment variable

Disassembly:
jmp 0x14040b730
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14040b2b0
lea rcx, [rsp + 0x20]
call fcn.14040b300
movzx eax, al
test eax, eax
jne 0x14040b775
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14040b2e0
mov rax, qword [rsp + 0x40]
jmp 0x14040b86f
lea rcx, [rsp + 0x20]
call fcn.14040b400
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14040b3a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1401653d9
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140163f39
lea rcx, [rsp + 0x28]
call fcn.140165d70
movzx eax, al
test eax, eax
jne 0x14040b80f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140168723
lea rcx, [rsp + 0x20]
call fcn.14040b2e0
mov rax, qword [rsp + 0x50]
jmp 0x14040b86f
lea rcx, [rsp + 0x20]
call fcn.14040b400
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14016a80c
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.14016526c
lea rcx, [rsp + 0x28]
call fcn.14016bba3
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140168723
lea rcx, [rsp + 0x20]
call fcn.14040b2e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x140164d12
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401831c0
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
cmp dword [rbp + 0x100], 0
je 0x14018320c
cmp dword [rbp + 0x108], 0
jne 0x140183213
xor eax, eax
jmp 0x1401832b1
mov r9d, dword [rbp + 0x100]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__child__FROM___s__WHERE__char_id____d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x14018325a
mov eax, dword [0x1404ed060]
add eax, 4
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
jmp 0x1401832a3
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401832a3
xor r9d, r9d
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
cmp dword [rbp + 0x108], eax
jne 0x1401832a3
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov eax, 1
jmp 0x1401832b1
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140165320
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140211030
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1405f99ea]
call fcn.14016a9fb
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x140211074
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x140211105
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x1402110ca
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1402110d4
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140211069
mov qword [rbp + 0x88], 0xe3
jmp 0x140211123
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x1402111cc
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x140211188
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140211192
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140211112
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14021122c
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140211236
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x1401656b3
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140323460
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140322de0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14032349f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1405fc020]
jmp 0x1403234a9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140165bfe
Capabilities:
Query environment variable

Disassembly:
jmp 0x14040b480
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14040b2b0
lea rcx, [rsp + 0x40]
call fcn.14040b430
movzx eax, al
test eax, eax
jne 0x14040b4c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14040b2e0
mov rax, qword [rsp + 0x70]
jmp 0x14040b699
lea rcx, [rsp + 0x40]
call fcn.14040b400
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14040b3a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14040b400
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140167f6c
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14040b56e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14040b2e0
mov rax, qword [rsp + 0x80]
jmp 0x14040b699
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1401653d9
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140164f79
lea rcx, [rsp + 0x48]
call fcn.140164376
movzx eax, al
test eax, eax
jne 0x14040b5d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1401619e6
lea rcx, [rsp + 0x40]
call fcn.14040b2e0
mov rax, qword [rsp + 0x88]
jmp 0x14040b699
lea rcx, [rsp + 0x48]
call fcn.1401665a9
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14040b400
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140167f6c
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14040b66b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1401619e6
lea rcx, [rsp + 0x40]
call fcn.14040b2e0
mov rax, qword [rsp + 0xa0]
jmp 0x14040b699
lea rcx, [rsp + 0x48]
call fcn.140164eed
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1401619e6
lea rcx, [rsp + 0x40]
call fcn.14040b2e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140165c21
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140323390
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140322d60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1403233d1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1405fc020]
jmp 0x1403233d7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140165d7f
Capabilities:
Get geographical location

Disassembly:
jmp 0x1403e93a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1403e82d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1403e9407
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1405fc030]
jmp 0x1403e9429
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140164272
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140165da2
Capabilities:
Terminate process

Disassembly:
jmp 0x1402fecd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14016636f
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401871a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_select
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x148]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov r9d, dword [rbp + 0x120]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__name__FROM___s__WHERE__char_id__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x140187222
mov eax, dword [0x1404ed06c]
add eax, 5
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
jmp 0x140187265
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x140187265
lea r9, [rbp + 0x28]
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov r8d, 0x18
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x128]
call fcn.14016b4b9
mov eax, 1
jmp 0x14018727b
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov byte [rcx + rax], 0
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret