joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400019f0
Capabilities:
Check for debugger via api
Check for peb ntglobalflag flag

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140001b09
xor ebx, ebx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x140001a30
cmp dword [rsp + 0x48], ebx
jne 0x140001aef
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r8, [rsp + 0x48]
mov edx, 0x1e
call qword [0x14005f7c0]
test eax, eax
jne 0x140001a68
cmp qword [rsp + 0x48], rbx
jne 0x140001afc
call fcn.140001b50
test al, al
jne 0x140001b09
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0xd8]
cmp dword [rdx + rax + 0xc], ebx
jne 0x140001b09
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x30]
call fcn.140001910
test eax, eax
mov edx, 0x70
mov ebx, 0x14
cmovne ebx, edx
call fcn.140001910
test eax, eax
mov ecx, 0x18
mov edx, 0x74
cmovne ecx, edx
test dword [rbx + rdi], 0xfffffffd
jne 0x140001b09
cmp dword [rcx + rdi], 0
jne 0x140001b09
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
jne 0x140001b09
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140001b20
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140001b20
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140001b20
int3
Function at 0x140001b50
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14005be40]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x58], rsi
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r14d, ebx
mov qword [rsp + 0x48], rbx
xor r15b, r15b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd r8, dword [rax + 0x3c]
add r8, rax
movzx eax, word [r8 + 0x14]
lea r9, [r8 + 0x18]
add r9, rax
mov edx, ebx
mov dword [rsp + 0x40], ebx
lea r10, [0x140040da4]
movzx eax, word [r8 + 6]
cmp edx, eax
jge 0x140001bfe
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rdi, [r9 + rcx*8]
mov rax, rbx
nop dword [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r10 + rax - 1]
jne 0x140001bf6
cmp rax, 7
jne 0x140001be0
jmp 0x140001c01
inc edx
mov dword [rsp + 0x40], edx
jmp 0x140001bc4
mov rdi, rbx
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001ccb
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r12d, 1
mov r8d, r12d
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x140001ccb
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001ccb
mov ecx, dword [rdi + 0x10]
add ecx, dword [rdi + 0x14]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140001ccb
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0xd8]
sub edx, dword [rdi + 0xc]
add edx, dword [rdi + 0x14]
movzx r15d, r15b
cmp dword [rdx + rax + 0xc], 0
cmovne r15d, r12d
test r14, r14
je 0x140001cd9
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test rbx, rbx
je 0x140001ce7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xffffffffffffffff
je 0x140001cf6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r15b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140021c80
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14001df10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140021f50
sub rsp, rax
mov rax, qword [0x14005be40]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14001dfd2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140030d08
cmp rax, 1
jne 0x14001e02e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001dfaf
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001dfa3
cmp rcx, 1
jb 0x14001e02e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001df70
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001e003
lea rcx, [rsp + 0x80]
call fcn.140031de0
jmp 0x14001e005
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140021c80
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140030ab8
int3
Function at 0x14001ec10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14005d71e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x14001eca4
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, rax
mov qword [0x14005d6c8], rax
call fcn.140001d80
mov qword [0x14005d6c8], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x14005d6c8], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x14005d6c8], rdx
call fcn.14001cda0
cmp eax, ebx
jne 0x14001ee0d
mov byte [0x14005d71e], 1
lea rdx, str..bytecode
mov rcx, rsi
call fcn.14003d550
test eax, eax
je 0x14001ed2f
cmp byte [0x14005d71d], 1
je 0x14001ed2f
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e470], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e478], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e480], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e488], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e490], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e498], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e4a0], rax
call qword [sym.imp.python311.dll_PyDict_New]
mov qword [0x14005e4a8], rax
mov byte [0x14005d71d], 1
mov r8, qword [0x14005d6c8]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
nop
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14001ed57
inc rax
test cl, cl
jne 0x14001ed40
mov ecx, r9d
jmp 0x14001ed5c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14001ed63
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14001edc8
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14001eda5
inc rax
test cl, cl
jne 0x14001ed90
mov ecx, r9d
jmp 0x14001edaa
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14001edb1
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14001ed80
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14001edf8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001b390
add rdi, 8
sub rbx, 1
jne 0x14001ede0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.1400301d4
call fcn.140030ab8
int3
Function at 0x1400217a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005be40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140021851
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140030d08
cmp rax, 1
jne 0x140021887
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14002182d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140021820
cmp rcx, 1
jb 0x140021887
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400217f0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140021c80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140030ab8
int3

Function at 0x140021a80
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005be40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x140021b2f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140030d08
cmp rax, 1
jne 0x140021b65
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140021b0c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140021b00
cmp rcx, 1
jb 0x140021b65
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140021ad0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140021c80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140030ab8
int3

Function at 0x1400226e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022732
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022732
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022732
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022732
cmp dword [rcx + 0x84], 0xe
jbe 0x140022732
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140022734
xor al, al
add rsp, 0x28
ret
Function at 0x140028508
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 0x140028577
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028577
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028577
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028577
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028577
cmp dword [rcx + 0x84], 0xe
jbe 0x140028577
cmp dword [rcx + 0xf8], 0
je 0x140028577
mov ecx, ebx
call fcn.14002861c
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.140028410
nop
cmp dword [rbp + 0x20], 0
jne 0x1400285d8
call fcn.140035230
cmp eax, 1
jne 0x1400285c8
xor dl, dl
jmp 0x1400285d2
call fcn.1400351fc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400285e3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400285ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x140028508

Function at 0x1400286f0
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 0x140028577
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028577
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028577
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028577
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028577
cmp dword [rcx + 0x84], 0xe
jbe 0x140028577
cmp dword [rcx + 0xf8], 0
je 0x140028577
mov ecx, ebx
call fcn.14002861c
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.140028410
nop
cmp dword [rbp + 0x20], 0
jne 0x1400285d8
call fcn.140035230
cmp eax, 1
jne 0x1400285c8
xor dl, dl
jmp 0x1400285d2
call fcn.1400351fc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400285e3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400285ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x140028508
Function at 0x140036de8
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 0x140036e6f
mov rsi, rbx
cmp word [rax], bp
je 0x140036e2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140036e18
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140036e14
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140032ec0
mov rdi, rax
test rax, rax
je 0x140036e5c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003ca30
mov rbp, rdi
xor ecx, ecx
call fcn.140032350
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 0x14003a354
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003a36a
mov al, 1
jmp 0x14003a3d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003a37b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003a3d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140037130
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003a3d4
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003a3d4
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003a3d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003a3d6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003c7f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003c818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003c818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100411cf0
Capabilities:
Encode data using xor

Disassembly:
push rbp
xor eax, 0x35aa35a8
cwde
xor eax, 0x359a3598
invalid
Function at 0x1417c9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1417c91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1417c9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417c906f
add dl, dl
jne 0x1417c9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417c90f6
xor eax, eax
add dl, dl
jne 0x1417c90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417c91ad
add dl, dl
jne 0x1417c90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417c90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417c90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417c90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417c90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1417c907e
mov eax, 1
add dl, dl
jne 0x1417c9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417c9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417c90fb
sub eax, ebx
mov ebx, 1
jne 0x1417c914c
mov ecx, 1
add dl, dl
jne 0x1417c912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417c913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417c9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417c907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1417c9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417c9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417c915d
cmp eax, 0x7d00
jae 0x1417c919b
cmp eax, 0x500
jb 0x1417c9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417c907e
cmp eax, 0x7f
ja 0x1417c919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417c907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417c91d2
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 0x1417c907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180005764
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180019de0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800014b0
xor ebx, ebx
cmp qword [0x18001b488], rbx
mov rdi, rax
jne 0x180005877
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000594e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000594e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18001b488], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18001b490], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18001b498], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18001b4a8], rax
test rax, rax
je 0x18000586e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18001b4a0], rax
jmp 0x18000587e
mov rax, qword [0x18001b4a0]
jmp 0x180005885
mov rax, qword [0x18001b4a0]
mov r11, qword [0x18001b4a8]
cmp rax, rdi
je 0x1800058ec
cmp r11, rdi
je 0x1800058ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18001b4a8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800058ec
test rax, rax
je 0x1800058ec
call rsi
test rax, rax
je 0x1800058e6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800058e6
test byte [rsp + 0x40], 1
jne 0x1800058ec
bts ebp, 0x15
jmp 0x18000592c
mov rcx, qword [0x18001b490]
cmp rcx, rdi
je 0x18000592c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000592c
call rax
mov rbx, rax
test rax, rax
je 0x18000592c
mov rcx, qword [0x18001b498]
cmp rcx, rdi
je 0x18000592c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000592c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18001b488]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000594e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180005950
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180005370
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005c97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180019de0]
jne 0x18000538a
rol rcx, 0x10
test cx, 0xffff
jne 0x180005386
repz ret
ror rcx, 0x10
jmp 0x180005bf0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18001b550]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18001b648]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180005c75
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18001b550]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180005c97
mov rax, qword [rsp + 0x88]
mov qword [0x18001b648], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18001b5e8], rax
mov rax, qword [0x18001b648]
mov qword [0x18001b4c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18001b5d0], rax
mov dword [0x18001b4b0], 0xc0000409
mov dword [0x18001b4b4], 1
mov rax, qword [0x180019de0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180019de8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18001b548], eax
mov ecx, 1
call fcn.180005750
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180017b08]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18001b548], 0
jne 0x180005d1e
mov ecx, 1
call fcn.180005750
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180005f86
Capabilities:
Authenticate hmac
Check for software breakpoints
Check os version
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Get number of processors
Get system information on windows

Disassembly:
push r11
jmp 0x180007f04
mov r11, qword [rsp + 8]
jo 0x1800070c7

Function at 0x180006069
Capabilities:
Check for software breakpoints
Check os version
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Get number of processors
Get system information on windows

Disassembly:
push rdx
je 0x180006a7d
mov r12, r12
jne 0x180006a7d
mov rdx, qword [rsp + 8]
ja 0x180006ffc
mov rsp, rsp
jbe 0x180006ffc
shl ecx, 8
test r14, 0
call fcn.18000ebd2
invalid
movsxd rdx, dword [rdx]
ja 0x18001297c
xchg bp, bp
jbe 0x18001297c
add rsp, 0x20
pop rdi
ret