joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006aa50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r10, rcx
test r8, r8
je 0x14006ab60
cmp r8, 8
jb 0x14006ab45
lea rcx, [r8 - 1]
lea rax, [rdx - 1]
add rcx, r10
add rax, r8
cmp r10, rax
ja 0x14006aa89
cmp rcx, rdx
jae 0x14006ab45
mov rcx, rdx
cmp r8, 0x40
jb 0x14006ab14
mov r11, r8
mov qword [rsp], rbx
and r11d, 0x3f
mov rbx, r8
sub rbx, r11
lea rax, [r10 + 0x10]
sub rcx, r10
nop
movdqu xmm0, xmmword [rax - 0x10]
add r9, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rcx + rax - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rcx + rax - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r9, rbx
jb 0x14006aab0
mov rbx, qword [rsp]
cmp r11, 8
jb 0x14006ab40
jmp 0x14006ab17
sub rcx, r10
mov r11, r8
and r11, 0xfffffffffffffff8
lea rax, [r9 + r10]
movq xmm0, qword [rax]
add r9, 8
movq xmm1, qword [rcx + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r9, r11
jb 0x14006ab22
cmp r9, r8
jae 0x14006ab60
sub rdx, r10
lea rax, [r9 + r10]
sub r8, r9
nop
movzx ecx, byte [rax + rdx]
xor byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x14006ab50
add rsp, 8
ret
Function at 0x14006b4b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x14009a2c0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, qword [rsp + 0x150]
mov r14, r9
mov rdi, r8
mov rbp, rdx
mov r15, rcx
test rcx, rcx
je 0x14006b6ea
test r8, r8
jne 0x14006b4fc
test r9, r9
jne 0x14006b6ea
cmp rbx, 0xc8
jae 0x14006b6ea
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, VarDecRound
call sub.VCRUNTIME140.dll_memset
cmp r14, rbx
jb 0x14006b676
mov qword [rsp + 0x138], rsi
lea rsi, [rsp + 0x20]
sub rsi, rdi
xor eax, eax
test rbx, rbx
je 0x14006b652
cmp rbx, 8
jb 0x14006b630
lea rcx, [rbx - 1]
add rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, [rsp + rbx + 0x1f]
cmp r8, rcx
ja 0x14006b568
cmp rdx, rdi
jae 0x14006b630
cmp rbx, 0x40
jb 0x14006b5f3
mov rdx, rbx
mov r8, rbx
and edx, 0x3f
sub r8, rdx
lea rcx, [rdi + 0x20]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rsi + rcx - 0x20]
add rax, 0x40
movdqu xmm1, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rsi + rcx - 0x60], xmm1
movdqu xmm0, xmmword [rsi + rcx - 0x50]
movdqu xmm1, xmmword [rcx - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rsi + rcx - 0x50], xmm1
movdqu xmm0, xmmword [rsi + rcx - 0x40]
movdqu xmm1, xmmword [rcx - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rsi + rcx - 0x40], xmm1
movdqu xmm0, xmmword [rsi + rcx - 0x30]
movdqu xmm1, xmmword [rcx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rsi + rcx - 0x30], xmm1
cmp rax, r8
jb 0x14006b590
cmp rdx, 8
jb 0x14006b61d
mov rcx, rbx
and rcx, 0xfffffffffffffff8
nop word [rax + rax]
movq xmm0, qword [rsp + rax + 0x20]
movq xmm1, qword [rax + rdi]
xorps xmm1, xmm0
movq qword [rsp + rax + 0x20], xmm1
add rax, 8
cmp rax, rcx
jb 0x14006b600
cmp rax, rbx
jae 0x14006b652
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x20]
add rdx, rax
lea r8, [rsp + 0x40]
mov rcx, rdx
inc rax
sub rcx, r8
movzx ecx, byte [rcx + rdi + 0x20]
xor byte [rdx], cl
cmp rax, rbx
jb 0x14006b630
lea rcx, [rsp + 0x20]
call fcn.14006b710
add rdi, rbx
sub rsi, rbx
sub r14, rbx
cmp r14, rbx
jae 0x14006b534
mov rsi, qword [rsp + 0x138]
movzx eax, byte [rsp + 0x158]
lea rcx, [rsp + 0x20]
xor byte [rsp + r14 + 0x20], al
mov r8, r14
xor byte [rsp + rbx + 0x1f], 0x80
mov rdx, rdi
call fcn.14006aa50
lea rcx, [rsp + 0x20]
call fcn.14006b710
cmp rbp, rbx
jb 0x14006b6d1
test rbx, rbx
je 0x14006b6bc
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x20]
call fcn.14006b710
add r15, rbx
sub rbp, rbx
cmp rbp, rbx
jae 0x14006b6a7
test rbp, rbp
je 0x14006b6e6
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
jmp 0x14006b6ef
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140066cd0
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x140003670
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003692
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000370c
mov rdi, r14
mov rcx, rbx
call fcn.140004af0
test rax, rax
jle 0x1400036e4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400098e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400036fc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003704
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400036a6
sub r14, rdi
jmp 0x1400037ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003723
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003725
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003757
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400098e0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400037ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003792
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400037cd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000f4c8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400037ec
cmp rbp, rax
ja 0x1400037a0
test rbp, rbp
je 0x1400037ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000f4c8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140006564
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400065e8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400233e0]
cmp byte [rcx + rax], 0
je 0x1400065e8
dec r8
sub rdx, 1
jne 0x1400065ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

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

Function at 0x140011c04
Capabilities:
Parse pe header

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

Function at 0x14001469c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400146b2
mov al, 1
jmp 0x140014712
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400146c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014710
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c098
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014710
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014710
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014710
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014712
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400173b8
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.140008060
sub rsp, rax
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001457c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140017407
mov rax, rbp
jmp 0x14001750f
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 + 0x35380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140018304
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001750b
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 0x14001750b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140018304
test rax, rax
js 0x14001750b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001750b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400174fd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400174fd
cmp byte [rcx], 0xd
jne 0x1400174e3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400174f2
cmp byte [rcx + 1], 0xa
jne 0x1400174f2
inc rcx
jmp 0x1400174f2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400174c5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001750f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007a00
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 0x1400176a4
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, [0x140035380]
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 0x1400176fb
cmp word [rdx], r13w
jne 0x1400176fb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140017700
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140017825
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140017846
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140017739
mov rdx, r9
mov word [rbx], cx
jmp 0x140017760
cmp r9, r8
jae 0x140017770
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 0x14001771a
jmp 0x140017825
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 0x14001781a
cmp dword [rsp + 0x80], esi
je 0x14001781a
lea r8, [0x140035380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400177f2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400177c2
mov word [rbx], r13w
jmp 0x140017822
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 0x1400177cf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140017822
cmp word [rsp + 0x70], r13w
jne 0x1400177ff
cmp rbx, r14
je 0x1400177bc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001830c
cmp word [rsp + 0x70], r13w
je 0x140017825
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, [0x140035380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001781f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140017825
Function at 0x14001baec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001bb73
mov rsi, rbx
cmp word [rax], bp
je 0x14001bb32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001bb1c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001bb18
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400183b0
mov rdi, rax
test rax, rax
je 0x14001bb60
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400098e0
mov rbp, rdi
xor ecx, ecx
call fcn.140015f18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e5ec
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.140014b5c
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 0x14001e68d
cmp ebx, dword [rsp + 0x30]
je 0x14001e686
test esi, esi
je 0x14001e686
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001e661
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001e66e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001e64b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001e672
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001e68f
mov eax, 1
jmp 0x14001e68f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140020a04
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.14001830c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001830c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140020b54
cmp rax, 0xffffffffffffffff
je 0x140020b54
xor edi, edi
test rbp, rbp
jle 0x140020aff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140016504
mov rbx, rax
test rax, rax
jne 0x140020a8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140020af5
mov edx, 0x8000
mov ecx, r14d
call fcn.140011c80
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.140015c10
cmp eax, 0xffffffff
je 0x140020ad5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140020a9c
mov edx, r15d
mov ecx, r14d
call fcn.140011c80
jmp 0x140020af5
cmp byte [rsi + 0x38], dil
je 0x140020aec
cmp dword [rsi + 0x34], 5
jne 0x140020aec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140020af5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140015f18
jmp 0x140020b68
jns 0x140020b68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001830c
cmp rax, 0xffffffffffffffff
jne 0x140020b20
cmp byte [rsi + 0x30], dil
je 0x140020b68
mov edi, dword [rsi + 0x2c]
jmp 0x140020b68
mov ecx, r14d
call fcn.14001c098
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140020b68
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 0x140020b68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140020b61
mov eax, dword [rsi + 0x2c]
jmp 0x140020b66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001830c
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 0x140ce8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ce81df
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 0x140ce8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ce806f
add dl, dl
jne 0x140ce8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ce80f6
xor eax, eax
add dl, dl
jne 0x140ce80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ce81ad
add dl, dl
jne 0x140ce80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ce80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ce80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ce80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ce80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ce807e
mov eax, 1
add dl, dl
jne 0x140ce8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ce8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ce80fb
sub eax, ebx
mov ebx, 1
jne 0x140ce814c
mov ecx, 1
add dl, dl
jne 0x140ce812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ce813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ce8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ce807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ce8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ce8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ce815d
cmp eax, 0x7d00
jae 0x140ce819b
cmp eax, 0x500
jb 0x140ce8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ce807e
cmp eax, 0x7f
ja 0x140ce819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ce807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ce81d2
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 0x140ce807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400110e1
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001b0e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140033066]
call fcn.140011884
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001b137
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001b243
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001b1dc
cmp qword [rbp + 0x28], 0
jle 0x14001b1dc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001b17c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400117fd
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001b232
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001b232
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400114ce
Capabilities:
Terminate process

Disassembly:
jmp 0x14001de70
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]
add rsp, 0x28
ret
Function at 0x140011604
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001e9a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001e9c0
xor al, al
jmp 0x14001ea41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001e9d3
xor al, al
jmp 0x14001ea41
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 0x14001e9fd
xor al, al
jmp 0x14001ea41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ea11
xor al, al
jmp 0x14001ea41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ea23
xor al, al
jmp 0x14001ea41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ea3f
xor al, al
jmp 0x14001ea41
mov al, 1
add rsp, 0x38
ret
Function at 0x140011825
Capabilities:
Get token membership

Disassembly:
jmp 0x1400173a0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002c040]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400330f7]
call fcn.140011884
mov dword [rbp + 4], 0
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x25], 0
mov byte [rbp + 0x26], 0
mov byte [rbp + 0x27], 0
mov byte [rbp + 0x28], 0
mov byte [rbp + 0x29], 5
lea rax, [rbp + 0x48]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x24]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140017476
lea r8, [rbp + 4]
mov rdx, qword [rbp + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14001746c
mov dword [rbp + 4], 0
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 4], 0
je 0x140017488
mov dword [rbp + 0x114], 1
jmp 0x140017492
mov dword [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, [0x140025fb0]
call fcn.140011717
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.14001140b
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret