joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cbb00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400cbb36
mov eax, 0xfffffffd
jmp 0x1400cbc33
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1400cbb56
mov eax, 0xfffffffd
jmp 0x1400cbc33
cmp dword [rsp + 0x20], 0
jne 0x1400cbb64
xor eax, eax
jmp 0x1400cbc33
movsxd rax, dword [rsp + 0x20]
inc rax
lea rdx, [0x14023a058]
mov rcx, rax
call fcn.1401b4b50
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400cbb9c
mov eax, 0xfffffffe
jmp 0x1400cbc33
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
movsxd rax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x78]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x38], rax
je 0x1400cbc03
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1401b46fc
mov eax, 0xfffffffd
jmp 0x1400cbc33
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.1400cb800
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1401b46fc
mov eax, dword [rsp + 0x28]
add rsp, 0x68
ret
Function at 0x1400ccdb0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
ret
Function at 0x1400ce950
Capabilities:
Terminate thread

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x78
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x140257990]
xor edx, edx
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x140257990]
mov edx, 0x1f4
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x140265cf0]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140132b60
movzx eax, al
lea rdx, [0x140226ee8]
lea rcx, [0x140226ef8]
call fcn.1400e7f50
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x198
lea rdx, [0x14048d750]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1400c2f50
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x14046b150]
cmp qword [rcx + rax*8], 0
je 0x1400ceb53
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [0x140226f18]
mov rcx, qword [rsp + 0x20]
call fcn.1400bc990
mov qword [rsp + 0x28], rax
mov r8d, 0x134
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x80]
call fcn.1400e8e20
xor edx, edx
mov ecx, dword [rsp + 0x80]
call fcn.140108070
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x14046ae30]
movsxd rdx, dword [rsp + 0x80]
mov qword [rsp + 0x30], rdx
lea r8, [0x140265cf0]
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0x30]
mov rcx, qword [r8 + rax*8]
call fcn.14014dcd0
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x14046b150]
movsxd rdx, dword [rsp + 0x80]
mov qword [rsp + 0x38], rdx
lea r8, [0x140265cf0]
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0x38]
mov rcx, qword [r8 + rax*8]
call fcn.14014dcd0
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x14046b2e0]
movsxd rdx, dword [rsp + 0x80]
mov qword [rsp + 0x40], rdx
lea r8, [0x140265cf0]
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0x40]
mov rcx, qword [r8 + rax*8]
call fcn.14014dcd0
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x14046b470]
movsxd rdx, dword [rsp + 0x80]
mov qword [rsp + 0x48], rdx
lea r8, [0x140265cf0]
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0x48]
mov rcx, qword [r8 + rax*8]
call fcn.14014dcd0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rdx, str._e4N
mov rcx, qword [rsp + 0x50]
call fcn.1400bc990
mov qword [rsp + 0x58], rax
mov r8d, 0x13a
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x80]
call fcn.1400e8e20
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x140257990]
mov qword [rcx + rax*8], 0
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x1404a5770]
lea rax, [rcx + rax*8]
lea rdx, [0x140214076]
mov rcx, rax
call fcn.1400c2cd0
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x140265cf0]
mov qword [rcx + rax*8], 0
movsxd rax, dword [rsp + 0x80]
lea rcx, [0x140265c50]
mov qword [rcx + rax*8], 0
add rsp, 0x78
ret
Function at 0x1400cee30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x1400cee62
cmp qword [rsp + 0x70], 0
je 0x1400cee62
cmp qword [rsp + 0x80], 0
jne 0x1400cee69
xor eax, eax
jmp 0x1400cefcc
mov ecx, 0x100
call fcn.1401b4b1c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x30]
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400c9d00
test eax, eax
jne 0x1400ceea0
xor eax, eax
jmp 0x1400cefcc
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
jmp 0x1400ceec4
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x24], eax
jge 0x1400cefa5
mov eax, dword [rsp + 0x20]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
add eax, dword [rsp + 0x28]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1400e7f10
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x2c], eax
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
movsxd rdx, dword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
movzx edx, byte [r8 + rdx]
add ecx, edx
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x2c]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x80]
mov byte [rdx + rcx], al
jmp 0x1400ceeba
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1401b46fc
mov eax, 0xffffffff
add rsp, 0x58
ret
Function at 0x1400d32a0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.1400be7a0
nop
mov rdx, qword [rsp + 0x2d8]
lea rcx, [rsp + 0x50]
call fcn.1400be5f0
nop
lea rdx, [0x140216ba8]
lea rcx, [rsp + 0x50]
call fcn.1400c5060
lea rcx, [rsp + 0x50]
call fcn.140076650
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x1400d33db
mov eax, dword [rsp + 0x70]
and eax, 0x10
test eax, eax
je 0x1400d33b8
lea rax, [rsp + 0x9c]
lea rcx, reloc.WLDAP32.dll_Ordinal_46
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1400d3348
add rax, 2
test dx, dx
jne 0x1400d3332
xor eax, eax
jmp 0x1400d334d
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400d3382
lea rax, [rsp + 0x9c]
lea rcx, [0x140216bd0]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1400d3379
add rax, 2
test dx, dx
jne 0x1400d3363
xor eax, eax
jmp 0x1400d337e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400d3384
jmp 0x1400d33b8
lea rcx, [rsp + 0x30]
call fcn.1400dded0
movzx eax, al
test eax, eax
jne 0x1400d33a6
lea rdx, [0x140216bd8]
lea rcx, [rsp + 0x30]
call fcn.1400c5060
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x30]
call fcn.1400c5060
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400d3311
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2d0]
call fcn.1400be570
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.1400c1ec0
nop
lea rcx, [rsp + 0x30]
call fcn.1400c1ec0
mov rax, qword [rsp + 0x2d0]
add rsp, 0x2c8
ret
Function at 0x1400d45d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1400d45fb
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400d4602
mov al, 1
jmp 0x1400d475c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1400de180
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1400de180
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1400de220
movzx eax, al
test eax, eax
je 0x1400d4659
xor al, al
jmp 0x1400d475c
mov qword [rsp + 0x68], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400d46c9
cmp dword [rsp + 0x30], 1
je 0x1400d46d5
cmp dword [rsp + 0x30], 3
je 0x1400d474a
jmp 0x1400d475a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400d4721
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1400d4721
xor al, al
jmp 0x1400d475c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400d473b
mov dword [rsp + 0x34], 1
jmp 0x1400d4743
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400d475c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400d475c
xor al, al
add rsp, 0xa8
ret
Function at 0x1400e7220
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
mov eax, 0x202
mov word [rsp + 0x24], ax
lea rdx, [rsp + 0x220]
movzx ecx, word [rsp + 0x24]
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1400e7253
xor al, al
jmp 0x1400e76d4
mov rax, qword [rsp + 0x3d0]
add rax, 0x28
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
call fcn.1400d8e60
jmp 0x1400e727f
lea rcx, [rsp + 0x28]
call fcn.1400c3cd0
mov rax, qword [rsp + 0x3d0]
add rax, 0x28
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x40]
call fcn.1400ddf30
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c35f0
movzx eax, al
test eax, eax
je 0x1400e72b8
jmp 0x1400e7275
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x138]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x3d0]
add rax, 0x28
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.1400bec30
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x3d0]
call qword [rsp + 0x60]
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xd8]
call fcn.1400d8e60
jmp 0x1400e7339
lea rcx, [rsp + 0x30]
call fcn.1400c3cd0
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xd8]
call fcn.1400ddf30
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400c35f0
movzx eax, al
test eax, eax
je 0x1400e7364
jmp 0x1400e732f
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x148]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x3d0]
add rax, 0x28
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.1400bec30
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x3d0]
call qword [rsp + 0x80]
nop
mov byte [rsp + 0x20], 0
call fcn.1401368e0
jmp fcn.140aa2950
add rsp, 0x3c8
ret
Function at 0x1400e9a70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x1400e9a95
xor eax, eax
jmp 0x1400e9c5b
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1400e9abe
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call 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]
jmp 0x1400e9c5b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x1400e9b5d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140071da0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
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, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140076670
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1400e9c4b
mov rcx, qword [rsp + 0x70]
call fcn.1400d6ed0
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400e9bfe
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1400e9bfc
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1400e9c5b
jmp 0x1400e9b83
cmp qword [rsp + 0x20], 0
jbe 0x1400e9c4b
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x1400e9c60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x1400e9c99
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x1400e9d87
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x1400e9d2f
cmp qword [rsp + 0x20], 0
jle 0x1400e9d2f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1400e9cd9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140076670
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x1400e9d77
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1400e9d77
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x1400f1af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rdx, [0x14021a01c]
mov rcx, qword [rsp + 0x90]
call fcn.1400c3410
movzx eax, al
test eax, eax
je 0x1400f1bc2
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x28]
call fcn.1400bc870
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400e6240
lea rdx, [0x14021a024]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400f1bb2
mov rcx, qword [rsp + 0x98]
call fcn.1400c9e00
cdqe
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400b6dd0
mov qword [rsp + 0x40], rax
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400f1c96
lea rdx, [0x140213a06]
mov rcx, qword [rsp + 0x98]
call fcn.1400c3410
movzx eax, al
test eax, eax
je 0x1400f1c33
lea rdx, [0x140213a07]
mov rcx, qword [rsp + 0xa0]
call fcn.1400c3410
movzx eax, al
test eax, eax
je 0x1400f1c33
mov rcx, qword [rsp + 0xa8]
call fcn.1400b6dd0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400b6dd0
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x1400f1c96
mov rcx, qword [rsp + 0xa8]
call fcn.1400b6dd0
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xa0]
call fcn.1400b6dd0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400b6dd0
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400b6dd0
mov qword [rsp + 0x70], rax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
nop
mov rcx, qword [rsp + 0x90]
call fcn.1400c12e0
nop
mov rcx, qword [rsp + 0x98]
call fcn.1400c12e0
nop
mov rcx, qword [rsp + 0xa0]
call fcn.1400c12e0
nop
mov rcx, qword [rsp + 0xa8]
call fcn.1400c12e0
add rsp, 0x88
ret

Function at 0x1400f3430
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140071e30
nop
lea rcx, [rsp + 0x40]
call fcn.1400f5ed0
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x40]
call fcn.140072130
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400f346c
jmp 0x1400f34cb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x1400f3484
jmp 0x1400f34cb
mov r8, qword [rsp + 0x70]
lea rdx, [0x1402161c8]
lea rcx, [0x1404af1e8]
call fcn.1400c9380
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1404af1e8]
mov rcx, qword [rsp + 0x28]
call fcn.1400bc870
mov qword [rsp + 0x30], rax
mov edx, 0x3aa
mov rcx, qword [rsp + 0x30]
call fcn.14013acd0
mov al, 1
add rsp, 0x68
ret
Function at 0x1400f3de0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rcx, qword [rsp + 0x80]
call fcn.1400d8190
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1400df950
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x30]
lea rdx, [0x140215d28]
mov rcx, qword [rsp + 0x38]
call fcn.1400c4050
mov qword [rsp + 0x40], rax
mov edx, 0x356
mov rcx, qword [rsp + 0x40]
call fcn.14013acd0
nop
lea rcx, [rsp + 0x48]
call fcn.1400c12e0
cmp dword [rsp + 0x20], 0
je 0x1400f3e99
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rdx, [0x140215d48]
mov rcx, qword [rsp + 0x50]
call fcn.1400bc990
mov qword [rsp + 0x58], rax
mov edx, 0x359
mov rcx, qword [rsp + 0x58]
call fcn.14013acd0
xor al, al
jmp 0x1400f3e9b
mov al, 1
add rsp, 0x78
ret

Function at 0x1400f4130
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
cmp eax, 0x804
jne 0x1400f414f
mov al, 1
jmp 0x1400f4181
movzx eax, word [rsp + 0x20]
cmp eax, 0x404
jne 0x1400f415f
mov al, 1
jmp 0x1400f4181
movzx eax, word [rsp + 0x20]
cmp eax, 0xc04
jne 0x1400f416f
mov al, 1
jmp 0x1400f4181
movzx eax, word [rsp + 0x20]
cmp eax, 0x1004
jne 0x1400f417f
mov al, 1
jmp 0x1400f4181
xor al, al
add rsp, 0x38
ret

Function at 0x1400f6860
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x1400f6918
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.eQ_tc
mov rcx, qword [rsp + 0x28]
call fcn.1400bc990
mov qword [rsp + 0x30], rax
mov edx, 0x611
mov rcx, qword [rsp + 0x30]
call fcn.14013acd0
mov dword [rsp + 0x20], 0
jmp 0x1400f68be
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x64
jge 0x1400f6914
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x1400f6907
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str._tc9_w
mov rcx, qword [rsp + 0x38]
call fcn.1400bc990
mov qword [rsp + 0x40], rax
mov edx, 0x615
mov rcx, qword [rsp + 0x40]
call fcn.14013acd0
mov al, 1
jmp 0x1400f691a
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400f68b4
mov al, 1
jmp 0x1400f691a
xor al, al
add rsp, 0x68
ret