joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400043f4
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 0x140004422
xor eax, eax
jmp 0x140004508
cmp qword [rcx + 0x68], 0
je 0x140004433
call fcn.140004524
jmp 0x140004508
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000444a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000444c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000447e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400072e0
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 0x140004502
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400044b5
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 0x1400044de
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000cbe0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140004502
cmp rsi, rbx
ja 0x1400044bc
test rsi, rsi
je 0x140004502
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000cbe0
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 0x1400061b0
Capabilities:
Parse pe header

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

Function at 0x140011dec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011be8
Function at 0x140017020
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.140005a90
sub rsp, rax
mov rax, qword [0x140035020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015c00
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001706f
mov rax, rbp
jmp 0x140017177
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 + 0x373b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140018140
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x373b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140017173
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 0x140017173
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140018140
test rax, rax
js 0x140017173
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140017173
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140017165
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140017165
cmp byte [rcx], 0xd
jne 0x14001714b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001715a
cmp byte [rcx + 1], 0xa
jne 0x14001715a
inc rcx
jmp 0x14001715a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001712d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140017177
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005430
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 0x140017398
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400173ae
mov al, 1
jmp 0x14001740e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400173bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001740c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c7b8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001740c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001740c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001740c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001740e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400174e0
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, [0x1400373b0]
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 0x140017537
cmp word [rdx], r13w
jne 0x140017537
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001753c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140017661
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140017682
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140017575
mov rdx, r9
mov word [rbx], cx
jmp 0x14001759c
cmp r9, r8
jae 0x1400175ac
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 0x140017556
jmp 0x140017661
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 0x140017656
cmp dword [rsp + 0x80], esi
je 0x140017656
lea r8, [0x1400373b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001762e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400175fe
mov word [rbx], r13w
jmp 0x14001765e
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 0x14001760b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001765e
cmp word [rsp + 0x70], r13w
jne 0x14001763b
cmp rbx, r14
je 0x1400175f8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140018148
cmp word [rsp + 0x70], r13w
je 0x140017661
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, [0x1400373b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001765b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140017661
Function at 0x14001bf50
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 0x14001bf80
xor eax, eax
jmp 0x14001c043
mov rbp, rbx
cmp word [rax], si
je 0x14001bfa5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001bf8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001bf88
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.14001a550
movsxd r14, eax
test eax, eax
jne 0x14001bfe3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001bf79
mov rcx, r14
call fcn.1400183ac
mov rdi, rax
test rax, rax
jne 0x14001bffc
xor ecx, ecx
call fcn.1400146bc
jmp 0x14001bfd8
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.14001a550
test eax, eax
jne 0x14001c02d
mov rcx, rdi
call fcn.1400146bc
jmp 0x14001c037
xor ecx, ecx
call fcn.1400146bc
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 0x14001ed0c
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.140014a70
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 0x14001edad
cmp ebx, dword [rsp + 0x30]
je 0x14001eda6
test esi, esi
je 0x14001eda6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001ed81
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001ed8e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001ed6b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001ed92
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001edaf
mov eax, 1
jmp 0x14001edaf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400208a4
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.14000e538
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002092e
cmp byte [rbp - 0x21], r15b
je 0x140020929
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020964
call fcn.140015098
test eax, eax
jne 0x140020950
cmp byte [rbp - 0x21], r15b
je 0x140020948
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020964
cmp byte [rbp - 0x21], r15b
je 0x140020961
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.140010be0
test eax, eax
jne 0x140020a04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e538
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400209a3
cmp byte [rbp - 0x21], r15b
je 0x1400209d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400209d8
call fcn.140015098
test eax, eax
jne 0x1400209c4
cmp byte [rbp - 0x21], r15b
je 0x1400209bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400209d8
cmp byte [rbp - 0x21], r15b
je 0x1400209d5
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.140010be0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020a04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020a07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020a15
mov rcx, rdi
call fcn.1400146bc
cmp byte [rbp + 0x3f], r15b
je 0x140020a24
mov rcx, qword [rbp + 0x27]
call fcn.1400146bc
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 0x140014734
Capabilities:
Access peb ldr_data

Disassembly:
push rdx
push rcx
push r14
sub rdx, rdx
add rdx, 0x60
mov rcx, qword gs:[rdx]
push r15
mov rdx, rcx
add rdx, 0x10
mov r15, qword [rdx]
mov r14, qword [rcx + 0x18]
add r14, 0x10
mov rcx, qword [r14]
push r11
mov r14, rcx
add r14, 0x30
mov rdx, qword [r14]
test rdx, rdx
je 0x140014794
mov r14, qword [rcx + 0x60]
mov r11, qword [r14]
and r11d, 0xdf00df
mov r14, qword [r14 + 0xb]
add r14d, r11d
shr r14d, 2
sub r14d, 0xc914cd2
test r14, r14
je 0x14001479c
mov rcx, qword [rcx]
jmp 0x14001475c
mov ecx, dword [rdx + 0x3c]
add rcx, 0x10
add rcx, rdx
mov r14d, dword [rcx + 0x78]
add r14, rdx
push rsi
mov r11d, dword [r14 + 0x20]
add r11, rdx
mov esi, dword [r11]
add rsi, rdx
mov ecx, dword [rsi + 0xb]
add ecx, 0xff8b9c9b
test ecx, ecx
jne 0x1400147ca
jmp 0x1400147d8
inc r11
inc r11
inc r11
inc r11
jmp 0x1400147b5
mov ecx, dword [r14 + 0x20]
sub r11, rdx
sub r11, rcx
shr r11d, 1
mov ecx, dword [r14 + 0x24]
add rcx, rdx
add rcx, r11
mov r11d, dword [rcx]
and r11d, 0xffff
shl r11d, 2
mov ecx, dword [r14 + 0x1c]
add rcx, r11
add rcx, rdx
mov r11d, dword [rcx]
add r11, rdx
movabs rcx, 0xef000
add rcx, r15
push rdx
push r15
push rcx
push rsi
push rsi
push rsi
mov r8d, 0x40
mov r9, rsp
mov edx, 0x7b000
call r11
pop r14
pop rsi
pop rsi
pop rcx
pop r15
mov r14d, 0x209e0
push r11
movabs rdx, 0x28ce
mov r11d, 0x44
imul edx, r11d
mov r11d, 0x74e
add r11, r15
add rdx, r11
call fcn.140014886
mov edx, 0xcf606
mov ecx, 0x115000
add rcx, r15
mov r14d, 0x3760
add rdx, r15
call fcn.140014886
pop r11
jmp 0x1400148be
mov r14d, 0xc7
mov edx, 0x8000000
mov ecx, 0xef000
mov r11d, 0x14
imul r14d, r11d
add r14d, 0x74
add rcx, r15
sub rcx, r14
lea r14, [rcx]
sub r14, rdx
mov edx, 0xd3a06
add rdx, r15
mov r11d, dword [rdx]
xor r11d, 0x800a80f3
test r11d, r11d
je 0x140014914
add r11, rcx
mov rsi, qword [r11]
add rsi, r14
mov qword [r11], rsi
add rdx, 4
jmp 0x1400148f3
mov edx, 0x1bb
push rcx
push r14
sub rsp, 0x18
mov ecx, 0x3033
add rdx, rcx
add rdx, r15
add rdx, 0xff73b
push rdx
inc r11
lea r14, [r11]
ret
Function at 0x140007b40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140016090], rbx
je 0x140007b8c
cmp rax, rbx
jne 0x140007b7f
mov ebx, 1
mov esi, ebx
jmp 0x140007b91
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007b64
mov ebx, 1
mov eax, dword [0x140016098]
cmp eax, ebx
jne 0x140007ba7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140007c0c
mov eax, dword [0x140016098]
test eax, eax
jne 0x140007c06
mov dword [0x140016098], ebx
lea r15, [0x14000c130]
lea rdi, [0x14000c118]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140007bf8
test eax, eax
jne 0x140007bfc
cmp qword [rdi], 0
je 0x140007bed
mov rax, qword [rdi]
mov rcx, qword [0x14000c0f8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140007bce
test eax, eax
je 0x140007c0c
mov eax, 0xff
jmp 0x140007ce8
mov dword [0x140015ac4], ebx
mov eax, dword [0x140016098]
cmp eax, ebx
jne 0x140007c33
lea rdx, [0x14000c110]
lea rcx, [0x14000c100]
call sub.msvcrt.dll__initterm
mov dword [0x140016098], 2
test esi, esi
jne 0x140007c40
xor eax, eax
xchg qword [0x140016090], rax
cmp qword [0x1400160a0], 0
je 0x140007c74
lea rcx, [0x1400160a0]
call fcn.140007f00
test eax, eax
je 0x140007c74
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400160a0]
mov r9, qword [0x14000c0f8]
call r9
mov r8, qword [0x140015ad8]
mov rdx, qword [0x140015ad0]
mov ecx, dword [0x140015ac8]
call fcn.14000290c
mov dword [0x140015ac0], eax
cmp dword [0x140015ae0], 0
jne 0x140007ca4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140015ac4], 0
jne 0x140007cb9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140015ac0]
jmp 0x140007ce8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140149000
add rsp, 0x28
jmp 0x140007b40

Function at 0x140007dec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007e38
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007e30
cmp dword [rcx + 0x3c], edx
jl 0x140007e30
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007e30
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140007e38
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140651058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406511df
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 0x140651089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065106f
add dl, dl
jne 0x140651096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406510f6
xor eax, eax
add dl, dl
jne 0x1406510a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406511ad
add dl, dl
jne 0x1406510b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406510c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406510d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406510dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406510ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065107e
mov eax, 1
add dl, dl
jne 0x140651106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140651113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406510fb
sub eax, ebx
mov ebx, 1
jne 0x14065114c
mov ecx, 1
add dl, dl
jne 0x14065112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140651123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140651168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140651175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065115d
cmp eax, 0x7d00
jae 0x14065119b
cmp eax, 0x500
jb 0x140651196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065107e
cmp eax, 0x7f
ja 0x14065119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406511d2
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 0x14065107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140001a0c
Capabilities:
Parse pe header

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

Disassembly:
movzx eax, byte [rcx]
xor edx, edx
test al, al
je 0x140019f6a
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
xor eax, 0x561e12b0
shr eax, 1
imul edx, eax, 0x21
movzx eax, byte [rcx]
test al, al
jne 0x140019f50
mov eax, edx
ret

Function at 0x140019f70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, qword [0x14001c1f8]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov edx, 0x1000
mov r8d, 4
call qword [fcn.14001c200]
mov r11, qword [0x14001c1e8]
mov r8, rbx
mov r9, qword [0x14001c1e0]
mov r10d, 0x1000
mov edi, 0x40
nop dword [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor dl, r9b
mov ecx, edi
and ecx, 0x3f
mov rax, r11
shr rax, cl
add dl, al
mov byte [r8 - 1], dl
sub r10, 1
jne 0x140019fc0
lea r9, [rsp + 0x40]
mov edx, 0x1000
lea r8d, [r10 + 1]
mov rcx, rbx
call qword [fcn.14001c200]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001a010
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
lea r9, [rsp + 0x40]
mov edx, 0x1000
mov r8d, 4
mov rbx, rcx
call qword [fcn.14001c200]
mov r11, qword [0x14001c1e8]
mov r8, rbx
mov r9, qword [0x14001c1e0]
mov r10d, 0x1000
mov edi, 0x40
nop
movzx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, edi
mov rax, r11
and ecx, 0x3f
shr rax, cl
sub dl, al
xor dl, r9b
mov byte [r8 - 1], dl
sub r10, 1
jne 0x14001a050
lea r9, [rsp + 0x40]
mov edx, 0x1000
lea r8d, [r10 + 0x20]
mov rcx, rbx
call qword [fcn.14001c200]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001a110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [0x14001c1d8]
mov r14, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov r11, qword [rdi]
cmp r11, rdi
je 0x14001a1b6
nop dword [rax]
mov r10, qword [r11 + 0x20]
movsxd rax, dword [r10 + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x14001a1ae
mov esi, dword [r10 + rcx + 0x1c]
lea rax, [r10 + rcx]
mov r9d, dword [rax + 0x20]
add rsi, r10
mov ebp, dword [rax + 0x24]
add r9, r10
mov ebx, dword [rax + 0x18]
add rbp, r10
xor r8d, r8d
test ebx, ebx
je 0x14001a1ae
nop word [rax + rax]
mov ecx, dword [r9]
add rcx, r10
call fcn.140019f40
cmp eax, 0xa2b3228a
je 0x14001a1a0
inc r8d
add r9, 4
cmp r8d, ebx
jb 0x14001a180
jmp 0x14001a1ae
movzx ecx, word [rbp + r8*2]
mov eax, dword [rsi + rcx*4]
add rax, r10
jne 0x14001a1b8
mov r11, qword [r11]
cmp r11, rdi
jne 0x14001a140
xor eax, eax
lea r9, [rsp + 0x48]
mov edx, 0x1000
mov r8d, 1
mov rcx, r14
call rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret