joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019a04
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140019a32
xor eax, eax
jmp 0x140019b18
cmp qword [rcx + 0x68], 0
je 0x140019a43
call fcn.140019b34
jmp 0x140019b18
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140019a5a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140019a5c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140019a8e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14001c9a0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140019b12
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140019ac5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140019aee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14002487c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140019b12
cmp rsi, rbx
ja 0x140019acc
test rsi, rsi
je 0x140019b12
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14002487c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14001b760
Capabilities:
Parse pe header

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

Function at 0x140027118
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140026f14
Function at 0x14002e7a0
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.14001b2d0
sub rsp, rax
mov rax, qword [0x14006e038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002cd84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002e7ef
mov rax, rbp
jmp 0x14002e8f7
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x70610]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002f8c0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x70610]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002e8f3
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 0x14002e8f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002f8c0
test rax, rax
js 0x14002e8f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002e8f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002e8e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002e8e5
cmp byte [rcx], 0xd
jne 0x14002e8cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002e8da
cmp byte [rcx + 1], 0xa
jne 0x14002e8da
inc rcx
jmp 0x14002e8da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6e420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002e8ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002e8f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001aac0
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 0x14002eb18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002eb2e
mov al, 1
jmp 0x14002eb8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002eb3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002eb8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140033338
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002eb8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002eb8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002eb8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002eb8e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002ec60
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, [0x140070610]
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 0x14002ecb7
cmp word [rdx], r13w
jne 0x14002ecb7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002ecbc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002ede1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002ee02
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002ecf5
mov rdx, r9
mov word [rbx], cx
jmp 0x14002ed1c
cmp r9, r8
jae 0x14002ed2c
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 0x14002ecd6
jmp 0x14002ede1
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 0x14002edd6
cmp dword [rsp + 0x80], esi
je 0x14002edd6
lea r8, [0x140070610]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002edae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002ed7e
mov word [rbx], r13w
jmp 0x14002edde
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 0x14002ed8b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002edde
cmp word [rsp + 0x70], r13w
jne 0x14002edbb
cmp rbx, r14
je 0x14002ed78
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002f8c8
cmp word [rsp + 0x70], r13w
je 0x14002ede1
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, [0x140070610]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002eddb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002ede1
Function at 0x140032a6c
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 0x140032a9c
xor eax, eax
jmp 0x140032b5f
mov rbp, rbx
cmp word [rax], si
je 0x140032ac1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140032aa8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140032aa4
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.140031154
movsxd r14, eax
test eax, eax
jne 0x140032aff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140032a95
mov rcx, r14
call fcn.14002bc00
mov rdi, rax
test rax, rax
jne 0x140032b18
xor ecx, ecx
call fcn.14002ae40
jmp 0x140032af4
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.140031154
test eax, eax
jne 0x140032b49
mov rcx, rdi
call fcn.14002ae40
jmp 0x140032b53
xor ecx, ecx
call fcn.14002ae40
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 0x14003588c
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.14002aa08
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 0x14003592d
cmp ebx, dword [rsp + 0x30]
je 0x140035926
test esi, esi
je 0x140035926
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140035901
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003590e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400358eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140035912
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003592f
mov eax, 1
jmp 0x14003592f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140039fbc
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.14002f8c8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002f8c8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003a10c
cmp rax, 0xffffffffffffffff
je 0x14003a10c
xor edi, edi
test rbp, rbp
jle 0x14003a0b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002a24c
mov rbx, rax
test rax, rax
jne 0x14003a044
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003a0ad
mov edx, 0x8000
mov ecx, r14d
call fcn.140027eac
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.14002e018
cmp eax, 0xffffffff
je 0x14003a08d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003a054
mov edx, r15d
mov ecx, r14d
call fcn.140027eac
jmp 0x14003a0ad
cmp byte [rsi + 0x38], dil
je 0x14003a0a4
cmp dword [rsi + 0x34], 5
jne 0x14003a0a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003a0ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002ae40
jmp 0x14003a120
jns 0x14003a120
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002f8c8
cmp rax, 0xffffffffffffffff
jne 0x14003a0d8
cmp byte [rsi + 0x30], dil
je 0x14003a120
mov edi, dword [rsi + 0x2c]
jmp 0x14003a120
mov ecx, r14d
call fcn.140033338
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003a120
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 0x14003a120
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003a119
mov eax, dword [rsi + 0x2c]
jmp 0x14003a11e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002f8c8
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 0x140002c70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004820
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004820
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e10
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002db5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d10
mov rcx, rbx
call fcn.140003730
mov rdi, rax
test rax, rax
je 0x140002e32
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003870
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dc0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c70
nop dword [rax]
xor esi, esi
jmp 0x140002d38
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400033fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033f3
test rsi, rsi
je 0x1400033f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ac0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003750
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003758
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003750
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400037a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003750
add rax, 0x28
cmp rax, r9
jne 0x140003790
xor eax, eax
ret

Function at 0x1400037b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ac0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400037cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400037d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400037cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ac0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003898
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x141511ca0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x141511cb0]
mov dword [rax], 1
mov rax, qword [0x141511cc0]
mov dword [rax], 1
mov rax, qword [0x141511c50]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x141511c90]
mov dword [0x14152600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x141511d70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x141511d50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x141511c00]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140005700
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
mov r15, rdx
mov rsi, rcx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmmword [rsp + 0xf0], xmm0
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x110], 0xa
movdqu xmm1, xmmword [rdx]
movdqa xmm2, xmm1
punpckhbw xmm2, xmm0
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
punpcklbw xmm1, xmm0
pshuflw xmm0, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm2
movdqa xmmword [rsp + 0x20], xmm0
movd edi, xmm0
xor ecx, ecx
lea rdx, [0x1414da918]
lea r8, [0x1414dad18]
lea r9, [0x1414db118]
lea r10, [0x1414db518]
lea r11, [0x1414db918]
nop word [rax + rax]
mov ebx, dword [rsp + rcx*4 + 0x2c]
mov ebp, ebx
shr ebp, 0x10
movzx r14d, bpl
movzx ebp, byte [rdx + r14*4 + 3]
shl ebp, 0x18
movzx eax, bh
movzx eax, byte [r8 + rax*4 + 2]
shl eax, 0x10
xor eax, edi
xor eax, ebp
movzx edi, bl
movzx ebp, byte [r9 + rdi*4 + 1]
shl ebp, 8
mov edi, ebx
shr edi, 0x18
movzx edi, byte [r10 + rdi*4]
xor edi, ebp
xor edi, eax
xor edi, dword [rcx + r11]
mov dword [rsp + rcx*4 + 0x30], edi
mov eax, dword [rsp + rcx*4 + 0x24]
xor eax, edi
mov dword [rsp + rcx*4 + 0x34], eax
xor eax, dword [rsp + rcx*4 + 0x28]
mov dword [rsp + rcx*4 + 0x38], eax
xor eax, ebx
mov dword [rsp + rcx*4 + 0x3c], eax
add rcx, 4
cmp rcx, 0x28
jne 0x1400057f0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x200], xmm0
movdqa xmmword [rsp + 0x1f0], xmm0
movdqa xmmword [rsp + 0x1e0], xmm0
movdqa xmmword [rsp + 0x1d0], xmm0
movdqa xmmword [rsp + 0x1c0], xmm0
movdqa xmmword [rsp + 0x1b0], xmm0
movdqa xmmword [rsp + 0x1a0], xmm0
movdqa xmmword [rsp + 0x190], xmm0
movdqa xmmword [rsp + 0x180], xmm0
movdqa xmmword [rsp + 0x170], xmm0
movdqa xmmword [rsp + 0x160], xmm0
movdqa xmmword [rsp + 0x150], xmm0
movdqa xmmword [rsp + 0x140], xmm0
movdqa xmmword [rsp + 0x130], xmm0
movdqa xmmword [rsp + 0x120], xmm0
mov byte [rsp + 0x210], 0
lea rdi, [rsp + 0x120]
mov edx, 0x10
mov rcx, r15
mov r8w, pe_nt_image_headers64
mov r9, rdi
call sym.libaes::aes_set_decrypt_key::h4981738a2c29c7b0
lea rdx, [rsp + 0x20]
mov r8d, 0xf4
mov rcx, rsi
call sym.memcpy
mov rcx, rsi
add rcx, 0xf4
mov r8d, 0xf4
mov rdx, rdi
call sym.memcpy
mov rax, rsi
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140008fa0
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
add r8, rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], r8
mov word [rsp + 0x88], 0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x78]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17h9279a9edb6
mov rdx, qword [rsp + 0x50]
cmp rdx, qword [rsp + 0x48]
jne 0x140008ff1
lea rcx, [rsp + 0x40]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::hb705051e663eaf6f
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov word [rax + rdx*2], 0
inc qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140009052
mov rcx, qword [rsp + 0x40]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
cmp rbx, 0xffffffffffffffff
je 0x1400090f3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingW
mov rdi, rax
mov rcx, rbx
call fcn.1400dbfec
test rdi, rdi
je 0x1400090f3
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
test rax, rax
je 0x140009119
mov rbx, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov r8d, 0x30
mov rcx, rax
call sub.KERNEL32.dll_VirtualQuery
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
mov qword [rsi], 0
jmp 0x14000910b
call sym.std::sys::windows::os::errno::hdb602b353db42c6a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
call sym.std::sys::windows::os::errno::hdb602b353db42c6a
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rdi
call fcn.1400dbfec
mov qword [rsi + 8], rbx
jmp 0x140009104

Function at 0x140009500
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov r14, qword [rdx + 8]
cmp r14, 2
jb 0x14000956e
mov ebp, dword [rdx + 0x10]
mov r15, qword [rdx]
lea rdi, sym._ZN4core3ptr55drop_in_place_LT_pelite..rich_structure..RichRecord_GT_17h7bc618773a4621bdE.llvm.1928057332852803688
lea rbx, [rsp + 0x20]
nop dword [rax + rax]
mov eax, dword [r15]
xor eax, ebp
movzx ecx, ax
and eax, 0xffff0000
mov edx, dword [r15 + 4]
xor edx, ebp
shl rdx, 0x20
or rax, rdx
or rcx, rax
add r14, 0xfffffffffffffffe
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call sym.core::fmt::builders::DebugSet::entry::hf949e7f2aa88a99b
add r15, 8
cmp r14, 1
ja 0x140009530
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret