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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140157e80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140004d9d
xor eax, eax
jmp 0x140004f06
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140004ddd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140004ddd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140004efe
cmp qword [rdi + 0x80], 0
je 0x140004ef9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140004e17
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140004e42
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140004efe
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004eb1
sub eax, 1
je 0x140004eb1
cmp eax, 2
jne 0x140004ef9
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140004efe
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140004edf
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140004ef9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140004efe
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006e70
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140005751
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140005768
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1400057b9
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140005831
mov rcx, rbp
call fcn.140003a00
cmp rbx, 0xfff
jbe 0x140005811
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005852
cmp rbx, rax
ja 0x1400057e0
test rdi, rdi
je 0x140005831
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x140005834
outsb dx, byte [rsi]
and byte [rsi], cl
add byte [rbx + rcx*4 - 0x39], cl
Function at 0x140006574
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 0x1400065ae
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400065b3
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 0x1400065fc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140008980]
cmp byte [rcx + rax], 0
je 0x1400065fc
dec r8
sub rdx, 1
jne 0x1400065e2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140007494
Capabilities:
Parse pe header

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

Disassembly:
xor rax, 0
xor rax, 0
sub rax, 0
nop
nop
xor rax, 0
xor rax, 0
add rax, 0
add rax, 0
add rax, 0
sub rax, 0
or rax, rax
nop
nop
or rax, rax
add rax, 0
mov rax, rax
xor rax, 0
nop
mov rax, rax
or rax, 0
or rax, rax
or rax, 0
nop
mov rax, rax
xor rax, 0
xor rax, 0
or rax, 0
add rax, 0
or rax, 0
nop
or rax, rax
or rax, rax
sub rax, 0
sub rax, 0
nop
add rax, 0
cmp word [rcx], 0x5a4d
jne 0x1400038a2
nop
xor rax, 0
mov rax, rax
add rax, 0
xor rax, 0
mov rax, rax
sub rax, 0
or rax, 0
or rax, rax
nop
mov rax, rax
mov rax, rax
movsxd rax, dword [rcx + 0x3c]
or rdx, rdx
or rdx, rdx
xor rdx, 0
xor rdx, 0
or rdx, 0
xor rdx, 0
xor rdx, 0
xchg rdx, rdx
or rdx, 0
add rdx, 0
nop
mov rdx, rdx
nop
or rdx, 0
nop
cmp dword [rax + rcx], 0x4550
jne 0x1400038c4
add rax, rcx
xchg rcx, rcx
or rcx, rcx
or rcx, 0
xor rcx, 0
xchg rcx, rcx
or rcx, 0
add rcx, 0
nop
mov rcx, rcx
nop
nop
nop
mov rcx, rcx
mov rcx, rcx
xor rcx, 0
mov rcx, rcx
nop
or rcx, 0
ret
add rax, 0
or rax, rax
nop
or rax, 0
mov rax, rax
or rax, 0
xor rax, 0
nop
add rax, 0
add rax, 0
jmp 0x1400038e6
or rax, rax
add rax, 0
mov rax, rax
or rax, 0
mov rax, rax
mov rax, rax
sub rax, 0
nop
xor rax, 0
xor rax, 0
nop
xor eax, eax
ret
Function at 0x140010159
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x14001a040]
call fcn.140010190
mov ecx, eax
add rsp, 0x28
jmp fcn.140017a18

Function at 0x140010174
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.140010190
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140017a10

Function at 0x140010190
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x1400158e2
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140015959
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x1400159a0
cmp dword [rsp + 0x2c], 0
je 0x140015981
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015990
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401750c8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401750c8], rsi
jne 0x140015934
mov byte [0x1401750c0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140015986
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400159a0
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140015986
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140015986
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2
Function at 0x140010bf9
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140012fd6
test rax, rax
je 0x140010c31
mov edx, 4
mov rcx, rax
call fcn.14000abf0
jmp 0x140010c6a
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.140010117
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.1400101dd
Function at 0x140012fd6
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140013067
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140012ff6
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140012ff6
xor ebx, 0x80000000
je 0x140013065
mov al, byte [0x140175058]
mov ecx, 4
mov edx, 4
call fcn.14000ab60
test rax, rax
je 0x14001307a
mov rsi, rax
mov dword [rax], ebx
jmp 0x140013067
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14001589f
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010190
mov ecx, eax
add rsp, 0x28
jmp fcn.140017a18

Function at 0x1400158e2
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x1400158e2
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140015959
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x1400159a0
cmp dword [rsp + 0x2c], 0
je 0x140015981
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015990
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401750c8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401750c8], rsi
jne 0x140015934
mov byte [0x1401750c0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140015986
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400159a0
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140015986
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140015986
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2
Function at 0x14001617f
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov rdi, rcx
lea rsi, [rsp + 0x88]
mov rcx, rsi
call fcn.140015d8e
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400162ca
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x14001620e
lea rbp, [rsp + 0x88]
mov edi, 0x200
mov rbx, r8
jmp 0x140016243
sub r8, r13
lea rcx, [rsp + 0x40]
mov rdx, r8
call fcn.140014420
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x50], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x140016269
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400162de
mov r8d, esi
cmp rbx, r8
jne 0x140016291
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400163b6
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x1400161f3
jb 0x1400161f3
cmp rdi, r8
jb 0x1400163b6
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov rdx, rbp
call fcn.140013d16
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.1400144e0
cmp bl, 2
jne 0x140016319
mov rbx, qword [rsp + 0x68]
jmp 0x1400162fe
lea rcx, [rsp + 0x88]
call fcn.140015f56
mov byte [rsp + 0x58], 2
jmp 0x14001634d
call fcn.1400144ca
mov rbx, rax
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x80], 2
mov rcx, r12
mov rdx, r15
call fcn.1400144e0
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rsp + 0x58], 2
mov rcx, rbx
call fcn.1400138b7
mov bl, 2
jmp 0x14001633b
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov bl, byte [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.1400144e0
cmp bl, 2
jne 0x140016365
mov byte [rdi + 0x18], 2
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001600f
cmp byte [rsi + 0x18], 2
jne 0x14001639d
mov rax, qword [rsp + 0x98]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rdi], xmm0
mov byte [rdi + 0x18], 3
jmp 0x140016351
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
jmp 0x140016351
ud2
Function at 0x140018510
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400192b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400192b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140018580
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140175174]
mov rbx, rcx
test esi, esi
jle 0x1400186b0
mov rax, qword [0x140175178]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400185cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140018655
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400185b0
mov rcx, rbx
call fcn.140018fd0
mov rdi, rax
test rax, rax
je 0x1400186d2
mov rax, qword [0x140175178]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140019110
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140175178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400186b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001864e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140018660
add dword [0x140175174], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140175178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001864e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140018510
nop dword [rax]
xor esi, esi
jmp 0x1400185d8
mov rax, qword [0x140175178]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140018510
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140018510
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140018c40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401751e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401751c0]
test rbx, rbx
je 0x140018c9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140018c93
test rsi, rsi
je 0x140018c93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018c78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140018fd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401727f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140018ff0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140018ff8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140018ff0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001904d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140019044
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140018ff0
add rax, 0x28
cmp rax, r9
jne 0x140019030
xor eax, eax
ret

Function at 0x140019050
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401727f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001906f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140019078
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001906f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140019110
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401727f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001912f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140019138
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x1800030e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
movsxd rcx, dword [0x1800679c0]
xor edi, edi
mov edx, edi
cmp ecx, 0x7b
ja 0x18000310d
lea rdx, [0x180066030]
mov rdx, qword [rdx + rcx*8]
mov qword [rbp - 0x10], rdi
xorps xmm0, xmm0
mov qword [rbp - 8], 0xf
movups xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x20], dil
test ecx, ecx
jne 0x180003141
mov r8b, byte [rbp + 0x10]
lea edx, [rcx + 0x11]
lea rcx, [rbp - 0x20]
lea r9, str.Press_key_to_bind
call fcn.180001678
jmp 0x18000314f
test rdx, rdx
je 0x18000314f
lea rcx, [rbp - 0x20]
call fcn.180007324
cmp qword [rbp - 8], 0xf
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x10]
mov dword [rbp + 0x10], 0x42fa0000
cmova rcx, qword [rbp - 0x20]
mov dword [rbp + 0x14], 0x41a00000
call fcn.18000bb3c
test al, al
je 0x180003182
mov eax, edi
mov dword [0x1800679c0], eax
jmp 0x180003188
mov eax, dword [0x1800679c0]
test eax, eax
jne 0x1800031ab
mov ebx, edi
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1800031a1
mov dword [0x1800679c0], ebx
inc ebx
cmp ebx, 0x87
jl 0x18000318e
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1800031e2
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800031dd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800031f2
call fcn.18002d104
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
call fcn.180033ebc
int3