joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400127b0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c2d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001283a
cmp byte [rbp - 0x21], r15b
je 0x140012835
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012870
call fcn.140009074
test eax, eax
jne 0x14001285c
cmp byte [rbp - 0x21], r15b
je 0x140012854
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012870
cmp byte [rbp - 0x21], r15b
je 0x14001286d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b8b8
test eax, eax
jne 0x140012910
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c2d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400128af
cmp byte [rbp - 0x21], r15b
je 0x1400128e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400128e4
call fcn.140009074
test eax, eax
jne 0x1400128d0
cmp byte [rbp - 0x21], r15b
je 0x1400128c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400128e4
cmp byte [rbp - 0x21], r15b
je 0x1400128e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b8b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012910
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012913
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012921
mov rcx, rdi
call fcn.140008e24
cmp byte [rbp + 0x3f], r15b
je 0x140012930
mov rcx, qword [rbp + 0x27]
call fcn.140008e24
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140014ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800113b6
Capabilities:
Create thread

Disassembly:
jmp 0x18001b410
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x1800320fc]
call fcn.1800117df
nop
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 0
je 0x18001b4b0
cmp dword [rbp + 0xc0], 1
je 0x18001b46b
cmp dword [rbp + 0xc0], 2
je 0x18001b4b0
cmp dword [rbp + 0xc0], 3
je 0x18001b4b0
jmp 0x18001b4b6
call fcn.18001138e
nop
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180011898]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18001b4b6
call fcn.180011839
nop
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x18001145b
Capabilities:
Terminate process

Disassembly:
jmp 0x18001e020
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]
nop
add rsp, 0x28
ret
Function at 0x140644450
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14064445d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14064446d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140644455
lea eax, [rcx + 1]
jmp 0x14064447b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14064448e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140644474
sub eax, 3
jb 0x1406444ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1406444fd
sar eax, 1
movsxd rbp, eax
jb 0x1406444e4
jmp 0x1406444bc
add ebx, ebx
jne 0x1406444ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406444e4
inc ecx
add ebx, ebx
jne 0x1406444ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406444e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1406444dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1406444cc
add ecx, 2
jmp 0x1406444e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140644412
jmp 0x14064445d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x451800
mov dl, 0x52
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14064454d
cmp rsi, rcx
jae 0x140644555
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140644534
cmp al, 0x8f
ja 0x140644534
cmp byte [rsi - 2], 0xf
je 0x14064453a
sub al, 0xe8
cmp al, 1
ja 0x14064451e
cmp rsi, rcx
jae 0x140644555
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140644524
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140644555
lodsb al, byte [rsi]
jmp 0x140644534
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x63f000]
mov eax, dword [rdi]
or eax, eax
je 0x1406445be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6441dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140644562
jns 0x140644597
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1406445a1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1406445b8
mov qword [rbx], rax
add rbx, 8
jmp 0x140644582
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140644602
cmp al, 0xef
ja 0x1406445ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1406445ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1406445d9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1406445d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140644656
sub rsp, 0xffffffffffffff80
jmp 0x1402b9340
Function at 0x140001570
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140015c60], rbx
je 0x1400015d7
cmp rax, rbx
jne 0x1400015ca
mov ebx, 1
mov esi, ebx
jmp 0x1400015dc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400015af
mov ebx, 1
mov eax, dword [0x140015c68]
cmp eax, ebx
jne 0x1400015f4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000166a
mov eax, dword [0x140015c68]
test eax, eax
jne 0x14000165f
mov dword [0x140015c68], ebx
lea r15, [0x140010bf8]
lea rdi, [0x140010be0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001651
test eax, eax
jne 0x140001655
cmp qword [rdi], r14
je 0x140001646
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x140010b90]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000161e
test eax, eax
je 0x140001665
mov eax, 0xff
jmp 0x1400017ca
mov dword [0x1400153e4], ebx
mov edi, 0x1f
mov eax, dword [0x140015c68]
cmp eax, ebx
jne 0x140001691
lea rdx, [0x140010bd8]
lea rcx, [0x140010ba0]
call sub.msvcrt.dll__initterm
mov dword [0x140015c68], 2
test esi, esi
jne 0x14000169f
mov rax, r14
xchg qword [0x140015c60], rax
cmp qword [0x140015c80], r14
je 0x1400016dc
lea rcx, [0x140015c80]
call fcn.140001c70
test eax, eax
je 0x1400016dc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140015c80]
mov r9, qword [0x140010b90]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400016f5
mov eax, 0xff
jmp 0x1400017ca
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000177b
test ax, ax
je 0x140001710
test edx, edx
jne 0x14000177b
sub ax, bx
cmp ax, di
ja 0x140001726
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001710
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006fbc
mov dword [0x1400153e0], eax
cmp dword [0x140015400], r14d
jne 0x140001764
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400153e4], r14d
jne 0x140001779
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400153e0]
jmp 0x1400017ca
cmp ax, 0x22
jne 0x14000178f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400016fe
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140169000
add rsp, 0x28
jmp 0x140001570
Function at 0x140006b20
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x290
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x270], rbx
mov qword [rbp + 0x280], rsi
mov qword [rbp + 0x288], rdi
mov rax, qword [0x14012c340]
xor rax, rbp
mov qword [rbp + 0x240], rax
mov rdi, rdx
mov dword [rbp], 0x238
xor edx, edx
mov ecx, 0xf
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
nop dword [rax]
lea rcx, [rbp + 0x2c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140006ba0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140006c1d
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140006bcb
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f4220
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140006c1d
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x2c]
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 3
mov byte [rbx], r14b
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140006c20
mov rbx, r14
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
jbe 0x140006c2d
mov rcx, qword [rdi]
sub rcx, rbx
movzx edx, byte [rbx]
movzx eax, byte [rbx + rcx]
sub edx, eax
jne 0x140006c44
inc rbx
test eax, eax
jne 0x140006c30
mov rcx, rsi
test edx, edx
je 0x140006c72
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006b90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140006100
xor eax, eax
jmp 0x140006c87
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword ds:[rbp + 8]
mov rcx, rdi
call fcn.140006100
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.1400f3040
mov rbx, qword [rbp + 0x270]
mov rsi, qword [rbp + 0x280]
mov rdi, qword [rbp + 0x288]
lea rsp, [rbp + 0x250]
pop r15
pop r14
pop rbp
ret
Function at 0x1400283a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400283c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400283ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400283f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140028449
test ecx, ecx
jle 0x140028429
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140028449
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140028449
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140028480
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400284a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400284b8
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400284d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400284d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140028512
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword ds:[rsi + 0x80], 0
je 0x1400285ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140028553
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14002858e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400285ae
cmp rbx, rax
ja 0x140028560
test rbx, rbx
je 0x1400285ae
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140028a00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14012c340]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140028a2d
xor eax, eax
jmp 0x140028b9f
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140028a67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140028a67
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 0x140028b9f
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140028b92
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140028aaa
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 0x140028ad7
mov rdx, qword ds:[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 0x140028b97
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 0x140028b4a
nop dword [rax]
sub eax, 1
je 0x140028b4a
cmp eax, 2
jne 0x140028b92
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 0x140028b97
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140028b78
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 0x140028b92
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140028b97
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f3040
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14002a260
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14012c340]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14002a339
cmp byte [rcx + 0x71], 0
je 0x14002a339
mov rax, qword ds:[rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002a335
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 0x14002a2fa
sub eax, 1
je 0x14002a2fe
cmp eax, 2
jne 0x14002a335
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f3040
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14002a32c
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 0x14002a335
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002a2e2
xor al, al
jmp 0x14002a2e2
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f3040
add rsp, 0x60
pop rbx
ret

Function at 0x14002b080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.1400f4220
sub rsp, rax
vmovaps xmmword [rsp + 0x13d0], xmm6
vmovaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x14012c340]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
vmovaps xmm7, xmm1
vmovaps xmm6, xmm0
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r9
jb 0x14002b0e0
mov dword [rsp + 0x20], r9d
lea r8, [rsp + 0x28]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14002b110
mov eax, dword [rsp + 0x20]
vsubss xmm0, xmm7, xmm6
vxorps xmm1, xmm1, xmm1
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
vcvtsi2ss xmm1, xmm1, rax
vmulss xmm2, xmm1, xmm0
vmovaps xmm0, xmm6
vfmadd231ss xmm0, xmm2, dword [0x14010e93c]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400f3040
vmovaps xmm6, xmmword [rsp + 0x13d0]
vmovaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x140031400
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x1401e0034], 0
mov rbx, rcx
je 0x14003165f
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14003165f
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
nop word [rax + rax]
test ax, ax
jne 0x14003165f
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14003165f
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14003165f
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [rax]
test ax, ax
jne 0x14003165f
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14003165f
vmovss xmm0, dword [0x14010ebd8]
vcomiss xmm0, dword [rbx + 0xb4]
jae 0x14003165f
test byte ds:[rbx + 0x120], 1
je 0x14003165f
vmovss xmm0, dword [rbx + 0x84]
vmulss xmm0, xmm0, dword [0x14010e970]
vcvtss2sd xmm1, xmm0, xmm0
vmulsd xmm0, xmm1, qword [0x14010eb00]
vmovaps xmmword [rsp + 0x30], xmm6
vmovsd xmm6, qword [rbx + 0xa8]
call fcn.1400f42c0
vshufps xmm1, xmm6, xmm6, 0x55
vcvtss2sd xmm2, xmm1, xmm1
vcvtss2sd xmm1, xmm6, xmm6
vpermilpd xmm3, xmm0, 1
vmulsd xmm4, xmm3, xmm1
vfmadd231sd xmm4, xmm2, xmm0
vcomisd xmm4, qword [0x14010eb28]
vmulsd xmm6, xmm0, xmm1
vfmsub231sd xmm6, xmm2, xmm3
jbe 0x140031562
xor edx, edx
mov ecx, 0x53
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov r8d, 8
mov edx, eax
mov cl, 0x53
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, 0x53
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov cl, 0x53
jmp 0x1400315a8
vcomisd xmm4, qword [0x14010edd8]
jae 0x1400315b9
xor edx, edx
mov ecx, 0x57
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov r8d, 8
mov edx, eax
mov cl, 0x57
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, 0x57
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov cl, 0x57
xor r9d, r9d
mov r8d, 2
mov edx, eax
call qword [sym.imp.USER32.dll_keybd_event]
vcomisd xmm6, qword [0x14010eb28]
jbe 0x140031602
xor edx, edx
mov ecx, 0x44
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov r8d, 8
mov edx, eax
mov cl, 0x44
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, 0x44
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov cl, 0x44
jmp 0x140031648
vcomisd xmm6, qword [0x14010edd8]
jae 0x140031659
xor edx, edx
mov ecx, 0x41
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov r8d, 8
mov edx, eax
mov cl, 0x41
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, 0x41
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov cl, 0x41
xor r9d, r9d
mov r8d, 2
mov edx, eax
call qword [sym.imp.USER32.dll_keybd_event]
vmovaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret