joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400360b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x14004e040]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x14003611c
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14003611c
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x14003616f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x140036100
mov rcx, qword [0x140050118]
test rcx, rcx
jne 0x140036152
call fcn.14003c630
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x140050118], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x140036253
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x140036255
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x14003627a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x14003611c
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14003611c
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14003611c
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x140036243
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x140036221
jmp 0x14003611c
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x14003611c
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140032420
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140032bc8
int3

Function at 0x14003bdc0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003be22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003be22
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14003be22
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x14003be22
cmp dword [rdx + 0x84], 0xe
jbe 0x14003be22
cmp dword [rdx + 0xf8], 0
je 0x14003be22
mov ecx, ebx
call fcn.14003bc80
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140050158]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14003bb10
cmp dword [rsp + 0x60], 0
jne 0x14003be65
mov ecx, ebx
call fcn.14003bc40
int3
add rsp, 0x40
pop rbx
ret
Function at 0x14003beb0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bf0c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bf0c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bf0c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bf0c
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bf0c
cmp dword [rcx + 0xf8], 0
je 0x14003bf0c
mov ecx, ebx
call fcn.14003bc80
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140050158]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14003bb10
cmp dword [rsp + 0x60], 0
jne 0x14003bf4f
mov ecx, ebx
call fcn.14003bc40
int3
add rsp, 0x40
pop rbx
ret
Function at 0x1402b8d29
Capabilities:
Encode data using base64

Disassembly:
not r11b
ror r10b, 0xe5
jae 0x140289cc9
and ebp, r10d
rol r11d, 3
neg ebp
movzx esi, r10b
setp sil
add r11d, esi
xor rbp, 0x211b4608
movsx edx, sil
movzx eax, dl
rol r11d, 1
or sil, 0x8b
push r8
jp 0x1402ea55a

Function at 0x1402c4dcd
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov r9, qword [rsp + rdi - 0x18f03f8]
mov rdi, qword [rsp + rdi - 0x18f03f0]
lea rdi, [rdi + rcx*2 - 0x31e0804]
mov eax, dword [rcx + rdi - 0x18f0400]
xor eax, r8d
mov qword [rsp + rcx*2 - 0x31e0800], 0xffffffffc79281b7
mov qword [rsp + rcx - 0x18f03f8], rcx
neg eax
ror eax, 1
lea r11, [rcx + rcx + 0x8ba7b31]
call fcn.1402c2298

Function at 0x1402da95b
Capabilities:
Encode data using base64

Disassembly:
mov r11d, 0x5a8bc2ad
movzx ecx, r11b
movsx edi, r11b
xor eax, ebp
ror eax, 2
jmp 0x1402e7b95
not eax
je 0x1402c8cc9
mov dword [r9 + rcx*2 - 0x7c1162f4], eax
mov qword [rsp + rcx - 0x3e08b17a], rcx
sal word [rsp + rcx*2 - 0x7c1162f2], 0x69
lea r8, [r8 + rcx*2 - 0x7c1162f8]
mov edi, dword [rcx + r8 - 0x3e08b17a]
sar byte [rsp + rcx*2 - 0x7c1162ee], 0x41
xor edi, ebp
add rcx, 0xffffffffff829812
movzx r11d, cl
ror r11b, 0xc6
inc edi
movzx r10d, byte [rsp + rcx*2 - 0x7b169314]
rol r10b, 0xa1
pop r11
neg edi
lea rdx, [r11 - 0x75ce5455]
sal r11d, 0x68
lea edi, [rdx + rdi - 0x3c3543d1]
bswap edi
push rbp
sbb edx, r10d
xor dword [rsp + r11*2 - 0x162f400], edi
movsx eax, r11w
pop rbp
neg r10w
rol edx, cl
adc cl, 0x2e
movsxd rdi, edi
lea rbx, [r10 + 0x2e116589]
push r10
shl r11d, cl
adc rsi, rdi
mov edi, r11d
jmp 0x14026a00c
Function at 0x1402f4bd4
Capabilities:
Parse pe header

