joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402d69e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1403d6910
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.14028d7b0
test eax, eax
je 0x1402d6a1f
xor edx, edx
mov rcx, rbx
call fcn.14028dc30
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x1402d6a67
mov edx, ebp
mov rcx, rbx
call fcn.14028e1d0
test rax, rax
je 0x1402d6acd
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x1402d6a87
mov qword [r8], rcx
test rdi, rdi
jle 0x1402d6abe
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x1402d6a90
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x1402d6ac8
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x1402d8350
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1403d6910
sub rsp, rax
lea rcx, [0x1406ad994]
add rsp, 0x28
jmp fcn.1402a33a0

Function at 0x140304140
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.1403d6910
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x140304193
xor ecx, ecx
cmp rdx, r8
jb 0x140304193
sub r8, r10
lea rax, [rcx + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rcx
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140304180
jmp 0x1403041a6
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.1402d12d0
test eax, eax
je 0x1403041d7
cmp dword [rsp + 0x40], 0x10
jne 0x1403041d7
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x140304380
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140304408
test r8, r8
je 0x140304408
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x1403043c6
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1403043b0
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x140304408
sub r8, rax
cmp r8, 0x10
jbe 0x1403043dc
mov r8d, reloc.WS2_32.dll_recv
jmp 0x1403043e1
test r8, r8
je 0x140304408
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x1403043f0
ret
Function at 0x14030aea0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xd8
call fcn.1403d6910
sub rsp, rax
mov rax, qword [0x14059a600]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, qword [rsp + 0x140]
xor r12d, r12d
mov rax, qword [rcx]
mov rbp, r9
movsxd rbx, r8d
mov rsi, rdx
mov qword [rsp + 0x20], r14
mov rdi, rcx
lea r15d, [r12 + 1]
mov r13d, r12d
test r9, r9
je 0x14030af0f
cmp r9, rax
je 0x14030af07
test rdx, rdx
je 0x14030af80
test r8d, r8d
js 0x14030af80
mov r13d, r15d
mov qword [rcx], r9
jmp 0x14030af17
test rax, rax
je 0x14030af80
mov rbp, rax
mov rcx, rbp
call fcn.140284a20
test al, 2
jne 0x14030af80
test rsi, rsi
je 0x14030afe8
mov rcx, rbp
mov r13d, r15d
call fcn.1402aeae0
cmp eax, 0x90
jg 0x14030af80
cmp eax, ebx
jge 0x14030afa6
mov rcx, qword [rdi + 8]
mov r8, r14
mov rdx, rbp
call fcn.140291c80
test eax, eax
je 0x14030af80
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, rsi
call fcn.140291ee0
test eax, eax
je 0x14030af80
mov rcx, qword [rdi + 8]
lea rsi, [rdi + 0x20]
mov r8, rsi
lea rdx, [rdi + 0x24]
call fcn.140291ba0
test eax, eax
jne 0x14030afc3
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1403d5a60
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp ebx, 0x90
ja 0x14030af80
mov r8, rbx
lea rcx, [rdi + 0x24]
mov rdx, rsi
call fcn.1403d8420
lea rsi, [rdi + 0x20]
mov dword [rsi], ebx
mov ecx, dword [rsi]
cmp ecx, 0x90
je 0x14030aff1
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rdi + 0x24]
add rcx, rax
call fcn.1403d8ad0
jmp 0x14030aff1
test r13d, r13d
je 0x14030b0c6
lea r14, [rsp + 0x30]
mov esi, 0x48
sub r14, rdi
lea rbx, [rdi + 0x25]
lea r15, [rsp + 0x31]
mov rcx, rbx
sub r15, rdi
mov edx, esi
nop
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 2]
xor al, 0x36
mov byte [r14 + rcx - 0x27], al
movzx eax, byte [rcx - 2]
xor al, 0x36
mov byte [r15 + rcx - 0x27], al
sub rdx, 1
jne 0x14030b010
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x10]
call fcn.140291c80
test eax, eax
je 0x14030b0d9
mov rcx, rbp
call fcn.1402aeae0
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.140291ee0
test eax, eax
je 0x14030b0d9
nop word [rax + rax]
movzx eax, byte [rbx - 1]
lea rbx, [rbx + 2]
xor al, 0x5c
mov byte [rbx + r14 - 0x27], al
movzx eax, byte [rbx - 2]
xor al, 0x5c
mov byte [rbx + r15 - 0x27], al
sub rsi, 1
jne 0x14030b070
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x18]
call fcn.140291c80
test eax, eax
je 0x14030b0d9
mov rcx, rbp
call fcn.1402aeae0
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.140291ee0
test eax, eax
je 0x14030b0d9
lea r15d, [rsi + 1]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call fcn.140291f50
test eax, eax
cmovne r12d, r15d
test r13d, r13d
je 0x14030b0ed
mov edx, 0x90
lea rcx, [rsp + 0x30]
call fcn.140001240
mov eax, r12d
jmp 0x14030af82
Function at 0x140352020
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.1403d6910
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x140352049
lea rax, [0x140350690]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1403495d0
lea rax, [0x14034f850]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.140349320
Function at 0x1403cb428
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1403b51a6
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1403b5189
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1403b5174

