joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e0220
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r14
sub rsp, 0x60
mov rcx, qword [rcx + 0x10]
mov rsi, r9
mov r14d, r8d
mov rbp, rdx
test rcx, rcx
je 0x1400e0303
test rdx, rdx
je 0x1400e0303
test r9, r9
je 0x1400e0303
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rcx
cmp qword [rsp + 0x98], rbx
je 0x1400e02c4
mov rdx, qword [rsp + 0x98]
lea rax, [r11 + 8]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400e02bf
xor eax, eax
mov rbx, qword [rsp + 0x78]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x90]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp qword [rsp + 0x98], rbx
je 0x1400e02fa
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
jmp 0x1400e02a7
lea r11, [rsp + 0x60]
xor eax, eax
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400e1100
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov r8d, 0x840
add rcx, 0x38
call fcn.1400e4220
xor eax, eax
lea rcx, str.DXVA2.DLL
mov qword [rbx + 0x878], rax
mov qword [rbx + 0x880], rax
mov dword [rbx + 0x888], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400e11e0
lea rdx, str.GetNumberOfPhysicalMonitorsFromHMONITOR
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.GetPhysicalMonitorsFromHMONITOR
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.DestroyPhysicalMonitors
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.GetMonitorBrightness
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.SetMonitorBrightness
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x30], rax
je 0x1400e11d3
cmp qword [rbx + 0x18], 0
je 0x1400e11d3
cmp qword [rbx + 0x20], 0
je 0x1400e11d3
cmp qword [rbx + 0x28], 0
je 0x1400e11d3
test rax, rax
jne 0x1400e11e0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400e12a0
add rsp, 0x20
pop rbx
ret
Function at 0x1400e1b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp 0x1400e1be0
mov rax, rsp
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15d, r9d
mov rbx, r8
xor r9d, r9d
mov r8, rdx
lea rdx, [0x1401405d8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400e1dc0
xor esi, esi
mov dword [rbp - 0x10], esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp - 8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401405e0]
call fcn.140109ff0
mov qword [rbp - 0x30], rax
mov rcx, rax
call fcn.14010afc0
mov qword [rbp - 0x28], rax
lea r8, [0x1400e1ba0]
lea rdx, [rbp - 0x10]
mov rcx, qword [rbp - 0x30]
call fcn.1401104d0
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.14010a760
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.140110550
movzx ecx, al
sub ecx, 2
je 0x1400e1cc1
dec ecx
jne 0x1400e1cd5
mov rcx, qword [rbp - 0x30]
call fcn.14010fed0
lea r8d, [rsi + 0x10]
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.1401105a0
test eax, eax
jne 0x1400e1cd5
mov r8d, 1
mov edx, 0xff
mov rcx, qword [rbp - 0x30]
call fcn.1401103e0
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.14010af20
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.140110590
mov r13d, eax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.140110570
mov r12d, eax
mov edi, eax
mov eax, 8
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400e3178
mov r14, rax
test r12d, r12d
je 0x1400e1d4d
lea r15d, [r13*4]
mov rbx, rax
mov esi, r12d
mov rcx, r15
call fcn.1400e3178
mov qword [rbx], rax
lea rbx, [rbx + 8]
dec rsi
jne 0x1400e1d35
mov r15d, dword [rbp + 0x48]
mov rdx, r14
mov rcx, qword [rbp - 0x30]
call fcn.14010a6d0
mov ecx, SafeArrayAllocDescriptor
call fcn.1400e4060
mov qword [rbp - 0x18], rax
test rax, rax
je 0x1400e1d8c
mov ecx, dword [rbp + 0x50]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov r8d, r13d
mov rdx, r14
mov rcx, rax
call fcn.1400e2590
mov rsi, rax
test r12d, r12d
je 0x1400e1da5
mov rbx, r14
mov rcx, qword [rbx]
call fcn.1400e66d8
lea rbx, [rbx + 8]
dec rdi
jne 0x1400e1d94
mov rcx, r14
call fcn.1400e66d8
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14010a270
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400e1be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp 0x1400e1be0
mov rax, rsp
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15d, r9d
mov rbx, r8
xor r9d, r9d
mov r8, rdx
lea rdx, [0x1401405d8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400e1dc0
xor esi, esi
mov dword [rbp - 0x10], esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp - 8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401405e0]
call fcn.140109ff0
mov qword [rbp - 0x30], rax
mov rcx, rax
call fcn.14010afc0
mov qword [rbp - 0x28], rax
lea r8, [0x1400e1ba0]
lea rdx, [rbp - 0x10]
mov rcx, qword [rbp - 0x30]
call fcn.1401104d0
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.14010a760
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.140110550
movzx ecx, al
sub ecx, 2
je 0x1400e1cc1
dec ecx
jne 0x1400e1cd5
mov rcx, qword [rbp - 0x30]
call fcn.14010fed0
lea r8d, [rsi + 0x10]
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.1401105a0
test eax, eax
jne 0x1400e1cd5
mov r8d, 1
mov edx, 0xff
mov rcx, qword [rbp - 0x30]
call fcn.1401103e0
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.14010af20
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.140110590
mov r13d, eax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.140110570
mov r12d, eax
mov edi, eax
mov eax, 8
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400e3178
mov r14, rax
test r12d, r12d
je 0x1400e1d4d
lea r15d, [r13*4]
mov rbx, rax
mov esi, r12d
mov rcx, r15
call fcn.1400e3178
mov qword [rbx], rax
lea rbx, [rbx + 8]
dec rsi
jne 0x1400e1d35
mov r15d, dword [rbp + 0x48]
mov rdx, r14
mov rcx, qword [rbp - 0x30]
call fcn.14010a6d0
mov ecx, SafeArrayAllocDescriptor
call fcn.1400e4060
mov qword [rbp - 0x18], rax
test rax, rax
je 0x1400e1d8c
mov ecx, dword [rbp + 0x50]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov r8d, r13d
mov rdx, r14
mov rcx, rax
call fcn.1400e2590
mov rsi, rax
test r12d, r12d
je 0x1400e1da5
mov rbx, r14
mov rcx, qword [rbx]
call fcn.1400e66d8
lea rbx, [rbx + 8]
dec rdi
jne 0x1400e1d94
mov rcx, r14
call fcn.1400e66d8
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14010a270
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x1400ed8f4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ed90a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ed90c
xor eax, eax
test eax, eax
je 0x1400ed91c
mov ecx, eax
call fcn.1400ed6cc
or eax, 0xffffffff
jmp 0x1400ed91e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140115f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x140115f26
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
not ecx
lea rbx, [0x14014e2b0]
cmp r10d, 8
jb 0x140116017
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
shr ecx, 8
xor rdx, rax
add r9, 8
add r10d, 0xfffffff8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 - 7]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 1]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
dec r11
jne 0x140115f50
test r10d, r10d
je 0x14011603f
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
lea r9, [r9 + 1]
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
dec r10d
jne 0x140116020
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call fcn.140184000
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000caf0
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140003380
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 0x1400033a8
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 0x1400033ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400033d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003429
test ecx, ecx
jle 0x140003409
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 0x140003429
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003429
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 0x140003450
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 0x140003472
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003488
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 0x1400034a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400034a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400034e2
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 0x14000357e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000351d
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 0x14000355e
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 0x14000357e
cmp rbx, rax
ja 0x140003530
test rbx, rbx
je 0x14000357e
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 0x1400039b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400039dd
xor eax, eax
jmp 0x140003b49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003a17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003a17
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 0x140003b49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003b3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003a5a
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 0x140003a85
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 0x140003b41
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 0x140003af4
sub eax, 1
je 0x140003af4
cmp eax, 2
jne 0x140003b3c
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 0x140003b41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003b22
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 0x140003b3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003b41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005be0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400047e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400048b3
cmp byte [rcx + 0x71], 0
je 0x1400048b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400048af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004874
sub eax, 1
je 0x140004878
cmp eax, 2
jne 0x1400048af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005be0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400048a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400048af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000485c
xor al, al
jmp 0x14000485c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005be0
add rsp, 0x60
pop rbx
ret

Function at 0x1400066ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006736
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006736
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006736
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006736
cmp dword [rcx + 0x84], 0xe
jbe 0x140006736
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006738
xor al, al
add rsp, 0x28
ret
Function at 0x140001e4c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400afa44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x140001e7e
mov rdx, qword [rax + 8]
jmp 0x140001e81
mov rdx, rbx
lea rdi, [rsi + 3]
shr rdi, 2
test rdx, rdx
je 0x140001eae
mov rax, qword [rdx]
test rax, rax
je 0x140001eae
mov qword [rdx], rbx
movzx ecx, byte [rax]
cmp rcx, rdi
jb 0x140001ea6
mov byte [rax + rsi], cl
jmp 0x140001ecc
mov rcx, rax
call fcn.140052094
lea rcx, [rdi*4 + 1]
call fcn.140051e08
cmp rdi, 0xff
movzx ecx, dil
cmovbe ebx, ecx
mov byte [rax + rsi], bl
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001ed4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400afa44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140001f01
mov r8, qword [rax + 8]
jmp 0x140001f04
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140001f27
test r8, r8
je 0x140001f27
cmp qword [r8], 0
jne 0x140001f27
mov al, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140052094

Function at 0x1400021a8
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14006f680], eax
test eax, eax
je 0x1400021ff
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140002220
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140001808]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret