joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800016c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x88
mov eax, 4
mov eax, eax
mov ecx, dword [0x180058c48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1800586c0], eax
jle 0x180001734
lea rcx, [0x1800586c0]
call fcn.18001f860
cmp dword [0x1800586c0], 0xffffffff
jne 0x180001734
lea rcx, [0x1800586b0]
call fcn.18000c9f0
lea rcx, [0x180043bc0]
call fcn.18001f7a0
nop
lea rcx, [0x1800586c0]
call fcn.18001f7f4
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x180001804
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x60]
lea rcx, [0x1800586b0]
call fcn.180018f10
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x68]
lea rcx, [0x1800586b0]
call fcn.180018a70
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.18000f500
movzx eax, al
test eax, eax
jne 0x180001804
lea rdx, [rsp + 0x98]
lea rcx, [0x1800586b0]
call fcn.18000f890
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x98]
lea rcx, [0x1800586b0]
call fcn.18000f890
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [rsp + 0x98]
lea rcx, [0x1800586b0]
call fcn.180018d20
jmp 0x1800018a9
movzx eax, byte [rsp + 0x90]
test eax, eax
jne 0x1800018a9
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x70]
lea rcx, [0x1800586b0]
call fcn.180018f10
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x78]
lea rcx, [0x1800586b0]
call fcn.180018a70
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.18000f500
movzx eax, al
test eax, eax
je 0x1800018a9
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x98]
lea rcx, [0x1800586b0]
call fcn.18000f890
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
add rsp, 0x88
ret

