joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400286b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002873b
mov rsi, rbx
cmp word [rax], bp
je 0x1400286fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400286e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400286e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002082c
mov rdi, rax
test rax, rax
je 0x140028728
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000f210
mov rbp, rdi
xor ecx, ecx
call fcn.1400207f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002f760
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400247a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400247a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002f8b0
cmp rax, 0xffffffffffffffff
je 0x14002f8b0
xor edi, edi
test rbp, rbp
jle 0x14002f85b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140020778
mov rbx, rax
test rax, rax
jne 0x14002f7e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002f851
mov edx, 0x8000
mov ecx, r14d
call fcn.14001d54c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140022a58
cmp eax, 0xffffffff
je 0x14002f831
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002f7f8
mov edx, r15d
mov ecx, r14d
call fcn.14001d54c
jmp 0x14002f851
cmp byte [rsi + 0x38], dil
je 0x14002f848
cmp dword [rsi + 0x34], 5
jne 0x14002f848
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002f851
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400207f0
jmp 0x14002f8c4
jns 0x14002f8c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400247a0
cmp rax, 0xffffffffffffffff
jne 0x14002f87c
cmp byte [rsi + 0x30], dil
je 0x14002f8c4
mov edi, dword [rsi + 0x2c]
jmp 0x14002f8c4
mov ecx, r14d
call fcn.140028c38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002f8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002f8c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002f8bd
mov eax, dword [rsi + 0x2c]
jmp 0x14002f8c2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400247a0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140033c50
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
mov dword [rax - 0x2c], 0x320022
lea rcx, [rsp + 0x2c]
mov dword [rax - 0x28], 0x1b0072
mov dword [rax - 0x24], 0xf0009
mov dword [rax - 0x20], 0x16003b
mov dword [rax - 0x1c], 0x370036
mov eax, 0x75
mov word [rsp + 0x40], ax
call fcn.14000b860
mov rsi, qword [rax]
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140033ccc
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000e1a8
test rax, rax
jne 0x140033d3c
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140033cb3
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [0x1400a58b0], rax
mov dword [rsp + 0x20], 0x30007
mov dword [rsp + 0x24], 0x390044
mov dword [rsp + 0x28], 0x430020
call fcn.140003180
mov rsi, qword [rax]
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140033d2c
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000e1a8
test rax, rax
jne 0x140033d2c
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140033d13
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x140033cce

Function at 0x140033d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rbp, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140033dd7
nop dword [rax]
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rbp
mov esi, dword [r14 + rax*4]
add rsi, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140033df6
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140033db0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140033dd9
Function at 0x1400342c0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x1400a58b8]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x1f003a
mov dword [rbp - 0x1c], 0x390045
mov dword [rbp - 0x18], 0x700020
mov dword [rbp - 0x14], 0x79004b
mov dword [rbp - 0x10], 0x1e0001
mov dword [rbp - 0xc], 0x560019
call fcn.140009f00
mov rcx, qword [rax]
call rbx
movdqa xmm0, xmmword [0x140047010]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400a58a8], rax
mov word [rbp - 0x10], 0x1d3d
mov byte [rbp - 0xe], 0x69
call fcn.14000a4c0
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x39451f3a
mov dword [rbp - 0x1c], 0x32010620
mov dword [rbp - 0x18], 0x33010706
mov word [rbp - 0x14], 0x5235
call fcn.140009ac0
mov r11, qword [0x1400a58a8]
mov rdi, qword [rax]
test r11, r11
je 0x140034414
test rdi, rdi
je 0x140034414
movsxd rax, dword [r11 + 0x3c]
xor r10d, r10d
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r14
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov esi, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add rsi, r11
mov r14d, dword [rcx + 0x24]
add r9, r11
mov ebx, dword [rcx + 0x18]
add r14, r11
test ebx, ebx
je 0x1400343e3
nop dword [rax + rax]
mov eax, dword [r9]
mov r8, rdi
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400343d3
inc rax
test ecx, ecx
jne 0x1400343c0
test edx, edx
je 0x140034400
inc r10d
add r9, 4
cmp r10d, ebx
jb 0x1400343b0
mov qword [0x1400a5890], 0
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
movzx ecx, word [r14 + r10*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
mov qword [0x1400a5890], rax
jmp 0x1400343ee
mov qword [0x1400a5890], 0
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001a750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a7e0
cmp r11, r10
ja 0x14001a856
cmp r10, rdx
ja 0x14001a86a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a7e2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a7c0
jmp 0x14001a844
ja 0x14001a7ea
mov r11, r10
cmp rax, r8
jne 0x14001a784
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a820
mov rdi, r8
sub ecx, edx
jns 0x14001a83b
jmp 0x14001a846
cmp r8, rsi
je 0x14001a87b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a846
xor al, 1
cmp rdi, rsi
jne 0x14001a800
jmp 0x14001a846
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413b8b90]
mov rcx, r11
mov rdx, r10
call fcn.1400514f0
ud2
lea r8, [0x1413b8b90]
mov rcx, r10
call fcn.1400512c0
ud2
lea rcx, [0x1413bd230]
lea r8, [0x1413b8b78]
mov edx, 0x2b
call fcn.140051330
ud2
Function at 0x14004742c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047228
Function at 0x140002170
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140077010]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx eax, byte [0x1400d81d8]
mov rsi, rcx
test al, al
jne 0x1400021c8
movsxd rax, dword [rcx]
lea rcx, [0x140062a50]
mov rcx, qword [rcx + rax*8]
call fcn.140045500
test al, al
je 0x14000236b
mov byte [0x1400d81d8], 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005d480
add rsp, 0x60
pop rsi
ret
cmp al, 1
jne 0x14000236b
mov qword [rsp + 0x78], rbx
lea rcx, [0x140062250]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r14
vmovaps xmmword [rsp + 0x40], xmm6
call fcn.140045500
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140002217
imul rax, rax, 0x64
jmp 0x140002235
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffffbd3e27e
lea rdi, [rax + 0x42c1d80]
cmp rax, rcx
jle 0x140002255
movabs rdi, 0x7fffffffffffffff
vmovsd xmm6, qword [0x14006a4a0]
movabs rbp, 0x311cdad160000
movabs r14, 0x112e0be826d694b3
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14000228f
imul rbx, rax, 0x64
jmp 0x1400022b0
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
cmp rdi, rbx
je 0x14000231d
jl 0x14000231d
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rcx, rax, 0x64
mov rax, rdi
sub rax, rbx
vxorps xmm0, xmm0, xmm0
vcvtsi2sd xmm0, xmm0, rax
vcomisd xmm0, xmm6
jbe 0x1400022df
mov rax, rbp
lea r8, [rcx + rbp]
jmp 0x1400022e3
lea r8, [rax + rcx]
add rcx, rax
mov rax, r14
imul rcx
lea rcx, [rsp + 0x20]
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
mov qword [rsp + 0x20], rdx
sub r8d, eax
mov dword [rsp + 0x28], r8d
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x140002271
vmovaps xmm6, xmmword [rsp + 0x40]
lea rbx, [0x1400627b0]
mov r14, qword [rsp + 0x50]
lea rdi, [0x140062a48]
mov rbp, qword [rsp + 0x80]
nop
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140002358
mov eax, dword [rbx]
mov dword [rsi], eax
mov byte [0x1400d81d8], 0
add rbx, 4
cmp rbx, rdi
jne 0x140002340
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005d480
add rsp, 0x60
pop rsi
ret
Function at 0x140007200
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.14005e4f0
sub rsp, rax
mov rax, qword [0x140077010]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r8d, [rdi + 0x3e]
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x30]
call fcn.14000b460
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [rdi + 1]
nop dword [rax]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140007290
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
lea rcx, [rsp + 0x50]
call fcn.14000c0d0
mov ecx, eax
imul rax, rcx, 0x17d
cmp eax, 0xf
ja 0x1400072ed
lea rcx, [rsp + 0x50]
call fcn.14000c0d0
mov ecx, eax
imul rax, rcx, 0x17d
cmp eax, 0x10
jb 0x1400072d5
shr rax, 0x20
add eax, 0x154
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
je 0x1400073df
mov r14d, eax
nop dword [rax + rax]
mov eax, ebp
cmp ebp, 0x80000000
jb 0x14000734d
cmp ebp, 0xffffffff
jne 0x14000734d
lea rcx, [rsp + 0x50]
call fcn.14000c0d0
mov ecx, eax
jmp 0x14000738c
lea edi, [rax + 1]
lea rcx, [rsp + 0x50]
call fcn.14000c0d0
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x140007388
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x140007388
lea rcx, [rsp + 0x50]
call fcn.14000c0d0
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140007374
shr rcx, 0x20
lea rdx, [rsp + 0x30]
cmp r13, 0x10
cmovae rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400073cd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400073c2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400073d5
mov rcx, rbx
call fcn.14000b880
sub r14, 1
jne 0x140007330
cmp r13, 0x10
jb 0x140007419
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140007411
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007411
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14005d818
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14005d480
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140009a90
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 case.default.0x140009ab1
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 0x140009ade
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140009ae0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140009b39
test ecx, ecx
jle 0x140009b19
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 0x140009b39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140009b39
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 0x140009b60
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 0x140009b82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140009b91
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 0x140009bb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009bb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009bf2
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 [rsi + 0x80], 0
je 0x140009c8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140009c2d
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 0x140009c6e
nop word [rax + 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 0x140009c8e
cmp rbx, rax
ja 0x140009c40
test rbx, rbx
je 0x140009c8e
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
sub eax, 0x6c2d666f
imul esp, dword [rsi + 0x65], 0x65657405
je 0x1400d656e
je 0x1400d6574
Function at 0x14000a0c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140077010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a0ed
xor eax, eax
jmp 0x14000a259
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a127
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a127
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 0x14000a259
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a24c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a16a
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 0x14000a195
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 0x14000a251
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 0x14000a204
sub eax, 1
je 0x14000a204
cmp eax, 2
jne 0x14000a24c
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 0x14000a251
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a232
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 0x14000a24c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a251
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005d480
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000a960
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140077010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000aa33
cmp byte [rcx + 0x71], 0
je 0x14000aa33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000aa2f
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 0x14000a9f4
sub eax, 1
je 0x14000a9f8
cmp eax, 2
jne 0x14000aa2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005d480
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000aa26
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 0x14000aa2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000a9dc
xor al, al
jmp 0x14000a9dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005d480
add rsp, 0x60
pop rbx
ret
Function at 0x14000c0d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000c131
lea r8, [r9 + 8]
nop dword [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 r10, 1
jne 0x14000c0f0
mov ecx, dword [r9]
jmp 0x14000c218
cmp ecx, 0x4e0
jb 0x14000c218
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000c150
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000c1a0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret