joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b640
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008b43c

Function at 0x14008ea8c
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, [0x1400e40e0]
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 0x14008eae3
cmp word [rdx], r13w
jne 0x14008eae3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008eae8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008ec0d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008ec2e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008eb21
mov rdx, r9
mov word [rbx], cx
jmp 0x14008eb48
cmp r9, r8
jae 0x14008eb58
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 0x14008eb02
jmp 0x14008ec0d
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 0x14008ec02
cmp dword [rsp + 0x80], esi
je 0x14008ec02
lea r8, [0x1400e40e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008ebda
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008ebaa
mov word [rbx], r13w
jmp 0x14008ec0a
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 0x14008ebb7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008ec0a
cmp word [rsp + 0x70], r13w
jne 0x14008ebe7
cmp rbx, r14
je 0x14008eba4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008e9e8
cmp word [rsp + 0x70], r13w
je 0x14008ec0d
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, [0x1400e40e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008ec07
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008ec0d
Function at 0x140091b7c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140091b92
mov al, 1
jmp 0x140091bf2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140091ba3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140091bf0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140097294
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140091bf0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140091bf0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140091bf0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140091bf2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140096618
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 0x140096648
xor eax, eax
jmp 0x14009670b
mov rbp, rbx
cmp word [rax], si
je 0x14009666d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140096654
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140096650
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.140094ed8
movsxd r14, eax
test eax, eax
jne 0x1400966ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140096641
mov rcx, r14
call fcn.1400921b8
mov rdi, rax
test rax, rax
jne 0x1400966c4
xor ecx, ecx
call fcn.14008e03c
jmp 0x1400966a0
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.140094ed8
test eax, eax
jne 0x1400966f5
mov rcx, rdi
call fcn.14008e03c
jmp 0x1400966ff
xor ecx, ecx
call fcn.14008e03c
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 0x1400997e8
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.14008e3f0
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 0x140099889
cmp ebx, dword [rsp + 0x30]
je 0x140099882
test esi, esi
je 0x140099882
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009985d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009986a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140099847
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009986e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009988b
mov eax, 1
jmp 0x14009988b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009ce74
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007d110
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14009cefe
cmp byte [rbp - 0x21], r15b
je 0x14009cef9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009cf34
call fcn.14008ff34
test eax, eax
jne 0x14009cf20
cmp byte [rbp - 0x21], r15b
je 0x14009cf18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009cf34
cmp byte [rbp - 0x21], r15b
je 0x14009cf31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14008ae04
test eax, eax
jne 0x14009cfd4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007d110
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009cf73
cmp byte [rbp - 0x21], r15b
je 0x14009cfa8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14009cfa8
call fcn.14008ff34
test eax, eax
jne 0x14009cf94
cmp byte [rbp - 0x21], r15b
je 0x14009cf8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14009cfa8
cmp byte [rbp - 0x21], r15b
je 0x14009cfa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14008ae04
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14009cfd4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14009cfd7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14009cfe5
mov rcx, rdi
call fcn.14008e03c
cmp byte [rbp + 0x3f], r15b
je 0x14009cff4
mov rcx, qword [rbp + 0x27]
call fcn.14008e03c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14009d560
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.14008e9e8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008e9e8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009d6b0
cmp rax, 0xffffffffffffffff
je 0x14009d6b0
xor edi, edi
test rbp, rbp
jle 0x14009d65b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008fb9c
mov rbx, rax
test rax, rax
jne 0x14009d5e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009d651
mov edx, 0x8000
mov ecx, r14d
call fcn.14008c4d0
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.140091378
cmp eax, 0xffffffff
je 0x14009d631
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14009d5f8
mov edx, r15d
mov ecx, r14d
call fcn.14008c4d0
jmp 0x14009d651
cmp byte [rsi + 0x38], dil
je 0x14009d648
cmp dword [rsi + 0x34], 5
jne 0x14009d648
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14009d651
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008e03c
jmp 0x14009d6c4
jns 0x14009d6c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008e9e8
cmp rax, 0xffffffffffffffff
jne 0x14009d67c
cmp byte [rsi + 0x30], dil
je 0x14009d6c4
mov edi, dword [rsi + 0x2c]
jmp 0x14009d6c4
mov ecx, r14d
call fcn.140097294
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009d6c4
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 0x14009d6c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009d6bd
mov eax, dword [rsi + 0x2c]
jmp 0x14009d6c2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008e9e8
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 0x14009ec00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14009ec28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14009ec28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400033b6
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rax, qword [0x140037080]
xor rax, rbp
mov qword [rbp - 8], rax
cmp dword [0x14003803c], 0xa
jl 0x140003468
mov eax, dword [0x140038038]
lea r8d, [rax + 1]
imul r8d, eax
and r8d, 1
je 0x140003468
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x20], rax
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x30], rax
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x18], rax
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x30]
mov qword [rax], rcx
mov rax, qword [rbp - 0x18]
mov rax, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov qword [rax], 0
mov rax, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x20], rax
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x30], rax
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x18], rax
mov eax, 0x10
call fcn.1400173e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x30]
mov qword [rax], rcx
mov rax, qword [rbp - 0x18]
mov rax, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov qword [rax], 0
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x20]
cmp qword [rax], 0
setne byte [rbp - 9]
mov al, byte [rbp - 9]
cmp al, 1
jne 0x140003510
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
sub rsp, 0x20
call fcn.14001c650
add rsp, 0x20
mov r8, rax
jmp 0x140003513
xor r8d, r8d
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
mov r9, qword [rbp - 0x38]
sub rsp, 0x20
mov edx, 1
call fcn.14001bc54
add rsp, 0x20
mov rcx, qword [rbp - 0x18]
mov qword [rcx], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rbp - 0x28]
mov dword [rax], 0
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
sub rsp, 0x20
call fcn.14001b840
add rsp, 0x20
mov rcx, qword [rbp - 0x28]
mov dword [rcx], eax
mov rax, qword [rbp - 0x28]
mov rax, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
xor rcx, rbp
sub rsp, 0x20
call fcn.140017440
nop
mov rsp, rbp
pop rbp
ret