Function at 0x1800038a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 1
jne 0x1800038e9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180003730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180033bc8
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.18001fdb0
sub rsp, rax
mov rax, qword [0x180057100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180032534
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180033c17
mov rax, rbp
jmp 0x180033d1f
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 + 0x59900]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180034ce8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x59900]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180033d1b
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 0x180033d1b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180034ce8
test rax, rax
js 0x180033d1b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180033d1b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180033d0d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180033d0d
cmp byte [rcx], 0xd
jne 0x180033cf3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180033d02
cmp byte [rcx + 1], 0xa
jne 0x180033d02
inc rcx
jmp 0x180033d02
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x57540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180033cd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180033d1f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18001f9f0
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 0x180033f40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180033f56
mov al, 1
jmp 0x180033fb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180033f67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180033fb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.18003c348
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180033fb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180033fb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180033fb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180033fb6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180034088
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, [0x180059900]
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 0x1800340df
cmp word [rdx], r13w
jne 0x1800340df
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800340e4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180034209
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18003422a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18003411d
mov rdx, r9
mov word [rbx], cx
jmp 0x180034144
cmp r9, r8
jae 0x180034154
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 0x1800340fe
jmp 0x180034209
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 0x1800341fe
cmp dword [rsp + 0x80], esi
je 0x1800341fe
lea r8, [0x180059900]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800341d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800341a6
mov word [rbx], r13w
jmp 0x180034206
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 0x1800341b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180034206
cmp word [rsp + 0x70], r13w
jne 0x1800341e3
cmp rbx, r14
je 0x1800341a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180034cf0
cmp word [rsp + 0x70], r13w
je 0x180034209
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, [0x180059900]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180034203
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180034209
Function at 0x180038fa8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180038fd8
xor eax, eax
jmp 0x18003909b
mov rbp, rbx
cmp word [rax], si
je 0x180038ffd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180038fe4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180038fe0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180037690
movsxd r14, eax
test eax, eax
jne 0x18003903b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180038fd1
mov rcx, r14
call fcn.180034f54
mov rdi, rax
test rax, rax
jne 0x180039054
xor ecx, ecx
call fcn.180030678
jmp 0x180039030
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180037690
test eax, eax
jne 0x180039085
mov rcx, rdi
call fcn.180030678
jmp 0x18003908f
xor ecx, ecx
call fcn.180030678
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18003b8ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18002e578
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18003b98d
cmp ebx, dword [rsp + 0x30]
je 0x18003b986
test esi, esi
je 0x18003b986
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18003b961
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003b96e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18003b94b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003b972
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18003b98f
mov eax, 1
jmp 0x18003b98f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180040558
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.180034cf0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180034cf0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800406a8
cmp rax, 0xffffffffffffffff
je 0x1800406a8
xor edi, edi
test rbp, rbp
jle 0x180040653
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180030600
mov rbx, rax
test rax, rax
jne 0x1800405e0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180040649
mov edx, 0x8000
mov ecx, r14d
call fcn.1800403dc
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.180033440
cmp eax, 0xffffffff
je 0x180040629
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800405f0
mov edx, r15d
mov ecx, r14d
call fcn.1800403dc
jmp 0x180040649
cmp byte [rsi + 0x38], dil
je 0x180040640
cmp dword [rsi + 0x34], 5
jne 0x180040640
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180040649
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180030678
jmp 0x1800406bc
jns 0x1800406bc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180034cf0
cmp rax, 0xffffffffffffffff
jne 0x180040674
cmp byte [rsi + 0x30], dil
je 0x1800406bc
mov edi, dword [rsi + 0x2c]
jmp 0x1800406bc
mov ecx, r14d
call fcn.18003c348
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800406bc
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 0x1800406bc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800406b5
mov eax, dword [rsi + 0x2c]
jmp 0x1800406ba
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180034cf0
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 0x180040c80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180040ca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180040ca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800021f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov ebp, dword [0x180020a7c]
lea r11d, [rbp - 1]
imul r11d, ebp
cmp dword [rcx + rax + 0x8c], 0
mov r8d, dword [0x180020a80]
je 0x180002272
mov eax, dword [rcx + rax + 0x88]
cmp r8d, 0xa
jl 0x180002232
mov ebp, r11d
and ebp, 1
je 0x180002232
jmp 0x180002230
cmp dword [rcx + rax + 0x14], 0
je 0x180002272
mov r9d, dword [rcx + rax + 0x18]
test r9d, r9d
je 0x180002272
mov r10d, dword [rcx + rax + 0x1c]
cmp dword [0x180020a84], 0xa
jl 0x180002292
mov esi, dword [0x180020a88]
lea edi, [rsi - 1]
imul edi, esi
and edi, 1
je 0x180002292
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x180002270
xor ecx, ecx
cmp r8d, 0xa
jl 0x1800022ff
mov eax, r11d
and eax, 1
je 0x1800022ff
nop word cs:[rax + rax]
jmp 0x180002290
add r10, rcx
mov r15d, dword [rcx + rax + 0x20]
mov r14d, dword [rcx + rax + 0x24]
add r15, rcx
add r14, rcx
xor edi, edi
nop word [rax + rax]
mov esi, dword [r15]
add rsi, rcx
xor eax, eax
nop dword [rax + rax]
movzx ebx, byte [rdx + rax]
movzx ebp, byte [rsi + rax]
test bl, bl
je 0x1800022d5
add rax, 1
cmp bl, bpl
je 0x1800022c0
cmp bl, bpl
je 0x1800022f4
add edi, 1
add r15, 4
add r14, 2
cmp edi, r9d
jne 0x1800022b0
xor ecx, ecx
cmp r8d, 0xa
jge 0x180002305
jmp 0x180002312
movzx eax, word [r14]
mov eax, dword [r10 + rax*4]
add rcx, rax
cmp r8d, 0xa
jl 0x180002312
and r11d, 1
je 0x180002312
nop dword [rax + rax]
jmp 0x180002310
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x180002320
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a8c], 0xa
jl 0x180002352
mov eax, dword [0x180020a90]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002352
nop word cs:[rax + rax]
jmp 0x180002350
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a78]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a74], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002428
mov rsi, r10
test r8b, r8b
je 0x180002440
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800023c0
test r9b, r9b
je 0x180002450
sub rsi, rcx
je 0x180002424
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002420
test ebp, ebp
jne 0x180002420
add rbx, 1
cmp rsi, rbx
jne 0x1800023e0
jmp 0x180002424
test ebp, ebp
jne 0x1800023ac
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002440
jmp 0x180002450
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013510
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014860
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014880
xor al, al
jmp 0x140014901
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014893
xor al, al
jmp 0x140014901
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400148bd
xor al, al
jmp 0x140014901
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400148d1
xor al, al
jmp 0x140014901
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400148e3
xor al, al
jmp 0x140014901
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400148ff
xor al, al
jmp 0x140014901
mov al, 1
add rsp, 0x38
ret
Function at 0x140012750
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113d4
movzx eax, al
test eax, eax
jne 0x140012770
mov ecx, 7
call fcn.140011348
nop
mov byte [rsp + 0x20], 0
call fcn.14001135c
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012794
mov ecx, 7
call fcn.140011348
nop
jmp 0x1400127ec
cmp dword [0x14001e868], 0
jne 0x1400127e7
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111b3
test eax, eax
je 0x1400127c8
mov eax, 0xff
jmp 0x1400128f1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011352
mov dword [0x14001e868], 2
jmp 0x1400127ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011334
call fcn.1400112bc
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012849
mov rcx, qword [rsp + 0x30]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x140012849
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112f3
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001287d
mov rcx, qword [rsp + 0x38]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x14001287d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011393
nop
call fcn.1400129a0
mov dword [rsp + 0x28], eax
call fcn.140011299
movzx eax, al
test eax, eax
jne 0x14001289c
mov ecx, dword [rsp + 0x28]
call fcn.14001105f
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400128ab
call fcn.14001139d
nop
xor edx, edx
mov cl, 1
call fcn.140011159
mov eax, dword [rsp + 0x28]
jmp 0x1400128f1
add rsp, 0x68
ret
Function at 0x140006ef0
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 0x140006f18
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 0x140006f3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006f40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006f99
test ecx, ecx
jle 0x140006f79
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 0x140006f99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006f99
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

Function at 0x140006fc0
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 0x140006fe2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006ff8
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 0x140007014
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007016
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007052
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 0x1400070ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000708d
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 0x1400070ce
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 0x1400070ee
cmp rbx, rax
ja 0x1400070a0
test rbx, rbx
je 0x1400070ee
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