joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140083980
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x14024d119]
mov edx, 0x10
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x140083a48
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140083a50]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140083a3b
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140083a16
cmp qword [rbx + 0x10], 0x11
jb 0x140083a05
mov rdi, qword [rdi - 8]
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

Function at 0x140083e00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140083eff
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140083e2f
cmp qword [rax + 8], 0
jne 0x140083ef9
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140083f21
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140083f3e
test rax, rax
jne 0x140083e9f
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x140083f60
lea rcx, [0x1401aa098]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401aa0b0]
test ecx, ecx
je 0x140083f47
dec ecx
mov rdx, rax
mov rdi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x140083eb9
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x140083ebb
mov rcx, qword [rsi + 8]
jmp 0x140083ebb
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x140083ef9
test rdx, rdx
je 0x140083ef9
lock dec qword [rdx]
jne 0x140083ef9
lea rcx, [rsp + 0x30]
mov rsi, rax
call fcn.14008e260
mov rax, rsi
add rax, 0x10
jmp 0x140083f40
lea rcx, [0x1401aa098]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140083e24
jmp 0x140083e2f
lea rcx, [0x1401aa098]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140083e4e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1401aa098]
mov rdi, rax
call fcn.14008d860
mov ecx, eax
mov rax, rdi
jmp 0x140083e91
ud2
Function at 0x140083f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401aa068]
test ecx, ecx
je 0x140083fa0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140083fb9
cmp qword [rax + 8], 0
je 0x140083fb9
add rax, 0x10
jmp 0x14008409a
lea rcx, [0x1401aa050]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140083f90
mov ecx, dword [0x1401aa068]
test ecx, ecx
je 0x14008407b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140084098
test rax, rax
jne 0x140084029
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400840ba
lea rcx, [0x1401aa050]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401aa068]
test ecx, ecx
je 0x1400840a1
dec ecx
mov rdx, rax
mov rdi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x140084043
mov rdx, qword [rsi]
mov qword [rsi], 0
test rdx, rdx
je 0x140084045
mov rdx, qword [rsi + 8]
jmp 0x140084045
xor edx, edx
mov r8, rax
add rax, 0x10
mov rcx, qword [r8 + 0x10]
cmp qword [r8 + 8], 0
mov qword [r8 + 8], 1
mov qword [r8 + 0x10], rdx
je 0x14008409a
test rcx, rcx
je 0x14008409a
lock dec qword [rcx]
jne 0x14008409a
mov rsi, rax
call fcn.14008e440
mov rax, rsi
jmp 0x14008409a
lea rcx, [0x1401aa050]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140083fd8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401aa050]
mov rdi, rax
call fcn.14008d860
mov ecx, eax
mov rax, rdi
jmp 0x14008401b
ud2
Function at 0x140088b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.14008cbd0
mov rbx, qword [rsp + 0x28]
cmp rbx, r14
jne 0x140088bd0
mov rax, qword [rsp + 0x30]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x140088bcb
test rcx, rcx
je 0x140088bcb
lea rdi, [rax - 1]
mov rbx, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, rbx
call qword [r15]
cmp qword [r15 + 8], 0
je 0x140088bba
cmp qword [r15 + 0x10], 0x11
jb 0x140088ba9
mov rbx, qword [rbx - 8]
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov qword [rsi], r14
jmp 0x140088bf2
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140088bfe
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsi], r14
test rbx, rbx
je 0x140088bf2
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sub.kernel32.dll_HeapFree
Function at 0x14008a450
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14008a4ae
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14008a4ae
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14008a4ae
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14008a4ae
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14008a4ee
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14008a4dc
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x1401cfae8]
add rsp, 0x38
ret

Function at 0x14008a500
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14008a55e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14008a55e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14008a55e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14008a55e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14008a59e
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14008a58c
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x1401cfae8]
add rsp, 0x38
ret

Function at 0x14008bf80
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, 1
test rcx, rcx
jne 0x14008c02d
mov rax, qword [0x14024d0e0]
cmp rax, 3
jne 0x14008c053
mov rsi, rdx
movzx ecx, word [rdx]
call fcn.14008fdb0
test rax, rax
je 0x14008bfbc
mov eax, 1
jmp 0x14008c02d
cmp word [rsi], 0
je 0x14008bfde
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x14008bff3
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], cx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
lea rax, [rsp + 0x2c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x14008c034
xor eax, eax
mov rdx, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.ws2_32.dll_closesocket
mov rdx, rdi
jmp 0x14008bfb5
mov rsi, rdx
call fcn.14008fc90
mov rdx, rsi
jmp 0x14008bfa5
Function at 0x14008c070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x14008c11f
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x14008c12e
cmp ecx, 0x17
jne 0x14008c155
cmp eax, 0x1b
jbe 0x14008c16e
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14008c15c
cmp eax, 0xf
jbe 0x14008c16e
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
ud2

Function at 0x14008cda0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x1401cf520]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14008ce03
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14008ce0e
xor edx, edx
jmp 0x14008ce1e
cmp eax, 0x103
je 0x14008ce48
test eax, eax
js 0x14008ce29
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call fcn.140089d20
mov rcx, rax
call fcn.1400b77c0
mov ecx, 7
int 0x29
ud2
Function at 0x14008d0d0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x1401cf520]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14008d13a
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14008d16d
test eax, eax
js 0x14008d14e
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call fcn.140089d20
mov rcx, rax
call fcn.1400b77c0
mov ecx, 7
int 0x29
ud2
Function at 0x14008d860
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14008d8de
mov rax, qword [0x140250038]
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14008d915
cmp dword [rsp + 0x2c], 0
je 0x14008d906
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14008d917
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14024d068]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14024d068], rsi
jne 0x14008d8c0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14008d90b
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14008d915
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14008d90b
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14008d90b
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x14008fdb0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
test cx, cx
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor edi, edi
mov ecx, ebx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008fe83
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x14008fe0d
mov esi, eax
cmp eax, 0x2726
jne 0x14008fe76
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14008fe6f
mov rsi, rax
xor edi, edi
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x14008fe83
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rsi
call sub.ws2_32.dll_closesocket
mov edi, 1
mov rsi, rbx
jmp 0x14008fe83
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov edi, 1
mov rax, rdi
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140090690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401aa090]
test ecx, ecx
je 0x14009077c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400906bf
cmp qword [rax + 8], 0
jne 0x140090776
mov ecx, dword [0x1401aa090]
test ecx, ecx
je 0x14009079e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400907bb
test rax, rax
jne 0x14009072f
movzx eax, byte [0x14024d119]
mov edx, 0x20
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400907dd
lea rcx, [0x1401aa078]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401aa090]
test ecx, ecx
je 0x1400907c4
dec ecx
mov rdx, rax
mov rdi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x140090748
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x14009076a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x1400907bd
lea rcx, [0x1401aa078]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400906b4
jmp 0x1400906bf
lea rcx, [0x1401aa078]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400906de
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1401aa078]
mov rdi, rax
call fcn.14008d860
mov ecx, eax
mov rax, rdi
jmp 0x140090721
ud2

Function at 0x140091110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
ja 0x14009118a
movzx eax, byte [rdx + 0x3a]
test al, al
jne 0x140091162
movzx esi, byte [rdx + 0x10]
lea r8d, [rsi - 5]
cmp r8b, 1
ja 0x140091162
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x140091159
cmp sil, 6
je 0x140091159
mov r11d, 2
cmp r8, 1
jbe 0x140091337
invalid
cmp r11, r8
jne 0x140091295
xor eax, dword [rcx]
add byte [rax], al
xor eax, eax
xor r8d, r8d
add r8, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, r8
sete r8b
movzx r10d, byte [r10 + r11]
test r8b, 1
rol byte [rcx], 0x75
invalid
cmp r10b, 0x2e
Function at 0x1400938d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x40]
xor eax, eax
test rcx, rcx
sete al
lea rdx, [0x1401cef68]
cmovne rdx, rcx
add rsp, 0x58
ret

Function at 0x140095460
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.140082960
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rdi
je 0x1400954c5
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.14008af80
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rbx, rdi
jne 0x1400954d0
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x1400954f8
test rbx, rbx
je 0x140095520
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
xor eax, eax
jmp 0x1400954c8
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rbx, rbx
je 0x1400954c8
mov rcx, qword [0x14024d108]
xor edx, edx
mov r8, rsi
mov rsi, rax
call sub.kernel32.dll_HeapFree
jmp 0x1400954c5
xor eax, eax
jmp 0x1400954c8

Function at 0x1400958d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401aa0d0]
test ecx, ecx
je 0x1400958ff
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140095918
cmp byte [rax + 8], 0
je 0x140095918
add rax, 9
jmp 0x1400959c5
lea rcx, [0x1401aa0b8]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400958f0
mov ecx, dword [0x1401aa0d0]
test ecx, ecx
je 0x1400959a6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400959c3
test rax, rax
jne 0x140095980
movzx eax, byte [0x14024d119]
mov edx, 0x10
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400959e2
lea rcx, [0x1401aa0b8]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1401aa0d0]
test ecx, ecx
je 0x1400959cc
dec ecx
mov rdx, rax
mov rdi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x140095996
cmp byte [rsi], 0
mov byte [rsi], 0
movzx edx, byte [rsi + 1]
cmove edx, ecx
mov ecx, edx
lea rdx, [rax + 9]
mov byte [rax + 8], 1
mov byte [rax + 9], cl
mov rax, rdx
jmp 0x1400959c5
lea rcx, [0x1401aa0b8]
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140095937
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401aa0b8]
mov rdi, rax
call fcn.14008d860
mov ecx, eax
mov rax, rdi
jmp 0x140095972
ud2
Function at 0x14009f050
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x14009f1b3
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd r13, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test r13, r13
je 0x14009f189
shl r13, 3
mov esi, 8
xor ebp, ebp
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x80]
xor r15d, r15d
jmp 0x14009f101
lea rax, [r15 + r15*2]
mov rcx, qword [rsp + 0x70]
mov qword [rsi + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rax*8], xmm0
mov r15, qword [rsp + 0x38]
inc r15
mov qword [rsp + 0x38], r15
add rbp, 8
cmp r13, rbp
je 0x14009f189
mov r12, qword [rdi + rbp]
mov rcx, r12
call sub.msvcrt.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], rax
mov word [rsp + 0x90], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.1400a1750
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r15, qword [rsp + 0x28]
jne 0x14009f0d0
lea rcx, [rsp + 0x28]
call fcn.140046be0
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
jmp 0x14009f0d0
mov rcx, rdi
call sub.kernel32.dll_LocalFree
test rax, rax
jne 0x14009f19b
call sub.kernel32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x14009f1ca
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400a0390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401aa108]
test ecx, ecx
je 0x1400a03c0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a03d9
cmp qword [rax + 8], 0
je 0x1400a03d9
add rax, 0x10
jmp 0x1400a0495
lea rcx, str.PA_b_
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400a03b0
mov ecx, dword [0x1401aa108]
test ecx, ecx
je 0x1400a0476
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400a0493
test rax, rax
jne 0x1400a0445
movzx eax, byte [0x14024d119]
mov edx, 0x18
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x1400a04b2
lea rcx, str.PA_b_
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401aa108]
test ecx, ecx
je 0x1400a049c
dec ecx
mov rdx, rax
mov rdi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x1400a045f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400a0461
mov rcx, qword [rsi + 8]
jmp 0x1400a0461
xor ecx, ecx
lea rdx, [rax + 0x10]
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
mov rax, rdx
jmp 0x1400a0495
lea rcx, str.PA_b_
call fcn.14008d860
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400a03f8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, str.PA_b_
mov rdi, rax
call fcn.14008d860
mov ecx, eax
mov rax, rdi
jmp 0x1400a0437
ud2
Function at 0x1400a2140
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx]
mov rbx, qword [rcx + 0x18]
movdqa xmm0, xmmword [rdi]
pmovmskb eax, xmm0
not eax
lea r14, [rdi + 0x10]
jmp 0x1400a218d
tzcnt ecx, eax
shl ecx, 5
mov rdx, rdi
sub rdx, rcx
lea ebp, [rax - 1]
and ebp, eax
mov rcx, qword [rdx - 8]
call sub.pdh.dll_PdhRemoveCounter
mov eax, ebp
sub rbx, 1
jb 0x1400a21bf
test ax, ax
jne 0x1400a2170
nop dword [rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rdi, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x1400a21a0
not eax
jmp 0x1400a2170
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400a21d6
call sub.kernel32.dll_CloseHandle
test eax, eax
je 0x1400a21ef
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x1400a2202
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call sub.kernel32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400a21e4
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x140110898
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]