joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180093340
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800938d0
mov qword [rsp + 0x28], 0
cmp qword [0x1801c9a88], 0
jne 0x180093388
cmp qword [0x1801c9a80], 0
je 0x180093388
mov rax, qword [0x1801c9a80]
mov qword [0x1801c9a88], rax
cmp qword [0x1801c9a88], 0
je 0x18009342e
mov rax, qword [0x1801c9a88]
cmp qword [rax + 0x10], 0
je 0x18009342e
mov rax, qword [0x1801c9a88]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009342e
mov rax, qword [0x1801c9a88]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009342e
mov rax, qword [0x1801c9a88]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800933f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800933fb
xor eax, eax
jmp 0x1800935a9
mov rax, qword [0x1801c9a88]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800935a9
mov rax, qword [0x1801c9a80]
mov qword [0x1801c9a88], rax
jmp 0x180093450
mov rax, qword [0x1801c9a88]
mov rax, qword [rax + 8]
mov qword [0x1801c9a88], rax
cmp qword [0x1801c9a88], 0
je 0x18009349d
cmp qword [0x1801c9a88], 0
je 0x18009349b
mov rax, qword [0x1801c9a88]
cmp qword [rax + 0x10], 0
je 0x18009349b
mov rax, qword [0x1801c9a88]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009349b
mov rax, qword [0x1801c9a88]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009349b
jmp 0x1800933cc
jmp 0x18009343e
mov rcx, qword [rsp + 0x60]
call fcn.180095500
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800935b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800935a7
mov rax, qword [rsp + 0x48]
mov qword [0x1801c9a88], rax
mov rax, qword [0x1801c9a88]
mov dword [rax], 0x52727464
mov rax, qword [0x1801c9a88]
mov qword [rax + 0x10], 0
mov rax, qword [0x1801c9a88]
mov rcx, qword [0x1801c9a80]
mov qword [rax + 8], rcx
mov rax, qword [0x1801c9a88]
mov qword [0x1801c9a80], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801c9a88]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180093558
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180093592
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18009354e
mov rax, qword [0x1801c9a88]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800933cc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800a8740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1800973d0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1800a8796
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x1800a87ed
mov ebp, 0x4b0000
jmp 0x1800a87fb
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1800999b0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1800a8811
mov eax, r12d
jmp 0x1800a881a
mov edx, edi
mov ecx, ebp
call fcn.1800999b0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1800a8836
shl esi, 0x10
mov ecx, esi
jmp 0x1800a8925
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1800a8894
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1800973d0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1800a8884
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.180099880
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1800973d0
add ebx, eax
jmp 0x1800a892e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1800a88a1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x1800a88e0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1800973d0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x1800a88e5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.180099880
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1800973d0
add ebx, eax
jmp 0x1800a892e
cmp eax, r12d
jge 0x1800a891e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1800973d0
sub ebp, eax
sub r15d, esi
je 0x1800a891e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.180099880
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1800973d0
add ebx, eax
jmp 0x1800a892e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1800973d0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1800973d0
Function at 0x1800f4970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x18016a040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1800f4b0c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1800f4b0c
cmp r10d, r14d
jne 0x1800f4a10
sub rbx, 0x10
jmp 0x1800f4b54
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1800f4a82
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1800f4a44
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1800f4a4c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1800f4a6b
movzx edx, r11b
mov rcx, rsi
call fcn.1800f5b20
test al, al
jne 0x1800f4b65
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1800f6190
test al, al
jne 0x1800f4b65
mov edx, dword [rsi + 0x64]
lea r9, [0x1800f64f0]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1800f4aae
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1800f47f0
jmp 0x1800f4b02
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1800f47f0
test dil, dil
je 0x1800f4afa
cmp byte [rsi + 0x6a], 0
jne 0x1800f4afa
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1800f4b65
sub rbx, 0x10
jmp 0x1800f4b54
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1800f4b69
mov ebp, dword [rbx]
jmp 0x1800f49d0
mov al, 1
jmp 0x1800f4b72
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180100bd0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1800faec0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800faedc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800faf30
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800fb055
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800fb055
test rax, rax
je 0x1800fb055
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800fb055
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800fafca
lea rax, [0x1800fb0b0]
jmp 0x1800fb023
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800fb055
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800fb043
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800faff0
lea rax, [0x1800fb080]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800fb06a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800fc640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800fc64b
xor eax, eax
ret
lea r11, [0x180122610]
not ecx
cmp r8d, 8
jb 0x1800fc721
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800fc670
test r8d, r8d
je 0x1800fc74d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800fc730
not ecx
mov eax, ecx
ret
Function at 0x1801014c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1801014fa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1801014ff
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180101548
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180122e00]
cmp byte [rcx + rax], 0
je 0x180101548
dec r8
sub rdx, 1
jne 0x18010152e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140029b84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x173b7c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x173b7d2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x173b7fb
pop rbp
sub rbp, 0x33
sub rbp, 0x133b7c8
sub rsp, 0x20
jmp 0x173b81a
mov rax, 0x133b7c8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x1fe7bcdd
ret 0xbcdd
xor byte [rax], dl
inc rax
dec rcx
jne 0x173b839
jmp 0x173b850
xchg ebp, eax
push rsp
xor al, 0x56
push rsp
loope 0x173b834
fstp st(5)
xchg ebp, eax
pop rsp
sbb al, 0xd5
invalid
Function at 0x140740c40
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
push rbp
lea rsi, [0x1405b5025]
lea rdi, [rsi - 0x5b4025]
lea rax, [rdi + 0x6f6244]
push qword [rax]
mov dword [rax], 0xa23227c0
push rax
push rdi
mov eax, 0x73e4f1
push rax
mov rcx, rsp
mov rdx, rdi
mov rdi, rsi
mov esi, 0x18bc17
push rbp
mov rbp, rsp
mov r9d, dword [rcx]
mov r8, rdx
mov rdx, rsi
lea rsi, [rdi + 2]
push rsi
mov al, byte [rdi]
dec edx
mov cl, al
and al, 7
shr cl, 3
mov rbx, 0xfffffffffffffd00
shl rbx, cl
mov cl, al
lea rbx, [rsp + rbx*2 - 0xe78]
and rbx, 0xffffffffffffffc0
push 0
cmp rsp, rbx
jne 0x140740cac
push rbx
lea rdi, [rbx + 8]
mov cl, byte [rsi - 1]
dec edx
mov byte [rdi + 2], al
mov al, cl
shr cl, 4
mov byte [rdi + 1], cl
and al, 0xf
mov byte [rdi], al
lea rcx, [rdi - 4]
push rax
push r15
lea rax, [rdi + 4]
xor r15d, r15d
push r14
mov r14d, 1
push r13
Function at 0x140002ba0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
cmp qword [rdx + 0x18], 7
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x48], rdx
jbe 0x140002bce
mov rax, qword [rdx]
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 7
mov qword [rsp + 0x50], r13
jbe 0x140002be2
mov rax, qword [rcx]
mov qword [rsp + 0x50], rax
mov ecx, 0x72
xor edx, edx
call fcn.140001000
mov ecx, 0x75
mov edx, 1
movzx r15d, ax
call fcn.140001000
mov ecx, 0x6e
mov edx, 2
movzx r14d, ax
call fcn.140001000
mov ecx, 0x61
mov edx, 3
movzx ebp, ax
call fcn.140001000
mov ecx, 0x73
mov edx, 4
movzx esi, ax
call fcn.140001000
xor ecx, ecx
mov edx, 5
movzx edi, ax
call fcn.140001000
movzx ecx, word [0x14000964c]
mov edx, 6
movzx ebx, ax
call fcn.140001000
movzx ecx, word [0x14000964e]
mov edx, 7
movzx r9d, ax
call fcn.140001000
movzx ecx, word [0x140009650]
mov edx, 8
movzx r8d, ax
call fcn.140001000
movzx ecx, word [0x140009652]
mov edx, 9
movzx r11d, ax
call fcn.140001000
movzx ecx, word [0x140009654]
mov edx, 0xa
movzx r10d, ax
call fcn.140001000
mov ecx, 0x133
xor r15w, cx
mov ecx, 0x134
xor r14w, cx
mov word [rsp + 0x30], r15w
mov ecx, 0x135
mov word [rsp + 0x32], r14w
xor bp, cx
mov ecx, 0x136
xor si, cx
mov word [rsp + 0x34], bp
mov ecx, 0x137
mov word [rsp + 0x36], si
xor di, cx
mov ecx, 0x138
xor bx, cx
mov word [rsp + 0x38], di
mov ecx, 0x139
mov word [rsp + 0x3a], bx
xor r9w, cx
mov ecx, 0x13a
xor r8w, cx
mov word [rsp + 0x3c], r9w
mov r9, qword [rsp + 0x48]
mov ecx, 0x13b
xor r11w, cx
mov word [rsp + 0x3e], r8w
mov ecx, 0x13c
mov word [rsp + 0x40], r11w
xor r10w, cx
mov ecx, 0x13d
xor ax, cx
mov word [rsp + 0x42], r10w
xor ebx, ebx
mov word [rsp + 0x44], ax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x46], bx
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [r13 + 0x18]
cmp rdx, 7
jbe 0x140002db1
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002dac
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002e2a
mov rcx, r8
call fcn.1400077e0
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], 7
mov word [r13], bx
mov rdx, qword [r12 + 0x18]
cmp rdx, 7
jbe 0x140002dff
mov rcx, qword [r12]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002dfa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002e2a
mov rcx, r8
call fcn.1400077e0
mov qword [r12 + 0x10], rbx
mov word [r12], bx
mov rbx, qword [rsp + 0xb0]
mov qword [r12 + 0x18], 7
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140002e40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140002e71
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140002f12
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140002ee4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002edf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002fbb
mov rcx, r8
call fcn.1400077e0
mov al, 1
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007460
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140002f57
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140002f53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002f4e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002fbb
mov rcx, r8
call fcn.1400077e0
xor al, al
jmp 0x140002ee6
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x23a00
mov qword [rsp + 0x20], rbp
lea rdx, [0x14015acc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140002fa4
cmp rax, 7
jbe 0x140002f53
lea rdx, [rax*2 + 2]
jmp 0x140002f2a
cmp rax, 7
jbe 0x140002ee4
lea rdx, [rax*2 + 2]
jmp 0x140002eb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3