joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400560c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140056126
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140030950
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400561e1
sub ecx, 1
je 0x140056254
sub ecx, 1
je 0x140056190
cmp ecx, 1
je 0x140056173
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140075ad0]
call fcn.140030950
jmp 0x140056254
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140055d60
test eax, eax
je 0x140056254
jmp 0x1400560fa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140056254
sub rax, rsi
cmp rax, rbp
jae 0x140056254
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140030ad0
jmp 0x140056254
cmp r8d, 4
jle 0x140056254
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140056254
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140030870
mov esi, eax
test eax, eax
je 0x140056233
mov edx, 5
mov rcx, rbx
call fcn.140056d20
mov eax, esi
jmp 0x1400560fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14003f150
mov rcx, r14
call fcn.14003f430
test eax, eax
je 0x1400560f8
mov edx, 5
mov rcx, rbx
call fcn.140056d20
mov eax, Ordinal_46
jmp 0x1400560fa
Function at 0x140068ff0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140069032
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140069079
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400690d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140069090
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140069113
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007b25a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007b25b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400690e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006a2d0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140028700]
mov dword [rax], 1
mov rax, qword [0x140028710]
mov dword [rax], 1
mov rax, qword [0x140028720]
mov dword [rax], 1
mov rax, qword [0x140028680]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400015e0
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
add rdx, rcx
lea rdi, [rsp + 0x60]
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
and word [rdi + 0x10], 0
mov rbx, r9
mov r14, r8
mov ebp, 1
mov dword [rdi + 0x18], ebp
lea rsi, [rsp + 0x98]
mov rcx, rsi
mov rdx, rdi
call fcn.1400019a5
lea rax, str.MicrosoftSync
mov qword [rdi], rax
lea rax, [0x1400247c5]
mov qword [rdi + 8], rax
and word [rdi + 0x10], 0
mov dword [rdi + 0x18], ebp
lea rcx, [rsp + 0x80]
lea rdi, [rsp + 0x60]
mov rdx, rdi
call fcn.1400019a5
add rbx, r14
mov qword [rdi], r14
mov qword [rdi + 8], rbx
and word [rdi + 0x10], 0
mov dword [rdi + 0x18], ebp
lea rcx, [rsp + 0x48]
lea rdi, [rsp + 0x60]
mov rdx, rdi
call fcn.1400019a5
and qword [rdi], 0
mov rsi, qword [rsi]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x1400016f2
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x58]
add r8d, r8d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov r9d, 1
call sub.advapi32.dll_RegSetValueExW
mov rcx, qword [rsp + 0x60]
call sub.advapi32.dll_RegCloseKey
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegCreateKeyExW
mov rdi, qword [rsp + 0x80]
test eax, eax
je 0x140001738
mov rbx, qword [rsp + 0x48]
jmp 0x14000176c
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x58]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call sub.advapi32.dll_RegSetValueExW
mov rcx, qword [rsp + 0x60]
call sub.advapi32.dll_RegCloseKey
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400150e9
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
call fcn.1400150e9
mov rdx, qword [rsp + 0xa0]
mov rcx, rsi
call fcn.1400150e9
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14000b28b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x14000b307
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x14000b2e7
cmp r14, rdi
jb 0x14000b344
cmp r14, rax
ja 0x14000b344
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x14000b2f1
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x14000b2d4
jmp 0x14000b2f9
mov rdx, rbx
mov rdi, r14
jbe 0x14000b2ae
jmp 0x14000b307
mov rdx, rbx
mov rdi, r14
jmp 0x14000b2ae
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x14000b2fb
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x14000b325
mov r11, r8
jmp 0x14000b33c
cmp r8, r10
je 0x14000b344
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x14000b2fb
xor al, 1
jmp 0x14000b30f
ud2
Function at 0x14000f4b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x79], 0
je 0x14000f4cb
xor esi, esi
jmp 0x14000f662
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
lea rdx, [rcx + 8]
cmp qword [rcx], 0
je 0x14000f512
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8, rsi
call fcn.14000f67d
cmp qword [rbx], 0
jne 0x14000f64a
jmp 0x14000f60f
mov al, byte [rdi + 0x1a]
mov r9, qword [rdi + 0x50]
mov r8, qword [rdi + 8]
mov r10b, byte [rdi + 0x18]
test al, al
jne 0x14000f60f
mov ecx, r10d
xor cl, 1
mov byte [rdi + 0x18], cl
test r8, r8
je 0x14000f54e
cmp r9, r8
jbe 0x14000f548
cmp byte [rsi + r8], 0xbf
jg 0x14000f54e
jmp 0x14000f670
jne 0x14000f670
cmp r9, r8
je 0x14000f606
movzx ebx, byte [rsi + r8]
test bl, bl
js 0x14000f565
mov r11d, ebx
jmp 0x14000f5bb
mov r11d, ebx
and r11d, 0x1f
movzx r14d, byte [rsi + r8 + 1]
and r14d, 0x3f
cmp bl, 0xdf
jbe 0x14000f5ab
movzx ebp, byte [rsi + r8 + 2]
shl r14d, 6
and ebp, 0x3f
or ebp, r14d
cmp bl, 0xf0
jb 0x14000f5b4
movzx ebx, byte [rsi + r8 + 3]
and r11d, 7
shl r11d, 0x12
shl ebp, 6
and ebx, 0x3f
or ebx, ebp
or r11d, ebx
jmp 0x14000f5bb
shl r11d, 6
or r11d, r14d
jmp 0x14000f5bb
shl r11d, 0xc
or r11d, ebp
test r10b, r10b
jne 0x14000f63d
cmp r11d, 0x110000
je 0x14000f60b
mov r10d, 1
cmp r11d, 0x80
jb 0x14000f5f8
mov r10d, 2
cmp r11d, 0x800
jb 0x14000f5f8
cmp r11d, 0x10000
mov r10d, 4
sbb r10, 0
add r8, r10
mov qword [rdx], r8
mov r10d, ecx
jmp 0x14000f521
test r10b, r10b
jne 0x14000f640
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x14000f4c4
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jne 0x14000f634
cmp rdx, rsi
je 0x14000f4c4
sub rdx, rsi
add rsi, qword [rdi + 0x48]
jmp 0x14000f662
mov r9, r8
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r9
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x68]
add rsi, rcx
sub rdx, rcx
mov qword [rdi + 0x68], rax
mov rax, rsi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
mov rdx, r9
call fcn.14000bb6e
ud2

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov r14, rcx
lea r15, [rsp + 0x28]
mov r13d, 0x7fffffff
lea rsi, str.failed_to_write_whole_buffer
test rdi, rdi
je 0x14000f9d2
cmp rdi, r13
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rcx, r14
mov rdx, rbx
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x14000f9a6
test eax, eax
je 0x14000f9d9
cdqe
sub rdi, rax
jb 0x14000f9ec
add rbx, rax
jmp 0x14000f971
call fcn.140015279
mov r12, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
mov rcx, rax
call fcn.14000f820
cmp al, 0x23
jne 0x14000f9d6
mov rcx, r15
call fcn.14000da7c
jmp 0x14000f971
xor esi, esi
jmp 0x14000f9d9
mov rsi, r12
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14000f9f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov r14, rcx
lea r15, [rsp + 0x28]
xor esi, esi
mov r13d, 0x7fffffff
test rdi, rdi
je 0x14000fa92
cmp rdi, r13
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rcx, r14
mov rdx, rbx
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14000fa4b
cdqe
test rax, rax
je 0x14000fa86
sub rdi, rax
jb 0x14000faa5
add rbx, rax
jmp 0x14000fa15
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x14000fa86
mov r12d, eax
shl r12, 0x20
or r12, 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 1
mov rcx, r12
call fcn.14000f820
cmp al, 0x23
jne 0x14000fa8f
mov rcx, r15
call fcn.14000da7c
jmp 0x14000fa15
lea rsi, str.failed_to_fill_whole_buffer
jmp 0x14000fa92
mov rsi, r12
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x14000fda4
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140023030]
call fcn.14000fddb
mov ecx, eax
add rsp, 0x28
jmp fcn.140020820

Function at 0x14000fdbf
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.14000fddb
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140020828

Function at 0x14000fddb
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140018b50
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140018bc0
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140018c07
cmp dword [rsp + 0x2c], 0
je 0x140018be8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140018bf7
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14002d120]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14002d120], rsi
jne 0x140018ba2
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140018bed
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140018c07
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140018bed
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140018bed
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x14001082d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140012c5a
test rax, rax
je 0x140010865
mov edx, 4
mov rcx, rax
call fcn.1400087e0
jmp 0x14001089e
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.14000fd41
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.14000fe28
Function at 0x140012c5a
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140012ceb
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140012c7a
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x140012c7a
xor ebx, 0x80000000
je 0x140012ce9
mov al, byte [0x14002d140]
mov ecx, 4
mov edx, 4
call fcn.140008750
test rax, rax
je 0x140012cfe
mov rsi, rax
mov dword [rax], ebx
jmp 0x140012ceb
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.140008cfa
ud2

Function at 0x140015fce
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140027968]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14001603d
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140016073
test eax, eax
js 0x14001604e
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140016066
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140016284
mov rcx, rax
call fcn.140015d4b
mov ecx, 7
int 0x29
ud2

Function at 0x140018afd
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000fddb
mov ecx, eax
add rsp, 0x28
jmp fcn.140020820
Function at 0x140018b50
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140018b50
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140018bc0
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140018c07
cmp dword [rsp + 0x2c], 0
je 0x140018be8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140018bf7
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14002d120]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14002d120], rsi
jne 0x140018ba2
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140018bed
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140018c07
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140018bed
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140018bed
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x1400197c5
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rdi, rcx
lea rbx, [rsp + 0x78]
mov rcx, rbx
call fcn.1400191df
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
call fcn.140019989
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140019917
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x14001985b
lea rbp, [rsp + 0x78]
mov edi, 0x200
mov rbx, r8
jmp 0x140019890
sub r8, r13
lea rcx, [rsp + 0x40]
mov rdx, r8
call fcn.1400146a0
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x50], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x1400198b6
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14001991d
mov r8d, esi
cmp rbx, r8
jne 0x1400198de
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140019985
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x140019843
jb 0x140019843
cmp rdi, r8
jb 0x140019985
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbp
call fcn.1400152c3
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.1400150e9
cmp bl, 2
jne 0x140019948
mov rbx, qword [rsp + 0x58]
jmp 0x140019930
mov byte [rdi + 0x18], 2
jmp 0x140019970
call fcn.140014b12
mov rbx, rax
mov rcx, r12
mov rdx, r15
call fcn.1400150e9
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rax + 0x18], 2
mov rcx, rbx
call fcn.140014778
jmp 0x140019963
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.1400150e9
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2