joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000648c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r12b, dl
mov r14, rcx
xor ebx, ebx
call fcn.1400065fc
movsx rcx, ax
test ecx, ecx
je 0x1400065d7
lea rsi, [rcx + 1]
lea edi, [rcx + 1]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400064ff
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor r9d, r9d
xor ecx, ecx
call fcn.140007878
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3
add dword [0x14001d9b8], edi
mov r15, qword [rbp - 0x10]
mov byte [rax], 0
mov rax, qword [r14]
mov qword [r14 + 8], rax
cmp qword [r14 + 8], 0
je 0x140006537
lea r9, [rbp + 0x48]
mov rcx, r14
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x10]
call fcn.140006430
mov r15, qword [rbp - 0x10]
mov rdi, rax
jmp 0x140006539
xor edi, edi
test rdi, rdi
je 0x1400065d7
cmp byte [rbp + 0x40], 0
je 0x1400065b2
test r12b, r12b
je 0x1400065b2
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x20]
and qword [rbp - 0x20], 0
mov r9, r15
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rax, [rbp - 0x18]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140005838
cmp byte [rbp + 0x48], 0
lea rax, [0x140012e70]
mov qword [rsp + 0x20], rax
lea r9, [r15 + rdi]
je 0x1400065a9
lea r8, [0x140012e78]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
call fcn.14000118c
jmp 0x140006513
lea r8, str.__s__s
jmp 0x140006597
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.1400010c4
lea r8, [0x140012e70]
mov rdx, rsi
mov rcx, rbx
call fcn.1400010c4
jmp 0x140006513
lea r11, [rsp + 0x60]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x140006670
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
or rdi, 0xffffffffffffffff
mov rsi, rdx
mov rbx, rdi
mov r14, rcx
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140006692
inc rbx
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
jne 0x1400066d5
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor r9d, r9d
xor ecx, ecx
call fcn.140007878
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3
add dword [0x14001d9b8], ebx
mov qword [r14], rax
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400066de
lea rdx, [rdi + 1]
mov r8, rsi
mov rcx, rax
call fcn.140001048
mov rbx, qword [rsp + 0x30]
mov rax, r14
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140006718
Capabilities:
Terminate process

Disassembly:
test rdx, rdx
je 0x14000685c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, qword [rcx]
or rbx, 0xffffffffffffffff
mov rax, rbx
mov rdi, rdx
mov rsi, rcx
inc rax
cmp byte [r15 + rax], 0
jne 0x140006749
mov rcx, rbx
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140006756
lea r14, [rcx + 2]
add r14, rax
mov rcx, r14
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400067a0
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor r9d, r9d
xor ecx, ecx
call fcn.140007878
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3
add dword [0x14001d9b8], r14d
mov rax, rbx
inc rax
cmp byte [r15 + rax], 0
jne 0x1400067aa
mov rcx, rbx
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400067b7
lea rdx, [rcx + 2]
mov r8, r15
add rdx, rax
mov rcx, rbp
call fcn.140001048
mov rax, qword [rsi]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400067d8
mov rax, rbx
inc rax
cmp byte [rdi + rax], 0
jne 0x1400067e4
lea rdx, [rax + 2]
add rdx, rcx
lea r8, [0x140012e70]
mov rcx, rbp
call fcn.1400010c4
mov rcx, qword [rsi]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140006809
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140006812
lea rdx, [rax + 2]
mov r8, rdi
add rdx, rbx
mov rcx, rbp
call fcn.1400010c4
mov rcx, qword [rsi]
test rcx, rcx
je 0x140006841
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov qword [rsi], rbp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140006864
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
lea rdx, section..data
mov qword [rcx], rdx
mov rdi, rcx
cmp qword [section..data], rbp
movzx ebx, bp
je 0x1400068b3
movzx eax, bx
movzx ebx, word [rdx + 8]
cmp bx, ax
lea rdx, [rdx + 0x10]
cmovle bx, ax
cmp qword [rdx], rbp
jne 0x14000689c
mov r15d, 1
lea eax, [r15 + rbx]
movsx rax, ax
lea r12, [r15 - 2]
mov dword [rcx + 0x10], eax
mov rcx, rax
lea eax, [r15 + 7]
mul rcx
mov rsi, rax
cmovo rsi, r12
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov r9, rax
test rax, rax
jne 0x140006910
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor ecx, ecx
call fcn.140007878
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3
add dword [0x14001d9b8], esi
lea r14, [rdi + 8]
movsx rsi, bx
mov ebx, ebp
mov qword [r14], r9
lea ecx, [rsi + 1]
test esi, esi
js 0x140006976
cmp ecx, 2
jb 0x140006976
lea rdx, [rax + rsi*8]
cmp r9, r14
ja 0x14000693d
cmp rdx, r14
jae 0x140006976
and ecx, 0x80000001
jge 0x14000694e
sub ecx, r15d
or ecx, 0xfffffffe
add ecx, r15d
mov eax, esi
sub eax, ecx
add ebx, 2
cmp ebx, eax
jle 0x140006952
add eax, 2
mov rcx, r9
cdq
sub eax, edx
xor edx, edx
sar eax, 1
movsxd r8, eax
shl r8, 4
and r8, 0xfffffffffffffff8
call sub.msvcrt.dll_memset
movsxd rcx, ebx
jmp 0x140006985
mov rax, qword [r14]
mov qword [rax + rcx*8], rbp
add rcx, r15
cmp rcx, rsi
jle 0x14000697b
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov word [rdi + 0x14], r12w
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140007680
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140007857
mov ecx, 0x1c
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
jne 0x1400076ce
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor r9d, r9d
call fcn.140007878
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3
mov qword [rbx + 0x18], rcx
mov r8d, 1
mov al, byte [rbx + 8]
add dword [0x14001d9b8], 0x1c
and al, r8b
mov byte [rcx], al
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 1
and cl, r8b
mov byte [rax + 1], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 2
and cl, r8b
mov byte [rax + 2], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 3
and cl, r8b
mov byte [rax + 3], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 4
and cl, r8b
mov byte [rax + 4], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 5
and cl, r8b
mov byte [rax + 5], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 6
and cl, r8b
mov byte [rax + 6], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 7
and cl, r8b
mov byte [rax + 7], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 8
and cl, r8b
mov byte [rax + 8], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 9
and cl, r8b
mov byte [rax + 9], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0xa
and cl, r8b
mov byte [rax + 0xa], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0xb
and cl, r8b
mov byte [rax + 0xb], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0xc
and cl, r8b
mov byte [rax + 0xc], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0xd
and cl, r8b
mov byte [rax + 0xd], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0xe
and cl, r8b
mov byte [rax + 0xe], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0xf
and cl, r8b
mov byte [rax + 0xf], cl
mov cl, byte [rbx + 0xa]
mov rax, qword [rbx + 0x18]
and cl, r8b
mov byte [rax + 0x10], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0x11
and cl, r8b
mov byte [rax + 0x11], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0x12
and cl, r8b
mov byte [rax + 0x12], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0x13
and cl, r8b
mov byte [rax + 0x13], cl
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
shr ecx, 0x15
and cl, r8b
mov byte [rax + 0x14], cl
mov eax, r8d
mov edx, dword [rbx + 8]
mov rcx, qword [rbx + 0x18]
shr edx, 0x16
and dl, r8b
mov byte [rcx + 0x15], dl
mov edx, dword [rbx + 8]
mov rcx, qword [rbx + 0x18]
shr edx, 0x17
and dl, r8b
mov byte [rcx + 0x16], dl
mov rdx, qword [rbx + 0x18]
mov ecx, dword [rbx + 0x10]
mov dword [rdx + 0x18], ecx
add rsp, 0x20
pop rbx
ret
lea r8, str.pDump__NULL
mov edx, 0x7cf
lea rcx, str.com_rpcmidlcommoncmdutil.cxx
call fcn.140007b60
int3
Function at 0x140007c24
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov cl, byte [rcx]
cmp cl, 2
je 0x140007c81
cmp byte [rbx + 3], 0
jne 0x140007c81
cmp byte [rbx + 4], 0
jne 0x140007c81
mov edx, 1
cmp cl, dl
jne 0x140007c92
mov r9, qword [rbx + 0x10]
mov rcx, rsi
movsxd r8, r8d
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp byte [rbx + 5], 0
je 0x140007c81
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll_fflush]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test cl, cl
jne 0x140007c9c
mov rax, qword [rbx + 0x18]
jmp 0x140007c9e
xor eax, eax
test rax, rax
je 0x140007cf6
test cl, cl
jne 0x140007cad
mov rax, qword [rbx + 0x18]
jmp 0x140007caf
xor eax, eax
movsxd rdi, r8d
add rax, rdi
cmp rax, qword [rbx + 0x28]
jb 0x140007cd4
test cl, cl
jne 0x140007cc4
mov eax, dword [rbx + 0x14]
jmp 0x140007cc6
xor eax, eax
lea edx, [rax + r8]
mov rcx, rbx
call fcn.140007e7c
mov cl, byte [rbx]
test cl, cl
jne 0x140007cde
mov rcx, qword [rbx + 0x18]
jmp 0x140007ce0
xor ecx, ecx
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
cmp byte [rbx], 0
jne 0x140007c81
add qword [rbx + 0x18], rdi
jmp 0x140007c81
lea r8, str.GetCurrentPtr_____0
mov edx, 0xdd
lea rcx, str.com_rpcmidlcommon_stream.cxx
call fcn.140007b60
int3

Function at 0x140007d98
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp byte [rcx], dil
jne 0x140007e5a
movsxd r14, dword [rcx + 0x10]
mov ebp, dword [rcx + 0x14]
mov rsi, qword [rcx + 0x20]
add ebp, r14d
mov dword [rcx + 0x10], ebp
movsxd r15, ebp
mov rcx, r15
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
jne 0x140007e0a
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor r9d, r9d
call fcn.140007878
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3
add dword [0x14001d9b8], ebp
add rax, r15
mov r8, r14
mov qword [rbx + 0x28], rax
mov rdx, rsi
mov qword [rbx + 0x20], rcx
call sub.msvcrt.dll_memcpy
mov cl, byte [rbx]
test cl, cl
jne 0x140007e37
mov rdx, qword [rbx + 0x20]
add rdx, r14
mov qword [rbx + 0x18], rdx
test rsi, rsi
je 0x140007e4d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov cl, byte [rbx]
test cl, cl
jne 0x140007e55
mov rdi, qword [rbx + 0x18]
mov rax, rdi
jmp 0x140007e5c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140007e7c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp byte [rcx], dil
jne 0x140007f45
movsxd r14, dword [rcx + 0x10]
mov rsi, qword [rcx + 0x20]
movsx ebp, dx
add ebp, dword [rcx + 0x14]
add ebp, r14d
mov dword [rcx + 0x10], ebp
movsxd r15, ebp
mov rcx, r15
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
jne 0x140007ef1
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor r9d, r9d
call fcn.140007878
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3
add dword [0x14001d9b8], ebp
add rax, r15
mov r8, r14
mov qword [rbx + 0x28], rax
mov rdx, rsi
mov qword [rbx + 0x20], rcx
call sub.msvcrt.dll_memcpy
mov r8b, byte [rbx]
test r8b, r8b
jne 0x140007f20
mov rdx, qword [rbx + 0x20]
add rdx, r14
mov qword [rbx + 0x18], rdx
test rsi, rsi
je 0x140007f37
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov r8b, byte [rbx]
test r8b, r8b
jne 0x140007f40
mov rdi, qword [rbx + 0x18]
mov rax, rdi
jmp 0x140007f47
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400080a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14001d9d0], rbx
je 0x1400080ec
cmp rax, rbx
jne 0x1400080df
mov ebx, 1
mov esi, ebx
jmp 0x1400080f1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400080c4
mov ebx, 1
mov eax, dword [0x14001d9d8]
cmp eax, ebx
jne 0x140008107
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000816c
mov eax, dword [0x14001d9d8]
test eax, eax
jne 0x140008166
mov dword [0x14001d9d8], ebx
lea r15, [0x1400106b0]
lea rdi, [0x140010698]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140008158
test eax, eax
jne 0x14000815c
cmp qword [rdi], 0
je 0x14000814d
mov rax, qword [rdi]
mov rcx, qword [0x140010670]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000812e
test eax, eax
je 0x14000816c
mov eax, 0xff
jmp 0x140008248
mov dword [0x14001d404], ebx
mov eax, dword [0x14001d9d8]
cmp eax, ebx
jne 0x140008193
lea rdx, [0x140010690]
lea rcx, [0x140010678]
call sub.msvcrt.dll__initterm
mov dword [0x14001d9d8], 2
test esi, esi
jne 0x1400081a0
xor eax, eax
xchg qword [0x14001d9d0], rax
cmp qword [0x14001d9e0], 0
je 0x1400081d4
lea rcx, [0x14001d9e0]
call fcn.140008ac0
test eax, eax
je 0x1400081d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001d9e0]
mov r9, qword [0x140010670]
call r9
mov r8, qword [0x14001d418]
mov rdx, qword [0x14001d410]
mov ecx, dword [0x14001d408]
call fcn.140004a48
mov dword [0x14001d400], eax
cmp dword [0x14001d420], 0
jne 0x140008204
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001d404], 0
jne 0x140008219
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001d400]
jmp 0x140008248
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400ad000
add rsp, 0x28
jmp 0x1400080a0

Function at 0x140008590
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000859c
push rbx
sub rsp, 0x540
mov rax, qword [0x14001d0a0]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140008619
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140008639
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400082a0
add rsp, 0x540
pop rbx
ret
Function at 0x14000859c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000859c
push rbx
sub rsp, 0x540
mov rax, qword [0x14001d0a0]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140008619
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140008639
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400082a0
add rsp, 0x540
pop rbx
ret

Function at 0x1400089ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400089f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400089f0
cmp dword [rcx + 0x3c], edx
jl 0x1400089f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400089f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400089f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000af28
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
test rcx, rcx
jne 0x14000af66
call qword [sym.imp.msvcrt.dll__errno]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
call fcn.140008590
jmp 0x14000b062
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x14000b062
test al, 0x40
jne 0x14000b062
test al, 2
je 0x14000af88
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x14000b062
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
je 0x14000af41
mov rbx, qword [rcx + 0x10]
mov qword [rcx], rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov r8d, dword [rsi + 0x24]
mov rdx, rbx
mov ecx, eax
call qword [sym.imp.msvcrt.dll__read]
mov dword [rsi + 8], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14000b052
test byte [rsi + 0x18], 0x82
jne 0x14000b024
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xffffffff
je 0x14000b00f
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xfffffffe
je 0x14000b00f
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
mov rbx, qword [sym.imp.msvcrt.dll___pioinfo]
mov rcx, rsi
movsxd rdi, eax
sar rdi, 5
call qword [sym.imp.msvcrt.dll__fileno]
and eax, 0x1f
imul rdx, rax, 0x38
add rdx, qword [rbx + rdi*8]
jmp 0x14000b016
mov rdx, qword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [rdx + 8]
and al, 0x82
cmp al, 0x82
jne 0x14000b024
bts dword [rsi + 0x18], 0xd
cmp dword [rsi + 0x24], 0x200
jne 0x14000b041
mov eax, dword [rsi + 0x18]
and eax, 0x408
cmp eax, 8
jne 0x14000b041
mov dword [rsi + 0x24], 0x1000
mov rcx, qword [rsi]
dec dword [rsi + 8]
movzx eax, byte [rcx]
inc rcx
mov qword [rsi], rcx
jmp 0x14000b065
neg eax
mov dword [rsi + 8], edi
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rsi + 0x18], eax
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140011249
Capabilities:
Terminate process

Disassembly:
jmp 0x1400138a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112e4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014bf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014c10
xor al, al
jmp 0x140014c91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014c23
xor al, al
jmp 0x140014c91
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 0x140014c4d
xor al, al
jmp 0x140014c91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c61
xor al, al
jmp 0x140014c91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c73
xor al, al
jmp 0x140014c91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c8f
xor al, al
jmp 0x140014c91
mov al, 1
add rsp, 0x38
ret
Function at 0x1400048d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov dword [rbp - 4], ecx
mov ecx, dword [rbp - 4]
mov edx, 0xffffffff
call fcn.140014bc0
mov ecx, eax
mov edx, 0xffffffff
xor edx, 0xffffffff
mov eax, 0xffffffff
xor eax, 0x9677a5aa
or ecx, edx
or eax, 0x9677a5aa
mov dword [rbp - 8], eax
mov edx, 0xffffffff
call fcn.140014bc0
mov edx, dword [rbp - 8]
mov ecx, eax
call fcn.140019c10
mov dword [0x140025290], eax
mov ecx, 0x5776defb
call fcn.14001bea0
mov dword [0x1400264e8], eax
cmp dword [0x1400264e8], 0x270
jge 0x1400049ea
mov eax, dword [0x1400264e8]
mov dword [rbp - 0xc], eax
mov ecx, 0x81ac5a1d
call fcn.14001bea0
mov ecx, dword [rbp - 0xc]
mov edx, eax
call fcn.140011d90
mov ecx, eax
mov edx, 1
call fcn.140012ff0
sub eax, 0xd6da84e7
movsxd rcx, eax
lea rax, [0x140025290]
mov eax, dword [rax + rcx*4]
mov ecx, dword [0x1400264e8]
sub ecx, 1
movsxd rdx, ecx
lea rcx, [0x140025290]
mov ecx, dword [rcx + rdx*4]
shr ecx, 0x1e
xor eax, ecx
imul edx, eax, 0x6c078965
add edx, dword [0x1400264e8]
movsxd rcx, dword [0x1400264e8]
lea rax, [0x140025290]
mov dword [rax + rcx*4], edx
movsxd rcx, dword [0x1400264e8]
lea rax, [0x140025290]
mov edx, dword [rax + rcx*4]
and edx, 0xffffffff
lea rax, [0x140025290]
mov dword [rax + rcx*4], edx
mov eax, dword [0x1400264e8]
add eax, 1
mov dword [0x1400264e8], eax
jmp 0x140004935
add rsp, 0x30
pop rbp
ret
Function at 0x1004010f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [str.db_tuner]
call sub.msys_2.0.dll___getreent
lea r9, str.__c_cachesize___d_file___h_home____s_database____v_verbose_
mov r8, rbx
lea rdx, str.usage:__s__s_n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]