Disassembly:
xor ecx, 0x4035feab
not r8d
not ecx
add r9d, dword [rsp + r9 - 0x6689]
xadd word [rsp + r9*8 - 0x2c444f2], di
mov qword [rsp + r9*8 - 0x2c44500], rdi
mov qword [rsp + r9 - 0x588898], rsi
sub qword [rsp + r9*4 - 0x1622280], 0x31ff0af
not r9w
xor dword [rsp + r9 - 0x587757], ecx
mov rsi, qword [rsp + r9 - 0x587757]
shr r8b, 0xe7
movsxd rcx, ecx
add rbp, rcx
shr r11b, 0xe1
sbb r8, r9
sbb r8b, byte [rsp + r9*2 - 0xb0eeb9]
mov r11, qword [rbx + r9 - 0x58775f]
movsx eax, r8b
dec r8
mov rax, qword [rbx + r9 - 0x587757]
movzx ecx, r9b
mov qword [rsp + r9*2 - 0xb0eeb6], r8
call fcn.1403278cd
mov edx, 0xd21eb2a6
mov eax, edx
mov r10, qword [rbx]
push rax
not qword [rsp]
shl dx, 0x8f
add rbx, 8
sub rdi, 1
movzx ebp, byte [rdi]
rol qword [rsp], 0xda
xor bpl, r8b
neg byte [rsp + 3]
js 0x14028e531
mov ecx, 0xdda64921
mov rdi, qword [r9]
movsx edx, cx
movsx r10d, cl
inc rcx
mov cl, byte [r9 + rdx*4 - 0x1247c]
not r10d
lea r9, [r9 + rdx*4 - 0x1247a]
or r10, 0xffffffffd2ab1e2e
movsx eax, dl
mov ebx, 0xa6978c2d
mov byte [rdi + rdx*2 - 0x9242], cl
lea r8, [r8 + rdx*2 - 0x9246]
mov eax, dword [rdx + r8 - 0x4921]
xor eax, ebp
rol eax, 1
bswap eax
dec eax
sal rbx, 0x26
mov edi, ebx
ror rbx, 0x4e
rol eax, 1
lea rcx, [r10*2 - 0x38631b50]
shl cl, 0x61
shr di, 3
push rbp
sbb ecx, edx
ror bx, 0x68
lea rcx, [rdi + rbx*8 - 0x24c7b6dd]
xor dword [rsp + rdx*2 - 0x9242], eax
sal di, 0xb
jae 0x1402c6573
ror bpl, 1
dec bpl
neg bpl
rol bpl, 1
push rdx
and edx, 0xf20c4216
mov ecx, 0x820f3ebe
not bpl
mov qword [rsp + 8], rax
jbe 0x140285c9e
xor r8b, bpl
inc cl
push rax
shr rax, cl
lea rbp, [rsp + rbp + 0x18]
mov qword [rbp + rax], r10
lea rdi, [rdi + rax - 4]
movsx r10d, al
neg qword [rsp + rax + 0x10]
mov ebp, dword [rdi + rax*4]
xor ebp, r8d
bswap ebp
ror rcx, 0x23
xor ebp, 0xde8c2c20
call fcn.1402fbc14
bswap ecx
xchg dword [rsp + r9 - 0x58220c7a], r9d
not ecx
sar r8b, 0xa1
bswap ecx
jge 0x14028c196
Function at 0x1400b6d00
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.1400cda10
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400cda10
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b6e50
cmp rax, 0xffffffffffffffff
je 0x1400b6e50
xor edi, edi
test rbp, rbp
jle 0x1400b6dfb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140075b40
mov rbx, rax
test rax, rax
jne 0x1400b6d88
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b6df1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400bc698
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.1400bff5c
cmp eax, 0xffffffff
je 0x1400b6dd1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b6d98
mov edx, r15d
mov ecx, r14d
call fcn.1400bc698
jmp 0x1400b6df1
cmp byte [rsi + 0x38], dil
je 0x1400b6de8
cmp dword [rsi + 0x34], 5
jne 0x1400b6de8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400b6df1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140075aa0
jmp 0x1400b6e64
jns 0x1400b6e64
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400cda10
cmp rax, 0xffffffffffffffff
jne 0x1400b6e1c
cmp byte [rsi + 0x30], dil
je 0x1400b6e64
mov edi, dword [rsi + 0x2c]
jmp 0x1400b6e64
mov ecx, r14d
call fcn.1400ba5ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b6e64
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 0x1400b6e64
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b6e5d
mov eax, dword [rsi + 0x2c]
jmp 0x1400b6e62
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400cda10
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 0x1400bbf8c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, sym.elevation_service.exe_Ordinal_0
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov r12, r9
mov rsi, rdx
mov r14, r15
lea rdi, [rax + rax*8]
mov rax, qword [r11 + rbp*8 + 0x188440]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400bbfe2
cmp byte [rdx], 0xa
jne 0x1400bbfe2
or byte [rax + rdi*8 + 0x38], 4
jmp 0x1400bbfe7
and byte [rax + rdi*8 + 0x38], 0xfb
lea r9, [rdx + r8]
mov rax, rsi
mov rbx, rsi
mov r13d, 1
cmp rsi, r9
jae 0x1400bc10a
mov dl, byte [rax]
cmp dl, 0x1a
je 0x1400bc0ec
lea rcx, [rax + 1]
cmp dl, 0xd
je 0x1400bc01b
mov rax, rcx
mov byte [rbx], dl
jmp 0x1400bc038
cmp rcx, r9
jae 0x1400bc045
cmp byte [rcx], 0xa
jne 0x1400bc02f
mov byte [rbx], 0xa
mov ecx, 2
jmp 0x1400bc035
mov byte [rbx], 0xd
mov rcx, r13
add rax, rcx
inc rbx
cmp rax, r9
jb 0x1400bc000
jmp 0x1400bc10a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bc0e0
cmp dword [rsp + 0x78], 0
je 0x1400bc0e0
mov rdx, r14
invalid
invalid
invalid
mov bh, byte [rdi]
hlt
Function at 0x1400d4770
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400d47a2
call fcn.1400b9968
mov dword [rax], 0x16
call fcn.1400bb2d0
jmp 0x1400d48c1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400d48c1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400d48c1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400d47d1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400d48c1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400d47e5
call fcn.1400d5b4c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400b9d20
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400bba24
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400d48af
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400d487a
mov rcx, rsi
call fcn.1400b9d20
cmp eax, edi
je 0x1400d4865
mov rcx, rsi
call fcn.1400b9d20
cmp eax, 0xfffffffe
je 0x1400d4865
mov rcx, rsi
call fcn.1400b9d20
movsxd rbx, eax
lea r14, [0x140188440]
mov rcx, rsi
sar rbx, 6
call fcn.1400b9d20
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400d486c
lea rdx, [0x140178510]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400d487a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400d489e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400d489e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400d489e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400d48c4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x1400f2650
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.1400a7064
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400f26c0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400b6654
mov qword [rbx], rax
test rax, rax
je 0x1400f26a7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14012f270
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14012f2ac
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14012f2b6
add rdi, rbx
sub rsi, rbx
jne 0x14012f28a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400bc5c0
int3

Function at 0x140145020
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x14014503b
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140066c40
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1401450e9
mov rbx, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1401450e9
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140145114
mov qword [rdi + 0x28], r14
mov al, 1
jmp 0x140145031
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x14014502f
mov dword [rsi], 7
jmp 0x14014502f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14014502f
Function at 0x1400024e0
Capabilities:
Parse pe header

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

Function at 0x1400069c8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140006a37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006a37
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006a37
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006a37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006a37
cmp dword [rcx + 0x84], 0xe
jbe 0x140006a37
cmp dword [rcx + 0xf8], 0
je 0x140006a37
mov ecx, ebx
call fcn.140006ae8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400068c4
nop
cmp dword [rbp + 0x20], 0
je 0x140006a85
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006a90
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400069c8
Function at 0x140009f64
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 0x140009f94
xor eax, eax
jmp 0x14000a057
mov rbp, rbx
cmp word [rax], si
je 0x140009fb9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009fa0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009f9c
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.140009e84
movsxd r14, eax
test eax, eax
jne 0x140009ff7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009f8d
mov rcx, r14
call fcn.1400079d8
mov rdi, rax
test rax, rax
jne 0x14000a010
xor ecx, ecx
call fcn.14000799c
jmp 0x140009fec
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.140009e84
test eax, eax
jne 0x14000a041
mov rcx, rdi
call fcn.14000799c
jmp 0x14000a04b
xor ecx, ecx
call fcn.14000799c
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 0x14000f690
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f6b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f6b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400fd010
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0x628db5af
sub byte [rcx], al
adc eax, 0x395a4adf
mov cl, byte [rdi]
movabs dword [0x9864954549044e4f], eax
jns 0x1400fcf51
invalid
dec dword [rdi + 0x4fae654f]
cli
cli
sub bh, byte [rbp + 0x3f]
std
xor edi, esp
jle 0x1400fcf26
jl 0x1400fcf04
loopne 0x1400fcf8b
invalid
add edi, dword [rbx]
mov ecx, 0x24c80494
push rbp
mov r9b, 0x91
scasd eax, dword [rdi]
retf 0x5726
movabs qword [0x120f87d0c145f935], rax
add dword [rax + 0x15], r10d
loopne 0x1400fcf2b
pop rdi
rcl dh, cl
add ebx, dword [rbp - 0x5d77aeba]
invalid
nop dword [rcx + 0xd]
add byte [rbx - 0x57], bl
invalid
jbe 0x1400fcf7a
test dword [rsi - 0x1c74c805], esp
enter 0x7a7d, 0x26
out dx, eax
fstp qword [rdi]
loopne 0x1400fd027
rol byte [rbx], 1
enter 0x2277, 0xffffffffffffffcc
hlt
je 0x1400fd038
invalid
xchg dl, bh
invalid
enter 0x5a7d, 0x25
out dx, eax
fstp qword [rdi]
loopne 0x1400fd03b
iretd
mov ebp, ss
cmc
enter 0xffffffffffffd1bb, 0x32
and bh, byte [rdi - 0x22f40f36]
xchg byte [rdx], al
popfq
sbb al, byte [rsi + 0x64]
mov ebp, 0x543c764c
loope 0x1400fcfe1
loope 0x1400fd022
xor byte [0xf1fba833], r11b
jb 0x1400fd0b6
pop rcx
rol byte [rdx + 0x4649020f], 1
push rax
adc al, ah
adc byte [rax - 0x33], 0xd6
add dword [rax + 0x10], edx
loopne 0x1400fcfeb
push rax
int 0xd6
and ecx, dword [rbp - 0x6b57aebb]
jno 0x1400fd066
mov fs, word [rdx + 0x30]
push rcx
and esi, dword [rdx + 0x76]
xor al, 0xcf
pop rsp
invalid
push 0x49
mov cl, 0xa7
jo 0x1400fd12e
jo 0x1400fd0eb
invalid
invalid
outsd dx, dword [rsi]
sti
invalid
Function at 0x141693058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416931df
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 0x141693089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14169306f
add dl, dl
jne 0x141693096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416930f6
xor eax, eax
add dl, dl
jne 0x1416930a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416931ad
add dl, dl
jne 0x1416930b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416930c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416930d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416930dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416930ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14169307e
mov eax, 1
add dl, dl
jne 0x141693106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141693113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416930fb
sub eax, ebx
mov ebx, 1
jne 0x14169314c
mov ecx, 1
add dl, dl
jne 0x14169312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14169313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141693123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14169307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141693168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141693175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14169315d
cmp eax, 0x7d00
jae 0x14169319b
cmp eax, 0x500
jb 0x141693196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14169307e
cmp eax, 0x7f
ja 0x14169319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14169307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416931d2
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 0x14169307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001126c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c70
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 0x14001130c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014fc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014fe0
xor al, al
jmp 0x140015061
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ff3
xor al, al
jmp 0x140015061
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 0x14001501d
xor al, al
jmp 0x140015061
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015031
xor al, al
jmp 0x140015061
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015043
xor al, al
jmp 0x140015061
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001505f
xor al, al
jmp 0x140015061
mov al, 1
add rsp, 0x38
ret