joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034dc0
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 [0x140054040]
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 [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034e1e
mov rdx, qword [rax + 8]
jmp 0x140034e20
xor edx, edx
mov r8d, 0xa8
call fcn.140028560
mov rbx, rax
mov rax, qword [r15 + 0x18]
xor r8d, r8d
mov r14d, r8d
mov ecx, r8d
test rax, rax
je 0x140034e4b
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, [0x140035bd0]
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 0x140034e8f
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.140036cc0
test r14, r14
je 0x140034ee3
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x140034ee3
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 0x140034f31
test rax, rax
jne 0x140034f31
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.14000b100
jmp 0x140034fe9
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x140034f5c
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14000b100
jmp 0x140034fe9
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 0x140034fae
mov eax, 0x2746
jmp 0x140034fbb
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test esi, esi
je 0x140034fdc
cmp eax, 0x3e5
je 0x140034fdc
mov r9d, dword [rsp + 0x48]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14000b100
jmp 0x140034fe9
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14000b070
nop
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003a7b0
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 0x140035ad0
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 0x140035b5d
lea rcx, [rsi + 0x70]
cmp qword [rcx + 0x20], 0
je 0x140035b05
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov rbx, qword [rsi + 0x68]
mov edi, 0xffffffff
test rbx, rbx
je 0x140035b3c
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140035b3c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140035b3c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140035b55
lock xadd dword [rcx + 0xc], edi
cmp edi, 1
jne 0x140035b55
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 0x140035ba7
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140035b96
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140035b96
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140035bbc
inc ecx
inc rax
cmp rax, 2
jl 0x140035b84
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 0x140035b9f

Function at 0x140035e00
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 0x140035e33
add rcx, 0x58
cmp qword [rcx + 0x20], 0
je 0x140035e2b
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 0x140035e83
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140035e72
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140035e72
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x140035e8e
inc ecx
inc rax
cmp rax, 2
jl 0x140035e60
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 0x140036070
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 [0x140054040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rcx
mov rdi, qword [rcx + 0x10]
xor r14d, r14d
test rdi, rdi
je 0x140036129
lea rcx, [rdi + 0x1c8]
cmp qword [rcx + 0x20], r14
je 0x1400360bb
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov rbx, qword [rdi + 0x1b0]
test rbx, rbx
je 0x1400360f3
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400360f3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400360f3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x140036125
mov qword [rsp + 0x28], r14
lea rax, [0x1405db110]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov r8b, 1
lea rdx, [rsp + 0x20]
call fcn.14000b990
mov qword [rbp + 0x10], r14
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140036171
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140036164
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140036164
mov ecx, r14d
mov rax, r14
cmp qword [rdx + rax*8], 0
je 0x140036191
inc ecx
inc rax
cmp rax, 2
jl 0x140036152
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.14003a7b0
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 0x14003616d

Function at 0x140036770
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 0x1400367a3
add rcx, 0x60
cmp qword [rcx + 0x20], 0
je 0x14003679b
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 0x1400367f3
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400367e2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400367e2
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x1400367fe
inc ecx
inc rax
cmp rax, 2
jl 0x1400367d0
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 0x1400369f0
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 0x140036a23
add rcx, 0x68
cmp qword [rcx + 0x20], 0
je 0x140036a1b
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 0x140036a73
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140036a62
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140036a62
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x140036a7e
inc ecx
inc rax
cmp rax, 2
jl 0x140036a50
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 0x140038080
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 0x1400380af
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400380a7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400380f9
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400380e8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400380e8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140038104
inc ecx
inc rax
cmp rax, 2
jl 0x1400380d6
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 0x1400382b0
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 0x1400382cc
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140038319
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140038308
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140038308
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140038324
inc ecx
inc rax
cmp rax, 6
jl 0x1400382f6
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 0x140038350
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 0x14003836c
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x1400383b9
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400383a8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400383a8
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1400383c4
inc ecx
inc rax
cmp rax, 6
jl 0x140038396
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 0x1400383f0
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 0x14003840c
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140038459
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140038448
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140038448
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140038464
inc ecx
inc rax
cmp rax, 6
jl 0x140038436
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 0x140038490
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 0x1400384ed
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x1400384e5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400384e0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400384e0
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 0x14003853a
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140038529
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140038529
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140038545
inc ecx
inc rax
cmp rax, 6
jl 0x140038517
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 0x140038570
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 0x1400385cd
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x1400385c5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400385c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400385c0
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 0x14003861a
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140038609
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140038609
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140038625
inc ecx
inc rax
cmp rax, 6
jl 0x1400385f7
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 0x140038cb0
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 0x140038d10
lea rcx, [rbx + 0x1b0]
cmp qword [rcx + 0x20], 0
je 0x140038cde
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x150]
call fcn.140035620
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140038d08
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x140038d08
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 0x140038d5a
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140038d49
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140038d49
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140038d65
inc ecx
inc rax
cmp rax, 2
jl 0x140038d37
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 0x140039960
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 0x140039987
add rcx, 8
call fcn.140035620
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400399d4
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400399c3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400399c3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1400399df
inc ecx
inc rax
cmp rax, 6
jl 0x1400399b1
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 0x140039c80
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 0x140039cba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140039cbf
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 0x140039d08
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140040b60]
cmp byte [rcx + rax], 0
je 0x140039d08
dec r8
sub rdx, 1
jne 0x140039cee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003b5ac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x20f0
call fcn.140015800
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x20e0], rax
lea rcx, str.Hello__n
call fcn.140001010
xor esi, esi
lea rcx, [0x14001f458]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000121e
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x2100], rbx
mov rcx, rax
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x1000
mov ebx, eax
call fcn.140015b60
xor edx, edx
lea rcx, [rsp + 0x10e0]
mov r8d, 0x1000
call fcn.140015b60
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x2100]
test eax, eax
je 0x14000121e
lea rdx, [0x14001f460]
lea rcx, [rsp + 0xe0]
call fcn.140001f30
test rax, rax
je 0x14000121e
lea rax, [rsp + 0xe2]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140001180
lea rdx, [rsp + 0xe2]
lea rcx, [rsp + 0x10e0]
call fcn.140015f20
xorps xmm0, xmm0
lea rdx, [rsp + 0x10e0]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0xd0], rax
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov rcx, qword [rsp + 0x20e0]
xor rcx, rsp
call fcn.140001260
mov rsi, qword [rsp + 0x2108]
add rsp, 0x20f0
pop rdi
ret

Function at 0x140001c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c8c
xor al, al
add rsp, 0x28
ret

Function at 0x140008810
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000860c
Function at 0x140004374
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov r8, qword [rdx + 8]
mov rsi, rcx
mov rdx, qword [rdx]
lea rcx, [rax - 0x28]
and qword [rax - 0x18], 0
xorps xmm0, xmm0
and qword [rax - 0x10], 0
movups xmmword [rax - 0x28], xmm0
call fcn.14000e840
mov rbp, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov rdi, qword [rsp + 0x30]
cmp rbp, 0xf
mov r8, qword [rsp + 0x40]
movabs r9, 0xcbf29ce484222325
cmova rdx, rdi
xor ecx, ecx
test r8, r8
je 0x1400043fb
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r9, rax
inc rcx
imul r9, r10
cmp rcx, r8
jb 0x1400043de
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x48]
call fcn.1400106e4
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x14000441b
mov rbx, qword [rsi + 0x50]
cmp rbp, 0xf
jbe 0x140004455
lea rdx, [rbp + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000444d
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000444d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140015538
cmp rbx, qword [rsi + 0x50]
je 0x140004465
mov rax, qword [rbx + 0x30]
add rax, qword [rsi + 8]
jmp 0x140004467
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret