joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070fd0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x140071040
jmp 0x14007102f
jae 0x1400710e5
cmp r8, 0x201
jae 0x140071040
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x140071087
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x140071067
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.14006fdc0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x38]
cmp rdi, rbx
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rsi, rdi
mov r15, r14
mov r12, qword [rsp + 0x20]
mov r13, r14
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r13d
mov rdx, r12
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x1400710ac
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14007113e
mov r8d, ebp
cmp r13, r8
jne 0x140071020
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14007115e
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x14007102f
jmp 0x140071040
cmp r15, r8
jb 0x140071178
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.1400719d0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x140071129
mov rcx, qword [0x140123378]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rdi, rdi
jne 0x140071116
jmp 0x140071129
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_injected___worker_thread.is_null__assertion_failed:_mid___self.len__
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400323f0
jmp 0x14007118d
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140032050
ud2
Function at 0x140074c40
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.14008d800
mov rdi, rdx
test rax, rax
je 0x140074cd4
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.14006d1c0
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14008da20
cmp dword [rsp + 0x38], 2
jne 0x140074d03
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x140074d4f
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x140074d7b
lea rcx, [rsp + 0x88]
call fcn.14006d1c0
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x140074dd9
mov qword [rsp + 0x80], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140074e55
mov rbx, qword [rsp + 0x80]
jmp 0x140074ddb
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x140074e44
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x140074e44
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140074e81
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x140074e81
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14006d1c0
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x140074cc3
Function at 0x14008eab0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
lea rcx, [rsp + 0xa8]
call fcn.14006f8c0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14008ec1b
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x14008eb70
jmp 0x14008eb4f
jae 0x14008ec31
cmp r8, 0x201
jae 0x14008eb70
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14008ebb7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14008eb97
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14006fdc0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x14008ebe2
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14008ec66
mov r8d, r15d
cmp r12, r8
jne 0x14008eb40
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14008ecfa
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14008eb4f
jmp 0x14008eb70
lea rcx, [rsp + 0xb0]
call fcn.14006d1c0
mov byte [rsi + 0x18], 2
jmp 0x14008ecca
cmp rdi, r8
jb 0x14008ed14
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1400719d0
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x14008ec7d
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x14008ec9a
mov rcx, qword [0x140123378]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.kernel32.dll_HeapFree
cmp byte [rsp + 0x78], 2
jne 0x14008ecdf
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x60]
call fcn.14006d1c0
cmp qword [rsp + 0x40], 0
je 0x14008ecca
mov rcx, qword [0x140123378]
xor edx, edx
mov r8, qword [rsp + 0x30]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x14008ecb7
jmp 0x14008ecca
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_injected___worker_thread.is_null__assertion_failed:_mid___self.len__
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400323f0
jmp 0x14008ed29
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.140032050
ud2
Function at 0x140090b70
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140112278]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x140090bda
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140090be9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140090c20
cmp eax, 0x103
je 0x140090c2a
test eax, eax
js 0x140090c06
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140090c20
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1401122d8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14006ddd0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14006d260
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400ee4e8]
test ecx, ecx
je 0x140093cd0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140093c24
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140093c24
add rdi, 0x10
jmp 0x140093cc6
mov ecx, dword [0x1400ee4e8]
test ecx, ecx
je 0x140093ce3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140093cc4
mov rsi, rax
test rax, rax
jne 0x140093c93
movzx eax, byte [0x140123410]
mov ecx, 0x18
mov edx, 8
call fcn.140007180
test rax, rax
je 0x140093d06
mov rsi, rax
lea rax, str.p_t_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400ee4e8]
test ecx, ecx
je 0x140093cf6
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140093cc6
test rcx, rcx
je 0x140093cc6
lock dec qword [rcx]
jne 0x140093cc6
call fcn.140093d20
jmp 0x140093cc6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, str.p_t_
call fcn.14006d9c0
mov ecx, eax
jmp 0x140093c06
lea rcx, str.p_t_
call fcn.14006d9c0
mov ecx, eax
jmp 0x140093c34
lea rcx, str.p_t_
call fcn.14006d9c0
mov ecx, eax
jmp 0x140093c8b
mov ecx, 8
mov edx, 0x18
call fcn.140007760
ud2
Function at 0x140094230
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140007a00
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x14009428e
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x14009431a
mov rcx, qword [0x140123378]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.kernel32.dll_HeapFree
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400942eb
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400942fe
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x14009431a
mov rcx, qword [0x140123378]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14009be20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14006f8c0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14009be95
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14009bd50
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14009bea3
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14009bec3
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14009beb4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.14006d1c0
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14009beb4
mov rcx, qword [0x140123378]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp sub.kernel32.dll_HeapFree
Function at 0x14009da40
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 [0x140123410]
mov ecx, 0x10
mov edx, 8
call fcn.140007180
test rax, rax
je 0x14009dafc
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14009db60]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14009daef
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14009daca
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140007210
mov rcx, qword [0x140123378]
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
mov ecx, 8
mov edx, 0x10
call fcn.140007760
ud2

Function at 0x14009de10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.1400dba20
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x3c]
lea rbx, [0x140095b60]
lea r13, [rsp + 0x60]
lea r12, [0x1400fdb58]
mov qword [rsp + 0x48], rdi

Function at 0x14009e310
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x14009e346
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x14008f770]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.1400316b0
ud2
Function at 0x1400a3430
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400ee508]
test ecx, ecx
je 0x1400a354e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a3467
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400a3467
add rcx, 0x10
jmp 0x1400a3544
mov ecx, dword [0x1400ee508]
test ecx, ecx
je 0x1400a3561
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400a3527
mov rdi, rax
test rax, rax
jne 0x1400a34da
movzx eax, byte [0x140123410]
mov ecx, 0x20
mov edx, 8
call fcn.140007180
test rax, rax
je 0x1400a3587
mov rdi, rax
lea rax, [0x1400ee4f0]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400ee508]
test ecx, ecx
je 0x1400a3574
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1400a34f7
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400a3530
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400a352b
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400a3530
xor ecx, ecx
jmp 0x1400a3544
call fcn.14009e310
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400ee4f0]
call fcn.14006d9c0
mov ecx, eax
jmp 0x1400a3449
lea rcx, [0x1400ee4f0]
call fcn.14006d9c0
mov ecx, eax
jmp 0x1400a3477
lea rcx, [0x1400ee4f0]
call fcn.14006d9c0
mov ecx, eax
jmp 0x1400a34d2
mov ecx, 8
mov edx, 0x20
call fcn.140007760
ud2

Function at 0x1400a4e11
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400a4eaf
mov rdi, rax
movsxd r15, dword [rsp + 0x24]
lea rbx, [rsp + 0x28]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r15, 3
xor r12d, r12d
lea r14, [rsp + 0x40]
cmp r15, r12
je 0x1400a4e8a
lea rcx, [rdi + r12]
call fcn.1400db54d
mov r8, rdx
mov rcx, r14
mov rdx, rax
call fcn.1400a3b12
mov rcx, rbx
mov rdx, r14
call fcn.1400a518c
add r12, 8
jmp 0x1400a4e5d
mov rcx, rdi
call sub.kernel32.dll_LocalFree
test rax, rax
jne 0x1400a4e9c
call fcn.1400db52f
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
jmp 0x1400a4ebd
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400aa12b
Capabilities:
Get hostname

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 5
call sub.kernel32.dll_GetComputerNameExW
mov rcx, rsi
mov edx, eax
add rsp, 0x20
pop rsi
jmp 0x1400a3953

Function at 0x1400dcaa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400dd870
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400dd870
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400dcb10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140123494]
mov rbx, rcx
test esi, esi
jle 0x1400dcc40
mov rax, qword [0x140123498]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400dcb5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400dcbe5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400dcb40
mov rcx, rbx
call fcn.1400dd590
mov rdi, rax
test rax, rax
je 0x1400dcc62
mov rax, qword [0x140123498]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400dd6d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140123498]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400dcc47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400dcbde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400dcbf0
add dword [0x140123494], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140123498]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400dcbde
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400dcaa0
nop dword [rax]
xor esi, esi
jmp 0x1400dcb68
mov rax, qword [0x140123498]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400dcaa0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400dcaa0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400dd200
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140123500]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401234e0]
test rbx, rbx
je 0x1400dd25c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400dd253
test eax, eax
jne 0x1400dd253
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400dd238
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400dd590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140115520]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400dd5b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400dd5b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400dd5b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400dd60d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400dd604
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400dd5b0
add rax, 0x28
cmp rax, r9
jne 0x1400dd5f0
xor eax, eax
ret

Function at 0x1400dd610
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140115520]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400dd62f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400dd638
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400dd62f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400dd6d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140115520]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400dd6ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400dd6f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret