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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005b6d
xor eax, eax
jmp 0x140005cd9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005ba7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005ba7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005cd9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005ccc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005bea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005c15
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005cd1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140005c84
sub eax, 1
je 0x140005c84
cmp eax, 2
jne 0x140005ccc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005cd1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005cb2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140005ccc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005cd1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f45c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005e70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005f43
cmp byte [rcx + 0x71], 0
je 0x140005f43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005f3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005f04
sub eax, 1
je 0x140005f08
cmp eax, 2
jne 0x140005f3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f45c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005f36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005f3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005eec
xor al, al
jmp 0x140005eec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f45c0
add rsp, 0x60
pop rbx
ret
Function at 0x140039a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x140039ac7
movzx eax, byte [rcx + 0x10]
test al, al
je 0x140039ac7
cmp al, 1
jne 0x140039a89
test edx, edx
jne 0x140039ac7
mov r10, qword [rcx + 8]
test r8, r8
je 0x140039aa2
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x140039ac4
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x140039ac4
cmp byte [rcx + 0xa], 0
jne fcn.140030c20
xor eax, eax
ret
jmp fcn.1400396b0
Function at 0x14004e190
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x14004e1bf
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14004e1a0
ret
Function at 0x14005b300
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rbp, r8
mov r15, rdx
call fcn.14001a280
mov rbx, rax
test rax, rax
jne 0x14005b342
lea eax, [rbx + 7]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
cmp byte [0x14011c294], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
je 0x14005b3a7
mov rax, qword [0x14011c420]
test rax, rax
je 0x14005b36c
mov ecx, 0xc8
call rax
test eax, eax
jne 0x14005b3a7
lea rsi, [rbx + 8]
mov qword [rbx + 0x10], r15
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0
lea r8, [0x14001dbe0]
mov qword [rbx + 0x18], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x14005b3bf
jmp 0x14005b3af
lea rdi, [rbx + 0x10]
lea rsi, [rbx + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rdi], 0
mov rdi, qword [rsp + 0x58]
jne 0x14005b3dc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rsi], eax
call r15
mov qword [rbx + 0x20], rax
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [r14], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400921f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x140092402
mov qword [rsp + 0x70], r12
xor r9d, r9d
mov qword [rsp + 0x78], r13
lea r12, [rdi + 0x88]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x68], rbp
nop word [rax + rax]
movsxd r14, dword [rsi + 0x10]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x140092260
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x140092276
dec al
lea r12, [rdi + 0x88]
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1400922a3
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.140048950
jmp 0x1400922ce
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.140091460
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x14009230d
mov rcx, rdi
call fcn.140048810
test eax, eax
jne 0x1400923e9
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r9d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r9b
mov qword [rax + 0x10], r9
mov word [rax + 2], r9w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r9
mov qword [rax + 0x28], r9
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r9
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r9
mov qword [rax + 0x58], r9
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r9
mov qword [rax + 0x70], r9
add dword [rdi + 0x90], 5
test rax, rax
je 0x1400923e9
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x1400923d7
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1400923d7
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
je 0x1400923e9
mov rax, qword [rsp + 0x60]
jmp 0x140092240
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f32f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x1400f332b
mov eax, dword [rcx + 0x1c]
lea rdx, [rcx + 0x38]
mov r9, qword [rcx + 0x28]
dec eax
mov ecx, 0x1e
lea r8, [rax + rax*2]
mov r9, qword [r9 + r8*8 + 0x10]
lea r8, str.__lld_
add rsp, 0x30
pop rbp
jmp fcn.1400e9ee0
mov edx, dword [rcx + 0xc]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
add rcx, 0xc0
xor esi, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], esi
call fcn.1400ecaa0
add eax, dword [rbp + 0xc]
mov r9d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov edx, eax
add rdx, qword [rbp + 0xc0]
test r9d, r9d
je 0x1400f339f
movzx eax, byte [rdx]
lea r8, [0x1401047f0]
test byte [rax + r8], 2
je 0x1400f339f
test r9d, r9d
je 0x1400f3392
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x1400f339f
inc esi
cmp esi, r9d
jb 0x1400f3380
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x1400f33aa
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.1400e9ee0
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret

Function at 0x1400f52b4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, 0xee94c430
jle 0x14003f6df
jmp 0x132987c98
sub al, byte [rdx + 0x7b]
mov ah, 0xfc
xchg esi, eax
invalid
sub eax, 0xc5d152c0
invalid
movabs eax, dword [0x5100c26cb336e63f]
ret 0x175e
invalid
mov cl, dh
xchg byte [rax], bh
invalid
ljmp [rax + 0x2d45a58b]
sub eax, 0x43b96b5
xlatb
ret
jo 0x14003f71c
and dword [rbx - 0x25], edi
sub byte [rsi], dh
scasd eax, dword [rdi]
mov dh, 0xc8
enter 0x99c, 0x40
mov byte [rdx], 0x95
stc
add byte [rdx], ah
xlatb
sbb edi, ebp
movsd dword [rdi], dword [rsi]
push rdx
rcl dword [rsi - 0x376c0d56]
xchg ebx, eax
enter 0x101c, 0xffffffffffffffa4
xchg ebx, eax
enter 0x101c, 0xffffffffffffffa4
out dx, al
invalid
mov dword [rsi - 0x61], ecx
jg 0x14003f757
ja 0x14003f6b6
cmc
std
loopne 0x14003f6d5
invalid
or edx, dword [0x16b615d87]
sub byte [rdx - 0x5285ef0a], dl
pop rbx
insb byte [rdi], dx
or byte [rax + 0x1e], cl
sub bh, byte [rbp + 0x2fab0155]
mov word [rsi + 0xc], gs
push 0xffffffffffffffec
mul byte [rdx]
fnstcw word [rbp - 0x1ec4d074]
rcr dword [rdi - 0x41], 0x4c
div byte [rcx]
jno 0x14003f790
mov ch, 5
mov dh, 0x7d
fadd st(2)
adc al, 0xed
test byte [rdi - 0x3e37b63e], 0x87
xor dword [rsi - 0x34515538], esp
enter 0xffffffffffff87c1, 0x31
cmpsb byte [rsi], byte [rdi]
enter 0xffffffffffffaeaa, 0xffffffffffffffcb
in eax, 0xc0
sub byte [rcx - 0x24], al
retf
Function at 0x140001ac4
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004430]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call sym.__main
lea rax, str.start_https:__www.youtube.com_watch_vdQw4w9WgXcQ
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001740
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x1400018e0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001902
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001890
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001808
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001ecc
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 0x140001ec3
test rsi, rsi
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
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 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400020f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140039720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14026fe68]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x2a3a2f5c
mov dword [rsp + 0x34], 0x3e3c223f
mov byte [rsp + 0x38], 0x7c
call fcn.140036f70
xor esi, esi
lea rdi, [rsp + 0x30]
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
cmp rdx, 8
jb 0x140039772
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r8, [rax + rax]
mov rax, rbx
lea r11, [r8 + rcx]
jb 0x140039786
mov rax, qword [rbx]
add rax, r8
mov rcx, rbx
cmp rdx, 8
jb 0x140039795
mov rcx, qword [rbx]
cmp rcx, rax
je 0x1400397fb
movsx r8d, byte [rdi]
nop
movzx edx, word [rcx]
cmp edx, r8d
je 0x1400397b1
add rcx, 2
cmp rcx, rax
jne 0x1400397a0
cmp rcx, rax
je 0x1400397fb
lea rdx, [rcx + 2]
mov r9, rax
sub r9, rdx
mov r8, rsi
inc r9
shr r9, 1
cmp rdx, rax
cmova r9, rsi
test r9, r9
je 0x1400397fb
movsx r10d, byte [rdi]
nop dword [rax]
movzx eax, word [rdx]
cmp eax, r10d
je 0x1400397ef
mov word [rcx], ax
add rcx, 2
add rdx, 2
inc r8
cmp r8, r9
jne 0x1400397e0
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140039808
mov rax, qword [rbx]
mov rdx, rcx
sub rdx, rax
sar rdx, 1
cmp qword [rbx + 0x10], rdx
jb 0x14003988e
lfence
mov r8, qword [rbx + 0x10]
sub r11, rcx
sar r11, 1
mov rax, r8
sub rax, rdx
cmp rax, r11
cmovb r11, rax
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14003983e
mov rax, qword [rbx]
sub r8, r11
lea rcx, [rax + rdx*2]
mov qword [rbx + 0x10], r8
sub r8, rdx
lea rdx, [rcx + r11*2]
lea r8, [r8*2 + 2]
call fcn.14017f360
lea rax, [rsp + 0x39]
inc rdi
cmp rdi, rax
jne 0x140039762
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014f460
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.14003ab60
int3
Function at 0x14004aa00
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 8]
test rax, rax
je 0x14004aa20
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14004ad60
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov r14, rdx
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
and ebx, 1
add ebx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edi, ebx
or edi, 4
mov ecx, 0x12
and al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ebx, edi
or ebx, 8
mov ecx, 0x90
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x14
bts edi, 8
and al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebp, edi
or ebp, 1
and al, 1
cmove ebp, edi
add rsi, 0xfffffffffffffff4
mov ebx, ebp
cmp rsi, 0x84
ja case.0x14004ae19.14
lea rdx, [0x140000000]
movzx eax, byte [rdx + rsi + 0x4aee8]
mov ecx, dword [rdx + rax*4 + 0x4aec4]
add rcx, rdx
jmp rcx
bts ebx, 9
and r14d, 0x1000000
test r14, r14
cmove ebx, ebp
jmp case.0x14004ae19.14
bts ebx, 9
and r14d, 0x1000000
test r14, r14
cmovne ebx, ebp
jmp case.0x14004ae19.14
bts ebx, 9
jmp case.0x14004ae19.14
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne case.0x14004ae19.91
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je case.0x14004ae19.14
bts ebx, 0xb
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne case.0x14004ae19.91
mov ecx, 0xa3
jmp 0x14004ae5e
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne case.0x14004ae19.91
mov ecx, 0xa5
jmp 0x14004ae5e
bts ebx, 0xa
jmp case.0x14004ae19.14

Function at 0x14004af70
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
movzx eax, cl
shr rdx, 1
mov rdi, rcx
and edx, 4
mov ecx, 0x12
mov ebx, edx
or ebx, 2
and al, 4
cmove ebx, edx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
or ecx, 8
and al, 1
movzx eax, dil
cmove ecx, ebx
mov edx, ecx
or edx, 0x10
and al, 1
movzx eax, dil
cmove edx, ecx
mov ecx, edx
or ecx, 0x20
and al, 0x10
cmove ecx, edx
mov ebx, ecx
or ebx, 0x40
and dil, 2
cmove ebx, ecx
mov ecx, 0x90
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x14
bts edi, 8
and al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [rsp + 0x30]
mov ecx, edi
or ecx, 1
and al, 1
cmove ecx, edi
mov eax, ecx
add rsp, 0x20
pop rdi
ret