joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f218
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, [0x140042c00]
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 0x14001f26f
cmp word [rdx], r13w
jne 0x14001f26f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f274
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f399
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f3ba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f2ad
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f2d4
cmp r9, r8
jae 0x14001f2e4
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 0x14001f28e
jmp 0x14001f399
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 0x14001f38e
cmp dword [rsp + 0x80], esi
je 0x14001f38e
lea r8, [0x140042c00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f366
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f336
mov word [rbx], r13w
jmp 0x14001f396
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 0x14001f343
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f396
cmp word [rsp + 0x70], r13w
jne 0x14001f373
cmp rbx, r14
je 0x14001f330
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001fe80
cmp word [rsp + 0x70], r13w
je 0x14001f399
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, [0x140042c00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f393
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f399
Function at 0x140022c88
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 0x140022cb8
xor eax, eax
jmp 0x140022d7b
mov rbp, rbx
cmp word [rax], si
je 0x140022cdd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022cc4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022cc0
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.1400213fc
movsxd r14, eax
test eax, eax
jne 0x140022d1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022cb1
mov rcx, r14
call fcn.14001b41c
mov rdi, rax
test rax, rax
jne 0x140022d34
xor ecx, ecx
call fcn.14001a1d8
jmp 0x140022d10
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.1400213fc
test eax, eax
jne 0x140022d65
mov rcx, rdi
call fcn.14001a1d8
jmp 0x140022d6f
xor ecx, ecx
call fcn.14001a1d8
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 0x140025cf0
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.14001a58c
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 0x140025d91
cmp ebx, dword [rsp + 0x30]
je 0x140025d8a
test esi, esi
je 0x140025d8a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140025d65
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140025d72
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140025d4f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140025d76
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140025d93
mov eax, 1
jmp 0x140025d93
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140028aa4
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.1400161d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140028b2e
cmp byte [rbp - 0x21], r15b
je 0x140028b29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028b64
call fcn.14001ac0c
test eax, eax
jne 0x140028b50
cmp byte [rbp - 0x21], r15b
je 0x140028b48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028b64
cmp byte [rbp - 0x21], r15b
je 0x140028b61
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.1400167d4
test eax, eax
jne 0x140028c04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400161d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140028ba3
cmp byte [rbp - 0x21], r15b
je 0x140028bd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140028bd8
call fcn.14001ac0c
test eax, eax
jne 0x140028bc4
cmp byte [rbp - 0x21], r15b
je 0x140028bbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140028bd8
cmp byte [rbp - 0x21], r15b
je 0x140028bd5
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.1400167d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028c04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028c07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028c15
mov rcx, rdi
call fcn.14001a1d8
cmp byte [rbp + 0x3f], r15b
je 0x140028c24
mov rcx, qword [rbp + 0x27]
call fcn.14001a1d8
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 0x14002a8b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a8d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a8d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000bc60
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14005c1c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000bcf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000bcf8
mov dword [rsp + 0x20], 0x28
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14000bd1c
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14001fbe0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.1400042b0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000bdd0
lea rdx, [0x14005a5c0]
lea rcx, [rsp + 0x50]
call fcn.140021bf8
int3

Function at 0x14000c1d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14005c1c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140060878]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14005f1d8], ecx
jg 0x14000c2af
mov eax, ebx
cmp rbx, rax
jne 0x14000c271
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14000c271
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x14005f1d0]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14000c2f2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001fbe0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.1400042b0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14000bdd0
lea rdx, [0x14005a5c0]
lea rcx, [rsp + 0x40]
call fcn.140021bf8
nop
lea rcx, [0x14005f1d8]
call fcn.14002025c
cmp dword [0x14005f1d8], 0xffffffff
jne 0x14000c21c
lea rcx, [0x14005f1d0]
call fcn.14000bc60
lea rcx, [0x1400409e0]
call fcn.14002019c
nop
lea rcx, [0x14005f1d8]
call fcn.1400201f0
jmp 0x14000c21c
lea rdx, [0x140042ea0]
lea rcx, [rsp + 0x20]
call fcn.1400042b0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14000bdd0
lea rdx, [0x14005a5c0]
lea rcx, [rsp + 0x40]
call fcn.140021bf8
int3
Function at 0x1400188e0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140018917
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x140018900
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x140018a08
sub rcx, r10
cmp r9, 8
jb 0x1400189e9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x140018970
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x140018a08
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1400189f0
test r8d, r8d
sete al
ret
Function at 0x140018a10
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140018ba6
cmp r9, 4
jb 0x140018a4a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140018a31
xor r11d, r11d
test r9, r9
je 0x140018ba6
cmp r9, 8
jb 0x140018b7d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x140018a7c
cmp r10, r8
jae 0x140018b7d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140018a91
cmp r10, rdx
jae 0x140018b7d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140018b37
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x140018ad0
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x140018b6f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140018b50
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140018ba6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140018b90
add rsp, 8
ret
Function at 0x140018bb0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r8, r8
je 0x140018d12
cmp r8, 4
jb 0x140018bf2
mov r9, r8
shr r9, 2
imul rax, r9, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r9, 1
jne 0x140018be0
xor r10d, r10d
test r8, r8
je 0x140018d12
cmp r8, 8
jb 0x140018cf4
lea r9, [rcx - 1]
lea rax, [rdx - 1]
add r9, r8
add rax, r8
cmp rcx, rax
ja 0x140018c24
cmp r9, rdx
jae 0x140018cf4
cmp r8, 0x40
jb 0x140018cb3
mov r9, r8
mov qword [rsp], rbx
and r9d, 0x3f
mov r11, r8
sub r11, r9
mov rbx, rdx
lea rax, [rcx + 0x10]
sub rbx, rcx
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rax + rbx - 0x10]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + rbx - 0x40]
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm2, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + rbx - 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 [rax + rbx - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, r11
jb 0x140018c50
mov rbx, qword [rsp]
cmp r9, 8
jb 0x140018cef
mov r9, r8
and r9, 0xfffffffffffffff8
mov r11, rdx
lea rax, [r10 + rcx]
sub r11, rcx
nop dword [rax]
nop dword [rax + rax]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [r11 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, r9
jb 0x140018cd0
cmp r10, r8
jae 0x140018d12
sub rdx, rcx
lea r9, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [rdx + r9]
xor byte [r9], al
lea r9, [r9 + 1]
sub r8, 1
jne 0x140018d00
add rsp, 8
ret
Function at 0x140020a68
Capabilities:
Parse pe header

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

Function at 0x140033ae0
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 0x140033b4f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140033b4f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140033b4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140033b4f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140033b4f
cmp dword [rcx + 0x84], 0xe
jbe 0x140033b4f
cmp dword [rcx + 0xf8], 0
je 0x140033b4f
mov ecx, ebx
call fcn.140033bf4
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.1400339e8
nop
cmp dword [rbp + 0x20], 0
jne 0x140033bb0
call fcn.140039d0c
cmp eax, 1
jne 0x140033ba0
xor dl, dl
jmp 0x140033baa
call fcn.140039cd8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140033bbb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140033bc4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140033ae0

Function at 0x140033cc8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140033ae0
Function at 0x1400397e0
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 0x140039867
mov rsi, rbx
cmp word [rax], bp
je 0x140039826
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039810
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003980c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140034eb0
mov rdi, rax
test rax, rax
je 0x140039854
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003ee10
mov rbp, rdi
xor ecx, ecx
call fcn.140034e50
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 0x14003ea50
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140c5e6af
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 0x140c5e559
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e53f
add dl, dl
jne 0x140c5e566
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e5c6
xor eax, eax
add dl, dl
jne 0x140c5e575
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e67d
add dl, dl
jne 0x140c5e586
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e593
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e5a0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e5ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c5e5ba
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c5e54e
mov eax, 1
add dl, dl
jne 0x140c5e5d6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e5e3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e5cb
sub eax, ebx
mov ebx, 1
jne 0x140c5e61c
mov ecx, 1
add dl, dl
jne 0x140c5e5fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e60b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e5f3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e54e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c5e638
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e645
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e62d
cmp eax, 0x7d00
jae 0x140c5e66b
cmp eax, 0x500
jb 0x140c5e666
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e54e
cmp eax, 0x7f
ja 0x140c5e66e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e54e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c5e6a2
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 0x140c5e54e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001590
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rsi, rax
xor eax, eax
mov dword [rsp + 0x30], eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [rsp + 0x38]
lea rax, [rsp + 0x34]
movsx edi, word [rsp + 0x3a]
mov edx, 0x20
mov r9d, dword [rsp + 0x30]
imul edi, ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x34]
movzx edx, word [rsp + 0x40]
mov r8d, edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov edx, dword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003570
mov rsi, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140003ef0
Capabilities:
Parse pe header

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