joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042ff0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x270
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov edx, 0x100
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140043040
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140050930
nop
mov r8d, shutdown
lea rdx, str.InputMethodCHT_
lea rcx, [rsp + 0x28]
call fcn.14004e6f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400430e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400430e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400430e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009f0c8
movdqa xmm0, xmmword [0x140119d20]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140043108
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14004e6f0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140043187
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043181
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043181
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009f0c8
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1400431c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400431bd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400431e9
mov rcx, r8
call fcn.14009f0c8
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rax, rdi
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400431f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r14, [rcx + 0x18]
cmp qword [r14], 7
mov rdi, rcx
mov dword [rsp + 0x60], r15d
jbe 0x140043221
mov rcx, qword [rcx]
lea rsi, [rdi + 0x18]
jmp 0x140043224
mov rsi, r14
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1400432a5
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x140043299
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140043291
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004339b
mov rcx, r8
call fcn.14009f0c8
mov r14, rsi
mov qword [r14], 7
jmp 0x14004337d
cmp rbp, 0xffffffffffffffff
jne 0x1400432fb
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x1400432ed
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400432e8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004339b
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14009f0c8
mov qword [rsi], 7
xor al, al
jmp 0x14004337f
lea r9, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r8d, 0x21a00
mov qword [rsp + 0x20], r15
lea rdx, [0x140179e70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [r14]
test bl, bl
mov rbx, qword [rsp + 0x68]
je 0x1400432ae
cmp rdx, 7
jbe 0x140043376
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140043371
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004339b
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14009f0c8
mov qword [rsi], 7
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov word [rdi], r15w
mov qword [rdi + 0x10], r15
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400433b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r14, [rcx + 0x18]
cmp qword [r14], 7
mov rdi, rcx
mov dword [rsp + 0x60], r15d
jbe 0x1400433e1
mov rcx, qword [rcx]
lea rsi, [rdi + 0x18]
jmp 0x1400433e4
mov rsi, r14
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140043465
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x140043459
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140043451
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004355b
mov rcx, r8
call fcn.14009f0c8
mov r14, rsi
mov qword [r14], 7
jmp 0x14004353d
cmp rbp, 0xffffffffffffffff
jne 0x1400434bb
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x1400434ad
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400434a8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004355b
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14009f0c8
mov qword [rsi], 7
xor al, al
jmp 0x14004353f
lea r9, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], r15
lea rdx, [0x140177340]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [r14]
test bl, bl
mov rbx, qword [rsp + 0x68]
je 0x14004346e
cmp rdx, 7
jbe 0x140043536
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140043531
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004355b
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.14009f0c8
mov qword [rsi], 7
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov word [rdi], r15w
mov qword [rdi + 0x10], r15
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140043870
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edx, edx
mov dword [rbp - 0x49], 0x14e614e5
mov eax, edx
mov dword [rbp - 0x45], 0x14e01495
mov dword [rbp - 0x41], 0x148e14d1
mov ebx, 0x14b9
mov dword [rbp - 0x3d], 0x14f014cd
mov dword [rbp - 0x39], 0x14f214ae
mov dword [rbp - 0x35], 0x14f714b0
mov dword [rbp - 0x31], 0x14b514f6
mov dword [rbp - 0x2d], 0x14ae14a6
mov dword [rbp - 0x29], 0x14ae14ba
mov dword [rbp - 0x25], 0x14a714a7
mov dword [rbp - 0x21], 0x14af14a5
mov dword [rbp - 0x1d], 0x14b414bc
mov dword [rbp - 0x19], 0x14b914bb
mov dword [rbp - 0x15], 0x14a714b4
mov dword [rbp - 0x11], 0x14bc14b1
mov dword [rbp - 0xd], 0x14b014ae
mov dword [rbp - 9], 0x14bd14ac
mov dword [rbp - 5], 0x14e814e8
mov dword [rbp - 1], 0x14e914ef
mov dword [rbp + 3], 0x149914e7
mov dword [rbp + 7], 0x15d31487
mov dword [rbp + 0xb], 0x148c1496
mov dword [rbp + 0xf], 0x14d51482
mov dword [rbp + 0x13], 0x14d014d0
mov dword [rbp + 0x17], 0x1493149e
mov dword [rbp + 0x1b], 0x14de15da
mov dword [rbp + 0x1f], 0x14dd1498
mov dword [rbp + 0x23], 0x14c81488
mov dword [rbp + 0x27], 0x148b14c6
mov dword [rbp + 0x2b], 0x14c614ca
mov dword [rbp + 0x2f], 0x14ce14c6
mov dword [rbp + 0x33], 0x148d149f
mov dword [rbp + 0x37], 0x148e149b
mov dword [rbp + 0x3b], 0x148d149c
mov dword [rbp + 0x3f], 0x149b14ce
mov dword [rbp + 0x43], 0x1488
mov byte [rbp + 0x47], 1
nop dword [rax + rax]
lea ecx, [rbx + rax]
xor word [rbp + rax*2 - 0x49], cx
inc rax
cmp rax, 0x47
jb 0x140043990
mov qword [rsp + 0x30], rdx
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x28], edx
xor r9d, r9d
mov byte [rbp + 0x47], dl
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401d8b70], rax
test rax, rax
je 0x1400439ef
cmp rax, 0xffffffffffffffff
setne al
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret

Function at 0x140043ac0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140043b24
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rbx
test eax, eax
je 0x140043b40
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140043b00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
mov dword [0x1401d8b68], eax
add rsp, 0x260
pop rdi
ret
Function at 0x14004c8a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1401d8b30]
xor edi, edi
test rax, rax
je 0x14004c8bd
mov rcx, qword [rax + 0xa0]
jmp 0x14004c8c0
mov rcx, rdi
cmp qword [rcx + 0x18], rdi
jne 0x14004c8e1
test rax, rax
je 0x14004c8e1
mov rcx, qword [rax + 0xa0]
test rcx, rcx
je 0x14004c8e1
cmp qword [rcx], rdi
je 0x14004c8e1
call fcn.140002560
call fcn.140002f30
call fcn.14000afa0
mov rax, qword [0x1401d8b30]
mov ecx, 0x2d
or dword [rax + 0x3f90], 2
mov dword [rax + 0x3fb0], 0x44160000
mov dword [rax + 0x3fb4], 0x43eb0000
mov dword [rax + 0x3f98], 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14004c938
cmp byte [0x14017733c], dil
sete al
mov byte [0x14017733c], al
jmp 0x14004c93f
movzx eax, byte [0x14017733c]
test al, al
mov rax, qword [0x1401d8b30]
je 0x14004c972
xor edx, edx
mov byte [rax + 0x78], 1
mov r8d, 0xab
lea rcx, [0x1400abfe6]
call fcn.140010e00
test al, al
je 0x14004c96b
call fcn.140044640
call fcn.140013190
jmp 0x14004c976
mov byte [rax + 0x78], dil
call fcn.14004a780
mov rcx, qword [0x1401d8e40]
mov r9d, 1
movss xmm0, dword [0x140119b08]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x1401d8e40]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004c9f6
call fcn.14000db50
mov rax, qword [0x1401d8b30]
mov rcx, qword [rax + 0x4090]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140001f90
mov rcx, qword [0x1401d8e40]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1401d8e40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14004cae3
mov rcx, qword [0x1401d8e40]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14004cae3
mov qword [rsp + 0x50], rbx
mov rbx, qword [0x1401d8b30]
test rbx, rbx
je 0x14004caa0
mov rbx, qword [rbx + 0xa0]
test rbx, rbx
je 0x14004caa0
cmp qword [rbx], rdi
je 0x14004caa0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004ca6b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004ca7e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004caa0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1401d8b30]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rax + 0x58]
mov qword [rcx + 8], rdi
mov rcx, qword [0x1401d8e40]
lea rdx, [0x1401d8ba0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x1401d8b30]
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x14004cae3
mov rax, qword [rax + 0xa0]
test rax, rax
je 0x14004cae3
cmp qword [rax], rdi
je 0x14004cae3
add rsp, 0x40
pop rdi
jmp fcn.140002560
add rsp, 0x40
pop rdi
ret
Function at 0x14004d610
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140118830]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x14004d681
lea rdx, str.failed_to_get_hwid
lea rcx, [rsp + 0x50]
call fcn.1400422a0
lea rdx, [0x14012fcd8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
call fcn.140042170
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret

Function at 0x14004d6b0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
lea rdx, str.cltx6xw3l001dns01a246teuz
lea rcx, [rsp + 0x80]
call fcn.140043b70
nop
lea rcx, [rsp + 0x80]
call fcn.14007aab0
nop
lea rcx, [rsp + 0x80]
call fcn.14004e9f0
lea rcx, [rsp + 0x60]
call fcn.140049570
nop
jmp 0x14004d79a
call fcn.140043870
movzx eax, al
test eax, eax
je 0x14004d7b5
lea rcx, [0x1401187ec]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x14004d7c5
call fcn.140043570
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14004d280
nop
lea rcx, [rsp + 0x60]
call fcn.14004e9f0
jmp 0x14004d7d9
xor eax, eax
add rsp, 0xc8
ret

Function at 0x14004dc60
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.0x14004dc81
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 0x14004dcae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004dcb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004dd09
test ecx, ecx
jle 0x14004dce9
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 0x14004dd09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004dd09
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 0x14004dd30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004dd61
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14004dd78
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004dd9b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004dd9d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004ddd9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004de6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004de14
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 0x14004de4e
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 0x14004de6e
cmp rbx, rax
ja 0x14004de20
test rbx, rbx
je 0x14004de6e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14004e2c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004e2e4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004e327
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x14004e327
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14004e458
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004e36a
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 0x14004e395
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
cmove edi, ecx
mov eax, edi
jmp 0x14004e45d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14004e40a
sub eax, 1
je 0x14004e40a
cmp eax, 2
jne 0x14004e458
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x14004e45d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14004e43b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004e458
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e45d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14004ef60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004f029
cmp byte [rcx + 0x71], 0
je 0x14004f029
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004f01c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14004efd8
sub eax, 1
je 0x14004efdc
cmp eax, 2
jne 0x14004f01c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14004f00a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004f01c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140052cc0
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 0x140052d21
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 0x140052ce0
mov ecx, dword [r9]
jmp 0x140052e0b
cmp ecx, 0x4e0
jb 0x140052e0b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
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 [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140052d40
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140052d90
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