joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a1e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000a23d
lea rbx, [0x140057530]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000a224
cmp r10, 2
jb 0x14000a224
cmp byte [r9], r8b
jne 0x14000a224
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000a200
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000a27f
lea rbx, [0x140057530]
cmp r8b, 0x23
jne 0x14000a263
cmp byte [r9], r8b
jne 0x14000a263
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000a250
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000a3c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000a3da
mov qword [r8], 0
lea rdx, [0x140057090]
call fcn.14000a290
mov rbx, rax
test rax, rax
jne 0x14000a3fa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000a4d3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000a4d3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000a4d3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000a4d3
cmp rdi, 0xffffffffffffffff
je 0x14000a4d3
mov rax, qword [0x140066848]
test rax, rax
je 0x14000a470
inc dword [rax + 0xf0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000a4d3
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000a4c0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140066848]
test rax, rax
je 0x14000a4b5
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000a4dc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000a4ce
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000a4de
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000dcc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x140057530]
movsxd rcx, dword [rcx + 0xf0]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0xf8]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x14000dd54
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140021d60
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000dd70
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x110]
lea r10, [0x140057530]
mov rax, qword [rcx + 0xf8]
movss xmm1, dword [rcx + 0x114]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0xf0]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret
Function at 0x1400115e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x140066848]
mov r14d, edx
movaps xmmword [rsp + 0x30], xmm6
mov rbx, qword [rdi + 0x3ed8]
cmp qword [rbx + 0x1a8], 0
jne 0x140011627
cmp qword [rdi + 0x4ba8], 0
mov eax, 0x250
je 0x14001162c
mov eax, 0x220
movss xmm5, dword [rax + rbx]
xorps xmm4, xmm4
movss xmm2, dword [rax + rbx + 4]
xor r15d, r15d
cvttss2si eax, dword [r8]
subss xmm5, dword [rbx + 0x100]
subss xmm2, dword [rbx + 0x104]
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm4
cvtdq2ps xmm0, xmm0
jp 0x140011672
mov eax, 1
je 0x140011675
mov eax, r15d
ucomiss xmm0, xmm4
jp 0x140011682
jne 0x140011682
mov r15d, 2
movss xmm3, dword [0x14005ca24]
or r15d, eax
comiss xmm4, xmm1
jb 0x14001169d
addss xmm5, xmm1
movaps xmm1, xmm5
maxss xmm1, xmm3
comiss xmm4, xmm0
jb 0x1400116ad
addss xmm2, xmm0
movaps xmm0, xmm2
maxss xmm0, xmm3
or dword [rdi + 0x47c0], 2
xor edx, edx
movss dword [rdi + 0x47e0], xmm1
movss dword [rdi + 0x47e4], xmm0
mov dword [rdi + 0x47c8], 1
mov r9, qword [rbx + 8]
test rcx, rcx
je 0x1400116f6
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.14000a0c0
jmp 0x14001170c
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x60]
call fcn.14000a0c0
mov rcx, qword [rsp + 0x60]
xor edx, edx
movss xmm6, dword [rdi + 0x37f8]
mov r8d, 0x1000107
call fcn.140014360
mov rsi, qword [rdi + 0x3ed8]
movzx ebp, al
movss dword [rdi + 0x37f8], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], r14d
mov byte [rsi + 0xd2], r15b
jne 0x14001175d
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, r14d
lea rdx, [0x140056609]
not r9d
lea r10, [0x140057530]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x14001178a
cmp byte [rdx], r8b
jne 0x14001178a
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140011777
not ebx
cmp dword [rdi + 0x3f38], ebx
jne 0x1400117ba
xor edx, edx
xor ecx, ecx
call fcn.14000df60
cmp dword [rdi + 0x48e8], r14d
jne 0x140011800
cmp word [rsi + 0x15c], 0
jne 0x1400117d6
cmp byte [rsi + 0x162], 0
je 0x140011800
xor edx, edx
mov rcx, rsi
call fcn.1400167a0
xor edx, edx
mov rcx, rsi
call fcn.14001c940
mov rdx, rsi
mov ecx, ebx
call fcn.14000df60
mov eax, dword [rdi + 0x490c]
mov dword [rdi + 0x3f60], eax
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001aa90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140066848]
mov edi, ecx
cmp byte [rbx + 0x4af1], 0
jne 0x14001aaf1
cmp byte [rbx + 0x4af2], 0
jne 0x14001aaf1
movsx r9d, word [rbx + 0x5c24]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000a040
test dil, 2
je 0x14001ac1f
jmp 0x14001ab7c
movss xmm1, dword [rbx + 0x3894]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5c24]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005ca54]
mov edx, 0x10
mulss xmm1, dword [0x14005ca48]
addss xmm0, dword [rbx + 0xe00]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x47d8], rax
mov dword [rbx + 0x47c4], 1
movss dword [rbx + 0x47d0], xmm0
movss dword [rbx + 0x47d4], xmm1
movss xmm0, dword [rbx + 0x38f0]
mulss xmm0, dword [0x14005c98c]
or dword [rbx + 0x47c0], 0x41
movss dword [rbx + 0x4820], xmm0
call fcn.14000a040
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001abd0
lea r11, [0x140057530]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001abb3
cmp byte [r8], r9b
jne 0x14001abb3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001aba0
not ecx
call fcn.140011b40
test rax, rax
je 0x14001ac1f
cmp byte [rax + 0xb6], 0
je 0x14001ac1f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5c24]
movsx r9d, word [rbx + 0x5c24]
call fcn.14000a040
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140014360
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140053360
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400205b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5d78], 0
lea rbx, [rcx + 0x5d80]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140020657
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002060a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140022a10
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000ab50
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5d78]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5d88]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140066858]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002065f
mov rcx, rbx
call fcn.14000ab50
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140020ae0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140066848]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140020b43
mov qword [rsp], rbx
lea rbx, [0x140057530]
nop dword [rax]
cmp r9b, 0x23
jne 0x140020b23
cmp byte [r8], r9b
jne 0x140020b23
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140020b10
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5ce8]
not eax
mov r8, qword [r10 + 0x5cf0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140020b6f
cmp dword [r8 + 8], eax
je 0x140020b76
add r8, 0x48
cmp r8, rcx
jne 0x140020b60
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400348b0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140066848]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140034a7e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140034a7e
mov rax, qword [0x140066848]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
test rax, rax
je 0x14003491b
inc dword [rax + 0xf0]
mov ecx, 0x50
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140034948
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x14003494b
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14005c138]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov rax, qword [0x140066848]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x140034995
mov rsi, qword [rax + 0x90]
jmp 0x140034998
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400349c3
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140066848]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop dword [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140034a3e
inc rbx
cmp rbx, 5
jl 0x140034a20
jmp 0x140034a6a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140034a80
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140053360
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14004fba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
lea r8, [0x140057090]
xor ebx, ebx
lea rcx, [rsp + 0x20]
lea rdx, [0x14005c768]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
jne 0x14004fbf5
mov eax, 0xfffffffd
jmp 0x14004fcae
xor edx, edx
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14004fc14
mov ebx, 0xfffffffd
jmp 0x14004fca1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
js 0x14004fc0a
je 0x14004fca1
movsxd rbx, eax
lea rdx, [0x140055730]
mov qword [rsp + 0x48], rdi
lea rcx, [rbx + 1]
call fcn.140053890
mov rdi, rax
test rax, rax
jne 0x14004fc4a
mov ebx, 0xfffffffe
jmp 0x14004fc9c
xor r8d, r8d
mov byte [rbx + rax], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x14004fc84
mov rcx, rdi
call fcn.1400533bc
mov ebx, 0xfffffffd
jmp 0x14004fc9c
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140050fc0
mov rcx, rdi
mov ebx, eax
call fcn.1400533bc
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140053360
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret

Function at 0x140053fc4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, 0xa
mov ecx, ebx
call qword [sym.imp.kernel32.dll_Sleep]
lea rdx, [rsp + 0x20]
call fcn.7ff66b5749f0
mov r10, rax
mov r8, rax
mov r9, rax
nop dword [rax]
movzx edx, byte [r8]
lea r9, [r9 + 1]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
add cl, cl
shr dl, 7
or cl, dl
mov byte [r9 - 1], cl
movzx eax, byte [r8 - 1]
xor al, 0x69
mov byte [r9 - 1], al
sub rbx, 1
jne 0x7ff66b5749a0
mov rdx, qword [rdi]
xor r9d, r9d
mov r8, r10
xor ecx, ecx
call qword [sym.imp.user32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x7ff66b57ed70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff66b62e900]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff66b57ee43
cmp byte [rcx + 0x71], 0
je 0x7ff66b57ee43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff66b57ee3f
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 0x7ff66b57ee04
sub eax, 1
je 0x7ff66b57ee08
cmp eax, 2
jne 0x7ff66b57ee3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff66b6004e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff66b57ee36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff66b57ee3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff66b57edec
xor al, al
jmp 0x7ff66b57edec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff66b6004e0
add rsp, 0x60
pop rbx
ret

Function at 0x7ff66b5820b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x7ff66b62e900]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.7ff66b600500
mov rdx, qword [rbx]
mov qword [rax], rdx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x7ff66b582a50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x7ff66b582129
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.7ff66b6004e0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x7ff66b585bb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x7ff66b62e900]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x7ff66b62f220]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x7ff66b585bf8
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x7ff66b585bec
mov rax, qword [rax + 0x10]
jmp 0x7ff66b585bf2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x7ff66b585be0
cmp byte [rcx + 0x19], 0
jne 0x7ff66b585cd4
cmp dword [rcx + 0x20], 4
jg 0x7ff66b585cd4
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x7ff66b585c21
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x7ff66b585c53
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x7ff66b585c40
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.7ff66b585570
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x7ff66b585c8e
cmp rcx, qword [rbx + 8]
je 0x7ff66b585c8e
cmp qword [rbx + 0x10], 1
jne 0x7ff66b585c92
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.7ff66b6004e0
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x7ff66b585c78
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.7ff66b585d00
nop
mov r8, rax
lea rdx, [0x7ff66b604ea0]
lea rcx, [rsp + 0x58]
call fcn.7ff66b57faf0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.7ff66b585b50
lea rdx, [0x7ff66b62a990]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x7ff66b604f10]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x7ff66b58fce0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ucrtbase.dll__read]
cdqe
add rsp, 0x28
ret

Function at 0x7ff66b590000
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x7ff66b5900db
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.7ff66b593c40
cmp eax, 4
je 0x7ff66b590058
mov edx, eax
jmp 0x7ff66b590085
cmp byte [0x7ff66b62f504], r14b
jne 0x7ff66b59008f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x7ff66b5900dd
mov eax, dword [rsp + 0x50]
jmp 0x7ff66b5900ae
imul eax, dword [0x7ff66b62f500], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x7ff66b62f500], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x7ff66b5900d2
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x7ff66b5900c0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x7ff66b590030
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x7ff66b5900f0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x7ff66b590193
xor ebp, ebp
lea r14, [0x7ff66b605c50]
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.7ff66b593c40
cmp eax, 4
jne 0x7ff66b59015f
cmp byte [0x7ff66b62f504], bpl
jne 0x7ff66b5901ab
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x7ff66b590198
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x7ff66b590120
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x7ff66b590120
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x7ff66b62f500], 0x41c64e6d
add ecx, 0x3039
mov dword [0x7ff66b62f500], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x7ff66b590167