joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042b10
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov eax, dword [0x14022d120]
mov dword [0x14022d0f4], eax
mov rax, qword [0x14022d118]
test rax, rax
jne 0x140042cfc
mov rax, qword gs:[0x60]
xor r11d, r11d
mov qword [rsp + 0x50], rbp
mov r9d, 0x26ec0bc3
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x20], r15
mov rax, qword [rcx + 0x10]
mov rbp, qword [rax]
mov rdi, rbp
nop
movups xmm0, xmmword [rdi + 0x58]
movd eax, xmm0
sub ax, 8
test r11d, r11d
je 0x140042bbd
psrldq xmm0, 8
mov edx, 0x377d5b33
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x140042bb4
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x140042ba0
cmp edx, r11d
jne 0x140042cbf
mov r10, qword [rdi + 0x30]
movsxd rax, dword [r10 + 0x3c]
mov rcx, qword [rax + r10 + 0x88]
mov r15, rcx
mov ebx, ecx
shr r15, 0x20
add rbx, r10
cmp rbx, r10
je 0x140042cbf
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x140042cbf
mov r14d, dword [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x377d5b33
lea rax, [r14 + r8*4]
mov ecx, dword [rax + r10]
add rcx, r10
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x140042c37
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x140042c20
cmp edx, r9d
je 0x140042c43
test r8d, r8d
jne 0x140042c00
jmp 0x140042cbf
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
cmp rax, rbx
jbe 0x140042cd7
lea rcx, [r15 + rbx]
cmp rax, rcx
jae 0x140042cd7
movzx ecx, byte [rax]
mov r11d, 0x377d5b33
mov r9d, r11d
cmp cl, 0x2e
je 0x140042c98
nop dword [rax]
movsx ecx, cl
inc rax
xor ecx, r11d
imul r11d, ecx, 0x1000193
movzx ecx, byte [rax]
cmp cl, 0x2e
jne 0x140042c80
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
je 0x140042cbb
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, r9d
imul r9d, ecx, 0x1000193
movzx ecx, byte [rax]
test cl, cl
jne 0x140042ca3
mov rdi, qword [rbp]
mov rax, qword [rdi]
mov rdi, rax
cmp rax, rbp
je 0x140042cd5
cmp qword [rax + 0x30], 0
jne 0x140042b70
xor eax, eax
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov qword [0x14022d118], rax
call rax
mov ecx, dword [0x14022d0f4]
mov dword [0x14022d120], eax
test ecx, ecx
je 0x140042d45
sub eax, ecx
cmp eax, 0x1770
jbe 0x140042d45
lea rcx, [rsp + 0x40]
mov word [rsp + 0x43], 0x65
mov word [rsp + 0x40], 0x6954
mov byte [rsp + 0x42], 0x6d
mov byte [rsp + 0x45], 0
call fcn.1400429e0
mov qword [0], 1
xor eax, eax
add rsp, 0x38
ret
Function at 0x140045f00
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14022d0c8]
test rax, rax
jne 0x140046136
xor ebx, ebx
mov dword [rsp + 0xb8], ebx
mov r11d, 0x1c0366ba
mov dword [rsp + 0xbc], r11d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rcx]
mov qword [rsp + 0x40], rdx
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov rax, rdx
nop word [rax + rax]
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0x50], xmm0
movd eax, xmm0
sub ax, 8
mov word [rsp + 0x50], ax
test ebx, ebx
je 0x140045fb5
mov rcx, qword [rsp + 0x58]
movzx eax, ax
shr rax, 1
lea r9, [rcx + rax*2]
mov r8d, 0xfeec8af0
mov qword [rsp + 0x30], rcx
cmp rcx, r9
je 0x140045fac
movsx eax, byte [rcx]
xor eax, r8d
imul r8d, eax, 0x1000193
add rcx, 2
jmp 0x140045f8f
cmp r8d, ebx
jne 0x14004610f
mov r10, qword [rdx + 0x30]
mov qword [rsp + 0x68], r10
movsxd rax, dword [r10 + 0x3c]
mov r14, qword [rax + r10 + 0x88]
mov qword [rsp + 0xc0], r14
mov r8d, r14d
add r8, r10
mov qword [rsp + 0x70], r8
shr r14, 0x20
mov dword [rsp + 0x60], r14d
cmp r8, r10
je 0x14004610f
mov edi, dword [r8 + 0x18]
mov dword [rsp + 0x20], edi
nop word [rax + rax]
mov eax, edi
dec edi
mov dword [rsp + 0x20], edi
test eax, eax
je 0x14004610f
mov ecx, dword [r8 + 0x20]
add rcx, r10
mov eax, dword [rcx + rdi*4]
add rax, r10
mov qword [rsp + 0x38], rax
mov r9d, 0xfeec8af0
nop dword [rax + rax]
movsx ecx, byte [rax]
inc rax
mov qword [rsp + 0x38], rax
test cl, cl
jne 0x140046100
cmp r9d, r11d
jne 0x1400460fb
mov ecx, dword [r8 + 0x1c]
add rcx, r10
mov eax, dword [r8 + 0x24]
add rax, r10
movzx eax, word [rax + rdi*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
cmp rdx, r8
jbe 0x14004612c
lea rax, [r8 + r14]
cmp rdx, rax
jae 0x14004612c
mov dword [rsp + 0xb0], 0xfeec8af0
mov ecx, 0xfeec8af0
mov dword [rsp + 0xb4], ecx
mov r8d, ecx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rdx]
cmp al, 0x2e
je 0x1400460b7
xor eax, r8d
imul r8d, eax, 0x1000193
mov dword [rsp + 0xb0], r8d
inc rdx
jmp 0x140046094
inc rdx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rdx]
test al, al
je 0x1400460d7
xor eax, ecx
imul ecx, eax, 0x1000193
mov dword [rsp + 0xb4], ecx
jmp 0x1400460b7
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [r15]
mov qword [rsp + 0x40], rdx
mov r11d, dword [rsp + 0xbc]
mov ebx, eax
jmp 0x14004610f
jmp 0x140046000
xor ecx, r9d
imul r9d, ecx, 0x1000193
jmp 0x140046030
mov rdx, qword [rdx]
mov rax, rdx
mov qword [rsp + 0x40], rdx
cmp rdx, r15
je 0x14004612a
cmp qword [rdx + 0x30], 0
jne 0x140045f60
xor edx, edx
mov qword [0x14022d0c8], rdx
mov rax, rdx
mov ecx, 0x13333337
call rax
jmp 0x140046141
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140048e60
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xe8
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rsp + 0x70], xmm0
xor eax, eax
xor r9d, r9d
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x78]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
movups xmmword [r11 - 0x48], xmm0
mov dword [rsp + 0x28], edx
movups xmmword [r11 - 0x38], xmm0
mov dword [rsp + 0x20], edx
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x28], xmm0
mov dword [rsp + 0x70], 0x68
mov word [r11 - 0x38], dx
mov rdx, rcx
xor ecx, ecx
mov dword [r11 - 0x3c], 1
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xe8
ret
Function at 0x140049e40
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x100
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rdx
xor ebx, ebx
cmp rax, 0xb
jb 0x140049fc6
cmp qword [rcx + 0x18], 0xf
jbe 0x140049e70
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
lea r9, str.cmd.exe__C
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], Ordinal_18
call fcn.14007b460
xorps xmm0, xmm0
lea rdx, [rsp + 0x68]
xor eax, eax
cmp qword [rsp + 0x80], 0xf
mov qword [rsp + 0xf0], rax
cmova rdx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0x90], 0x68
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 1
movups xmmword [rsp + 0xb0], xmm0
mov word [rsp + 0xd0], bx
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140049f74
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140049f7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140049fbd
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049fb8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049fb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fa3dc
add rsp, 0x100
pop rbx
ret
call fcn.140030b80
int3
Function at 0x14006acd0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
cmp byte [0x14022cde8], 0
je 0x14006af37
movzx ecx, word [0x14012b1b8]
movsd xmm0, qword [str.gw]
movzx eax, byte [0x14012b1ba]
movups xmm1, xmmword [0x14012b7a8]
xor al, 0x3f
mov word [rbp - 0x11], cx
movsd qword [rbp - 0x19], xmm0
xor cl, 0x3d
movups xmm0, xmmword [0x14012b798]
xor byte [rbp - 0x18], 0x36
xor byte [rbp - 0x17], 0x37
xor byte [rbp - 0x16], 0x38
xor byte [rbp - 0x15], 0x39
xor byte [rbp - 0x14], 0x3a
xor byte [rbp - 0x13], 0x3b
xor byte [rbp - 0x12], 0x3c
xor byte [rbp - 0x10], 0x3e
mov byte [rbp - 0xf], al
mov eax, dword [0x14012b7d0]
movups xmmword [rbp + 7], xmm0
mov dword [rbp + 0x3f], eax
movups xmm0, xmmword [0x14012b7b8]
movzx eax, word [0x14012b7d4]
mov byte [rbp - 0x11], cl
xor ecx, ecx
cmp dword [0x1401410a0], 2
movups xmmword [rbp + 0x27], xmm0
mov word [rbp + 0x43], ax
movsd xmm0, qword [0x14012b7c8]
movzx eax, byte [0x14012b7d6]
movsd qword [rbp + 0x37], xmm0
mov byte [rbp - 0x19], 0x52
movups xmmword [rbp + 0x17], xmm1
mov byte [rbp + 0x45], al
jl 0x14006aed6
movdqa xmm0, xmmword [0x14012c030]
lea rdx, [rbp + 0xb]
movdqa xmm4, xmmword [0x14012bf40]
movdqa xmm3, xmmword [0x14012c4a0]
movdqa xmm5, xmmword [str.3333]
movdqa xmmword [rbp - 9], xmm0
mov r8d, dword [rbp - 9]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x14012bfc0]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x38
jl 0x14006ade0
movaps xmm6, xmmword [rsp + 0x80]
cmp ecx, 0x3f
jge 0x14006af0f
movsxd rax, ecx
lea r8, [rbp + 7]
add r8, rax
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x3f
jl 0x14006aee0
xor r9d, r9d
lea r8, [rbp - 0x19]
lea rdx, [rbp + 7]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.140017b10
mov byte [0x14022cd5f], 0
add rsp, 0x90
pop rbp
ret
mov byte [0x14022cd5f], 1
add rsp, 0x90
pop rbp
ret
Function at 0x140078280
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 0x1400782a8
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 0x1400782ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400782d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140078329
test ecx, ecx
jle 0x140078309
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 0x140078329
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140078329
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 0x140078350
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 0x140078381
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 0x14007839f
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 0x1400783bb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400783bd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400783f9
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 0x14007848e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140078434
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 0x14007846e
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 0x14007848e
cmp rbx, rax
ja 0x140078440
test rbx, rbx
je 0x14007848e
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 0x1400788e0
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 0x140078904
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 0x140078947
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140078947
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 0x140078a78
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14007898a
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 0x1400789b5
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 0x140078a7d
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 0x140078a2a
sub eax, 1
je 0x140078a2a
cmp eax, 2
jne 0x140078a78
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 0x140078a7d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x140078a5b
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 0x140078a78
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140078a7d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140079dd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140079e99
cmp byte [rcx + 0x71], 0
je 0x140079e99
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140079e8c
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 0x140079e48
sub eax, 1
je 0x140079e4c
cmp eax, 2
jne 0x140079e8c
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 0x140079e7a
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 0x140079e8c
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 0x14007a8d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400fa088
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14007c9b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14007a92d
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14007bf20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400fa088
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14007c9b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14007bf7a
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14008f000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14007dc90
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14008f056
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14008f0ad
mov ebp, 0x4b0000
jmp 0x14008f0bb
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.140080270
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14008f0d1
mov eax, r12d
jmp 0x14008f0da
mov edx, edi
mov ecx, ebp
call fcn.140080270
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14008f0f6
shl esi, 0x10
mov ecx, esi
jmp 0x14008f1e5
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14008f154
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14007dc90
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14008f144
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.140080140
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14007dc90
add ebx, eax
jmp 0x14008f1ee
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14008f161
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14008f1a0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14007dc90
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14008f1a5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.140080140
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14007dc90
add ebx, eax
jmp 0x14008f1ee
cmp eax, r12d
jge 0x14008f1de
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14007dc90
sub ebp, eax
sub r15d, esi
je 0x14008f1de
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.140080140
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14007dc90
add ebx, eax
jmp 0x14008f1ee
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14007dc90
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.14007dc90