joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000695c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1416e67c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140001a5c
xor ebx, ebx
cmp qword [0x1416eaab8], rbx
mov rdi, rax
jne 0x140006a6f
lea rcx, str.USER32.DLL
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140006b46
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140006b46
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1416eaab8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1416eaac0], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1416eaac8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov r11, rax
mov qword [0x1416eaad8], rax
test rax, rax
je 0x140006a66
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov qword [0x1416eaad0], rax
jmp 0x140006a76
mov rax, qword [0x1416eaad0]
jmp 0x140006a7d
mov rax, qword [0x1416eaad0]
mov r11, qword [0x1416eaad8]
cmp rax, rdi
je 0x140006ae4
cmp r11, rdi
je 0x140006ae4
mov rcx, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov rcx, qword [0x1416eaad8]
mov rsi, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140006ae4
test rax, rax
je 0x140006ae4
call rsi
test rax, rax
je 0x140006ade
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140006ade
test byte [rsp + 0x40], 1
jne 0x140006ae4
bts ebp, 0x15
jmp 0x140006b24
mov rcx, qword [0x1416eaac0]
cmp rcx, rdi
je 0x140006b24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x140006b24
call rax
mov rbx, rax
test rax, rax
je 0x140006b24
mov rcx, qword [0x1416eaac8]
cmp rcx, rdi
je 0x140006b24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x140006b24
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1416eaab8]
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x140006b46
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140006b48
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004384
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
push rax
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140036320
Capabilities:
Write file on windows

Disassembly:
jmp 0x140087820
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400d7261]
call fcn.1400380da
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140087877
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140087983
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14008791c
cmp qword [rbp + 0x28], 0
jle 0x14008791c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400878bc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140037eb4
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140087972
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140087972
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400365a0
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400711d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400d721e]
call fcn.1400380da
mov qword [rbp + 8], 0
jmp 0x14007120e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x140071264
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x140071203
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140037266
Capabilities:
Terminate process

Disassembly:
jmp 0x1400a0620
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 0x14003751d
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009a400
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14009a43d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400380b2
add rsp, 0x58
ret

Function at 0x140037694
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400a1150
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400a1170
xor al, al
jmp 0x1400a11f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400a1183
xor al, al
jmp 0x1400a11f1
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 0x1400a11ad
xor al, al
jmp 0x1400a11f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400a11c1
xor al, al
jmp 0x1400a11f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400a11d3
xor al, al
jmp 0x1400a11f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400a11ef
xor al, al
jmp 0x1400a11f1
mov al, 1
add rsp, 0x38
ret
Function at 0x14003805d
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400705a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x1400c8048]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x1400d7261]
call fcn.1400380da
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140070606
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14007060d
mov al, 1
jmp 0x14007077f
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.14003690b
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.14003690b
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140037b80
movzx eax, al
test eax, eax
je 0x140070672
xor al, al
jmp 0x14007077f
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x1400706e5
cmp dword [rbp + 0x1a0], 1
je 0x1400706f0
cmp dword [rbp + 0x1a0], 3
je 0x14007076e
jmp 0x14007077d
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140070740
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140070740
xor al, al
jmp 0x14007077f
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14007075b
mov dword [rbp + 0x194], 1
jmp 0x140070765
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14007077f
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14007077f
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400b0970]
call fcn.140037b35
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.140036fdc
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x1407cc1b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407cc33f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407cc1e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407cc1cf
add dl, dl
jne 0x1407cc1f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407cc256
xor eax, eax
add dl, dl
jne 0x1407cc205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407cc30d
add dl, dl
jne 0x1407cc216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407cc223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407cc230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407cc23d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407cc24a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407cc1de
mov eax, 1
add dl, dl
jne 0x1407cc266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407cc273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407cc25b
sub eax, ebx
mov ebx, 1
jne 0x1407cc2ac
mov ecx, 1
add dl, dl
jne 0x1407cc28e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407cc29b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407cc283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407cc1de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407cc2c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407cc2d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407cc2bd
cmp eax, 0x7d00
jae 0x1407cc2fb
cmp eax, 0x500
jb 0x1407cc2f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407cc1de
cmp eax, 0x7f
ja 0x1407cc2fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407cc1de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407cc332
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 0x1407cc1de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140058230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x14005824e
cmp qword [rsp + 0x68], 0
jne 0x140058255
xor eax, eax
jmp 0x140058381
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x1400582f6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x14005837f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14005833e
inc rax
test dl, dl
jne 0x14005832b
xor eax, eax
jmp 0x140058343
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14005837a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x140058381
jmp 0x1400582ee
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400054b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x1400054e4
cmp word [rcx], 0x5a4d
jne 0x1400054e4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400054e4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400054e4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400053f0
test eax, eax
jne 0x140005500
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005460
test rax, rax
je 0x1400054f5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005ca3
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005bb0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005b50
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005ff4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140567058]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140567054]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140006042
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000603a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006129
inc ebx
add rax, 0x28
jmp 0x14000601a
mov rcx, r12
call fcn.140006821
mov rbp, rax
test rax, rax
jne 0x140006061
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005f90
movsxd rbx, ebx
mov rax, qword [0x140567058]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400068cf
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140567058]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400060c3
mov rax, qword [0x140567058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005f90
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006123
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006123
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 [0x140567058]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006123
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005f90
inc dword [0x140567054]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140006550
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1405670c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405670a0]
test rbx, rbx
je 0x14000659c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006596
test eax, eax
jne 0x140006596
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000656e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006750
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006773
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006773
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006774
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400067ae
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400067a5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400067b0
inc r8d
add rax, 0x28
jmp 0x14000678c
xor eax, eax
ret

Function at 0x140006821
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140561bb0]
mov r8, rcx
mov rcx, r9
call fcn.140006750
test eax, eax
je 0x14000684d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006774
xor eax, eax
add rsp, 0x28
ret
Function at 0x140006da0
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rcx], 0x26
jne 0x140006e59
mov rsi, rdx
add rcx, 1
lea rdx, [0x140102dc9]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x34]
call fcn.140006e80
cmp eax, 2
jne 0x140006e59
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x140006e50
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x60], rdx
mov rcx, rsi
call fcn.140041d90
test al, al
je 0x140006e71
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rdi, rdi
setne sil
jmp 0x140006e5b
xor esi, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400b8cc0
mov eax, esi
add rsp, 0x78
pop rdi
pop rsi
ret
lea rcx, str.Serialised_configuration_data_was_invalid
call fcn.140006000
int3

Function at 0x140007060
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp ecx, 2
jne 0x140007119
mov r14d, r9d
mov ebx, r8d
mov rdi, rdx
lea eax, [rbx + 1]
movsxd rdx, eax
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
test rax, rax
je 0x140007119
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
test rax, rax
je 0x140007119
mov rbp, rax
movsxd rbx, ebx
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.1400b9f30
mov byte [rbp + rbx], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
test r14b, r14b
jne 0x1400070e9
mov rcx, qword [0x140129008]
mov r8d, 1
mov edx, 0x8002
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x140129008]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140007124
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, 1
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
test r14b, r14b
je 0x140007132
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
test r14b, r14b
jne 0x140007119
mov rcx, qword [0x140129008]
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.USER32.dll_SendMessageA]

Function at 0x14000c6c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x130
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14000c6fe
cmp byte [rsp + 0x32], 0
js 0x14000c702
mov sil, byte [rsp + 0xc5]
shr sil, 7
jmp 0x14000c705
xor esi, esi
jmp 0x14000c705
mov sil, 1
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1400b8cc0
mov eax, esi
add rsp, 0x130
pop rsi
ret