joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417c00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417e26
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00436620
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x417c73
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x417c82
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x417ca5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x417cb5
cmp rbx, 0x1000
jae 0x417c79
nop
jmp 0x417d38
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x417ccd
xor esi, esi
jmp 0x417d2a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00436620
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x417cab
jmp 0x417c96
call fcn.0046cbc0
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417dc0
nop dword [rax + rax]
call fcn.0043aa80
lea rax, [0x0055b502]
mov ebx, 0x19
call fcn.0043b300
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.0043b040
lea rax, [0x0055b4e9]
mov ebx, 0x19
call fcn.0043b300
mov eax, dword [rsp + 0x34]
call fcn.0043b040
nop
call fcn.0043acc0
call fcn.0043aae0
lea rax, [0x005576c5]
mov ebx, 0xd
call fcn.00438fe0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x417d60
call fcn.0043aa80
lea rax, [0x0055b502]
mov ebx, 0x19
call fcn.0043b300
mov rax, qword [rsp + 0x38]
call fcn.0043b040
lea rax, [0x0055b4e9]
mov ebx, 0x19
call fcn.0043b300
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.0043b040
call fcn.0043acc0
call fcn.0043aae0
lea rax, [0x0055d425]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00438fe0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00417c00
Function at 0x421c00
Capabilities:
Hash data using murmur3

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
cmp byte [0x006e7353], 0
jne 0x421cf0
sub rbx, qword [rax + 0x18]
mov rdx, qword [rax + 0x48]
test byte [rdx], al
mov ecx, dword [rax + 0x5c]
imul rcx, rbx
mov rbx, rcx
shr rbx, 0x20
shr rcx, 0x23
and ebx, 7
mov rsi, rcx
mov rcx, rbx
mov edi, 1
shl edi, cl
add rdx, rsi
nop
nop
nop
nop
lock or byte [rdx], dil
mov rcx, qword [rax + 0x18]
movabs rdx, 0x800000000000
add rdx, rcx
mov rbx, rdx
shr rdx, 0x2a
nop
nop
nop
cmp rdx, 0x40
jae 0x421ce3
lea rsi, [0x00679458]
mov rdx, qword [rsi + rdx*8]
test byte [rdx], al
mov rsi, rcx
shr rsi, 0x10
and esi, 0x3f
shr rcx, 0xd
and ecx, 7
mov edi, 1
shl edi, cl
shr rbx, 0x16
and ebx, 0xfffff
mov rdx, qword [rdx + rbx*8]
test byte [rdx], al
movzx ebx, byte [rdx + rsi + 0x1040]
lea rdx, [rdx + rsi]
lea rdx, [rdx + 0x1040]
test dil, bl
jne 0x421cbe
lock or byte [rdx], dil
mov rcx, qword [r14 + 0x30]
mov rcx, qword [rcx + 0xa0]
test byte [rcx], al
mov rdx, qword [rcx + 0x1270]
add rdx, qword [rax + 0x68]
mov qword [rcx + 0x1270], rdx
add rsp, 0x10
pop rbp
ret
mov rax, rdx
mov ecx, 0x40
call fcn.0046b760
lea rax, [0x005603a3]
mov ebx, 0x2c
nop dword [rax]
call fcn.00438fe0
nop
int3

Function at 0x424140
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x424246
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov byte [rsp + 0x70], dil
mov qword [rsp + 0x10], 0
jmp 0x424183
mov rax, qword [rsp + 0x58]
mov rcx, rdx
mov rbx, qword [rsp + 0x60]
movzx edi, byte [rsp + 0x70]
cmp qword [rsp + 0x10], rbx
jae 0x42423b
test byte [rax], al
lea rcx, [rax + 0x100b8]
mov ebx, edi
mov rax, rcx
nop dword [rax]
call fcn.00424f20
test rax, rax
je 0x42423b
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x00424280]
mov qword [rsp + 0x18], rcx
lea rdx, [rsp + 0x10]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x18]
mov qword [rsp], rbx
nop dword [rax]
call fcn.00469340
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x68]
nop dword [rax]
test rdx, rdx
jne 0x424229
xor eax, eax
jmp 0x424233
mov rax, qword [rdx]
call rax
mov rdx, qword [rsp + 0x68]
test al, al
je 0x424171
mov rax, qword [rsp + 0x10]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x20], dil
call fcn.00469460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
jmp fcn.00424140
Function at 0x4440a0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x006e7310]
test rcx, rcx
jne 0x4440c4
xor ecx, ecx
xor edx, edx
jmp 0x4440d9
call fcn.0045a4e0
mov rcx, rbx
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], r14
mov rsi, qword [r14 + 0x30]
inc dword [rsi + 0xd8]
mov qword [r14 + 0x10], 0xfffffffffffffade
mov byte [r14 + 0xb7], 1
call fcn.00444040
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x70], rcx
mov rdx, qword [rsp + 0x60]
mov qword [rax + 0x78], rdx
mov ebx, 2
mov ecx, 3
call fcn.0043d960
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x70]
cmp qword [rcx], rdx
ja 0x444146
nop dword [rax + rax]
cmp qword [rcx + 8], rdx
jae 0x444182
movups xmmword [rsp + 0x40], xmm15
lea rax, [0x004443a0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x40]
mov qword [rsp], rax
call fcn.00469340
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x10]
test rax, rax
je 0x4441eb
movups xmmword [rsp + 0x28], xmm15
mov qword [rsp + 0x38], 0
lea rcx, [0x00444320]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp], rax
nop
call fcn.00469340
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00444040
mov rcx, qword [rsp + 0x20]
mov al, byte [0x006639f8]
test al, al
je 0x44422b
lea rax, [0x00563008]
mov qword [rsp], rax
call fcn.00469340
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00444040
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
cmp dword [rax + 0x2298], 0
nop
je 0x444278
lea rax, fcn.0043f1e0
mov qword [rsp], rax
call fcn.00469340
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00444040
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x30]
mov rdx, qword [rax + 0xa0]
mov edx, dword [rdx + 0x14]
mov dword [rax + 0x388], edx
mov rax, qword [rcx + 0x30]
mov rax, qword [rax + 0xa0]
mov qword [rax + 0x38], 0
mov rdx, qword [rcx + 0x30]
mov rbx, rax
mov qword [rdx + 0xb0], rax
mov rax, qword [rcx + 0x30]
mov qword [rax + 0xa0], 0
mov eax, 2
xchg dword [rbx + 4], eax
mov al, byte [0x006639e8]
test al, al
je 0x444304
lea rax, [0x00563000]
mov qword [rsp], rax
call fcn.00469340
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00444040
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x30]
dec dword [rax + 0xd8]
add rsp, 0x50
pop rbp
ret
Function at 0x449080
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4491e7
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x449092
cmp edx, ecx
jne 0x4491d5
nop word [rax + rax]
test rsi, rsi
jne 0x4491d5
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4490f4
nop
call fcn.0046d080
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00448fa0
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x4491d0
mov rdx, qword [0x00662298]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x4491c5
mov rcx, qword [0x00662290]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00663950]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00663950], rax
nop
mov edx, 1
lea rsi, [0x00663958]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1248]
shr rdx, 0x3d
test dl, dl
jne 0x4491b3
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1248], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x0055f896]
mov ebx, 0x28
nop
call fcn.00438fe0
mov rax, rsi
mov rcx, rdx
call fcn.0046b740
call fcn.004378c0
lea rax, [0x0055e660]
mov ebx, 0x23
call fcn.00438fe0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00449080
Function at 0x18000100c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov ecx, SafeArrayDestroy
xor edx, edx
lea r8d, [rcx - 0xb]
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
lea rdx, [rbp + 0x28]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 8
neg eax
mov eax, 0x2008
sbb r8d, r8d
xor edx, edx
mov word [rbp - 0x20], ax
and r8d, dword [rbp + 0x28]
mov dword [rbp + 0x28], r8d
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov qword [rbp - 0x18], rax
xor eax, eax
mov dword [rbp + 0x30], eax
cmp dword [rbp + 0x28], eax
jle 0x1800010a7
movsxd rcx, eax
mov rcx, qword [rsi + rcx*8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp + 0x30]
mov r8, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov eax, dword [rbp + 0x30]
inc eax
mov dword [rbp + 0x30], eax
cmp eax, dword [rbp + 0x28]
jl 0x18000107c
and dword [rbp + 0x38], 0
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov rbx, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800010cc
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rcx, qword [rcx]
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rsi, rdx
lea rdx, str.CLRCreateInstance
mov r15, r8
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1800011d3
lea rcx, [rbp - 0x10]
call fcn.180001000
lea rdx, [0x180010380]
lea rcx, [0x180010360]
mov r8, rax
call rbx
test eax, eax
js 0x1800011d3
mov rbx, qword [rbp - 0x10]
lea rcx, [rbp - 8]
mov rdi, qword [rbx]
call fcn.180001000
lea r8, [0x180010390]
mov r9, rax
mov rdx, rsi
mov rcx, rbx
call qword [rdi + SafeArrayCopy]
test eax, eax
jns 0x180001175
lea rcx, str.ICLRMetaHost::GetRuntime___S__failed_w_hr_0x_08lx_n
mov r8d, eax
mov rdx, rsi
call fcn.180001310
jmp 0x1800011d3
mov rcx, qword [rbp - 8]
lea rdx, [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
js 0x1800011d3
cmp dword [rbp + 0x38], 0
jne 0x18000119e
lea rcx, str..NET_runtime__ver__S__cannot_be_loaded_n
mov rdx, rsi
call fcn.180001310
jmp 0x1800011d3
mov rbx, qword [rbp - 8]
mov rcx, r15
mov rdi, qword [rbx]
call fcn.180001000
lea r8, [0x1800103a0]
lea rdx, [0x180010370]
mov r9, rax
mov rcx, rbx
call qword [rdi + 0x48]
movzx r14d, r14b
mov ecx, 1
test eax, eax
cmovns r14d, ecx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1800011e7
mov rdx, qword [rcx]
call qword [rdx + 0x10]
and qword [rbp - 0x10], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1800011f6
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov al, r14b
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x180001214
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbp, rdx
lea rdx, str.CorBindToRuntime
mov rsi, r8
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18000127c
mov rcx, rsi
call fcn.180001000
lea r9, [0x1800103a0]
lea r8, [0x180010370]
lea rdx, [0x180010468]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call rdi
movzx ebx, bl
mov edx, 1
test eax, eax
cmovns ebx, edx
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800018b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
lea rdi, [0x180018208]
lea r12, str.ThisIsThePatchData
cmp byte [rdi - 0x208], 0
je 0x180001a08
cmp byte [rdi - 0x104], 0
je 0x180001a08
movsxd rbp, ebx
imul rbp, rbp, 0x270
add rbp, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
jne 0x18000193e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18000193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Patch_index__d_error__d_loading_library__s_n
mov r9, rbp
mov r8d, eax
mov edx, ebx
call fcn.1800020f8
jmp 0x1800019f6
lea r15, [rbp + 0x104]
mov rcx, rsi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x180001983
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Patch_index__d_error__d_getting_proc_address_for:__s__s_n
mov r9, rbp
mov edx, ebx
mov r8d, eax
mov qword [rsp + 0x20], r15
call fcn.1800020f8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1800019f6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movsxd rcx, dword [rdi - 4]
movsxd rdx, dword [rdi]
lea r9, [rsp + 0x60]
add rcx, r14
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800019b4
lea rcx, str.____Patch_index__d_error_setting_memory_protection_n
jmp 0x1800019ef
movsxd rcx, dword [rdi - 4]
movsxd r8, dword [rdi]
lea rdx, [rbp + 0x20c]
add rcx, r14
call fcn.180002880
movsxd rcx, dword [rdi - 4]
movsxd rdx, dword [rdi]
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x68]
add rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800019f6
lea rcx, str.____Patch_index__d_error_re_setting_memory_protection_n
mov edx, ebx
call fcn.1800020f8
inc ebx
add rdi, 0x270
cmp ebx, 4
jl 0x1800018d6
xor edx, edx
mov r8d, 0x9c0
mov rcx, r12
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
jmp fcn.180002e30

Function at 0x180001af4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp dword [rcx], 0xa2a1de0
je 0x180001b11
cmp dword [rcx], 0x56a2b5f0
jne 0x180001b1a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
add rsp, 0x28
ret
Function at 0x180001b20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x18001a028]
mov r10, rcx
test eax, eax
je 0x180001b6a
mov r9, qword [0x18001a020]
test r9, r9
je 0x180001b6a
mov r8d, dword [0x18001a02c]
mov edx, r8d
cmp r8d, eax
jae 0x180001b6a
sub eax, r8d
lea rcx, [r8 + r9]
mov r8d, eax
mov rax, rdx
inc rdx
and eax, 3
mov al, byte [rax + r10 + 4]
xor byte [rcx], al
inc rcx
dec r8
jne 0x180001b52
repz ret
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 [0x14011e490]
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 [0x14011e4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400ffea0
jmp 0x14000123c
mov rax, qword [0x14011e4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14011e4a0]
mov dword [rax], 1
mov rax, qword [0x14011e4e0]
mov rdx, rax
mov rax, qword [0x14011e4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140122024], 1
mov rax, qword [0x14011e4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14011e4c0]
mov rdx, rax
mov rax, qword [0x14011e4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14011e4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14011e490]
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 [0x14011e3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14011e3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400ff128
mov rax, qword [0x14011e520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14011e480]
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.1400fe920
mov eax, dword [0x140122004]
lea rdx, [0x140122008]
mov ecx, eax
call fcn.14000147c
call fcn.1400fe6b7
mov rax, qword [0x14011e410]
mov rax, qword [rax]
mov rdx, qword [0x140122010]
mov qword [rax], rdx
mov rcx, qword [0x140122010]
mov rdx, qword [0x140122008]
mov eax, dword [0x140122004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14012201c], eax
mov eax, dword [0x140122020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14012201c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140122024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14012201c]
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 [0x14011e440]
mov dword [rax], 1
mov rax, qword [0x14011e450]
mov dword [rax], 1
mov rax, qword [0x14011e460]
mov dword [rax], 1
mov rax, qword [0x14011e400]
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 0x1400fe930
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.1400ffc90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400ff602
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140122168]
test eax, eax
je 0x1400ff69a
lea rax, [0x140122140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140122170]
mov qword [rbp - 8], rax
jmp 0x1400ff67e
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 0x1400ff672
cmp qword [rbp - 0x10], 0
je 0x1400ff672
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 0x1400ff638
lea rax, [0x140122140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400ff69b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400ff7a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400ff7c8
mov eax, 0
jmp 0x1400ff816
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 0x1400ff7f1
mov eax, 0
jmp 0x1400ff816
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400ff811
mov eax, 0
jmp 0x1400ff816
mov eax, 1
add rsp, 0x20
pop rbp
ret