joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f6e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x14008f8ea
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14008f7a4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14008f760
mov ecx, dword [r10]
jmp 0x14008f887
cmp ecx, 0x4e0
jb 0x14008f887
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14008f7c0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14008f810
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x14008f740
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x14008f730
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x14008f90a
cmp r8d, r14d
jne 0x14008f710
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x1400ad760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov ecx, 0x30
call fcn.14008e18c
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x1400ad7bc
mov qword [rax + 0x20], r14
lea rax, [0x1400ac570]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x1400ad7bf
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rax, qword [rsp + 0xd0]
mov dword [rbx + 0x10], eax
shr rax, 0x20
mov dword [rbx + 0x14], eax
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_StartThreadpoolIo]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test r12d, r12d
jne 0x1400ad81b
cmp eax, 0x3e5
jne 0x1400ad81b
mov rbx, rdi
jmp 0x1400ad8ea
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x1400ad860
mov dword [rsp + 0xd0], edi
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400ad873
mov esi, dword [rsp + 0xd0]
jmp 0x1400ad8e7
cmp r15d, 0x26
jne 0x1400ad873
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
jmp 0x1400ad8ea
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400adae0
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x1401027f0]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, [0x1400d2198]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
mov rax, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rdi, rsi
test rbx, rbx
je 0x1400ad8fc
mov edx, 0x30
mov rcx, rbx
call fcn.14008e1c8
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ad920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov ecx, 0x30
call fcn.14008e18c
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x1400ad97c
mov qword [rax + 0x20], r14
lea rax, [0x1400ac570]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x1400ad97f
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
jne 0x1400ad99e
mov eax, 0xffffffff
mov ecx, eax
jmp 0x1400ad9a5
mov rax, rcx
shr rax, 0x20
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], eax
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_StartThreadpoolIo]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test r12d, r12d
jne 0x1400ad9ed
cmp eax, 0x3e5
jne 0x1400ad9ed
mov rbx, rdi
jmp 0x1400adaa6
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x1400ada2f
mov dword [rsp + 0xd0], edi
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400ada2f
mov esi, dword [rsp + 0xd0]
jmp 0x1400adaa3
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400adae0
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x1401027f0]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, [0x1400d2198]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
mov rax, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rdi, rsi
test rbx, rbx
je 0x1400adab8
mov edx, 0x30
mov rcx, rbx
call fcn.14008e1c8
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ae750
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rcx
add rcx, 0x48
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400ae7ce
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x1400ae7a8
lea edx, [rbp + 1]
mov rcx, rax
call fcn.14008e1c8
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x28], rbp
mov rcx, qword [rdi + 0x70]
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ae7ce
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x1400ae7d5
mov rsi, 0xffffffffffffffff
lea rcx, [rdi + 0x48]
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b0f70
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea ecx, [rbp + 0x20]
call fcn.14008e18c
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1400b0fd4
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
mov qword [rax], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
shr r8, 1
mov rcx, rax
call fcn.14008fe60
jmp 0x1400b0fd7
mov rbx, rbp
mov qword [r14], rbx
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x1400b1049
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400b0ffe
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x1400b1068
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400b101a
mov rdx, qword [rbx]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbx + 0x10]
sub rcx, rax
lea rdi, [rdx + rax*2]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsi + 0x18]
cmp qword [rbx + 0x10], rax
jb 0x1400b1062
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x1400b1045
mov rbx, qword [rbx]
mov word [rbx + rax*2], bp
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.1400058d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.1400adae0
lea rdx, [0x1401027f0]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400c3a10
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rax - 0x18], 1
mov dword [rax + 0x18], esi
mov qword [rax - 0x20], rsi
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x14]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edx, dword [rsp + 0x60]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1400c3a8e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400c3a88
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x1400c3a9c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.14008fb70
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400c3aa9
mov r9, qword [rbx]
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x14]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x1400c3bdf
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x1400c3ae7
mov rax, qword [rbx]
mov rcx, rax
jmp 0x1400c3aed
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x1400c3b6f
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x1400c3b12
cmp word [rdx], 0
jne 0x1400c3b40
add rdx, 2
cmp rdx, rax
jne 0x1400c3b03
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x1400c3b22
mov rax, qword [rbx]
mov word [rax], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
je 0x1400c3b40
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.14008fe60
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
jne 0x1400c3bdf
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x1400c3b80
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x1400c3ba7
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x1400c3bb0
sub r9, rbx
add rdx, rbx
mov rcx, rbx
sar r9, 1
sar rdx, 1
sub rax, r9
cmp rax, rdx
cmovb rdx, rax
lea rcx, [rcx + r9*2]
sub r8, rdx
mov qword [rbx + 0x10], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memmove
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c3c00
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401347c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov rdi, qword [r8]
mov rbx, qword [rdi + 0x58]
mov r8, qword [rbx + 8]
lea rdx, [rdi + 0x58]
lea rcx, [rdi + 0x58]
call fcn.14005a690
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor r15d, r15d
mov qword [rdi + 0x60], r15
mov dword [rbp - 0x40], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x13]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov edx, dword [rbp - 0x40]
test rdx, rdx
jne 0x1400c3ca1
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x1400c3cad
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.14008fb70
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rbx, qword [rbp - 0x30]
mov dword [rax], r15d
mov r8d, 0xa
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov r15d, eax
cmp rbx, qword [rbp - 0x38]
je 0x1400c3e0a
cmp dword [rdi], 0x22
je 0x1400c3e17
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400c3d5f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c3d5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c3d5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008e1c8
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1400c3a10
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x1400c3d9d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400c3d93
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.14008fe60
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400c3de0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c3ddb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c3ddb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008e1c8
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.1400a40e0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400c7570
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x1400d8480]
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, [0x1400d8498]
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x1400c7360
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, [0x1400e09e0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400c739a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400c739f
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 0x1400c73e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400e08e0]
cmp byte [rcx + rax], 0
je 0x1400c73e8
dec r8
sub rdx, 1
jne 0x1400c73ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001060
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rsi, rcx
xorps xmm0, xmm0
xor eax, eax
xor r12d, r12d
mov ecx, 0xfffffff5
mov word [rsp + 0x48], r12w
movups xmmword [rsp + 0x4a], xmm0
mov dword [rsp + 0x5a], eax
mov r14, r8
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea rdx, [0x140002100]
mov rcx, rsi
call fcn.140001000
lea r8, [0x140002918]
mov rcx, rsi
lea rdx, str.e_36m_s_n
call fcn.140001000
mov edi, r12d
mov dword [rsp + 0x98], r12d
mov r15d, 0x3e
nop dword [rax]
add word [rsp + 0x4e], 2
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add word [rsp + 0x4e], 0xfffe
mov rbx, r12
movsxd rbp, edi
nop word [rax + rax]
mov r9, qword [r14 + rbx*8]
lea rdx, str.e_90m___c_e_33m_s_ne_37m
mov r8d, 0x2d
cmp rbx, rbp
mov rcx, rsi
cmove r8d, r15d
call fcn.140001000
inc rbx
cmp rbx, 3
jb 0x140001120
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
mov dword [rsp + 0xa8], 1
nop
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0xa8]
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
xor eax, eax
mov r8d, 1
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
cmp word [rsp + 0x30], 1
jne 0x140001160
cmp dword [rsp + 0x34], r12d
jne 0x140001160
movzx eax, word [rsp + 0x3a]
cmp eax, 0xd
je 0x1400011da
cmp eax, 0x26
je 0x1400011c5
cmp eax, 0x28
jne 0x1400010f0
mov eax, edi
lea ecx, [rdi + 1]
cmp eax, 2
mov edi, r12d
cmovl edi, ecx
jmp 0x1400010f0
test edi, edi
jle 0x1400011d0
dec edi
jmp 0x1400010f0
mov edi, 2
jmp 0x1400010f0
movsx eax, word [rsp + 0x48]
mov ecx, 0xfffffff5
lea ebx, [rax + rax*2]
add ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r9d, dword [rsp + 0x4c]
mov r8d, ebx
mov rcx, rax
mov dl, 0x20
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140002510
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
movzx esi, word [rdx + 6]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x14000256d
lea rdx, [rsp + 0x30]
call fcn.140002720
movzx ecx, word [rdi + 0x14]
add rcx, 0x18
add rcx, rdi
mov qword [rsp + 0x30], rcx
cmp bp, si
jae 0x1400025c9
mov rax, rcx
mov rdi, rcx
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400025a4
mov qword [rdx], rcx
add qword [rbx + 8], 8
jmp 0x1400025b4
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140002820
mov rax, rdi
lea rcx, [rax + 0x28]
mov qword [rsp + 0x30], rcx
mov rax, rcx
mov rdi, rcx
sub rsi, 1
jne 0x140002590
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140004c40
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003f30
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], rbx
mov ecx, 8
call fcn.140004c68
mov rcx, rax
mov qword [rdi], rax
add rax, 8
mov qword [rdi + 0x10], rax
lea rax, [rcx + 8]
xor edx, edx
mov qword [rcx], rdx
mov qword [rdi + 8], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x40]
mov r8d, 1
mov rdx, qword [rdi]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov ebx, dword [rsp + 0x40]
shr rbx, 3
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
sar rcx, 3
cmp rbx, rcx
jae 0x140003fe6
lea rax, [rdx + rbx*8]
mov qword [rdi + 8], rax
jmp 0x140004025
jbe 0x140004025
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 3
cmp rbx, rax
jbe 0x140004005
mov rdx, rbx
mov rcx, rdi
call fcn.140004ad0
jmp 0x140004025
sub rbx, rcx
lea rbx, [rbx*8]
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + rsi]
mov qword [rdi + 8], rdx
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004c40
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140005790
Capabilities:
Parse pe header

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