joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400550c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rcx, qword [0x1400e9718]
test rcx, rcx
je 0x140055213
mov qword [rsp + 0x60], rbx
mov edx, 0xa
mov qword [rsp + 0x78], rdi
call fcn.140045df0
mov eax, dword [0x1400b1da8]
lea r9, [rbp + 0x18]
mov rbx, qword [0x1400e9718]
lea rdx, [rbp + 0x20]
movsd xmm0, qword [str.SAVE_SETTINGS]
xor edi, edi
mov dword [rbp - 0x18], eax
movzx eax, byte [0x1400b1dac]
mov byte [rbp - 0x14], al
mov word [rbp - 0x12], di
lea r8d, [rdi + 4]
mov qword [rbp - 0x10], SafeArrayDestroy
mov qword [rbp - 8], reloc.OLEAUT32.dll_SafeArrayDestroy
movsd qword [rbp - 0x20], xmm0
mov byte [rbp - 0x13], dil
mov rcx, qword [rbx + 8]
mov dword [rbp + 0x18], edi
mov dword [rbp + 0x20], SafeArrayDestroy
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbp - 8], 0xf
lea rdx, [rbp - 0x20]
mov r8d, dword [rbp - 0x10]
lea r9, [rbp + 0x18]
cmova rdx, qword [rbp - 0x20]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbp - 8]
mov rbx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400551b4
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400551af
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055219
call fcn.14007efb8
mov rcx, qword [0x1400e9718]
lea r9, [rbp + 0x20]
mov r8d, 4
mov dword [rbp + 0x18], edi
lea rdx, [rbp + 0x18]
mov dword [rbp + 0x20], edi
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x18], 1
jne 0x14005520e
mov rcx, qword [0x1400e9718]
lea r9, [rbp + 0x18]
mov r8d, 4
mov dword [rbp + 0x20], edi
lea rdx, [rbp + 0x20]
mov dword [rbp + 0x18], edi
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.140085dd4
int3

Function at 0x14005a9c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov byte [rcx + 0x80], 0
mov ecx, 0x10
call fcn.14007ef7c
test rax, rax
je 0x14005a9ed
mov qword [rax], rbx
lea rcx, [0x14005a970]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140058330]
xor edx, edx
xor ecx, ecx
call fcn.14008f2dc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005aa52
cmp dword [rsp + 0x38], 0
je 0x14005aa47
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14007e228
test eax, eax
jne 0x14005aa47
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call fcn.14007d098
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14007d098
int3
Function at 0x14005cbb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400e7380]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov rax, qword [0x1400e9738]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0xa0]
call rax
mov rbx, rax
test rax, rax
jne 0x14005cd31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x68]
call fcn.14005ab50
nop
lea r8, [0x1400e9a20]
cmp qword [0x1400e9a38], 7
cmova r8, qword [0x1400e9a20]
mov r9, qword [0x1400e9a30]
xor edx, edx
mov rcx, rax
call fcn.140045500
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
xor r9d, r9d
mov r8b, 1
lea rdx, [0x1400e9800]
lea rcx, [rsp + 0x48]
call fcn.14004b710
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14005ccd9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ccd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cd6c
call fcn.14007efb8
movdqa xmm0, xmmword [0x1400aced0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x14005cd2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cd28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cd66
call fcn.14007efb8
xor al, al
jmp 0x14005cd45
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14007f430
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140085dd4
nop
call fcn.140085dd4
nop
int3
Function at 0x14005cd80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400e7380]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov rax, qword [0x1400e9738]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0xa0]
call rax
mov rbx, rax
test rax, rax
jne 0x14005cf01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x68]
call fcn.14005ab50
nop
lea r8, [0x1400e9a20]
cmp qword [0x1400e9a38], 7
cmova r8, qword [0x1400e9a20]
mov r9, qword [0x1400e9a30]
xor edx, edx
mov rcx, rax
call fcn.140045500
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
xor r9d, r9d
mov r8b, 1
lea rdx, [0x1400e9800]
lea rcx, [rsp + 0x48]
call fcn.14004b710
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14005cea9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cea4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cf4a
call fcn.14007efb8
movdqa xmm0, xmmword [0x1400aced0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x14005cefd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cef8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cf44
call fcn.14007efb8
xor al, al
jmp 0x14005cf23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14007f430
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140085dd4
nop
call fcn.140085dd4
nop
Function at 0x140069780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, r9d
xor r8d, r8d
mov rsi, rdx
mov rbx, rcx
cmp rdi, 0xffffffffffffffff
jne 0x1400697e4
movzx eax, byte [rdx]
mov edi, r8d
test al, al
je 0x1400697d8
nop dword [rax]
nop word [rax + rax]
imul r8d, r8d, 0x1003f
inc rdi
movzx eax, al
add r8d, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x1400697c0
test rdi, rdi
jne 0x140069812
xor eax, eax
jmp 0x140069897
mov rdx, r8
test rdi, rdi
je 0x1400697dd
nop dword [rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14006980c
imul r8d, r8d, 0x1003f
inc rdx
add r8d, eax
cmp rdx, rdi
jb 0x1400697f0
jmp 0x1400697d8
mov r8d, 0x11
mov eax, dword [rcx + 0x128]
mov edx, r8d
movzx ecx, byte [rcx + 0x12c]
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, r8d
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14006988f
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14006987e
cmp dword [rbx + 0x14], ebp
jne 0x14006987e
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14006986f
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.1400a33f0
test eax, eax
je 0x140069886
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140069856
test rbx, rbx
je 0x14006988f
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14006ba50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400e7380]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x14006bb44
xor r12d, r12d
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, r12
test rbx, rbx
je 0x14006bad8
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x14006bab0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14006b2c0
mov dword [rsi], eax
test eax, eax
jne 0x14006bb01
mov rax, qword [r15]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx ecx, byte [rax + 0x48]
call fcn.140074830
mov dword [rsi], eax
cmp dword [rsi], r12d
jne 0x14006bb6c
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14006b790
test eax, eax
je 0x14006bb44
mov ecx, dword [r14]
test eax, ecx
jne 0x14006bb65
or ecx, eax
xor r8d, r8d
mov dword [r14], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.140074dc0
cmp al, 2
jne 0x14006bb44
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x14006ba90
mov eax, 0x1a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007f430
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x37
jmp 0x14006bb49
xor r8d, r8d
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.140074dc0
cmp al, 2
jne 0x14006bbe3
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x14006bbe3
mov r11, qword [rdi + 8]
mov r10, r12
test rdx, rdx
je 0x14006bbca
lea rax, [rsp + 0x20]
sub r11, rax
nop dword [rax]
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x14006bba0
lea rcx, [rsp + 0x20]
call fcn.14006b790
cmp eax, 0x10
jne 0x14006bbe3
or dword [r14], eax
xor eax, eax
jmp 0x14006bb49
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x14006bb49
Function at 0x14007d0e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007d122
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007d127
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007d170
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400cbd30]
cmp byte [rcx + rax], 0
je 0x14007d170
dec r8
sub rdx, 1
jne 0x14007d156
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007fd9c
Capabilities:
Parse pe header

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

Function at 0x14008f8a4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14008f737
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008f737
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008f737
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008f737
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008f737
cmp dword [rcx + 0x84], 0xe
jbe 0x14008f737
cmp dword [rcx + 0xf8], 0
je 0x14008f737
mov ecx, ebx
call fcn.14008f7d8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14008f5c8
cmp dword [rbp + 0x20], 0
je 0x14008f784
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008f78c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14008f6d0
Function at 0x1400a3070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a3098
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a3098
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Check for foreground window switch
Execute command
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.CPS:
call fcn.1400011e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
lea rcx, [0x140003328]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Bind:
call fcn.1400011e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.V
call fcn.1400011e0
mov rcx, rax
lea rdx, [0x1400013c0]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.CPS:
call fcn.1400011e0
mov edx, dword [rsp + 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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__::operator___int____ptr64]
mov bl, 1
nop dword [rax]
mov eax, 0x7d0
cdq
idiv dword [rsp + 0x20]
mov esi, eax
test bl, bl
jne 0x14000111d
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001143
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
lea rcx, str.LWJGL
call qword [sym.imp.USER32.dll_FindWindowA]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rdi, rax
jne 0x140001143
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov edx, 0x201
mov rcx, rax
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv esi
mov ecx, edx
jmp 0x14000113d
cmp bl, 1
jne 0x1400010b0
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400010b0
xor bl, bl
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400010b0
mov ecx, 0x64
mov bl, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400010b0
Function at 0x140001cd8
Capabilities:
Parse pe header

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

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

Disassembly:
jmp 0x140014150
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014170
xor al, al
jmp 0x1400141f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014183
xor al, al
jmp 0x1400141f1
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 0x1400141ad
xor al, al
jmp 0x1400141f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141c1
xor al, al
jmp 0x1400141f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141d3
xor al, al
jmp 0x1400141f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141ef
xor al, al
jmp 0x1400141f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012040
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011393
movzx eax, al
test eax, eax
jne 0x140012060
mov ecx, 7
call fcn.140011311
nop
mov byte [rsp + 0x20], 0
call fcn.140011325
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012084
mov ecx, 7
call fcn.140011311
nop
jmp 0x1400120dc
cmp dword [0x14001d868], 0
jne 0x1400120d7
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119a
test eax, eax
je 0x1400120b8
mov eax, 0xff
jmp 0x1400121e1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001131b
mov dword [0x14001d868], 2
jmp 0x1400120dc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112fd
call fcn.140011299
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012139
mov rcx, qword [rsp + 0x30]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x140012139
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112cb
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001216d
mov rcx, qword [rsp + 0x38]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x14001216d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011352
nop
call fcn.140012290
mov dword [rsp + 0x28], eax
call fcn.140011276
movzx eax, al
test eax, eax
jne 0x14001218c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001219b
call fcn.14001135c
nop
xor edx, edx
mov cl, 1
call fcn.140011140
mov eax, dword [rsp + 0x28]
jmp 0x1400121e1
add rsp, 0x68
ret

Function at 0x140001000
Capabilities:
Encode data using xor
Terminate process

Disassembly:
sub rsp, 0x28
xor ecx, ecx
lea rdx, section..data
mov r8d, ecx
mov eax, ecx
lea r9, str.back
and eax, 3
inc ecx
mov al, byte [rax + r9]
xor byte [r8 + rdx], al
inc r8
cmp r8, 0x36
jl 0x140001010
xor r9d, r9d
mov r8, rdx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1abd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01abd1df
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 0x1abd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1abd06f
add dl, dl
jne 0x1abd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1abd0f6
xor eax, eax
add dl, dl
jne 0x1abd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1abd1ad
add dl, dl
jne 0x1abd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1abd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1abd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1abd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1abd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1abd07e
mov eax, 1
add dl, dl
jne 0x1abd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1abd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1abd0fb
sub eax, ebx
mov ebx, 1
jne 0x1abd14c
mov ecx, 1
add dl, dl
jne 0x1abd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1abd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1abd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1abd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1abd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1abd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1abd15d
cmp eax, 0x7d00
jae 0x1abd19b
cmp eax, 0x500
jb 0x1abd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1abd07e
cmp eax, 0x7f
ja 0x1abd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1abd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1abd1d2
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 0x1abd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20