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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4593a1
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00461100]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00465220
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
nop
ret
call fcn.00465380
jmp fcn.004592c0
Function at 0x466e80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x402e40
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
call fcn.00409ce0
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.00465380
jmp 0x402de0
cmp byte [0x005d96f2], 0
je 0x466e9f
mov rax, qword [rsp + 8]
mov rcx, qword [rax + 8]
mov rax, qword [rax]
lea rdx, [rsp + 0x18]
jmp 0x4643a0
jmp 0x402de0

Function at 0x466ec0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x005d99a0]
nop
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*4]
xor rax, rcx
shl rcx, 0x20
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rcx, rax
mov qword [rsp + 0x18], rcx
ret
cmp byte [0x005d96f2], 0
je 0x466efc
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005d9c00]
aesenc xmm0, xmmword [0x005d9c10]
aesenc xmm0, xmmword [0x005d9c20]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x409f60

Function at 0x466f20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x005d99a0]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*8]
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x005d96f2], 0
je 0x466f5d
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005d9c00]
aesenc xmm0, xmmword [0x005d9c10]
aesenc xmm0, xmmword [0x005d9c20]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x409fe0

Function at 0x4687c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005d9b80]
mov qword [rsp + 8], rdx
lea r8d, [0x005d9704]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
add rsp, 0x30
ret
Function at 0x470d80
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
imul rsi, rsi, 0xffffffffffffffe4
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rdx, 5
sar rsi, 0x3f
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x470e59
lea rsi, [rdx + rdx*2]
lea rdi, [0x0059d040]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x470e02
inc rdx
nop
jmp 0x470dd8
cmp r9, 0xffffffffffffffe0
jle 0x470e0d
dec rdx
jmp 0x470dd8
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.00467480
nop
int3
Function at 0x4838e0
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edx, dword [rsp + 8]
xor ebx, ebx
jmp 0x483901
movzx esi, byte [rax + rbx]
inc rbx
imul edx, edx, 0x1000193
xor edx, esi
cmp rbx, rcx
jl 0x4838f2
mov dword [rsp + 0x28], edx
ret
Function at 0x140002c90
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.140003fc0
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.140003fc0
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 0x140002d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002e30
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002dd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d30
mov rcx, rbx
call fcn.140003750
mov rdi, rax
test rax, rax
je 0x140002e52
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003890
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002de0
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c90
nop dword [rax]
xor esi, esi
jmp 0x140002d58
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000341c
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 0x140003413
test rsi, rsi
je 0x140003413
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033f8
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 0x140003750
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003770
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003778
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003770
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037cd
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 0x1400037c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003770
add rax, 0x28
cmp rax, r9
jne 0x1400037b0
xor eax, eax
ret

Function at 0x1400037d0
Capabilities:
Parse pe header

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

Function at 0x140003890
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400038af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140017820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140017700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140017868
test al, al
je 0x140017868
cmp qword [rsi + 0x58], 0
je 0x140017884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14001790d
mov rcx, rdi
call fcn.140017710
mov r14, rax
mov rbp, qword [0x140054c18]
test rbp, rbp
jne 0x1400178cb
lea rcx, [0x14004c3fe]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x140054c18], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140017866
test dword [rsp + 0x38], 0x1000000
jne 0x140017866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140017984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140017866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400179a4
xor eax, eax
jmp 0x1400179b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400176a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400179e0
mov bpl, 1
jmp 0x140017868

Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
jp 0x1400a13a6
invalid
cld
invalid
jmp qword [rdx - 0x5d]
Function at 0x66205e10
Capabilities:
Get file attributes

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
sub rsp, 0x160
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov rbp, r9
mov rdi, rcx
add rcx, 0x1c0
call fcn.66208250
xor esi, esi
cmp qword [rdi + 0x1a0], rsi
jne 0x66205f60
cmp qword [rdi + 8], rsi
je 0x66205f24
lea rcx, [rsp + 0x90]
call fcn.662035e0
nop
lea rdx, [rsp + 0x90]
mov rcx, qword [rdi]
call fcn.6620bfb0
lea rcx, [rsp + 0x90]
call fcn.662048a0
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov eax, 0x20
cmp byte [rdi + 0x1e4], sil
mov ecx, esi
cmovne eax, ecx
or eax, 0x40
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, dword [rdi + 0x1e0]
lea rcx, [rdi + 0x1b0]
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [rsp + 0x180], eax
test eax, eax
jns 0x66205f17
xor eax, eax
mov qword [rdi + 0x1b0], rax
lea rcx, [rsp + 0x90]
call fcn.66203630
mov eax, dword [rsp + 0x180]
jmp 0x66206021
lea rcx, [rsp + 0x90]
call fcn.66203630
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x1b0]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x66206021
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x1a8], rax
mov rcx, rdi
call fcn.66206260
mov esi, eax
test eax, eax
jns 0x66205f89
lea rcx, [rdi + 0x1c0]
call fcn.66208250
mov rcx, rdi
call fcn.66205160
mov eax, esi
jmp 0x66206021
cmp byte [rsp + 0x188], 0
je 0x66205f9a
xor eax, eax
jmp 0x66206021
mov rbx, qword [rdi + 0x1c0]
mov rcx, rbx
call fcn.66205000
test al, al
je 0x66205f93
cmp byte [rsp + 0x190], 0
je 0x66205f93
mov rax, qword [rdi + 0x1b0]
mov qword [rdi + 0x1b8], rax
xor esi, esi
mov qword [rdi + 0x1b0], rsi
test rbp, rbp
je 0x66205fe4
or r8, 0xffffffffffffffff
mov rdx, rbp
mov rcx, rdi
call fcn.662046d0
jmp 0x66206011
mov rcx, rbx
call fcn.66204fe0
mov rbx, rax
mov rcx, rdi
call fcn.662045a0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9, 0xffffffffffffffff
mov r8, rbx
mov dl, 1
mov rcx, rax
call fcn.66203710
xor r9d, r9d
xor r8d, r8d
mov dl, 1
mov rcx, rdi
call fcn.66205e10
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018c90
Capabilities:
Terminate process

Disassembly:
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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400303e8], rbx
je 0x140018cf7
cmp rax, rbx
jne 0x140018cea
mov ebx, 1
mov esi, ebx
jmp 0x140018cfc
mov ecx, COleDocument::AddItem
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018ccf
mov ebx, 1
mov eax, dword [0x1400303f0]
cmp eax, ebx
jne 0x140018d14
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140018d80
mov eax, dword [0x1400303f0]
test eax, eax
jne 0x140018d75
mov dword [0x1400303f0], ebx
lea r15, [0x14001c140]
lea rdi, [0x14001c120]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140018d67
test eax, eax
jne 0x140018d6b
cmp qword [rdi], r14
je 0x140018d5c
mov rax, qword [rdi]
mov rcx, qword [case.0x14001925e.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140018d3e
test eax, eax
je 0x140018d7b
mov eax, 0xff
jmp 0x140018ed6
mov dword [0x14002fdec], ebx
mov edi, 0x1f
mov eax, dword [0x1400303f0]
cmp eax, ebx
jne 0x140018da7
lea rdx, [0x14001c118]
lea rcx, [0x14001c0f0]
call sub.msvcrt.dll__initterm
mov dword [0x1400303f0], 2
test esi, esi
jne 0x140018db5
mov rax, r14
xchg qword [0x1400303e8], rax
cmp qword [0x140030408], r14
je 0x140018de8
lea rcx, [0x140030408]
call fcn.1400198b0
test eax, eax
je 0x140018de8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030408]
mov r9, qword [case.0x14001925e.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140018e01
mov eax, 0xff
jmp 0x140018ed6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140018e87
test ax, ax
je 0x140018e1c
test edx, edx
jne 0x140018e87
sub ax, bx
cmp ax, di
ja 0x140018e32
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140018e1c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140019bfc
mov dword [0x14002fde8], eax
cmp dword [0x14002fe08], r14d
jne 0x140018e70
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002fdec], r14d
jne 0x140018e85
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002fde8]
jmp 0x140018ed6
cmp ax, 0x22
jne 0x140018e9b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140018e0a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401ab000
add rsp, 0x28
jmp 0x140018c90
Function at 0x140001b98
Capabilities:
Parse pe header

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

Function at 0x180a6a420
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180a6a5a7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180a6a451
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a6a437
add dl, dl
jne 0x180a6a45e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a6a4be
xor eax, eax
add dl, dl
jne 0x180a6a46d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a6a575
add dl, dl
jne 0x180a6a47e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a6a48b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a6a498
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a6a4a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a6a4b2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a6a446
mov eax, 1
add dl, dl
jne 0x180a6a4ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a6a4db
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a6a4c3
sub eax, ebx
mov ebx, 1
jne 0x180a6a514
mov ecx, 1
add dl, dl
jne 0x180a6a4f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a6a503
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a6a4eb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a6a446
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a6a530
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a6a53d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a6a525
cmp eax, 0x7d00
jae 0x180a6a563
cmp eax, 0x500
jb 0x180a6a55e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a6a446
cmp eax, 0x7f
ja 0x180a6a566
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a6a446
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a6a59a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180a6a446
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002150
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000224b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002253
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000228a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002260
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022b5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022db
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022c0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a540
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a585
xor al, al
jmp 0x14000a5d2
cmp word [rbx], 0
je 0x14000a59d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a590
cmp word [rsp + 0x30], 0
je 0x14000a5cb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a5f3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5b0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b600
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000d860
int3