joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401482a4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14026a3a8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140261a08]
test eax, eax
je 0x1401482ef
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140261a08]
test eax, eax
jne 0x1401482f8
call fcn.14001458c
test eax, eax
je 0x140148314
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140259120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14014831c
xor eax, eax
jmp 0x140148379
test rbx, rbx
jne 0x14014833c
lea rcx, str.GetSaveFileNameW
call fcn.14001da98
mov rbx, rax
test rax, rax
je 0x140148347
mov qword [0x14026a3a8], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14014835c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14014835e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140148377
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140190678
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14026b638]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140261a08]
test eax, eax
je 0x1401906c3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140261a08]
test eax, eax
jne 0x1401906cc
call fcn.14001458c
test eax, eax
je 0x1401906e8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140259120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401906f0
xor eax, eax
jmp 0x14019074d
test rbx, rbx
jne 0x140190710
lea rcx, str.PrintDlgW
call fcn.14001da98
mov rbx, rax
test rax, rax
je 0x14019071b
mov qword [0x14026b638], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140190730
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140190732
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14019074b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180001200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x88
mov dword [rsp + 0x7c], edx
mov qword [rsp + 0x70], rcx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x88]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
cmp eax, dword [rcx + 0x1c]
jae 0x180001317
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call section..text
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
cmp eax, dword [rsp + 0x7c]
jne 0x180001302
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
movzx edx, word [rdx + r8*2]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x80], rax
jmp 0x180001323
jmp 0x180001307
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x18000128f
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
add rsp, 0x88
ret
Function at 0x180004090
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x78], 0
jg 0x1800040cd
mov qword [rsp + 0x80], 0
jmp 0x180004299
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x68], 0
je 0x1800040fe
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
call fcn.180004e70
mov qword [rsp + 0x80], rax
jmp 0x180004299
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
call fcn.180005230
mov qword [rsp + 0x50], rax
xor eax, eax
cmp rax, qword [rsp + 0x50]
jae 0x18000419d
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x50]
call fcn.180005ee0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
call fcn.1800052c0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180005280
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
sub rax, rdx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov edx, eax
call fcn.1800052e0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x80], 0
je 0x180004287
mov rcx, qword [rsp + 0x30]
call fcn.180003510
mov qword [rsp + 0x40], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x60]
jae 0x180004245
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r8d, 0xfff
call fcn.1800178b4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x38], 0xfff
je 0x180004240
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
jmp 0x180004299
jmp 0x1800041c3
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x180004282
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov edx, 1
call fcn.1800178b4
mov rcx, rax
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x180004287
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
add rsp, 0x88
ret
Function at 0x180016adc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001698f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001698f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001698f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001698f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001698f
cmp dword [rcx + 0x84], 0xe
jbe 0x18001698f
cmp dword [rcx + 0xf8], 0
je 0x18001698f
mov ecx, ebx
call fcn.180016a40
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18001681c
nop
cmp dword [rbp + 0x20], 0
je 0x1800169dd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800169e8
int3
xor r8d, r8d
xor edx, edx
jmp 0x180016920
Function at 0x18002470c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180024722
mov al, 1
jmp 0x180024782
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180024733
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180024780
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002c0e0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180024780
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180024780
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180024780
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180024782
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180024b7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18004bfe0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180024bd3
cmp word [rdx], r13w
jne 0x180024bd3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180024bd8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180024cfd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180024d1e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180024c11
mov rdx, r9
mov word [rbx], cx
jmp 0x180024c38
cmp r9, r8
jae 0x180024c48
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180024bf2
jmp 0x180024cfd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180024cf2
cmp dword [rsp + 0x80], esi
je 0x180024cf2
lea r8, [0x18004bfe0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180024cca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180024c9a
mov word [rbx], r13w
jmp 0x180024cfa
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180024ca7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180024cfa
cmp word [rsp + 0x70], r13w
jne 0x180024cd7
cmp rbx, r14
je 0x180024c94
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800257e4
cmp word [rsp + 0x70], r13w
je 0x180024cfd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18004bfe0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180024cf7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180024cfd
Function at 0x180025ba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800336a0
sub rsp, rax
mov rax, qword [0x18004a698]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800218b8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180025bef
mov rax, rbp
jmp 0x180025cf7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4bfe0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800257dc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x4bfe0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180025cf3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180025cf3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800257dc
test rax, rax
js 0x180025cf3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180025cf3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180025ce5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180025ce5
cmp byte [rcx], 0xd
jne 0x180025ccb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180025cda
cmp byte [rcx + 1], 0xa
jne 0x180025cda
inc rcx
jmp 0x180025cda
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4aab0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180025cad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180025cf7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180033670
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002946c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18002949c
xor eax, eax
jmp 0x18002955f
mov rbp, rbx
cmp word [rax], si
je 0x1800294c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800294a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800294a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18002938c
movsxd r14, eax
test eax, eax
jne 0x1800294ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180029495
mov rcx, r14
call fcn.180026b30
mov rdi, rax
test rax, rax
jne 0x180029518
xor ecx, ecx
call fcn.18002187c
jmp 0x1800294f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18002938c
test eax, eax
jne 0x180029549
mov rcx, rdi
call fcn.18002187c
jmp 0x180029553
xor ecx, ecx
call fcn.18002187c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18002e380
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180020b58
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18002e421
cmp ebx, dword [rsp + 0x30]
je 0x18002e41a
test esi, esi
je 0x18002e41a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002e3f5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002e402
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002e3df
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002e406
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002e423
mov eax, 1
jmp 0x18002e423
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180032fd8
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.1800257e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800257e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180033128
cmp rax, 0xffffffffffffffff
je 0x180033128
xor edi, edi
test rbp, rbp
jle 0x1800330d3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800235ac
mov rbx, rax
test rax, rax
jne 0x180033060
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800330c9
mov edx, 0x8000
mov ecx, r14d
call fcn.180032e5c
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.18002430c
cmp eax, 0xffffffff
je 0x1800330a9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180033070
mov edx, r15d
mov ecx, r14d
call fcn.180032e5c
jmp 0x1800330c9
cmp byte [rsi + 0x38], dil
je 0x1800330c0
cmp dword [rsi + 0x34], 5
jne 0x1800330c0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800330c9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002187c
jmp 0x18003313c
jns 0x18003313c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800257e4
cmp rax, 0xffffffffffffffff
jne 0x1800330f4
cmp byte [rsi + 0x30], dil
je 0x18003313c
mov edi, dword [rsi + 0x2c]
jmp 0x18003313c
mov ecx, r14d
call fcn.18002c0e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003313c
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 0x18003313c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180033135
mov eax, dword [rsi + 0x2c]
jmp 0x18003313a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800257e4
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 0x140008c54
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
neg r10
sbb edx, edx
and edx, eax
jmp fcn.1400096fc

Function at 0x14000938c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x1400093b3
and qword [r8], 0
call fcn.1400094c8
mov rbx, rax
test rax, rax
je 0x1400094ac
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400094a3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400094a3
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400094a3
mov rax, qword [0x14004ce70]
mov rbp, rdi
test rax, rax
je 0x14000941b
inc dword [rax + 0x3c8]
mov rdx, qword [0x14004ce80]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400094a3
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x14000947a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004ce70]
test rax, rax
je 0x140009468
dec dword [rax + 0x3c8]
mov rdx, qword [0x14004ce80]
mov rcx, rdi
call qword [0x14004b008]
jmp 0x1400094ac
test r15d, r15d
jle 0x14000948d
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000949e
mov qword [rsi], rbp
mov rax, rdi
jmp 0x1400094ae
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400096fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x14004cea4], 0
lea rsi, [0x14004cea0]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140009763
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140009731
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140009729
not ebx
mov edx, ebx
test edi, edi
jle 0x140009785
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x14000976b
jmp 0x1400097bf
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x1400097bf
mov r9b, 0x23
cmp r8b, r9b
jne 0x1400097a4
cmp byte [r10], r9b
jne 0x1400097a4
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140009793
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000f218
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14004ce70]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000f281
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000f28c
lea rdx, [0x14003fa84]
mov rcx, rbx
mov rdi, rax
call fcn.1400094c8
mov rbx, rax
test rax, rax
je 0x14000f281
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret