joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400095b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000963b
mov rsi, rbx
cmp word [rax], bp
je 0x1400095fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400095e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400095e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400077a4
mov rdi, rax
test rax, rax
je 0x140009628
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003270
mov rbp, rdi
xor ecx, ecx
call fcn.140006c5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140021f90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rdi + 3]
xor esi, esi
shr rbx, 2
test rax, rax
je 0x140021ff3
mov rax, qword [rax + 8]
test rax, rax
je 0x140021ff3
mov rcx, qword [rax]
test rcx, rcx
je 0x140021ff3
mov qword [rax], rsi
movzx eax, byte [rcx]
cmp rax, rbx
jb 0x140021fee
mov byte [rcx + rdi], al
mov rax, rcx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
call fcn.1401ec5c4
lea rcx, [rbx*4 + 1]
call fcn.1401ec268
cmp rbx, 0xff
movzx ecx, bl
cmova ecx, esi
mov byte [rax + rdi], cl
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140022020
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002204d
mov r8, qword [rax + 8]
jmp 0x140022050
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140022074
test r8, r8
je 0x140022074
cmp qword [r8], 0
jne 0x140022074
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1401ec5c4

Function at 0x140022280
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1402c57e0], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400222dd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140014da0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x140022310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
lea r15, [0x140275440]
test rax, rax
jne 0x140022382
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14002248f
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1400223d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x1400224a1
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x1400224c0]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x68], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x140022448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x140022425
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140022434
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14002247d
test rdi, rdi
je 0x140022464
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140021e50
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140021e50
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140021e50
int3
Function at 0x140022b80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x140022be0
call fcn.140022cf0
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x24], bl
lea rax, [0x140275440]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
lea rax, [rcx + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.140022df0
test rax, rax
je 0x140022c5f
nop dword [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r8, rsi
mov rcx, rdi
call fcn.140022df0
test rax, rax
jne 0x140022c40
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x38]
mov esi, 3
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022c8d
call fcn.1401ec5c4
add rdi, 8
sub rsi, 1
jne 0x140022c80
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140023570
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
lea r15, [0x140275440]
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x1400236af
test r8b, r8b
je 0x1400235e9
movzx eax, byte [rdx]
test al, 8
je 0x1400235e9
or al, 8
mov dword [rsp + 0x60], ebp
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
je 0x1400236af
mov eax, dword [rdi]
cmp eax, 0x2733
jne 0x140023644
mov rcx, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rcx + 8], rdx
je 0x14002365f
jmp 0x1400236c5
cmp eax, 0x4d5
jne 0x1400236c5
mov rax, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rdx
jne 0x1400236c5
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x1400236c5
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400236e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x30], rbp
mov r8d, ebx
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x78], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x80]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x140275440]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov edx, dword [rcx]
cmp edx, 0x40
jne 0x140023772
mov dword [rsp + 0x40], 0x2746
jmp 0x140023782
cmp edx, 0x4d2
jne 0x140023794
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
test ebx, ebx
je 0x14002379f
mov eax, 0xffffffff
jmp 0x1400237b9
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], bpl
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140023b50
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x50
pop rbx
ret
Function at 0x140024b00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x28]
xor r14d, r14d
test rax, rax
mov rbp, rcx
mov ecx, dword [0x1402c6008]
mov rsi, r8
mov rdi, rdx
lea rbx, [rax + 0x28]
cmove rbx, r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140024b54
cmp qword [rax], rbx
je 0x140024b7d
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140024b46
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
je 0x140024bc8
mov qword [rsi + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x140024bb1
mov qword [rcx + 0x20], rsi
jmp 0x140024bb5
mov rcx, qword [rdi]
mov rbx, qword [rax + 8]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x140024b61
mov rax, qword [rdi]
cmp byte [rax + 0x60], r14b
jne 0x140024b61
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x140024c0f
mov qword [rax + 0x68], rsi
mov qword [rax + 0x70], rsi
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140024c0d
mov byte [rax + 0x60], 1
mov rcx, qword [rdi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
mov qword [rsi + 0x20], r14
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x140024bf2
mov qword [rcx + 0x20], rsi
jmp 0x140024bf6
mov qword [rax + 0x78], rsi
mov qword [rax + 0x80], rsi
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rdi]
lock inc dword [rcx + 0x30]
call fcn.140022d60
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002efd0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1402c57e8], eax
inc eax
cmp eax, 1
jne 0x14002f01d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1402c57ec], eax
test dil, dil
je 0x14002f030
xor eax, eax
lock xadd dword [0x1402c57ec], eax
test eax, eax
jne 0x14002f054
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401ebfb0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
lea rdx, str.winsock
lea rax, [0x140275440]
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140021e50
int3

Function at 0x14002fbb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14002fbe7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14002fc08
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002fc0a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14002fc63
test ecx, ecx
jle 0x14002fc43
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14002fc63
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002fc63
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002fc90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14002fcc1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14002fcdf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14002fd00
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002fd02
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002fd34
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x14002fdd1
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14002fd72
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rdi, 0xfff
jbe 0x14002fdb1
nop dword [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14002fdf2
cmp rdi, rax
ja 0x14002fd80
test rbx, rbx
je 0x14002fdd1
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x14002fdd4
Function at 0x140030210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003023d
xor eax, eax
jmp 0x140030392
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140030268
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140030268
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140030392
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140030385
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400302ab
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400302d6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14003038a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140030345
sub eax, 1
je 0x140030345
cmp eax, 2
jne 0x140030385
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14003038a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140030373
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140030385
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14003038a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401ebfb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140030ec0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140030ef4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140030ee0
ret
Function at 0x140032780
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140032853
cmp byte [rcx + 0x71], 0
je 0x140032853
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003284f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140032814
sub eax, 1
je 0x140032818
cmp eax, 2
jne 0x14003284f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401ebfb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140032846
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14003284f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400327fc
xor al, al
jmp 0x1400327fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401ebfb0
add rsp, 0x60
pop rbx
ret

Function at 0x14003f3b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x14003f400
mov rax, qword [rax + 8]
test rax, rax
je 0x14003f400
mov rdx, qword [rax]
test rdx, rdx
je 0x14003f400
mov qword [rax], rsi
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x14003f3f8
mov byte [rdx + 0x48], al
jmp 0x14003f411
mov rcx, rdx
call fcn.1401ec5c4
mov ecx, 0x49
call fcn.1401ec268
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rsi
lea rax, [0x1400492b0]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
mov rax, qword [rbx]
mov qword [rdx + 0x38], rax
mov qword [rbx], rsi
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x10]
lock inc dword [rcx + 0x30]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140022d60