joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005dbcc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18005dc30
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18005dc1e
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005dc17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18005dbeb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180099130]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18005dc40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x18009a690]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x18005dc79
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005dcac
mov eax, 0xa
jmp 0x18005dcf9
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x18005dcc8
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18005e074
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18005e08b
cmp r8b, 0x90
je 0x18005e08b
cmp r8b, 0xcc
jne 0x18005e0ad
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18005e0a9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18005e0ad
add edx, r10d
cmp edx, r9d
jb 0x18005e099
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18005e414
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18005e45e
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x18009a680]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x18005e49c
cmp rbx, r14
jb 0x18005e497
cmp rbx, r12
jae 0x18005e497
cmp qword [rbx + 8], rsi
jne 0x18005e5f3
mov rbx, qword [rbx]
jmp 0x18005e47e
mov r15, rdi
cmp rdi, r14
jb 0x18005e520
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x18005e517
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005e517
cmp dword [rbp - 0x10], 0x10000
je 0x18005e4e7
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x18005e517
jmp 0x18005e4b3
test r15, r15
je 0x18005e517
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18005e5b8
cmp r15, r14
jae 0x18005e4a4
test rbx, rbx
jne 0x18005e5b8
cmp rdi, r12
ja 0x18005e5f3
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18005e5f3
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005e5f3
cmp dword [rbp - 0x10], 0x10000
je 0x18005e58e
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x18005e547
test rdi, rdi
je 0x18005e5f3
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18005e51a
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18005e5c4
mov rax, qword [0x18009a680]
mov qword [rbx], rax
mov qword [0x18009a680], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18005ed30
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 0x18005edb4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180063860]
cmp byte [rcx + rax], 0
je 0x18005edb4
dec r8
sub rdx, 1
jne 0x18005ed9a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x65b61058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x65b611df
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 0x65b61089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x65b6106f
add dl, dl
jne 0x65b61096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x65b610f6
xor eax, eax
add dl, dl
jne 0x65b610a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x65b611ad
add dl, dl
jne 0x65b610b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b610c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b610d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b610dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x65b610ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x65b6107e
mov eax, 1
add dl, dl
jne 0x65b61106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b61113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x65b610fb
sub eax, ebx
mov ebx, 1
jne 0x65b6114c
mov ecx, 1
add dl, dl
jne 0x65b6112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x65b6113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x65b61123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x65b6107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x65b61168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x65b61175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x65b6115d
cmp eax, 0x7d00
jae 0x65b6119b
cmp eax, 0x500
jb 0x65b61196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x65b6107e
cmp eax, 0x7f
ja 0x65b6119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x65b6107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x65b611d2
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 0x65b6107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140025ad5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 1
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
test eax, eax
jne 0x14000dcbc
jmp 0x1400070c1
mov rax, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp]
mov qword [rbp + 0x48], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x48]
mov r8d, 0x30
call rax
jmp 0x140026763
xor eax, eax
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
xor eax, eax
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
xor eax, eax
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
mov eax, 1
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x70], rcx
mov dword [rbp + 0x78], edx
mov eax, dword [rbp + 0x78]
test eax, eax
jne 0x1400067bf
jmp 0x140008a80
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
test rax, rax
jne 0x140032955
jmp 0x14000c9c4
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdx, qword [rbp + 0x70]
mov ecx, dword [rbp + 0x78]
mov ecx, ecx
mov ebx, dword [rbp + 0x24]
or ebx, 0x40
lea rsi, [rbp + 0x24]
mov qword [rbp + 0x30], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
mov r9, rsi
call rax
jmp 0x1400047cc
mov eax, dword [rbp + 0x24]
and eax, 0xffffff80
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
test eax, 0x80
je 0x140026935
jmp 0x14000198c
Function at 0x140180ede
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov rax, qword [rbp + 8]
mov edx, dword [rbp + 0x18]
mov dword [rax], edx
mov rax, qword [rbp + 8]
mov edx, dword [rbp + 0x1c]
mov dword [rax + 4], edx
lea rsp, [rbp + 0x30]
pop rbp
ret
mov eax, dword [rbp + 0x1c]
shl eax, 4
mov edx, dword [rbp + 0x1c]
shr edx, 5
xor eax, edx
add eax, dword [rbp + 0x1c]
mov edx, dword [rbp + 0x20]
and edx, 3
mov rcx, qword [rbp]
mov edx, dword [rcx + rdx*4]
add edx, dword [rbp + 0x20]
xor eax, edx
add eax, dword [rbp + 0x18]
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x14]
add eax, dword [rbp + 0x20]
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x18]
shl eax, 4
mov edx, dword [rbp + 0x18]
shr edx, 5
xor eax, edx
add eax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x20]
shr edx, 0xb
and edx, 3
mov rcx, qword [rbp]
mov edx, dword [rcx + rdx*4]
add edx, dword [rbp + 0x20]
xor eax, edx
add eax, dword [rbp + 0x1c]
mov dword [rbp + 0x1c], eax
add dword [rbp + 0x24], 1
mov eax, dword [rbp + 0x24]
mov edx, dword [rbp + 0x10]
cmp eax, edx
jb 0x140128f6f
jmp 0x1400018fb
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x20]
mov dword [rbp + 0x10], 0x40
mov dword [rbp + 0x14], 0x9e3779b9
lea rax, [0x140127774]
mov qword [rbp], rax
lea rax, [0x1401820bb]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax]
mov dword [rbp + 0x18], eax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 4]
mov dword [rbp + 0x1c], eax
xor eax, eax
mov dword [rbp + 0x20], eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov edx, dword [rbp + 0x10]
cmp eax, edx
jae 0x1400018fb
jmp 0x140128f6f

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400334a0]
mov dword [rax], 1
mov rax, qword [0x1400334b0]
mov dword [rax], 1
mov rax, qword [0x1400334c0]
mov dword [rax], 1
mov rax, qword [0x140033460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400014fc
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001db0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call sub.ucrtbase.dll_strlen
mov rcx, rsi
mov r9, rbx
mov edx, 1
mov r8, rax
call sub.ucrtbase.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140017e00

Function at 0x140001df0
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rdx, str.out_of_memory_n
mov rcx, rax
call fcn.140001db0
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
nop dword [rax]

Function at 0x140001e20
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.ucrtbase.dll_fwrite
mov rcx, rbx
call fcn.140017e00
mov ecx, 1
call sub.ucrtbase.dll_exit
nop

Function at 0x140001e60
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.ucrtbase.dll_fwrite
mov rcx, rbx
call fcn.140017e00
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
Function at 0x140002a90
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x410
mov r12, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rsi, [0x140019100]
mov rbx, rcx
mov ecx, 2
call r12
lea rdx, str.could_not_load:
mov rcx, rax
call fcn.140001db0
cmp qword [rbx], 0
je 0x140002acf
lea rsi, [rbx + 0x10]
mov ecx, 2
call r12
mov rdx, rsi
mov rcx, rax
call fcn.140001db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
je 0x140002b78
lea rbp, [rsp + 0x20]
xor eax, eax
mov ecx, 0x7d
movabs rdx, 0x203a64616f6c2074
mov rdi, rbp
rep stosq qword [rdi], rax
mov qword [rsp + 0x28], rdx
movabs rax, 0x6f6e20646c756f63
mov qword [rsp + 0x20], rax
mov rax, qword [rbx]
test rax, rax
je 0x140002b46
mov r8d, 0x3d7
lea rcx, [rsp + 0x30]
lea rdx, [rbx + 0x10]
cmp rax, r8
cmovle r8, rax
call sub.ucrtbase.dll_memcpy
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 2
call r12
lea rdx, [0x140019149]
mov rcx, rax
call fcn.140001db0
mov ecx, 1
call sub.ucrtbase.dll_exit
mov ecx, 2
lea rsi, str._n_bad_format__library_may_be_wrong_architecture_
lea rbp, [rsp + 0x20]
call r12
mov rdx, rsi
mov rdi, rbp
mov rcx, rax
call fcn.140001db0
xor eax, eax
mov ecx, 0x7d
movabs rdx, 0x203a64616f6c2074
rep stosq qword [rdi], rax
mov edi, 0x3d7
mov qword [rsp + 0x28], rdx
movabs rax, 0x6f6e20646c756f63
mov qword [rsp + 0x20], rax
mov rax, qword [rbx]
cmp rax, rdi
cmovle rdi, rax
test rax, rax
je 0x140002c0f
lea rcx, [rsp + 0x30]
lea rdx, [rbx + 0x10]
mov r8, rdi
call sub.ucrtbase.dll_memcpy
mov eax, 0x3d7
lea r8, [rdi + 0x10]
sub rax, rdi
cmp rax, 0x2f
jle 0x140002b46
add r8, rbp
mov ecx, 0xc
mov rdi, r8
rep movsd dword [rdi], dword [rsi]
jmp 0x140002b46
mov r8d, 0x10
jmp 0x140002bfd
Function at 0x140002c20
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x120
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rcx
mov rbx, rdx
call rbp
test rax, rax
je 0x140002c57
add rsp, 0x120
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdi, [rsp + 0x28]
mov ecx, 0x1e
mov qword [rsp + 0x21], 0
lea r12, [rsp + 0x20]
mov qword [rsp + 0x112], 0
rep stosq qword [rdi], rax
mov byte [rsp + 0x20], 0x5f
mov edi, 1
jmp 0x140002ca1
mov byte [r12 + rdi], al
add rdi, 1
cmp rdi, 0xf5
je 0x140002caa
movzx eax, byte [rbx + rdi - 1]
test al, al
jne 0x140002c90
mov byte [rsp + rdi + 0x20], 0x40
mov r14d, 0x63
movabs r13, 0xcccccccccccccccd
nop
lea rcx, [r14 - 0x63]
cmp r14, 0xc6
ja 0x140002d84
lea rdx, [r14 - 0x5a]
mov rax, rdi
xor edi, edi
cmp rdx, 0x12
seta dil
lea rdi, [rdi + rax + 1]
mov byte [rsp + rdi + 0x21], 0
nop dword [rax]
mov rax, rcx
mul r13
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
sub rcx, rax
add ecx, 0x30
mov byte [r12 + rdi], cl
sub rdi, 1
mov rcx, rdx
test rdx, rdx
jne 0x140002cf0
mov rdx, r12
mov rcx, rsi
call rbp
test rax, rax
jne 0x140002c45
add r14, 4
cmp r14, 0x12f
jne 0x140002cc0
mov rsi, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, 2
call rsi
lea rdx, str.could_not_import:
mov rcx, rax
call fcn.140001db0
mov ecx, 2
call rsi
mov rdx, rbx
mov rcx, rax
call fcn.140001db0
mov ecx, 2
call rsi
lea rdx, [0x140019149]
mov rcx, rax
call fcn.140001db0
mov ecx, 1
call sub.ucrtbase.dll_exit
add rdi, 3
jmp 0x140002ce7
Function at 0x140002ec0
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rax, [rdx + 0xf]
mov rbx, rcx
mov rdi, rax
and rdi, 0xfffffffffffffff0
cmp rdi, 0xfc0
jle 0x140002f50
lea rsi, [rdx + 0x20]
cmp rsi, 0x3f000000
jg 0x140002fc0
mov rdx, rsi
call fcn.140002700
cmp qword [rbx + 0x28a8], 0
mov rdi, rax
lea rbp, [rdi + 0x20]
je 0x140003071
lea rdx, [rbx + 0x28a8]
lea r9, [rbp + rsi]
mov r8, rbp
mov rcx, rbx
call fcn.140002320
mov rdi, qword [rdi + 8]
add rdi, qword [rbx + 0x2098]
mov rax, rbp
mov qword [rbx + 0x2098], rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
sar rax, 4
lea rsi, [rax + 2]
mov rdx, qword [rcx + rsi*8]
test rdx, rdx
je 0x1400030b0
mov rbp, qword [rdx + 0x20]
test rbp, rbp
je 0x140003158
mov rax, qword [rbp]
mov qword [rdx + 0x20], rax
mov rax, qword [rdx + 0x28]
sub rax, rdi
mov qword [rdx + 0x28], rax
cmp rax, rdi
jge 0x140002f2e
mov rax, qword [rbx + rsi*8]
mov rcx, qword [rdx + 0x10]
cmp rdx, rax
je 0x140003101
mov rax, qword [rdx + 0x18]
mov qword [rax + 0x10], rcx
test rcx, rcx
je 0x140002fb0
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rax, rdx
jmp 0x140003116
mov r9d, 4
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x14000316d
mov rbp, rax
pxor xmm0, xmm0
mov r12, rax
add qword [rbx + 0x2080], rsi
sar rbp, 0x15
mov qword [rax + 8], rsi
sar r12, 0xc
lea r14, [0x140038220]
movzx r13d, bpl
mov qword [rax], 1
movaps xmmword [rax + 0x10], xmm0
mov rax, qword [r14 + r13*8 + 0x2110]
test rax, rax
jne 0x14000303c
jmp 0x140003128
mov rax, qword [rax]
test rax, rax
je 0x140003128
cmp rbp, qword [rax + 8]
jne 0x140003030
mov rcx, r12
mov edx, 1
lea rbp, [rdi + 0x20]
and ecx, 0x1ff
mov r8, rcx
shl rdx, cl
sar r8, 6
or qword [rax + r8*8 + 0x10], rdx
cmp qword [rbx + 0x28a8], 0
jne 0x140002f13
cmp qword [rbx + 0x28d8], 0
lea rax, [rbx + 0x28d8]
je 0x140003090
mov qword [rbx + 0x28a8], rax
jmp 0x140002f13
movq xmm0, rax
mov qword [rbx + 0x28a8], rax
punpcklqdq xmm0, xmm0
movaps xmmword [rbx + 0x28d8], xmm0
jmp 0x140002f13
mov edx, 0x1000
call fcn.140002700
mov edx, 0xfc0
pxor xmm0, xmm0
sub rdx, rdi
movaps xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], 0
mov qword [rax + 8], rdi
mov qword [rax + 0x30], rdi
mov qword [rax + 0x28], rdx
mov rdx, qword [rbx + rsi*8]
mov qword [rax + 0x10], rdx
test rdx, rdx
je 0x1400030ef
mov qword [rdx + 0x18], rax
mov qword [rbx + rsi*8], rax
lea rbp, [rax + 0x40]
cmp rdi, qword [rax + 0x28]
jle 0x140002f2e
mov rdx, qword [rax + 0x10]
mov qword [rbx + rsi*8], rdx
test rdx, rdx
je 0x140003116
mov qword [rdx + 0x18], 0
pxor xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
jmp 0x140002f2e
mov edx, 0x50
mov rcx, rbx
call fcn.140001ea0
mov rdx, qword [r14 + r13*8 + 0x2110]
mov qword [rax], rdx
mov qword [r14 + r13*8 + 0x2110], rax
mov qword [rax + 8], rbp
jmp 0x140003042
mov rax, qword [rdx + 0x30]
lea rbp, [rdx + rax + 0x40]
add rax, rdi
mov qword [rdx + 0x30], rax
jmp 0x140002f7a
call fcn.140001df0
nop
nop word cs:[rax + rax]
nop
Function at 0x1400086b0
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
cmp qword [rcx + 0x10], 0
mov r13, qword [rsp + 0x90]
mov rbx, rcx
mov rbp, r8
mov rdi, r9
jne 0x1400086dd
mov qword [rcx + 0x10], rdx
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x140008830
movabs rax, 0x3fffffffffffffff
mov rcx, qword [rsi + 8]
and rax, rcx
cmp rax, qword [rsi]
jle 0x140008770
mov r12, rsi
add qword [r12 - 0x10], 8
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14000872d
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x14000872d
call fcn.14000d5c0
mov qword [rbx + 0x20], rsi
mov rax, qword [rsi]
mov rcx, rbx
lea rdx, [rax + 1]
lea rax, [rax + rax*2]
mov qword [rsi], rdx
mov rdx, qword [rbx + 0x20]
lea rax, [rdx + rax*8]
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], rdi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140009860
mov edx, 4
test rax, rax
je 0x140008793
movabs r8, 0x3fffffffffff0000
lea rdx, [rax + rax]
test rcx, r8
je 0x140008793
add rdx, rax
sar rdx, 1
mov rcx, qword [0x14004a238]
movq xmm6, rdx
mov eax, 0x10
punpcklqdq xmm6, xmm6
mov r8, qword [rcx + 8]
test r8, r8
jne 0x140008820
imul rdx, qword [rcx]
jo 0x14000887c
add rdx, rax
jo 0x14000887c
lea rcx, [0x14004a220]
call fcn.140007fb0
mov edx, 0x10
movups xmmword [rax], xmm6
mov r8, qword [rsi]
mov r12, rax
mov qword [rax], r8
mov rcx, qword [0x14004a238]
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400087fb
lea rdx, [rax + 0xf]
neg rax
and rdx, rax
imul r8, qword [rcx]
lea rax, [r12 + rdx]
add rdx, rsi
mov rcx, rax
call sub.ucrtbase.dll_memcpy
mov qword [rsi], 0
mov rsi, r12
jmp 0x140008703
lea rax, [r8 + 0xf]
neg r8
and rax, r8
jmp 0x1400087b1
mov rax, qword [0x14004a238]
mov edx, 0x10
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140008870
add rdx, qword [rax]
jo 0x14000887c
lea rcx, [0x14004a220]
call fcn.140007fb0
movdqa xmm0, xmmword [0x14001a650]
mov rsi, rax
movups xmmword [rax], xmm0
jmp 0x140008700
lea rdx, [rcx + 0xf]
neg rcx
and rdx, rcx
jmp 0x140008845
call fcn.140008620
nop
nop word cs:[rax + rax]
nop dword [rax]