joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f5530
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 0x1400f5572
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 0x1400f55b9
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 0x1400f5612
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 0x1400f55d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400f5653
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14010a87b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14010a87c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400f5620
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 0x1400f5678
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 0x1400f56b2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400f56b7
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 0x1400f5700
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 0x1400f5700
dec r8
sub rdx, 1
jne 0x1400f56e6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400f5ec4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400f5790
mov ebx, eax
test eax, eax
jne 0x1400f5ef4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400f5f57
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f5f4e
test al, 0x10
je 0x1400f5f4e
bt eax, 0xa
jae 0x1400f5f47
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400f5f68
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400f5f43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400f5f43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400f5f4e
and dword [rsp + 0x3c], 0
jmp 0x1400f5f53
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f73f8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004b60]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004b70]
mov dword [rax], 1
mov rax, qword [0x140004b80]
mov dword [rax], 1
mov rax, qword [0x140004b10]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004b50]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004c20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004c00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004ac0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows fibers

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x7b0
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
call rax
mov qword [rbp + 0x720], rax
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov ecx, 0xed
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, word [rdx]
mov word [rax], cx
lea rax, [rax + 2]
lea rdx, [rdx + 2]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov dword [rbp + 0x72c], 0
jmp 0x1400014f4
mov eax, dword [rbp + 0x72c]
cdqe
movzx eax, byte [rbp + rax - 0x60]
xor eax, 0x41
mov edx, eax
mov eax, dword [rbp + 0x72c]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0x72c], 1
mov eax, dword [rbp + 0x72c]
cdqe
cmp rax, 0x76e
jbe 0x1400014cf
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x76f
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x718], rax
mov rax, qword [rbp + 0x718]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x76f
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x718]
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFiber]
call rax
mov qword [rbp + 0x710], rax
mov rax, qword [rbp + 0x710]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SwitchToFiber]
call rax
mov eax, 0
add rsp, 0x7b0
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001890
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002260
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022af
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002340
mov rdx, qword [0x140004b10]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000232e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000232e
cmp word [rax + 0x18], 0x20b
jne 0x14000232e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002340
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002319
add rbx, 0x28
cmp rbx, rdi
je 0x140002340
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002310
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004b10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002370
add rax, 0x28
cmp rax, r9
jne 0x1400023b0
xor eax, eax
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004b10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004b10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002430
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002477
test rcx, rcx
je 0x140002430
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002468
xor eax, eax
ret
Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004b10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400024d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004b10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400024f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002544
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002550
add rdx, 0x28
cmp r9, rdx
jne 0x140002530
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004b10]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002582
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002582
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400025e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400025d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ee
test ecx, ecx
jg 0x140002600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000ecf0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400aa040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rdx
xor ebp, ebp
movzx ecx, byte [rcx]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [rdi + 1]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [rdi + 2]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [rdi + 3]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [rdi + 4]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [rdi + 5]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [rdi + 6]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [rdi + 7]
xor rcx, rax
imul rcx, rdx
mov rdx, qword [0x1400ad120]
and rdx, rcx
mov rax, rdx
add rax, rax
mov rcx, qword [0x1400ad108]
mov rax, qword [rcx + rax*8 + 8]
mov r8, qword [0x1400ad0f8]
cmp rax, r8
je 0x14000edd1
add rdx, rdx
mov rdx, qword [rcx + rdx*8]
mov rcx, qword [rdi]
cmp rcx, qword [rax + 0x10]
je 0x14000edd4
nop dword [rax + rax]
cmp rax, rdx
je 0x14000edd1
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x14000edc0
jmp 0x14000edd4
mov rax, rbp
mov rcx, r8
test rax, rax
cmovne rcx, rax
cmp rcx, r8
je 0x14000ee04
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.140011210
mov rdx, qword [rax]
add rdx, 0x18
mov rcx, rbx
call fcn.140004000
jmp 0x14000eefd
mov rcx, qword [rdi]
add rcx, 0x48
call fcn.140010f80
test rax, rax
je 0x14000eec0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000eaa0
nop
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.140011210
mov rcx, qword [rax]
add rcx, 0x18
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x14000ee90
mov rdi, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova r9, qword [rsp + 0x38]
mov rax, qword [rcx + 0x18]
cmp rdi, rax
ja 0x14000ee88
mov rsi, rcx
cmp rax, 0xf
jbe 0x14000ee70
mov rsi, qword [rcx]
mov qword [rcx + 0x10], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rsi], 0
jmp 0x14000ee90
mov rdx, rdi
call fcn.140011770
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call fcn.140003f60
jmp 0x14000eefd
mov dword [rsp + 0x20], 0x3f3f3f15
mov byte [rsp + 0x24], bpl
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
lea rax, [rsp + 0x21]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bpl
jne 0x14000eee7
lea rdx, [rsp + 0x21]
mov rcx, rbx
call fcn.140005040
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081740
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ef20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400aa040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, r8
mov r15, rdx
mov qword [rbp - 0x28], r8
xor r12d, r12d
lea rdx, [rbp - 0x20]
lea rcx, [0x1400ab798]
call fcn.14000f0d0
nop
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
cmp rdi, r14
je 0x14000f054
nop dword [rax]
mov rcx, qword [rdi]
add rcx, 0x18
call fcn.140010f80
mov rbx, rax
lea rcx, [rax + 8]
call fcn.140010f80
test rbx, rbx
je 0x14000efab
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14000eaa0
jmp 0x14000effb
mov dword [rbp - 0x60], 0x3f3f3f61
mov dword [rbp - 0x5c], 0x616c635f
mov dword [rbp - 0x58], 0x616e7373
mov word [rbp - 0x54], 0x656d
mov byte [rbp - 0x52], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
lea rax, [rbp - 0x5f]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000efe4
lea rdx, [rbp - 0x5f]
lea rcx, [rbp - 0x50]
call fcn.140005040
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14000f008
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rcx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
cmp r8, qword [rsi + 0x10]
jne 0x14000f03a
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000f03a
lea rcx, [rbp - 0x50]
call fcn.140003f60
mov rax, qword [rdi]
mov qword [r15], rax
jmp 0x14000f043
lea rcx, [rbp - 0x50]
call fcn.140003f60
add rdi, 8
cmp rdi, r14
jne 0x14000ef80
mov rdi, qword [rbp - 0x20]
test rdi, rdi
je 0x14000f09d
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 3
lea rdx, [rax*8]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000f094
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f094
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400817a4
nop
mov rcx, rsi
call fcn.140003f60
mov rax, r15
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140081740
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000fa00
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 0x14000fa28
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 0x14000fa4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000fa50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000faa9
test ecx, ecx
jle 0x14000fa89
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 0x14000faa9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000faa9
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 0x14000fad0
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 0x14000faf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000fb08
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 0x14000fb24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000fb26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000fb62
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 0x14000fbfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000fb9d
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 0x14000fbde
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 0x14000fbfe
cmp rbx, rax
ja 0x14000fbb0
test rbx, rbx
je 0x14000fbfe
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
Function at 0x140010030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400aa040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001005d
xor eax, eax
jmp 0x1400101c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140010097
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140010097
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 0x1400101c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400101bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400100da
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 0x140010105
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 0x1400101c1
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 0x140010174
sub eax, 1
je 0x140010174
cmp eax, 2
jne 0x1400101bc
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 0x1400101c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400101a2
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 0x1400101bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400101c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140081740
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret