joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114a00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140114a42
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140114a89
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140114ae2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140114aa0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140114b23
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401297bb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401297bc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140114af0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140114b48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140114b82
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140114b87
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140114bd0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140114bd0
dec r8
sub rdx, 1
jne 0x140114bb6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140116698
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401166e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401166e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401166e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401166e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1401166e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401166e4
xor al, al
add rsp, 0x28
ret

Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x340
mov ebx, 6
lea rcx, [rsp + 0x20]
mov edx, ebx
lea rax, [0x140002250]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140001020
movups xmm0, xmmword [rax]
mov rax, qword [rax + 0x10]
mov edx, 0x318
mov r9d, 0x40
mov r8d, 0x1000
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rax
nop word [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rbx, 1
jne 0x1400010b0
movups xmm0, xmmword [rcx]
mov rax, qword [rcx + 0x10]
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rax
call r8
xor eax, eax
add rsp, 0x340
pop rbx
ret

Function at 0x1400019f8
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x004120d8]
jne 0x4031ba
rol rcx, 0x10
test cx, 0xffff
jne 0x4031b6
repz ret
ror rcx, 0x10
jmp 0x404570
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00461920]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00461a18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x4045f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x00461920]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x404617
mov rax, qword [rsp + 0x88]
mov qword [0x00461a18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004619b8], rax
mov rax, qword [0x00461a18]
mov qword [0x00461890], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004619a0], rax
mov dword [0x00461880], 0xc0000409
mov dword [0x00461884], 1
mov rax, qword [0x004120d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004120e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00461918], eax
mov ecx, 1
call fcn.00404c50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040d538]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00461918], 0
jne 0x40469e
mov ecx, 1
call fcn.00404c50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x40a340
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00404dd0
xor ebx, ebx
cmp qword [0x00462608], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x40a471
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x40a3a3
xor eax, eax
jmp 0x40a551
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x40a39c
mov rcx, rax
call fcn.00404d60
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x00462608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404d60
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x00462610], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404d60
lea rcx, [rsp + 0x30]
mov qword [0x00462618], rax
call fcn.004056a0
test eax, eax
je 0x40a427
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00403490
cmp dword [rsp + 0x30], 2
jne 0x40a471
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404d60
test rax, rax
mov qword [0x00462628], rax
je 0x40a471
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404d60
mov qword [0x00462620], rax
mov rcx, qword [0x00462620]
cmp rcx, rsi
je 0x40a503
cmp qword [0x00462628], rsi
je 0x40a503
call fcn.00404e30
call rax
test rax, rax
mov rbp, rax
je 0x40a4ce
mov rcx, qword [0x00462628]
call fcn.00404e30
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x40a4ce
test byte [rsp + 0x48], 1
jne 0x40a503
lea rcx, [rsp + 0x34]
call fcn.004056f0
test eax, eax
je 0x40a4f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00403490
cmp dword [rsp + 0x34], 4
jb 0x40a4fd
bts edi, 0x15
jmp 0x40a537
bts edi, 0x12
jmp 0x40a537
mov rcx, qword [0x00462610]
cmp rcx, rsi
je 0x40a537
call fcn.00404e30
call rax
test rax, rax
mov rbx, rax
je 0x40a537
mov rcx, qword [0x00462618]
cmp rcx, rsi
je 0x40a537
call fcn.00404e30
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00462608]
call fcn.00404e30
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x14001124e
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018940
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140029010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, rcx
xor esi, esi
mov dword [rbp - 0x49], esi
cmp qword [rcx + 0x68], rsi
je 0x140018b17
cmp byte [rcx + 0x71], sil
je 0x140018b17
call fcn.1400113d4
mov ebx, eax
mov r8, qword [r14]
mov edx, eax
mov rcx, r14
call qword [r8 + 0x18]
mov dword [rbp - 0x45], eax
mov dword [rbp - 0x49], ebx
lea rdx, [rbp - 0x45]
lea rcx, [rbp - 0x49]
call fcn.140011a00
test al, al
je 0x1400189c2
xor al, al
jmp 0x140018b19
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x41]
call fcn.140011901
nop
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x41]
call fcn.1400119d8
mov rbx, rax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x41]
call fcn.1400119d8
mov rdi, rax
mov rcx, rbx
call fcn.1400110c8
mov rbx, rax
lea rcx, [rbp - 0x41]
call fcn.1400118d4
add rbx, rax
mov rcx, rdi
call fcn.1400110c8
mov r8, rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea rdx, [r14 + 0x74]
mov rcx, qword [r14 + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov ebx, eax
lea rcx, [rbp + 7]
call fcn.140011433
nop
lea rcx, [rbp + 0x1f]
call fcn.140011433
test ebx, ebx
je 0x140018a53
sub ebx, 1
jne 0x140018afe
jmp 0x140018a58
mov byte [r14 + 0x71], 0
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x41]
call fcn.1400119d8
nop
mov rcx, rax
call fcn.1400110c8
mov rbx, qword [rbp + 0x37]
sub rbx, rax
lea rcx, [rbp - 0x19]
call fcn.140011433
test rbx, rbx
je 0x140018ac1
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x41]
call fcn.1400119d8
nop
or esi, 1
mov dword [rbp - 0x49], esi
mov rcx, rax
call fcn.1400110c8
mov rcx, rax
mov r9, qword [r14 + 0x80]
mov r8, rbx
mov edx, 1
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp rbx, rax
je 0x140018ac1
mov dil, 1
jmp 0x140018ac4
xor dil, dil
test sil, 1
je 0x140018ad6
and esi, 0xfffffffe
lea rcx, [rbp - 0x19]
call fcn.140011433
test dil, dil
jne 0x140018b07
cmp byte [r14 + 0x71], dil
je 0x140018b03
test rbx, rbx
jne 0x1400189d3
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x41]
call fcn.14001119a
jmp 0x1400189d3
sub ebx, 2
jne 0x140018b07
mov bl, 1
jmp 0x140018b09
xor bl, bl
lea rcx, [rbp - 0x41]
call fcn.1400111f4
movzx eax, bl
jmp 0x140018b19
mov al, 1
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140011988
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011519
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c420
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c440
xor al, al
jmp 0x14001c4c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c453
xor al, al
jmp 0x14001c4c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001c47d
xor al, al
jmp 0x14001c4c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001c491
xor al, al
jmp 0x14001c4c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001c4a3
xor al, al
jmp 0x14001c4c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001c4bf
xor al, al
jmp 0x14001c4c1
mov al, 1
add rsp, 0x38
ret

Function at 0x14001164f
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b950
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400047b0
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.0x1400047d1
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 0x1400047fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004800
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004859
test ecx, ecx
jle 0x140004839
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 0x140004859
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004859
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
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
dec ecx
leave
leave
invalid
Function at 0x140004880
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 0x1400048a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400048b1
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 0x1400048d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400048d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004912
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 0x1400049ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000494d
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 0x14000498e
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 0x1400049ae
cmp rbx, rax
ja 0x140004960
test rbx, rbx
je 0x1400049ae
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
div dh
not byte [rax]
div dh
imul byte [rdi - 0x9090a]
div dh
idiv bh
div dh
idiv bh
div dh
idiv bh
div dh
idiv bh
div dh
idiv bh
pushfq
pushfq
pushfq
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
inc dword [rdx + 0x42]
Function at 0x140004e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004e3d
xor eax, eax
jmp 0x140004fa9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004e77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004e77
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 0x140004fa9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004f9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004eba
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 0x140004ee5
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 0x140004fa1
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 0x140004f54
sub eax, 1
je 0x140004f54
cmp eax, 2
jne 0x140004f9c
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 0x140004fa1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004f82
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 0x140004f9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004fa1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007b30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005350
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005423
cmp byte [rcx + 0x71], 0
je 0x140005423
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000541f
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 0x1400053e4
sub eax, 1
je 0x1400053e8
cmp eax, 2
jne 0x14000541f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007b30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005416
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 0x14000541f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400053cc
xor al, al
jmp 0x1400053cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007b30
add rsp, 0x60
pop rbx
ret