joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c580
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007f8c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c60a
cmp byte [rbp - 0x21], r15b
je 0x14000c605
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c640
call fcn.14000a688
test eax, eax
jne 0x14000c62c
cmp byte [rbp - 0x21], r15b
je 0x14000c624
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c640
cmp byte [rbp - 0x21], r15b
je 0x14000c63d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000756c
test eax, eax
jne 0x14000c6e0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007f8c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c67f
cmp byte [rbp - 0x21], r15b
je 0x14000c6b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c6b4
call fcn.14000a688
test eax, eax
jne 0x14000c6a0
cmp byte [rbp - 0x21], r15b
je 0x14000c699
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c6b4
cmp byte [rbp - 0x21], r15b
je 0x14000c6b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000756c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c6e0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c6e3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c6f1
mov rcx, rdi
call fcn.14000751c
cmp byte [rbp + 0x3f], r15b
je 0x14000c700
mov rcx, qword [rbp + 0x27]
call fcn.14000751c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000f530
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f558
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f558
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x48
mov rcx, qword [str.malware_experiment]
call fcn.140001e20
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
shl rax, 1
mov rcx, rax
call fcn.1400010c8
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000105d
lea rdx, [rsp + 0x28]
lea rcx, [0x140001064]
call qword [sym.imp.USER32.dll_EnumWindows]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call fcn.1400010ec
mov eax, dword [rsp + 0x20]
jmp 0x14000105f
xor eax, eax
add rsp, 0x48
ret

Function at 0x140001a90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 2
mov r8d, 4
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
add rsp, 0x28
ret
Function at 0x140002d84
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140002df2
mov eax, dword [rsp + 0x20]
shl rax, 1
mov rcx, rax
call fcn.1400010c8
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002dec
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140002de6
mov rax, qword [rsp + 0x28]
jmp 0x140002df4
xor eax, eax
jmp 0x140002df4
xor eax, eax
jmp 0x140002df4
xor eax, eax
add rsp, 0x38
ret
Function at 0x140009980
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140013f60], rbx
je 0x1400099cc
cmp rax, rbx
jne 0x1400099bf
mov ebx, 1
mov esi, ebx
jmp 0x1400099d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400099a4
mov ebx, 1
mov eax, dword [0x140013f68]
cmp eax, ebx
jne 0x1400099e7
mov ecx, 0x1f
call fcn.1400a3000
jmp 0x140009a4c
mov eax, dword [0x140013f68]
test eax, eax
jne 0x140009a46
mov dword [0x140013f68], ebx
lea r15, [0x14000b648]
lea rdi, [0x14000b630]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009a38
test eax, eax
jne 0x140009a3c
cmp qword [rdi], 0
je 0x140009a2d
mov rax, qword [rdi]
mov rcx, qword [0x14000b610]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009a0e
test eax, eax
je 0x140009a4c
mov eax, 0xff
jmp 0x140009b28
mov dword [0x140013104], ebx
mov eax, dword [0x140013f68]
cmp eax, ebx
jne 0x140009a73
lea rdx, [0x14000b628]
lea rcx, [0x14000b618]
call sub.msvcrt.dll__initterm
mov dword [0x140013f68], 2
test esi, esi
jne 0x140009a80
xor eax, eax
xchg qword [0x140013f60], rax
cmp qword [0x140013f70], 0
je 0x140009ab4
lea rcx, [0x140013f70]
call fcn.140009d50
test eax, eax
je 0x140009ab4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140013f70]
mov r9, qword [0x14000b610]
call r9
mov r8, qword [0x140013118]
mov rdx, qword [0x140013110]
mov ecx, dword [0x140013108]
call fcn.1400038d0
mov dword [0x140013100], eax
cmp dword [0x140013120], 0
jne 0x140009ae4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140013104], 0
jne 0x140009af9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140013100]
jmp 0x140009b28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140009de4
add rsp, 0x28
jmp 0x140009980

Function at 0x140009c3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009c88
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009c80
cmp dword [rcx + 0x3c], edx
jl 0x140009c80
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009c80
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 0x140009c88
mov rax, rdx
add rsp, 0x18
ret
Function at 0x3a4da1433
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rdx
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x3a4da147b
mov eax, 0
jmp 0x3a4da1515
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x3a4da14fd
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x3a4da14e6
mov eax, dword [rbp - 0x58]
mov rdx, qword [rbp + 0xf8]
mov ecx, eax
call fcn.3a4da151e
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xd4]
jmp 0x3a4da1515
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x3a4da1499
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret
Function at 0x3a4da1981
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 3
je 0x3a4da19e9
cmp dword [rbp + 0x18], 3
ja 0x3a4da19f0
cmp dword [rbp + 0x18], 2
je 0x3a4da19ec
cmp dword [rbp + 0x18], 2
ja 0x3a4da19f0
cmp dword [rbp + 0x18], 0
je 0x3a4da19ef
cmp dword [rbp + 0x18], 1
jne 0x3a4da19f0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x10]
lea r8, [0x3a4da1937]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
jmp 0x3a4da19f0
nop
jmp 0x3a4da19f0
nop
jmp 0x3a4da19f0
nop
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x3a4da1ba0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.3a4da29b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.3a4da29b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x3a4da1c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x3a4da7054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x3a4da1dc0
mov rax, qword [0x3a4da7058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x3a4da1c5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x3a4da1ce7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x3a4da1c40
mov rcx, r12
call fcn.3a4da24b0
mov rbp, rax
test rax, rax
je 0x3a4da1e1d
mov rax, qword [0x3a4da7058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.3a4da25e0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x3a4da7058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a4da1e02
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a4da1ce0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a4da1d70
add dword [0x3a4da7054], 1
cmp ebx, 8
jae 0x3a4da1d18
test bl, 4
jne 0x3a4da1dd0
test ebx, ebx
je 0x3a4da1d09
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x3a4da1df0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x3a4da1d09
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x3a4da1d4a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x3a4da7058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a4da1ce0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a4da1ba0
xor edi, edi
jmp 0x3a4da1c67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x3a4da1d09
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x3a4da1d09
mov rax, qword [0x3a4da7058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.3a4da1ba0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.3a4da1ba0
nop
nop dword [rax]
Function at 0x3a4da2120
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x3a4da7080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a4da7060]
test rbx, rbx
je 0x3a4da2174
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x3a4da216b
test r12, r12
je 0x3a4da216b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a4da2150
lea rcx, [0x3a4da7080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x3a4da24b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x3a4da4240]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x3a4da2529
mov rcx, r10
call fcn.3a4da2380
test eax, eax
je 0x3a4da2529
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x3a4da2526
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x3a4da251d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x3a4da2529
add r8, 0x28
cmp r8, r9
jne 0x3a4da2508
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140861058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408611df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140861089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14086106f
add dl, dl
jne 0x140861096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408610f6
xor eax, eax
add dl, dl
jne 0x1408610a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408611ad
add dl, dl
jne 0x1408610b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408610c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408610d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408610dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408610ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14086107e
mov eax, 1
add dl, dl
jne 0x140861106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140861113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408610fb
sub eax, ebx
mov ebx, 1
jne 0x14086114c
mov ecx, 1
add dl, dl
jne 0x14086112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14086113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140861123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140861168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140861175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14086115d
cmp eax, 0x7d00
jae 0x14086119b
cmp eax, 0x500
jb 0x140861196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086107e
cmp eax, 0x7f
ja 0x14086119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408611d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14086107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006650
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 0x14000668a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000668f
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 0x1400066d8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400084b0]
cmp byte [rcx + rax], 0
je 0x1400066d8
dec r8
sub rdx, 1
jne 0x1400066be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400072c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000730e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000730e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000730e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000730e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000730e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007310
xor al, al
add rsp, 0x28
ret
Function at 0x18002ac80
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 0x18002aca8
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 0x18002acce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18002acd0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18002ad29
test ecx, ecx
jle 0x18002ad09
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 0x18002ad29
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18002ad29
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 0x18002ad50
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 0x18002ad72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18002ad88
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 0x18002ada4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18002ada6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18002ade2
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 0x18002ae7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18002ae1d
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 0x18002ae5e
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 0x18002ae7e
cmp rbx, rax
ja 0x18002ae30
test rbx, rbx
je 0x18002ae7e
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 0x18002b2e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800ba280]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18002b30d
xor eax, eax
jmp 0x18002b479
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18002b347
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18002b347
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 0x18002b479
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18002b46c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18002b38a
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 0x18002b3b5
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 0x18002b471
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 0x18002b424
sub eax, 1
je 0x18002b424
cmp eax, 2
jne 0x18002b46c
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 0x18002b471
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18002b452
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 0x18002b46c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18002b471
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180083bb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18002c5a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800ba280]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18002c673
cmp byte [rcx + 0x71], 0
je 0x18002c673
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18002c66f
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 0x18002c634
sub eax, 1
je 0x18002c638
cmp eax, 2
jne 0x18002c66f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180083bb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18002c666
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 0x18002c66f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18002c61c
xor al, al
jmp 0x18002c61c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180083bb0
add rsp, 0x60
pop rbx
ret