Function at 0x1403eaa30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1403ea8c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1403ea8c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1403ea8c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1403ea8c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403ea8c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1403ea8c3
cmp dword [rcx + 0xf8], 0
je 0x1403ea8c3
mov ecx, ebx
call fcn.1403ea964
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1403ea754
cmp dword [rbp + 0x20], 0
je 0x1403ea910
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1403ea918
int3
xor r8d, r8d
xor edx, edx
jmp 0x1403ea85c

Function at 0x14040a6a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14040a6c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1403ea6b0
or eax, 0xffffffff
jmp 0x14040a6c2
xor eax, eax
add rsp, 0x28
ret
Function at 0x140005320
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000537e
cmp dword [0x140016640], 2
je 0x140005360
call fcn.140143000
mov ecx, 0x12
call fcn.140008f30
mov ecx, 0xff
call fcn.140004e50
mov eax, 0xff
jmp 0x140005586
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400053af
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x140005586
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x1400053e1
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x1400165cc], r13d
mov dword [0x1400165d4], eax
mov dword [0x1400165d8], esi
mov dword [0x1400165dc], r12d
mov dword [0x1400165d0], edi
cmp word [0x140000000], 0x5a4d
jne 0x140005467
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140005435
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
cmp word [rax + 0x18], 0x20b
je 0x140005445
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
cmp dword [rax + 0x84], 0xe
ja 0x140005456
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140006f30
test eax, eax
jne 0x14000549d
cmp dword [0x140016640], 2
je 0x140005489
call fcn.140009170
mov ecx, 0x1c
call fcn.140008f30
mov ecx, 0xff
call fcn.140004e50
call fcn.140008660
test eax, eax
jne 0x1400054c8
cmp dword [0x140016640], 2
je 0x1400054b4
call fcn.140009170
mov ecx, 0x10
call fcn.140008f30
mov ecx, 0xff
call fcn.140004e50
call fcn.1400096c0
nop
call fcn.14000a610
test eax, eax
jns 0x1400054e1
mov ecx, 0x1b
call fcn.140004e20
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x1400187d0], rax
call fcn.14000a440
mov qword [0x140016630], rax
call fcn.14000a330
test eax, eax
jns 0x14000550d
mov ecx, 8
call fcn.140004e20
call fcn.140009fa0
test eax, eax
jns 0x140005520
mov ecx, 9
call fcn.140004e20
mov ecx, 1
call fcn.140004f90
test eax, eax
je 0x140005535
mov ecx, eax
call fcn.140004e20
mov r8, qword [0x1400165f8]
mov qword [0x140016600], r8
mov rdx, qword [0x1400165e8]
mov ecx, dword [0x1400165e0]
call fcn.140002cb0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140005566
mov ecx, eax
call fcn.1400051a0
call fcn.1400051c0
jmp 0x140005584
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.14000a940
add rsp, 0x28
jmp 0x140005320
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400c2250]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400c2260]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400176e0
jmp 0x14000123c
mov rax, qword [0x1400c2260]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400c2260]
mov dword [rax], 1
mov rax, qword [0x1400c22c0]
mov rdx, rax
mov rax, qword [0x1400c22b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400ed024], 1
mov rax, qword [0x1400c2260]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400c22a0]
mov rdx, rax
mov rax, qword [0x1400c2290]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400c2260]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400c2250]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400c2190]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400c2190]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000bd88
mov rax, qword [0x1400c2300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400c2240]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000b580
mov eax, dword [0x1400ed004]
lea rdx, [0x1400ed008]
mov ecx, eax
call fcn.14000147c
call fcn.14000b317
mov rax, qword [0x1400c21d0]
mov rax, qword [rax]
mov rdx, qword [0x1400ed010]
mov qword [rax], rdx
mov rcx, qword [0x1400ed010]
mov rdx, qword [0x1400ed008]
mov eax, dword [0x1400ed004]
mov r8, rcx
mov ecx, eax
call fcn.1400b5070
mov dword [0x1400ed01c], eax
mov eax, dword [0x1400ed020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400ed01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400ed024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400ed01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c2200]
mov dword [rax], 1
mov rax, qword [0x1400c2210]
mov dword [rax], 1
mov rax, qword [0x1400c2220]
mov dword [rax], 1
mov rax, qword [0x1400c21c0]
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 0x14000b590
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140017470
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000c262
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ed168]
test eax, eax
je 0x14000c2fa
lea rax, [0x1400ed140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ed170]
mov qword [rbp - 8], rax
jmp 0x14000c2de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000c2d2
cmp qword [rbp - 0x10], 0
je 0x14000c2d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000c298
lea rax, [0x1400ed140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000c2fb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140018639
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x78], rax
movzx eax, byte [rbp - 0x78]
and eax, 0xfffffffe
mov byte [rbp - 0x78], al
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
mov edx, eax
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
sub eax, 1
and eax, edx
and eax, 0xf
and eax, 0xf
lea edx, [rax + rax]
movzx eax, byte [rbp - 0x78]
and eax, 0xffffffe1
or eax, edx
mov byte [rbp - 0x78], al
mov rax, qword [rbp - 0x70]
shr rax, 9
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 1
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x58]
cmp rdx, rax
cmovbe rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x70]
shr rax, 9
sub rax, qword [rbp - 8]
movabs rdx, 0x7fffffffffffff
and rax, rdx
shl rax, 9
mov rdx, rax
mov rax, qword [rbp - 0x78]
and eax, 0x1ff
or rax, rdx
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x38]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x80]
mov rax, qword [rdx]
lock cmpxchg qword [r8], rcx
mov rcx, rax
sete al
test al, al
jne 0x140018754
mov qword [rdx], rcx
mov byte [rbp - 0x41], al
mov rdx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x30]
mov qword [rax], rdx
movzx eax, byte [rbp - 0x41]
xor eax, 1
test al, al
jne 0x14001866e
movzx eax, byte [rbp - 0x70]
and eax, 0x1e
test al, al
je 0x1400187a9
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
movzx edx, al
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140017dc2
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x61], 1
movzx eax, byte [rbp - 0x61]
movzx edx, al
mov rax, qword [rbp - 0x60]
mov byte [rax], dl
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14001aa82
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x140019278
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
test eax, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 4]
test eax, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
mov rax, qword [0x1400c2150]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
test rax, rax
call fcn.140018e61
mov rdx, qword [rbp + 0x10]
mov dword [rdx + 4], eax
mov rax, qword [rbp + 0x10]
add rax, 8
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, 0xffffffffffffffff
mov rdx, 0xfffffffffffffffe
mov rcx, 0xffffffffffffffff
mov rax, qword [sym.imp.ntdll.dll_NtDuplicateObject]
call rax
test eax, eax
jns 0x14001931b
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call fcn.14001b220
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
jne 0x140019337
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call fcn.14001b220
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 1
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 8]
mov dword [rax], edx
mov rax, qword [0x1400c2150]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001937e
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call fcn.14001b220
mov rax, qword [rbp + 0x10]
add rsp, 0x50
pop rbp
ret

Function at 0x14001952d
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1400c2150]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
setne al
movzx eax, al
test eax, eax
je 0x140019566
mov rax, qword [rbp - 8]
jmp 0x14001958e
mov ecx, 0x640
call fcn.14001a75c
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140019582
mov eax, 0
jmp 0x14001958e
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.140019278
add rsp, 0x30
pop rbp
ret

Function at 0x140019b43
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [0x1400c2150]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140019bb3
jmp 0x140019b92
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x30]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call rdx
nop
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x20]
mov rcx, qword [rbp + 0x10]
lea rax, [rbp - 0x30]
mov r8, rcx
mov rcx, rax
call fcn.140019cf4
test eax, eax
je 0x140019b74
jmp 0x140019bb4
nop
add rsp, 0x50
pop rbp
ret