joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032bc0
Capabilities:
Get thread local storage value
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x40], r9d
mov rbp, r8
mov r15, rdx
mov rdi, rcx
mov r12, qword [rsp + 0xf0]
mov r13, qword [rsp + 0xf8]
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140032c1e
mov rdx, qword [rax + 8]
jmp 0x140032c20
xor edx, edx
mov r8d, 0xa8
call fcn.1400277b0
mov rbx, rax
mov rax, qword [r15 + 0x18]
xor r8d, r8d
mov r14d, r8d
mov ecx, r8d
test rax, rax
je 0x140032c4b
mov rcx, qword [r15 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
movzx eax, byte [r15 + 8]
mov qword [rbx + 0x20], r8
lea rdx, [0x1400339d0]
mov qword [rbx + 0x28], rdx
mov qword [rbx], r8
mov qword [rbx + 8], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
mov dword [rbx + 0x30], r8d
mov byte [rbx + 0x38], al
mov qword [rbx + 0x40], r8
mov qword [rbx + 0x48], r8
test r14, r14
je 0x140032c8f
mov qword [rbx + 0x40], rcx
mov qword [rbx + 0x48], r14
lock inc dword [r14 + 0xc]
movups xmm0, xmmword [rbp]
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], r8
mov qword [rbx + 0x68], r8
mov rax, qword [r12]
mov qword [rbx + 0x60], rax
mov rax, qword [r12 + 8]
mov qword [rbx + 0x68], rax
mov qword [r12], r8
mov qword [r12 + 8], r8
lea rcx, [rbx + 0x70]
mov r9, r13
call fcn.140034ac0
test r14, r14
je 0x140032ce3
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x140032ce3
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0x48], xmm0
movq qword [rsp + 0x60], xmm0
movq xmm0, qword [rbp + 8]
movd dword [rsp + 0x58], xmm0
mov rax, qword [rbp + 8]
mov qword [rsp + 0x68], rax
test byte [r15 + 8], 0x10
je 0x140032d31
test rax, rax
jne 0x140032d31
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14000b060
jmp 0x140032de9
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x140032d5c
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14000b060
jmp 0x140032de9
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x140032dae
mov eax, 0x2746
jmp 0x140032dbb
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test esi, esi
je 0x140032ddc
cmp eax, 0x3e5
je 0x140032ddc
mov r9d, dword [rsp + 0x48]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14000b060
jmp 0x140032de9
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14000afd0
nop
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140038590
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400338d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14003395d
lea rcx, [rsi + 0x70]
cmp qword [rcx + 0x20], 0
je 0x140033905
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov rbx, qword [rsi + 0x68]
mov edi, 0xffffffff
test rbx, rbx
je 0x14003393c
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14003393c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14003393c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140033955
lock xadd dword [rcx + 0xc], edi
cmp edi, 1
jne 0x140033955
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp + 0x10], 0
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x1400339a7
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140033996
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140033996
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x1400339bc
inc ecx
inc rax
cmp rax, 2
jl 0x140033984
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbp + 8], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xa8]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
jmp 0x14003399f

Function at 0x140033c00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140033c33
add rcx, 0x58
cmp qword [rcx + 0x20], 0
je 0x140033c2b
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140033c83
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140033c72
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140033c72
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x140033c8e
inc ecx
inc rax
cmp rax, 2
jl 0x140033c60
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x90]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140033e70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rcx
mov rdi, qword [rcx + 0x10]
xor r14d, r14d
test rdi, rdi
je 0x140033f29
lea rcx, [rdi + 0x1c8]
cmp qword [rcx + 0x20], r14
je 0x140033ebb
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov rbx, qword [rdi + 0x1b0]
test rbx, rbx
je 0x140033ef3
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140033ef3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140033ef3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x140033f25
mov qword [rsp + 0x28], r14
lea rax, [0x1400502c0]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov r8b, 1
lea rdx, [rsp + 0x20]
call fcn.14000b8f0
mov qword [rbp + 0x10], r14
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140033f71
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140033f64
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140033f64
mov ecx, r14d
mov rax, r14
cmp qword [rdx + rax*8], 0
je 0x140033f91
inc ecx
inc rax
cmp rax, 2
jl 0x140033f52
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbp + 8], r14
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140038590
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
movzx eax, byte [rbx + 0x200]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
jmp 0x140033f6d

Function at 0x140034570
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400345a3
add rcx, 0x60
cmp qword [rcx + 0x20], 0
je 0x14003459b
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400345f3
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400345e2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400345e2
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x1400345fe
inc ecx
inc rax
cmp rax, 2
jl 0x1400345d0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x98]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400347f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140034823
add rcx, 0x68
cmp qword [rcx + 0x20], 0
je 0x14003481b
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140034873
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034862
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140034862
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x14003487e
inc ecx
inc rax
cmp rax, 2
jl 0x140034850
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xa0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140035e60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140035e8f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x140035e87
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140035ed9
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140035ec8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140035ec8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140035ee4
inc ecx
inc rax
cmp rax, 2
jl 0x140035eb6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140036090
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400360ac
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x1400360f9
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400360e8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400360e8
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140036104
inc ecx
inc rax
cmp rax, 6
jl 0x1400360d6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 0x38]
mov byte [rdi], al
movsxd rax, ecx
mov qword [rdx + rax*8], rdi
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140036130
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x14003614c
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140036199
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140036188
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140036188
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1400361a4
inc ecx
inc rax
cmp rax, 6
jl 0x140036176
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 0x28]
mov byte [rdi], al
movsxd rax, ecx
mov qword [rdx + rax*8], rdi
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400361d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400361ec
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140036239
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140036228
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140036228
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140036244
inc ecx
inc rax
cmp rax, 6
jl 0x140036216
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 0x30]
mov byte [rdi], al
movsxd rax, ecx
mov qword [rdx + rax*8], rdi
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140036270
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x1400362cd
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x1400362c5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400362c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400362c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x14003631a
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140036309
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140036309
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140036325
inc ecx
inc rax
cmp rax, 6
jl 0x1400362f7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret
Function at 0x140036350
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x1400363ad
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x1400363a5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400363a0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400363a0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x1400363fa
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400363e9
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400363e9
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140036405
inc ecx
inc rax
cmp rax, 6
jl 0x1400363d7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x38]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret
Function at 0x140036a90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x140036af0
lea rcx, [rbx + 0x1b0]
cmp qword [rcx + 0x20], 0
je 0x140036abe
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x150]
call fcn.140033420
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140036ae8
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x140036ae8
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140036b3a
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140036b29
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140036b29
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140036b45
inc ecx
inc rax
cmp rax, 2
jl 0x140036b17
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x1e8]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140037740
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140037767
add rcx, 8
call fcn.140033420
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400377b4
mov ecx, dword [0x1400541e4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400377a3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400377a3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1400377bf
inc ecx
inc rax
cmp rax, 6
jl 0x140037791
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x88]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140037a54
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140037a8e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140037a93
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140037adc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003eae0]
cmp byte [rcx + rax], 0
je 0x140037adc
dec r8
sub rdx, 1
jne 0x140037ac2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003938c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400393d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400393d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400393d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400393d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400393d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400393d8
xor al, al
add rsp, 0x28
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, [0x14002a574]
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.140009990
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, [0x14002a580]
call fcn.140001c50
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.14001414c
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, [0x14002a5d0]
lea rcx, [0x14002a614]
call fcn.140001c10
jmp 0x14000126c
mov ecx, 0x2000
call fcn.14001414c
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, [0x14002a620]
lea rcx, [0x14002a614]
call fcn.140001c10
jmp 0x14000126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi]
mov eax, 0x2000
cmp r12, rax
mov rbx, r12
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000e95c
cmp rax, rbx
jne 0x14000125e
mov rcx, qword [rdi]
call fcn.14000e6d0
test eax, eax
jne 0x14000125e
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140007de0
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.14000f09c
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.14000e6d0
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000aec0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001264
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, [0x14002a670]
add rdx, 0x12
mov r8d, edi
call fcn.140001c50
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.140009670
mov rcx, r13
call fcn.140014138
mov rcx, rbp
call fcn.140014138
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov rax, qword [rcx]
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1400012f8
add rcx, 0x78
lea rdx, [0x14002a570]
call fcn.140002de0
mov qword [r14], rax
test rax, rax
jne 0x1400012f8
lea rdx, [rsi + 0x12]
lea rcx, [0x14002a778]
call fcn.140001c50
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000ec94
test eax, eax
jns 0x14000132f
lea r8, [rsi + 0x12]
lea rdx, [0x14002a7b0]
lea rcx, [0x14002a7ec]
call fcn.140001c10
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.14001414c
mov r15, rax
test rax, rax
jne 0x140001364
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, [0x14002a800]
lea rcx, [0x14002a614]
call fcn.140001c10
jmp 0x140001414
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
jne 0x140001395
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
test eax, eax
je 0x140001400
jmp 0x1400013f5
mov ebx, dword [rsi + 0xc]
mov rbp, r15
test rbx, rbx
je 0x140001400
mov r12d, 0x2000
nop word [rax + rax]
mov r9, qword [r14]
cmp rbx, r12
mov rdi, rbx
mov r8d, 1
cmova rdi, r12
mov rcx, rbp
mov rdx, rdi
call fcn.14000e95c
cmp rax, 1
jb 0x1400013de
add rbp, rdi
sub rbx, rdi
jne 0x1400013b0
jmp 0x140001400
lea r8, [rsi + 0x12]
lea rdx, [0x14002a6f8]
lea rcx, [0x14002a72c]
call fcn.140001c10
mov rcx, r15
call fcn.140014138
xor r15d, r15d
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rcx, qword [r14]
test rcx, rcx
je 0x140001428
call fcn.14000e60c
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret