joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023250
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 r15d, r15d
mov rsi, r9
mov rbp, rdx
mov r14, rcx
mov edi, r15d
cmp rcx, 0xffffffffffffffff
je 0x140023386
test r8b, r8b
je 0x1400232d8
test byte [rdx], 8
je 0x1400232d8
mov dword [rsp + 0x60], r15d
call fcn.1400b35b0
or byte [rbp], 8
xor ecx, ecx
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, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400232d8
call fcn.1400b35b0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
test edi, edi
je 0x140023386
call fcn.1400b35b0
cmp qword [rsi + 8], rax
jne 0x140023321
cmp dword [rsi], 0x2733
je 0x140023334
call fcn.1400b35b0
cmp qword [rsi + 8], rax
jne 0x14002339d
cmp dword [rsi], 0x4d5
jne 0x14002339d
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], r15d
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
test edi, edi
jne 0x14002339d
mov dword [rsp + 0x30], r15d
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rbx, qword [rsp + 0x68]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400233c0
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 edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x80]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x40
jne 0x14002344c
mov dword [rsp + 0x40], 0x2746
jmp 0x14002345c
cmp ecx, 0x4d2
jne 0x14002346e
mov dword [rsp + 0x40], 0x274d
call fcn.1400b35b0
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test edi, edi
je 0x140023479
mov eax, 0xffffffff
jmp 0x140023493
mov dword [rsp + 0x40], ebp
call fcn.1400b35b0
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x78]
movups xmmword [rbx], xmm0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x60]
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x40], 1
call fcn.1400b35b0
mov rbx, qword [rbx + 8]
xor ecx, ecx
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]
mov ebx, eax
call fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1400238a5
cmp eax, 0x4d2
jne 0x1400238aa
call fcn.1400b35b0
test ebx, ebx
jne 0x1400238b3
call fcn.1400b35b0
add rsp, 0x50
pop rbx
ret
Function at 0x140024870
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 [0x1402dae9c]
mov rdi, r8
mov rsi, rdx
lea rbx, [rax + 0x28]
cmove rbx, r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400248c4
cmp qword [rax], rbx
je 0x1400248ed
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400248b6
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi]
cmp byte [rax + 0x60], r14b
je 0x140024938
mov qword [rdi + 0x20], r14
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x140024921
mov qword [rcx + 0x20], rdi
jmp 0x140024925
mov rcx, qword [rsi]
mov rbx, qword [rax + 8]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
je 0x1400248d1
mov rax, qword [rsi]
cmp byte [rax + 0x60], r14b
jne 0x1400248d1
mov byte [rax + 0x60], 1
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x14002497f
mov qword [rax + 0x68], rdi
mov qword [rax + 0x70], rdi
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14002497d
mov byte [rax + 0x60], 1
mov rcx, qword [rsi]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsi]
mov qword [rdi + 0x20], r14
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x140024962
mov qword [rcx + 0x20], rdi
jmp 0x140024966
mov qword [rax + 0x78], rdi
mov qword [rax + 0x80], rdi
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x28]
lock inc dword [rcx + 0x30]
call fcn.140022b10
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 0x1400300f0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1402dadf0], eax
inc eax
cmp eax, 1
jne 0x14003013d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1402dadf4], eax
test dil, dil
je 0x140030150
xor eax, eax
lock xadd dword [0x1402dadf4], eax
test eax, eax
jne 0x140030174
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401fb000
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.1400b35b0
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140021d20
int3

Function at 0x140030cc0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140030ce8
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140030d0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140030d10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140030d69
test ecx, ecx
jle 0x140030d49
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140030d69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140030d69
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140030d90
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 0x140030dc1
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 0x140030ddf
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 rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140030dfb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140030dfd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140030e39
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140030ece
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140030e74
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 rbx, 0xfff
jbe 0x140030eae
nop dword [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140030ece
cmp rbx, rax
ja 0x140030e80
test rbx, rbx
je 0x140030ece
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140031330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003135d
xor eax, eax
jmp 0x1400314c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140031397
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140031397
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400314c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400314bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400313da
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140031405
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 0x1400314c1
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 0x140031474
sub eax, 1
je 0x140031474
cmp eax, 2
jne 0x1400314bc
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 0x1400314c1
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400314a2
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 0x1400314bc
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400314c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401fb000
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140033c33
cmp byte [rcx + 0x71], 0
je 0x140033c33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140033c2f
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 0x140033bf4
sub eax, 1
je 0x140033bf8
cmp eax, 2
jne 0x140033c2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401fb000
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140033c26
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 0x140033c2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140033bdc
xor al, al
jmp 0x140033bdc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401fb000
add rsp, 0x60
pop rbx
ret
Function at 0x14004efa0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14004f06c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14004f06c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14004f085
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14004f05c
cmp byte [rax], 0x5c
jne 0x14004f056
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14004f056
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14004f042
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14004f053
test r8b, 0x10
jne 0x14004f056
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14004f056
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140044e10
test edi, edi
jne 0x14004efc0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140044e00
int3
Function at 0x1400510e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140051132
nop dword [rax]
cmp qword [rax], rbx
je 0x1400512a3
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140051120
mov qword [rbp + 0x27], rdi
mov rdx, rdi
mov ecx, 0x78
call fcn.140021fa0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140051300]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x48], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
movups xmm0, xmmword [rdi + 0x30]
movups xmmword [rbx + 0x68], xmm0
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140024870
mov qword [rbp + 0x37], r15
mov qword [rbp + 0x2f], r15
test al, al
je 0x140051286
mov rax, qword [rsi]
mov qword [rbp - 0x59], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x59]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r14 + 0x28]
mov qword [rbp - 0x29], rax
mov rax, qword [rsi]
mov qword [rbp - 0x21], rax
call fcn.1400b35b0
mov rdi, qword [r14 + 0x28]
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbx + 0x38]
movaps xmmword [rbp - 0x19], xmm0
movups xmm0, xmmword [rbx + 0x48]
movaps xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rbx + 0x58]
movaps xmmword [rbp + 7], xmm1
movups xmm0, xmmword [rbx + 0x68]
movaps xmmword [rbp + 0x17], xmm0
lea rax, [rbp - 0x19]
mov qword [rbp - 0x41], rax
test rbx, rbx
je 0x140051240
mov qword [rbp - 0x31], r15
lea r8, [rbp - 0x19]
lea edx, [r15 + 0x78]
mov rcx, rbx
call fcn.140022030
mov ebx, r15d
mov qword [rbp - 0x39], rbx
test rdi, rdi
je 0x140051254
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140051be0
nop
nop
test rbx, rbx
je 0x14005126b
lea r8, [rbp - 0x19]
mov edx, 0x78
mov rcx, rbx
call fcn.140022030
nop
lea rcx, [rbp - 0x29]
call fcn.140024650
nop
mov rdx, qword [rbp - 0x49]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140051132
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140051be0
nop
nop
jmp 0x140051286
Function at 0x140051c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140051c72
nop dword [rax]
cmp qword [rax], rbx
je 0x140051dc3
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140051c60
mov qword [rbp + 0x27], rdi
mov rdx, rdi
mov ecx, 0x58
call fcn.140021fa0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140051e20]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x48], xmm0
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140024870
mov qword [rbp + 0x37], r15
mov qword [rbp + 0x2f], r15
test al, al
je 0x140051da6
mov rax, qword [rsi]
mov qword [rbp - 0x39], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r14 + 0x28]
mov qword [rbp + 0x17], rax
mov rax, qword [rsi]
mov qword [rbp + 0x1f], rax
call fcn.1400b35b0
mov rdi, qword [r14 + 0x28]
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], rbx
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rbx + 0x48]
movups xmmword [rbp - 0x11], xmm1
lea rax, [rbp - 0x21]
mov qword [rbp - 1], rax
test rbx, rbx
je 0x140051d60
mov qword [rbp + 0xf], r15
lea r8, [rbp - 0x21]
lea edx, [r15 + 0x58]
mov rcx, rbx
call fcn.140022030
mov ebx, r15d
mov qword [rbp + 7], rbx
test rdi, rdi
je 0x140051d74
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.140051ec0
nop
nop
test rbx, rbx
je 0x140051d8b
lea r8, [rbp - 0x21]
mov edx, 0x58
mov rcx, rbx
call fcn.140022030
nop
lea rcx, [rbp + 0x17]
call fcn.140024650
nop
mov rdx, qword [rbp - 0x29]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140051c72
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140051ec0
nop
nop
jmp 0x140051da6
Function at 0x140053150
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov edx, 0x208
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005333c
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400526d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x140295690]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], si
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov rax, qword [str.cmd.exe]
mov dword [rsp + 0x30], eax
movzx eax, word [0x14029057c]
mov word [rsp + 0x34], ax
movzx eax, byte [0x14029057e]
mov byte [rsp + 0x36], al
mov byte [rsp + 0x37], sil
lea rdi, [rsp + 0x37]
call fcn.1401f9510
mov r9, rax
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1401f7970
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140053268
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053263
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053263
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140057990
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1401f9240
mov rdx, rax
mov rcx, rbx
call fcn.140057990
nop
lea rcx, [rsp + 0x70]
call fcn.140057b80
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400532f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400532f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400532f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fb494
movdqa xmm0, xmmword [0x140295690]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
lea rcx, [rbp - 0x70]
call fcn.140057b80
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401fb000
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140052cc0
int3