joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800020a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800020a8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180002095
nop
cmp rbx, rcx
jae 0x1800020a8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180002080
cmp rbx, rcx
jae 0x1800020a8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1800020aa
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800020c0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x18004e040]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [0x1805965c0]
test rcx, rcx
jne 0x18000211e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002143
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1805965c0], rax
jmp 0x180002127
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x180002143
xor edx, edx
lea rcx, [0x180045648]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x1800021ab
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x1800021a9
dec eax
cmp word [rsp + rax*2 + 0x20], 0x5c
je 0x180002182
lea r8, [0x180045644]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call fcn.18001f114
test eax, eax
jne 0x1800021a9
lea r8, [0x180045648]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call fcn.18001f114
test eax, eax
jne 0x1800021a9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1800021ab
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180010e90
add rsp, 0x240
pop rbx
ret
Function at 0x18000d040
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18004e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000d16b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18000d162
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18000d144
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18000d144
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18000d144
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18000d102
mov rcx, qword [0x180595e28]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18000d162
jmp 0x18000d137
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18000d137
mov rcx, qword [0x180595e28]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18000d162
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18000d0b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18000d1c5
cmp dword [rbx + 0xc], esi
jbe 0x18000d1c5
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000d1be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18000cea0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18000d180
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180010e90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18000d1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18004e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
mov ebp, 7
add rbx, qword [0x1805966a0]
mov edx, 5
mov r8d, 0x40
mov rcx, qword [rbx]
movzx eax, byte [rbx + 0x20]
test al, al
lea rdi, [rcx - 5]
cmove ebp, edx
cmove rdi, rcx
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000d261
mov eax, 0xa
jmp 0x18000d2db
test esi, esi
je 0x18000d283
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
cmp byte [rbx + 0x20], 0
je 0x18000d2a6
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18000d2a6
mov eax, dword [rbx + 0x18]
cmp byte [rbx + 0x20], 0
mov dword [rdi], eax
je 0x18000d29f
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18000d2a6
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor eax, eax
mov byte [rbx + 0x21], sil
mov byte [rbx + 0x22], sil
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180010e90
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18000d300
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1805966ac]
mov ebx, edi
test ecx, ecx
je 0x18000d41d
mov rax, qword [0x1805966a0]
add rax, 0x21
nop
movzx edx, byte [rax]
cmp edx, esi
jne 0x18000d353
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18000d330
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18000d41d
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18000d040
mov edx, dword [0x1805966ac]
cmp ebx, edx
jae 0x18000d3b1
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1805966a0]
movzx ecx, byte [rcx + rax + 0x21]
cmp ecx, esi
je 0x18000d3ab
mov edx, esi
mov ecx, ebx
call fcn.18000d1f0
mov edi, eax
test eax, eax
jne 0x18000d3b1
mov edx, dword [0x1805966ac]
inc ebx
cmp ebx, edx
jb 0x18000d380
cmp qword [rsp + 0x20], 0
je 0x18000d41d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000d409
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000d3fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18000d3d0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180595e28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000d710
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180595e20], ebp
je 0x18000d767
cmp rbx, 0x20
jae 0x18000d750
xor ecx, ecx
jmp 0x18000d752
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180595e20], ebp
jne 0x18000d746
cmp qword [0x180595e28], r15
je 0x18000d863
test rdi, rdi
jne 0x18000d787
mov ecx, esi
call fcn.18000d300
mov ebp, eax
jmp 0x18000d868
mov ecx, dword [0x1805966ac]
mov ebx, r15d
test ecx, ecx
je 0x18000d7af
mov r8, qword [0x1805966a0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18000d7b9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18000d7a0
mov ebp, 4
jmp 0x18000d868
cmp ebx, 0xffffffff
je 0x18000d7af
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x21]
cmp eax, esi
je 0x18000d85a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18000d040
mov edx, esi
mov ecx, ebx
call fcn.18000d1f0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18000d868
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000d844
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000d83a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18000d810
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180595e28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000d868
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18000d868
mov ebp, 2
xchg dword [0x180595e20], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180020c4c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180036ea0
sub rsp, rax
mov rax, qword [0x18004e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002491c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180020c9b
mov rax, rbp
jmp 0x180020da3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x595680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002b094
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x595680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180020d9f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180020d9f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002b094
test rax, rax
js 0x180020d9f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180020d9f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180020d91
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180020d91
cmp byte [rcx], 0xd
jne 0x180020d77
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180020d86
cmp byte [rcx + 1], 0xa
jne 0x180020d86
inc rcx
jmp 0x180020d86
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180020d59
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180020da3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180010e90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180021994
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180021a03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180021a03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180021a03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180021a03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180021a03
cmp dword [rcx + 0x84], 0xe
jbe 0x180021a03
cmp dword [rcx + 0xf8], 0
je 0x180021a03
mov ecx, ebx
call fcn.180021ab4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180021890
nop
cmp dword [rbp + 0x20], 0
je 0x180021a51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180021a5c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180021994
Function at 0x18002a434
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180595680]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002a48b
cmp word [rdx], r13w
jne 0x18002a48b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002a490
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18002a5b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002a5d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002a4c9
mov rdx, r9
mov word [rbx], cx
jmp 0x18002a4f0
cmp r9, r8
jae 0x18002a500
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18002a4aa
jmp 0x18002a5b5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002a5aa
cmp dword [rsp + 0x80], esi
je 0x18002a5aa
lea r8, [0x180595680]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002a582
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002a552
mov word [rbx], r13w
jmp 0x18002a5b2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002a55f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002a5b2
cmp word [rsp + 0x70], r13w
jne 0x18002a58f
cmp rbx, r14
je 0x18002a54c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002b09c
cmp word [rsp + 0x70], r13w
je 0x18002a5b5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180595680]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002a5af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18002a5b5
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ror byte [rdi - 7], cl
invalid
outsb dx, byte [rsi]
cwde
cmp al, 0x41
or esi, dword [rax + 0x530b5691]
add al, 0x64
invalid
loope 0x14003f629
stosb byte [rdi], al
push rcx
cmpsb byte [rsi], byte [rdi]
invalid
popfq
sbb eax, 0xec239aa8
test eax, 0x94243d95
xlatb
or ebp, dword [rbx - 0x44]
add dword [rax], edi
push rsi
and dword [rbx + 0x47dfa23a], esi
and bh, bh
int3
mov ah, 0xa0
sar dword [rdx + riz*2], 0x83
mov eax, esi
int3
add byte [rcx], dh
lodsd eax, dword [rsi]
invalid
call 0xdee5b638
sub al, 0xc6
push rbx
in eax, dx
xor al, 0x11
sbb dword [rcx + 0x5ebf44b8], edi
xor cl, byte [rdx + 0x76d0f49]
or ah, byte [rax - 0x1a88833]
ret 0xd860
Function at 0x140001600
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
mov r10d, edx
test r9d, r9d
jle 0x14000162e
lea r11, str.Gqi9R_Np__Fz58_pLKc4EEX_tF_erkVg8_2owmujAFa_
mov eax, ecx
lea r8, [r8 + 1]
cdq
inc ecx
idiv r10d
movsxd rax, edx
movzx eax, byte [rax + r11]
xor byte [r8 - 1], al
cmp ecx, r9d
jl 0x140001611
ret

Function at 0x140002000
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002021
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000204e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002050
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400020a9
test ecx, ecx
jle 0x140002089
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400020a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400020a9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
pop r8
ret
push r9
pop rcx
cmp byte [rsi], dl
rcl byte [rax - 0x6b8a6d78], 0x4f
jne 0x14000c4f0
push r9
invalid
je 0x14000c62a
and byte [rdi], ah
jb 0x14000c546
jae 0x14000c550
invalid
pop rbx
Function at 0x1400020d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400020f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002101
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002124
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002126
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002162
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400021fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000219d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400021de
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400021fe
cmp rbx, rax
ja 0x1400021b0
test rbx, rbx
je 0x1400021fe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
imul edi, dword [rbp - 0x58], 0x69
jmp [0x1ad783004]
jne 0x14000c4f0
push r9