Function at 0x140009214
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, 2
call fcn.14001859c
mov rbx, rax
mov edx, 1
mov rcx, rdi
mov r8, rsi
mov r9, rax
call fcn.14001bc54
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14001b840
Function at 0x14000a265
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov ebx, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [r14]
cmp eax, 3
jne 0x14000a2e9
mov rcx, rdi
mov rdx, r14
call fcn.140005a7d
mov r12, rax
mov rcx, rsi
mov rdx, r14
call fcn.140005a7d
mov r15, rax
cmp rax, r12
setne al
test r12, r12
setne cl
and cl, al
mov byte [rsp + 0x27], cl
mov al, byte [rsp + 0x27]
cmp al, 1
jne 0x14000a2c8
mov rcx, rdi
mov rdx, r12
call fcn.14000a1c3
mov rdx, qword [r14 + 8]
mov rax, qword [r14 + 0x10]
lea rcx, [rdx + rdi]
add rdx, rsi
mov r8, qword [rax]
call fcn.140029120
mov r14, r15
test r15, r15
jne 0x14000a27e
jmp 0x14000a34f
test eax, eax
je 0x14000a34f
cmp eax, 2
jne 0x14000a35d
mov r15, qword [r14 + 0x20]
test r15, r15
jle 0x14000a34f
xor r12d, r12d
cmp dword [0x140049558], 0xa
jl 0x14000a331
mov eax, dword [0x14004955c]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14000a331
mov rax, qword [r14 + 0x28]
mov r8, qword [rax + r12*8]
mov rcx, rdi
mov rdx, rsi
mov r9d, ebx
call fcn.14000a265
inc r12
mov rax, qword [r14 + 0x28]
mov r8, qword [rax + r12*8]
mov rcx, rdi
mov rdx, rsi
mov r9d, ebx
call fcn.14000a265
inc r12
cmp r12, r15
jl 0x14000a2fe
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [r14 + 8]
mov r8, qword [r14 + 0x10]
add rdi, rax

Function at 0x140017b04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017b4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017b4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017b4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017b4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140017b4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017b50
xor al, al
add rsp, 0x28
ret
Function at 0x140019e34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019f7c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140019fec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019fec
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019fec
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019fec
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019fec
cmp dword [rcx + 0x84], 0xe
jbe 0x140019fec
cmp dword [rcx + 0xf8], esi
je 0x140019fec
mov ecx, r14d
call fcn.140019eb8
mov ecx, 2
call fcn.14001dd60
nop
cmp byte [0x14004dd0c], 0
jne 0x14001a0b6
mov r15d, 1
mov eax, r15d
xchg dword [0x14004dd08], eax
test ebx, ebx
jne 0x14001a05f
mov rdi, qword [0x140037080]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14004dd00]
cmp rcx, rax
je 0x14001a056
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [section..00cfg]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14004de28]
jmp 0x14001a06b
cmp ebx, r15d
jne 0x14001a071
lea rcx, [0x14004de40]
call fcn.14001a5c8
nop
test ebx, ebx
jne 0x14001a088
lea rdx, [0x140034a30]
lea rcx, [0x140034a10]
call fcn.14001b154
lea rdx, [0x140034a40]
lea rcx, [0x140034a38]
call fcn.14001b154
movzx eax, byte [0x14004dd0c]
test esi, esi
cmove eax, r15d
mov byte [0x14004dd0c], al
jmp 0x14001a0b6
mov ecx, 2
call fcn.14001dd7c
test esi, esi
jne 0x14001a0cd
mov ecx, r14d
call fcn.140019f24
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x14001c720
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001c748
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001c748
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002271c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400226f9
call fcn.14001a9cc
mov dword [rax], 0x16
call fcn.14001e654
or eax, 0xffffffff
jmp 0x140022716
sub dword [rcx + 0x10], 1
jns 0x140022708
add rsp, 0x28
jmp 0x140026608
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400226d8
jmp 0x140026610
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140026658
call fcn.14001a9cc
mov dword [rax], 0x16
call fcn.14001e654
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140026640
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140026640
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14002668a
lock or dword [rax + 0x14], 0x10
jmp 0x140026640
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400266a7
mov rcx, qword [rbp + 0x10]
call fcn.1400267b8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14001aaa4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14002777c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400266fe
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140026640
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14002676a
mov rcx, qword [rbp + 0x10]
call fcn.14001aaa4
cmp eax, 0xffffffff
je 0x140026751
mov rcx, qword [rbp + 0x10]
call fcn.14001aaa4
cmp eax, 0xfffffffe
je 0x140026751
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14001aaa4
movsxd rdi, eax
lea rsi, [0x14004e3c0]
mov rcx, rbx
sar rdi, 6
call fcn.14001aaa4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140026758
lea rax, [0x140037770]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002676a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400267a0
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14002679c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14002679c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140026643
Function at 0x1400089c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001e650]
jne 0x140004cba
rol rcx, 0x10
test cx, 0xffff
jne 0x140004cb6
repz ret
ror rcx, 0x10
jmp 0x14000891c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14141fe20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14141ff18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400089a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14141fe20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400089c3
mov rax, qword [rsp + 0x88]
mov qword [0x14141ff18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14141feb8], rax
mov rax, qword [0x14141ff18]
mov qword [0x14141fd90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14141fea0], rax
mov dword [0x14141fd80], 0xc0000409
mov dword [0x14141fd84], 1
mov rax, qword [0x14001e650]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001e658]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14141fe18], eax
mov ecx, 1
call fcn.14001168c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400171b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14141fe18], 0
jne 0x140008a4a
mov ecx, 1
call fcn.14001168c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400098a4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140009714