joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005fb90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x120
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], 0
lea rbp, vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0xfa
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov rdx, rbx
call qword [rax + 8]
mov rsi, qword [rdi + 0x98]
mov rbx, qword [rsp + 0x70]
add rsi, rbx
cmp rsi, qword [rdi + 0x88]
jbe 0x14005fc52
lea rcx, [rdi + 0xa0]
call fcn.14004e5d0
lea rcx, [rdi + 0xa0]
call fcn.14004e6c0
test rax, rax
je 0x14005fc4d
mov rcx, rdi
call fcn.140062750
mov rbx, qword [rsp + 0x70]
mov rsi, rbx
jmp 0x14005fc52
mov rbx, qword [rsp + 0x70]
mov r9, qword [rdi + 0xa8]
mov r8, rbx
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x14005fce4
mov qword [rdi + 0x98], rsi
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x14005fcc1
mov rdx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fcbc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005fcbc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a4fe0
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov ebx, dword [rax]
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x20]
call fcn.14004ca40
nop
mov r8, rax
lea rdx, str.Failed_writing_to_file
lea rcx, [rsp + 0x40]
call fcn.14003b210
nop
mov edx, ebx
mov rcx, rax
call fcn.14004c8e0
int3
Function at 0x140062750
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rbp + 8], rax
mov r15, rcx
add rcx, 0xa0
call fcn.14004e630
mov rbx, qword [r15 + 0x90]
test rbx, rbx
je 0x140062881
lea rdi, [rbx - 1]
mov r8, rdi
lea rdx, [r15 + 0x68]
lea rcx, [rbp - 0x18]
call fcn.140065bc0
nop
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006286d
mov r8, rbx
lea rdx, [r15 + 0x68]
lea rcx, [rbp - 0x38]
call fcn.140065bc0
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
test eax, eax
je 0x140062863
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
test eax, eax
jne 0x1400628e3
lea rcx, [rbp - 0x38]
call fcn.14000ad20
nop
lea rcx, [rbp - 0x18]
call fcn.14000ad20
mov rbx, rdi
test rdi, rdi
jmp 0x140062797
cmp qword [r15 + 0xc0], 0
je 0x1400628ca
lea rdx, [r15 + 0xb0]
mov r8b, 1
lea rcx, [r15 + 0xa0]
call fcn.14004e2d0
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400a4d30
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rdx, str.Failed_re_opening_file___was_not_opened_before
lea rcx, [rbp - 0x18]
call fcn.14000a530
mov rcx, rax
call fcn.14004c970
nop
lea rcx, [r15 + 0xa0]
call fcn.14004e590
mov qword [r15 + 0x98], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x28]
call fcn.14004ca40
mov rbx, rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x48]
call fcn.14004ca40
nop
mov r8, rax
lea rdx, str.rotating_file_sink:_failed_renaming
lea rcx, [rsp + 0x68]
call fcn.14003b210
nop
lea r8, str._to
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140024ce0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140024d50
nop
mov edx, edi
mov rcx, rax
call fcn.14004c8e0
int3
Function at 0x140076240
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.1400a6160
sub rsp, rax
mov r14d, edx
mov r15, rcx
mov rsi, qword [rbp + 0x1418]
xor r12d, r12d
mov word [rbp + 0x3c0], r12w
mov byte [rbp - 0x40], r12b
mov rbx, qword [rbp + 0x1420]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.140073350
mov edi, eax
mov dword [rsp + 0x20], 3
mov ecx, r12d
mov eax, 8
cmp byte [rbx + 8], cl
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, 1
lock xadd dword [0x1400e3470], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, str.D:_sourcegcp_srcRigelLibsMicrosoft.Windows.ImplementationLibraryincludewil_resource.h
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], edi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r15
mov qword [rsp + 0x68], r12
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400e3458]
test rax, rax
je 0x140076333
call rax
mov qword [rbp - 0x60], rax
jmp 0x140076337
mov qword [rbp - 0x60], r12
mov rax, qword [0x1400e33e8]
test rax, rax
je 0x14007634a
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3428]
test rax, rax
je 0x140076367
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3410]
test rax, rax
je 0x14007637a
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3430]
test rax, rax
je 0x140076394
test byte [rsp + 0x24], 2
jne 0x140076394
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r12d
jl 0x1400763b1
mov dword [rsp + 0x28], 0x8000ffff
mov ecx, 0x8000ffff
call fcn.140073580
mov dword [rsp + 0x2c], eax
cmp byte [0x1400e33b8], r12b
jne 0x1400763df
mov rax, qword [0x1400e33c8]
test rax, rax
je 0x1400763ce
call rax
movzx r12d, al
jmp 0x1400763da
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r12b
test r12d, r12d
je 0x1400763e6
test byte [rsp + 0x24], 2
je 0x140076409
mov rax, qword [0x1400e33d8]
test rax, rax
je 0x14007645f
cmp byte [0x1400e3400], 0
jne 0x14007645f
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x14007645f
mov rax, qword [0x1400e33d8]
test rax, rax
je 0x140076432
cmp byte [0x1400e3400], 0
jne 0x140076432
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x140076452
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140072ef0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x14007646f
cmp byte [0x1400e33d0], 0
je 0x14007647e
mov rax, qword [0x1400e3418]
test rax, rax
je 0x14007647e
call rax
nop
lea rcx, [rsp + 0x20]
call fcn.140074880
int3
Function at 0x140076490
Capabilities:
Print debug messages

Disassembly:
jmp 0x140076670
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.1400a6160
sub rsp, rax
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov r8, qword [rbp + 0x1430]
mov ecx, dword [r8]
mov dword [rsp + 0x28], ecx
mov eax, dword [r8 + 4]
mov dword [rsp + 0x2c], eax
call fcn.140073310
mov ebx, eax
mov edx, 1
mov dword [rsp + 0x20], edx
mov ecx, r15d
mov eax, 8
cmp byte [r8 + 8], cl
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
lock xadd dword [0x1400e3470], edx
inc edx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x1400beaa0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rsp + 0x68], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400e3458]
test rax, rax
je 0x14007676b
call rax
mov qword [rbp - 0x60], rax
jmp 0x14007676f
mov qword [rbp - 0x60], r15
mov rax, qword [0x1400e33e8]
test rax, rax
je 0x140076782
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3428]
test rax, rax
je 0x14007679f
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3410]
test rax, rax
je 0x1400767b2
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3430]
test rax, rax
je 0x1400767cc
test byte [rsp + 0x24], 2
jne 0x1400767cc
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r15d
jge 0x1400768dc
cmp byte [0x1400e33b8], r15b
jne 0x140076805
mov rax, qword [0x1400e33c8]
test rax, rax
je 0x1400767f4
call rax
movzx r15d, al
jmp 0x140076800
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r15b
test r15d, r15d
je 0x14007680c
test byte [rsp + 0x24], 2
je 0x14007682f
mov rax, qword [0x1400e33d8]
test rax, rax
je 0x140076885
cmp byte [0x1400e3400], 0
jne 0x140076885
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x140076885
mov rax, qword [0x1400e33d8]
test rax, rax
je 0x140076858
cmp byte [0x1400e3400], 0
jne 0x140076858
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x140076878
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140072ef0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x140076895
cmp byte [0x1400e33d0], 0
je 0x1400768a4
mov rax, qword [0x1400e3418]
test rax, rax
je 0x1400768a4
call rax
nop
test byte [rsp + 0x24], 1
jne 0x1400768d1
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140074880
nop
call fcn.140074ad0
nop
int3
Function at 0x140076670
Capabilities:
Print debug messages

Disassembly:
jmp 0x140076670
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.1400a6160
sub rsp, rax
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov r8, qword [rbp + 0x1430]
mov ecx, dword [r8]
mov dword [rsp + 0x28], ecx
mov eax, dword [r8 + 4]
mov dword [rsp + 0x2c], eax
call fcn.140073310
mov ebx, eax
mov edx, 1
mov dword [rsp + 0x20], edx
mov ecx, r15d
mov eax, 8
cmp byte [r8 + 8], cl
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
lock xadd dword [0x1400e3470], edx
inc edx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x1400beaa0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov qword [rsp + 0x68], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400e3458]
test rax, rax
je 0x14007676b
call rax
mov qword [rbp - 0x60], rax
jmp 0x14007676f
mov qword [rbp - 0x60], r15
mov rax, qword [0x1400e33e8]
test rax, rax
je 0x140076782
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3428]
test rax, rax
je 0x14007679f
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3410]
test rax, rax
je 0x1400767b2
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400e3430]
test rax, rax
je 0x1400767cc
test byte [rsp + 0x24], 2
jne 0x1400767cc
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r15d
jge 0x1400768dc
cmp byte [0x1400e33b8], r15b
jne 0x140076805
mov rax, qword [0x1400e33c8]
test rax, rax
je 0x1400767f4
call rax
movzx r15d, al
jmp 0x140076800
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r15b
test r15d, r15d
je 0x14007680c
test byte [rsp + 0x24], 2
je 0x14007682f
mov rax, qword [0x1400e33d8]
test rax, rax
je 0x140076885
cmp byte [0x1400e3400], 0
jne 0x140076885
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x140076885
mov rax, qword [0x1400e33d8]
test rax, rax
je 0x140076858
cmp byte [0x1400e3400], 0
jne 0x140076858
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x140076878
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140072ef0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x140076895
cmp byte [0x1400e33d0], 0
je 0x1400768a4
mov rax, qword [0x1400e3418]
test rax, rax
je 0x1400768a4
call rax
nop
test byte [rsp + 0x24], 1
jne 0x1400768d1
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140074880
nop
call fcn.140074ad0
nop
int3
Function at 0x1400a4960
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a49e4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x1400a49e4
dec r8
sub rdx, 1
jne 0x1400a49ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a5acc
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400597c0
xor r8d, r8d
xor edx, edx
jmp 0x1400594a4

Function at 0x14003b1e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400ac280
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400cf268]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400d23c0]
xor r11d, r11d
lea rdi, [0x1400ba3a4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400ac2f0
mov rax, 0xfffffffffffffffe
jmp 0x1400ac43d
cmp word [r10 + 6], r11w
jne 0x1400ac35f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400ac31a
test r14, r14
je 0x1400ac30b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400ac43d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400ac328
mov r8b, 2
jmp 0x1400ac346
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400ac336
mov r8b, 3
jmp 0x1400ac346
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400ac432
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400ac388
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400ac432
cmp bl, bpl
jb 0x1400ac432
cmp bl, r8b
jae 0x1400ac432
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400ac3b5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400ac432
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400ac397
cmp r9, rbp
jae 0x1400ac3e1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400ac2e4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400ac432
cmp edx, 0x110000
jae 0x1400ac432
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400ac432
test r14, r14
je 0x1400ac420
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14003caf3
jmp 0x1400ac43d
mov rdx, rsi
mov rcx, r10
call fcn.14003d165
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003b67b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003b239
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14004255c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400425e9
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400425e9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400425e9
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400425d0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400425ca
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400425d2
add rdx, 0x28
jmp 0x1400425af
xor edx, edx
test rdx, rdx
jne 0x1400425db
xor al, al
jmp 0x1400425ef
cmp dword [rdx + 0x24], 0
jge 0x1400425e5
xor al, al
jmp 0x1400425ef
mov al, 1
jmp 0x1400425ef
xor al, al
jmp 0x1400425ef
add rsp, 0x18
ret

Function at 0x14003b7ca
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140050f24
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400bb368]
mov ecx, 2
lea r8, [0x1400bb360]
lea rdx, str.FlsGetValue
call fcn.1400509f4
mov ecx, ebx
test rax, rax
je 0x140050f5e
add rsp, 0x20
pop rbx
jmp qword [0x1400dd020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003b914
Capabilities:
Query environment variable

Disassembly:
jmp 0x140091dd8
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 0x140091e08
xor eax, eax
jmp 0x140091ecb
mov rbp, rbx
cmp word [rax], si
je 0x140091e2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140091e14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140091e10
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.14003c2b0
movsxd r14, eax
test eax, eax
jne 0x140091e6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140091e01
mov rcx, r14
call fcn.14003a037
mov rdi, rax
test rax, rax
jne 0x140091e84
xor ecx, ecx
call fcn.14003a177
jmp 0x140091e60
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.14003c2b0
test eax, eax
jne 0x140091eb5
mov rcx, rdi
call fcn.14003a177
jmp 0x140091ebf
xor ecx, ecx
call fcn.14003a177
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 0x14003b91e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140050e74
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400bb328]
xor ecx, ecx
lea r8, [0x1400bb320]
lea rdx, str.FlsAlloc
call fcn.1400509f4
test rax, rax
je 0x140050ead
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400dd020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14003b99b
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009a7b4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400bedf8]
mov rbp, rcx
lea r8, [0x1400bedf0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.140099cd0
test rax, rax
je 0x14009a814
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400dd030]
jmp 0x14009a82e
xor edx, edx
mov rcx, rbp
call fcn.14003b289
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003b9aa
Capabilities:
Terminate process

Disassembly:
jmp 0x140040b4c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14003baea
Capabilities:
Parse pe header

Disassembly:
jmp 0x140059758
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400594a4

Function at 0x14003bfae
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14008d164
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14008d17e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14003cafd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]