joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009feb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1400d5128]
test esi, esi
je 0x14009ff55
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14009ff4c
je 0x14009fef9
test rdi, rdi
je 0x14009fefd
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14009feff
mov rbx, qword [rdi + 8]
jmp 0x14009feff
xor eax, eax
jmp 0x14009ff4c
xor ebx, ebx
movzx eax, byte [0x140124138]
mov edx, 0x10
xor ecx, ecx
call fcn.1400c3830
test rax, rax
je 0x14009ff68
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14009ff49
mov edx, 8
mov rcx, rdi
call fcn.14002a960
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400d5110]
call fcn.1400a0130
mov esi, eax
jmp 0x14009fed0
mov ecx, 8
mov edx, 0x10
call fcn.140029260
int3

Function at 0x14009ff80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400d5148]
test esi, esi
je 0x1400a0020
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400a0017
je 0x1400a0015
movzx eax, byte [0x140124138]
mov edx, 0x10
xor ecx, ecx
call fcn.1400c3830
test rax, rax
je 0x1400a0033
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400a0010
mov rax, qword [rdi]
test rax, rax
je 0x1400a0003
lock dec qword [rax]
jne 0x1400a0003
mov rcx, qword [rdi]
call fcn.14009e4a0
mov edx, 8
mov rcx, rdi
call fcn.14002a960
mov rax, rsi
jmp 0x1400a0017
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400d5130]
call fcn.1400a0130
mov esi, eax
jmp 0x14009ff9d
mov ecx, 8
mov edx, 0x10
call fcn.140029260
int3
Function at 0x1400a0130
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400a01c5
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x1400a0204
cmp dword [rbp], 0
je 0x1400a01e8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400a0219
mov edi, eax
mov rax, qword [0x140127038]
mov rax, qword [0x140124100]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140124100], rsi
jne 0x1400a01a0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400a01f9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1400a025b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400a01ed
mov edi, dword [rbp + 4]
jmp 0x1400a01f9
mov edi, dword [rsi + 0x18]
jmp 0x1400a01f7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.1400a0290
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.14002ac90
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.1400a02e0
int3

Function at 0x1400a07a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400d50e8]
test esi, esi
je 0x1400a082a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400a0821
je 0x1400a081f
movzx eax, byte [0x140124138]
mov edx, 0x18
xor ecx, ecx
call fcn.1400c3830
test rax, rax
test eax, eax
je 0x1400a083d
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
cld
add eax, dword es:[rax]
test rdi, rdi
je 0x1400a081a
mov edx, 8
mov rcx, rdi
call fcn.14002a960
mov rax, rsi
jmp 0x1400a0821
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400d50d0]
call fcn.1400a0130
mov esi, eax
jmp 0x1400a07b9
mov ecx, 8
mov edx, 0x18
add byte [rax], al
add al, ch
adc al, 0x8a
clc
dec esp
Function at 0x1400c2860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400d5108]
test esi, esi
je 0x1400c2900
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c28f7
je 0x1400c28f5
movzx eax, byte [0x140124138]
mov edx, 0x10
xor ecx, ecx
call fcn.1400c3830
test rax, rax
je 0x1400c2913
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400c28f0
mov rax, qword [rdi]
test rax, rax
je 0x1400c28e3
lock dec qword [rax]
jne 0x1400c28e3
mov rcx, qword [rdi]
call fcn.1400c2930
mov edx, 8
mov rcx, rdi
call fcn.14002a960
mov rax, rsi
jmp 0x1400c28f7
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400d50f0]
call fcn.1400a0130
mov esi, eax
jmp 0x1400c287d
mov ecx, 8
mov edx, 0x10
call fcn.140029260
int3

Function at 0x1400c5ca0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
mov ecx, 0xfffffff4
pop rbp
jmp fcn.14009f060

Function at 0x1400c71ec
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x1400c72a2
mov rdi, rax
movsxd r13, dword [rsp + 0x2c]
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
shl r13, 3
xor ebp, ebp
lea r14, [rsp + 0x60]
lea r15, [rsp + 0x48]
cmp r13, rbp
je 0x1400c7287
mov r12, qword [rdi + rbp]
mov rcx, r12
call sub.msvcrt.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], rax
and word [rsp + 0x58], 0
mov rcx, r14
mov rdx, r15
call fcn.1400d1a58
mov rcx, rbx
mov rdx, r14
call fcn.14008e198
add rbp, 8
jmp 0x1400c7246
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x1400c72b3
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400c7adb
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.KERNEL32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0x138], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x140], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.PSAPI.DLL_GetPerformanceInfo
cmp eax, 1
jne 0x1400c7bae
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub rdx, r9
cmovb rdx, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdx, qword [rsp + 0x28]
sub rdx, r9
cmovb rdx, r10
mov rax, rcx
mul rdx
cmovo rax, r11
mov qword [rsi + 0x148], r8
mov qword [rsi + 0x150], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x1400c8c32
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
imul rbx, rdx, 0x90
xor r14d, r14d
lea rdi, [rsp + 0x28]
mov r15, rcx
cmp rbx, r14
je 0x1400c8c97
cmp qword [r15 + 0x78], 0
je 0x1400c8c87
and qword [rsp + 0x28], 0
mov rcx, qword [rsi + r14 + 0x50]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x1400c8c87
mov rax, qword [rsp + 0x28]
mov qword [rsi + r14 + 0x80], rax
add r15, 0x90
add r14, 0x90
jmp 0x1400c8c52
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400c8d4e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, dword [0x1400d51a0]
test esi, esi
je 0x1400319e6
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x1400319d9
je 0x1400319d7
test rbx, rbx
je 0x14003196c
mov al, byte [rbx]
and qword [rbx], 0
test al, 1
je 0x14003196c
mov r14, qword [rbx + 8]
mov rbx, qword [rbx + 0x10]
jmp 0x14003198b
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
mov edx, 0x10
mov rcx, rdi
call sub.bcryptprimitives.dll_ProcessPrng
mov r14, qword [rdi]
mov rbx, qword [rdi + 8]
mov al, byte [0x140124138]
mov edx, 0x18
xor ecx, ecx
call fcn.1400c3830
test rax, rax
je 0x1400319f9
mov rdi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov dword [rax + 0x10], esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
mov ecx, esi
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rbx, rbx
je 0x1400319d9
mov edx, 8
mov rcx, rbx
call fcn.14002a960
jmp 0x1400319d9
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400d5188]
call fcn.1400a0130
mov esi, eax
jmp 0x140031939
mov ecx, 8
mov edx, 0x18
call fcn.140029260
int3
xor ecx, ecx
jmp 0x14003191d
Function at 0x1400cb5cd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov esi, dword [0x1400d5180]
test esi, esi
je 0x1400cb65c
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x1400cb64f
je 0x1400cb607
test rdi, rdi
je 0x1400cb60b
test byte [rdi], 1
je 0x1400cb610
mov r14, qword [rdi + 4]
jmp 0x1400cb613
xor ebx, ebx
jmp 0x1400cb64f
xor r14d, r14d
jmp 0x1400cb616
xor r14d, r14d
and dword [rdi], 0
mov ecx, 0xc
mov edx, 4
call fcn.140007895
mov rbx, rax
mov qword [rax], r14
mov dword [rax + 8], esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400cb64f
mov rcx, rdi
call fcn.1400400dc
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400d5168]
call fcn.1400a0130
mov esi, eax
jmp 0x1400cb5e5
Function at 0x1400d0fe2
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp dword [rdx + 0x10], 1
jne 0x1400d10a5
lea rcx, [0x14010b542]
call sub.OLEAUT32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.OLEAUT32.dll_SysFreeString
mov rcx, r14
call sub.OLEAUT32.dll_SysFreeString
test ebp, ebp
js 0x1400d10a5
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.1400d1386
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x1400d10b4
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400d12b8
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400d3c00
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401241c4]
mov rbx, rcx
test esi, esi
jle 0x1400d3da0
mov rax, qword [0x1401241c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400d3cbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400d3d45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400d3ca0
mov rcx, rbx
call fcn.1400d46e0
mov rdi, rax
test rax, rax
je 0x1400d3dc2
mov rax, qword [0x1401241c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400d4820
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401241c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400d3da7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400d3d3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400d3d50
add dword [0x1401241c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401241c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400d3d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400d3c00
nop dword [rax]
xor esi, esi
jmp 0x1400d3cc8
mov rax, qword [0x1401241c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400d3c00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400d3c00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400d4350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140124220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140124200]
test rbx, rbx
je 0x1400d43ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400d43a3
test eax, eax
jne 0x1400d43a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400d4388
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400d46e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14010c640]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400d4700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400d4708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400d4700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400d475d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400d4754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400d4700
add rax, 0x28
cmp rax, r9
jne 0x1400d4740
xor eax, eax
ret

Function at 0x1400d4760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14010c640]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400d477f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400d4788
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400d477f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400d4820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14010c640]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400d483f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400d4848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14005e18b
Capabilities:
Write file on windows

Disassembly:
jmp 0x14006ff30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401340f6]
call fcn.14005ed89
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14006ff88
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14007009a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140070033
cmp qword [rbp + 0x28], 0
jle 0x140070033
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14006ffd1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14005ecd0
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140070089
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140070089
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14005e7b7
Capabilities:
Terminate process

Disassembly:
jmp 0x140118800
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14005e8de
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401128e0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14011291d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14005ed75
add rsp, 0x58
ret

Function at 0x14005e960
Capabilities:
Parse pe header

Disassembly:
jmp 0x140119330
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140119350
xor al, al
jmp 0x1401193d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140119363
xor al, al
jmp 0x1401193d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14011938d
xor al, al
jmp 0x1401193d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401193a1
xor al, al
jmp 0x1401193d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401193b3
xor al, al
jmp 0x1401193d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401193cf
xor al, al
jmp 0x1401193d1
mov al, 1
add rsp, 0x38
ret
Function at 0x14005ed5c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14006a840
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x14012a040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1401340f6]
call fcn.14005ed89
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14006a8a7
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006a8ae
mov al, 1
jmp 0x14006aa1e
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14005e3c0
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14005e3c0
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.14005eab9
movzx eax, al
test eax, eax
je 0x14006a911
xor al, al
jmp 0x14006aa1e
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14006a984
cmp dword [rbp + 0x160], 1
je 0x14006a98f
cmp dword [rbp + 0x160], 3
je 0x14006aa0d
jmp 0x14006aa1c
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14006a9df
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14006a9df
xor al, al
jmp 0x14006aa1e
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006a9fa
mov dword [rbp + 0x154], 1
jmp 0x14006aa04
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14006aa1e
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14006aa1e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140122040]
call fcn.14005eb3b
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14005e690
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret