joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d4f50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1405848c4]
test eax, eax
je 0x1400d4f70
mov eax, dword [0x14026b490]
add rsp, 0x28
ret
lea rcx, str.HWLOC_HIDE_ERRORS
call sub.msvcrt.dll_getenv
mov rcx, rax
mov eax, dword [0x14026b490]
test rcx, rcx
je 0x1400d4f95
call sub.msvcrt.dll_atoi
mov dword [0x14026b490], eax
mov dword [0x1405848c4], 1
add rsp, 0x28
ret
Function at 0x1400dd6c0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbx
sub rsp, 0x28
xor eax, eax
cmp dword [rcx + 0xa4], 1
setne al
mov dword [rcx + 0x2f0], eax
mov rbx, rcx
lea rcx, str.HWLOC_GROUPING
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400dd710
call sub.msvcrt.dll_atoi
test eax, eax
jne 0x1400dd710
mov dword [rbx + 0x2f0], 0
add rsp, 0x28
pop rbx
pop r12
ret
mov eax, dword [rbx + 0x2f0]
test eax, eax
je 0x1400dd703
movabs rax, 0x3ca3d70a3c23d70a
lea rcx, str.HWLOC_GROUPING_ACCURACY
mov qword [rbx + 0x2f8], 5
mov qword [rbx + 0x300], rax
movabs rax, 0x3dcccccd3d4ccccd
mov qword [rbx + 0x308], rax
mov dword [rbx + 0x310], 0
call sub.msvcrt.dll_getenv
mov r12, rax
test rax, rax
je 0x1400dd7d0
lea rdx, [0x1402a2390]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400dd7b0
mov dword [rbx + 0x2f4], 0
lea rcx, str.HWLOC_GROUPING_VERBOSE
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400dd703
call sub.msvcrt.dll_atoi
mov dword [rbx + 0x2f4], eax
add rsp, 0x28
pop rbx
pop r12
ret
mov dword [rbx + 0x2f8], 1
mov rcx, r12
call sub.msvcrt.dll_atof
cvtsd2ss xmm0, xmm0
movss dword [rbx + 0x2fc], xmm0
jmp 0x1400dd778
mov dword [rbx + 0x2f8], 1
jmp 0x1400dd778
Function at 0x1400e2070
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, str.HWLOC_CPUKINDS_RANKING
call sub.msvcrt.dll_getenv
mov rsi, rax
test rax, rax
je 0x1400e20a6
lea rdx, [0x1402a272b]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400e2140
mov rcx, rbx
call fcn.1400e1fc0
test eax, eax
je 0x1400e2250
mov ecx, dword [rbx + 0x2e0]
mov edx, 0xc
call sub.msvcrt.dll_calloc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400e2104
lea rsi, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.1400e1dc0
mov r8, rsi
mov edx, 3
mov rcx, rbx
call fcn.1400e1a90
mov rcx, qword [rsp + 0x30]
mov esi, eax
call fcn.14011a240
test esi, esi
je 0x1400e2250
mov edx, dword [rbx + 0x2e0]
test edx, edx
je 0x1400e2137
mov rcx, qword [rbx + 0x2e8]
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rax, [rcx + 8]
lea rdx, [rcx + rdx*8 + 0x30]
nop dword [rax]
mov dword [rax], 0xffffffff
add rax, 0x28
cmp rax, rdx
jne 0x1400e2128
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
lea rdx, [0x1402a2733]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e2104
lea rdx, str.coretypefrequency
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e22b0
lea rdx, str.coretypefrequency_strict
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e22ef
lea rdx, str.coretype
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e22f7
lea rdx, str.frequency
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e22ff
lea rdx, str.frequency_max
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e2307
lea rdx, str.frequency_base
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e230f
lea rdx, [0x1402a2795]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e2240
lea rdx, str.no_forced_efficiency
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400e20b6
call fcn.1400d4f50
sub eax, 1
jg 0x1400e20a6
mov ecx, 2
call qword [fcn.140119ad0]
mov r8, rsi
lea rdx, str.hwloc:_Failed_to_recognize_HWLOC_CPUKINDS_RANKING_value__s_n
mov rcx, rax
call fcn.1400e1f90
jmp 0x1400e20a6
mov rcx, rbx
call fcn.1400e1fc0
test eax, eax
jne 0x1400e2104
mov rcx, qword [rbx + 0x2e8]
mov edx, dword [rbx + 0x2e0]
lea r9, [0x1400e1a70]
mov r8d, 0x28
call sub.msvcrt.dll_qsort
mov ecx, dword [rbx + 0x2e0]
test ecx, ecx
je 0x1400e2137
mov rdx, qword [rbx + 0x2e8]
xor eax, eax
add rdx, 8
nop word [rax + rax]
mov dword [rdx], eax
add eax, 1
add rdx, 0x28
cmp eax, ecx
jne 0x1400e2290
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
mov r12d, 3
mov ecx, dword [rbx + 0x2e0]
mov edx, 0xc
call sub.msvcrt.dll_calloc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400e2104
lea rsi, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.1400e1dc0
mov r8, rsi
mov edx, r12d
jmp 0x1400e20e8
mov r12d, 4
jmp 0x1400e22b6
mov r12d, 5
jmp 0x1400e22b6
mov r12d, 6
jmp 0x1400e22b6
mov r12d, 7
jmp 0x1400e22b6
mov r12d, 8
jmp 0x1400e22b6
Function at 0x1400e2560
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
mov eax, dword [rcx + 0x2e0]
mov r13, rcx
test eax, eax
jne 0x1400e259a
jmp 0x1400e2638
mov eax, dword [r13 + 0x2e0]
add ebx, 1
cmp eax, ebx
jbe 0x1400e2630
mov eax, ebx
xor r8d, r8d
mov rcx, r13
lea rdx, [rax + rax*4]
mov rax, qword [r13 + 0x2e8]
lea r12, [rax + rdx*8]
xor edx, edx
call fcn.1400db050
mov rcx, qword [r12]
mov r8, qword [rax + 0xb8]
mov rdx, rcx
call fcn.1400e7ac0
mov r14, qword [r12]
mov rcx, r14
call fcn.1400e75b0
test eax, eax
je 0x1400e2588
mov rcx, r14
mov esi, 1
call fcn.1400e6200
mov edx, dword [r12 + 0x18]
mov rcx, qword [r12 + 0x20]
call fcn.1400d4fb0
mov eax, ebx
lea rdx, [r12 + 0x28]
mov rcx, r12
not eax
add eax, dword [r13 + 0x2e0]
lea r8, [rax + rax*4]
shl r8, 3
call sub.msvcrt.dll_memmove
mov eax, dword [r13 + 0x2e0]
sub eax, 1
mov dword [r13 + 0x2e0], eax
cmp eax, ebx
ja 0x1400e259a
test esi, esi
je 0x1400e2638
test eax, eax
jne 0x1400e2648
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
cmp eax, 1
je 0x1400e2661
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
jmp fcn.1400e2070
mov rax, qword [r13 + 0x2e8]
mov dword [rax + 8], 0
jmp 0x1400e2638
Function at 0x1400e42b0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x318]
mov dword [rcx + 0xc4], 1
mov rsi, rcx
test rbx, rbx
je 0x1400e4370
lea rbp, str.components.c
lea rdi, str.backend__is_thissystem__0
nop dword [rax + rax]
mov eax, dword [rbx + 0x10]
test eax, eax
jne 0x1400e4309
mov eax, dword [rbx + 0x28]
cmp eax, 0xffffffff
je 0x1400e4309
test eax, eax
jne 0x1400e43a0
mov dword [rsi + 0xc4], 0
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400e42e8
mov rbx, qword [rsi + 0x318]
test byte [rsi + 0x20], 2
jne 0x1400e43d8
test rbx, rbx
je 0x1400e4370
lea rbp, str.components.c
lea rdi, str.backend__is_thissystem__0
jmp 0x1400e4349
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x1400e4370
cmp dword [rbx + 0x10], 1
jne 0x1400e4340
mov eax, dword [rbx + 0x28]
cmp eax, 0xffffffff
je 0x1400e4340
test eax, eax
jne 0x1400e43c0
mov dword [rsi + 0xc4], 0
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400e4349
nop
lea rcx, str.HWLOC_THISSYSTEM
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400e438f
call sub.msvcrt.dll_atoi
mov dword [rsi + 0xc4], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x401
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400e42ff
mov r8d, 0x40f
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400e435b
mov dword [rsi + 0xc4], 1
jmp 0x1400e4323

Function at 0x1400e44e0
Capabilities:
Query environment variable

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov edi, edx
mov rcx, r8
mov r12, r9
mov eax, dword [rsi + 0xc8]
test eax, eax
jne 0x1400e45b0
xor edx, edx
call fcn.1400e2fe0
mov rbx, rax
test rax, rax
je 0x1400e45cc
mov r9, r12
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [rbx + 0x10]
mov r12, rax
test rax, rax
je 0x1400e45c4
cmp qword [rsi + 0x318], 0
mov dword [rax + 0x10], edi
je 0x1400e455b
mov rcx, rsi
call fcn.1400e4430
mov rcx, r12
call fcn.1400e3bb0
cmp dword [rbx + 8], 1
mov r12d, eax
je 0x1400e4580
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str.HWLOC_ANNOTATE_GLOBAL_COMPONENTS
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400e456c
call sub.msvcrt.dll_atoi
test eax, eax
je 0x1400e456c
and dword [rsi + 0x32c], 0xffffffbf
jmp 0x1400e456c
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x10
jmp 0x1400e456c
mov r12d, 0xffffffff
jmp 0x1400e456c
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x28
jmp 0x1400e456c
Function at 0x1400ed9b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140584928]
test eax, eax
je 0x1400ed9d0
mov eax, dword [0x140584924]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400eda10
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x140584924], eax
mov dword [0x140584928], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_IMPORT
call sub.msvcrt.dll_getenv
mov rcx, rax
mov eax, dword [0x140584924]
test rcx, rcx
jne 0x1400ed9e4
jmp 0x1400ed9f7

Function at 0x1400eda30
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140584920]
test eax, eax
je 0x1400eda50
mov eax, dword [0x14058491c]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400eda90
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x14058491c], eax
mov dword [0x140584920], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_EXPORT
call sub.msvcrt.dll_getenv
mov rcx, rax
mov eax, dword [0x14058491c]
test rcx, rcx
jne 0x1400eda64
jmp 0x1400eda77

Function at 0x1400efb80
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140584930]
test eax, eax
je 0x1400efba0
mov eax, dword [0x14058492c]
add rsp, 0x28
ret
lea rcx, str.HWLOC_XML_VERBOSE
call sub.msvcrt.dll_getenv
mov rcx, rax
mov eax, dword [0x14058492c]
test rcx, rcx
je 0x1400efbc5
call sub.msvcrt.dll_atoi
mov dword [0x14058492c], eax
mov dword [0x140584930], 1
add rsp, 0x28
ret
Function at 0x1400f94e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp byte [rcx], 0x2d
mov qword [rsp + 0xb0], r8
mov r14, rcx
mov r13, rdx
jne 0x1400f9512
cmp byte [rcx + 1], 0
lea rax, str._dev_stdin
cmove r14, rax
lea rdx, [0x1402a6c8a]
mov rcx, r14
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x1400f961a
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14010cf10
test eax, eax
je 0x1400f95e8
mov ecx, 0x1001
mov r15d, 0x1000
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x1400f9629
movabs rdi, 0x7fffffffffffffff
mov rsi, r15
xor ebx, ebx
jmp 0x1400f9595
lea rbp, [rsi + rsi]
mov rcx, r14
lea rdx, [rbp + 1]
call sub.msvcrt.dll_realloc
test rax, rax
je 0x1400f9621
and rsi, rdi
mov r14, rax
mov r15, rsi
mov rsi, rbp
lea rcx, [r14 + rbx]
mov r9, r12
mov r8, r15
mov edx, 1
call sub.msvcrt.dll_fread
add rbx, rax
mov byte [r14 + rbx], 0
cmp r15, rax
je 0x1400f9570
mov rcx, r12
add rbx, 1
call fcn.14011a1f0
mov rax, qword [rsp + 0xb0]
mov qword [r13], r14
mov qword [rax], rbx
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, word [rsp + 0x26]
mov ecx, 0x1001
mov r15d, 0x1000
and ax, 0xf000
cmp ax, 0x8000
jne 0x1400f954d
mov eax, dword [rsp + 0x34]
lea r15d, [rax + 1]
movsxd r15, r15d
lea rcx, [r15 + 1]
jmp 0x1400f954d
mov eax, 0xffffffff
jmp 0x1400f95d3
mov rcx, r14
call fcn.14011a240
mov rcx, r12
call fcn.14011a1f0
mov eax, 0xffffffff
jmp 0x1400f95d3

Function at 0x1400fc900
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [0x14026b5e8]
mov eax, dword [rsp + 0x40]
cmp ebx, 1
jbe 0x1400fc943
mov rdx, qword [0x1405849b8]
mov eax, ebx
shl eax, 6
test rdx, rdx
je 0x1400fc943
lea ecx, [rbx - 1]
sub ebx, 1
movzx ecx, cx
shl ebx, 6
call rdx
movzx eax, ax
add eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x1400fff60
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov r11, rdx
cmp rdx, 2
jbe 0x1401000f8
movzx ebx, byte [rcx]
movzx eax, byte [rcx + 1]
lea r10, [rcx + 3]
sub r11, 3
movzx esi, byte [rcx + 2]
mov edi, ebx
shl ebx, 4
mov edx, eax
shr dl, 4
mov ecx, ebx
shl eax, 2
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
and ecx, 0x30
and eax, 0x3c
shr dil, 2
add ecx, edx
mov edx, esi
and esi, 0x3f
shr dl, 6
add edx, eax
mov eax, 4
cmp r9, 3
ja 0x140100008
jmp 0x1401000e8
movzx ecx, byte [r10]
add r10, 3
add rax, 4
sub r11, 3
movzx edx, byte [r10 - 2]
movzx esi, byte [r10 - 1]
mov edi, ecx
shl ecx, 4
mov ebp, edx
and ecx, 0x30
shl edx, 2
shr bpl, 4
and edx, 0x3c
shr dil, 2
add ecx, ebp
mov ebp, esi
and esi, 0x3f
shr bpl, 6
add edx, ebp
cmp r9, rax
jb 0x1401000e8
and ecx, 0x7f
and edx, 0x7f
and edi, 0x3f
movzx ecx, byte [rbx + rcx]
movzx edi, byte [rbx + rdi]
mov byte [r8 + rax - 3], cl
movzx ecx, byte [rbx + rdx]
mov rdx, rsi
and edx, 0x3f
mov byte [r8 + rax - 4], dil
movzx edx, byte [rbx + rdx]
mov byte [r8 + rax - 2], cl
mov byte [r8 + rax - 1], dl
cmp r11, 2
ja 0x1400fffc0
test r11, r11
jne 0x140100060
cmp rax, r9
jae 0x1401000e8
mov byte [r8 + rax], 0
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx edx, byte [r10]
cmp r11, 2
jne 0x1401000f2
movzx ecx, byte [r10 + 1]
mov ebx, ecx
shl ecx, 2
shr bl, 4
and ecx, 0x3c
mov r10d, edx
shl edx, 4
lea rsi, [rax + 4]
and edx, 0x30
shr r10b, 2
add edx, ebx
cmp rsi, r9
ja 0x1401000e8
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
and r10d, 0x3f
and edx, 0x7f
movzx r10d, byte [rbx + r10]
movzx edx, byte [rbx + rdx]
mov byte [r8 + rax], r10b
lea r10, [r8 + rax + 2]
mov byte [r8 + rax + 1], dl
add rax, 3
mov edx, 0x3d
cmp r11, 1
je 0x1401000d1
movzx ecx, cl
movzx edx, byte [rbx + rcx]
mov byte [r10], dl
mov byte [r8 + rax], 0x3d
mov rax, rsi
jmp 0x14010004a
mov eax, 0xffffffff
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ecx, ecx
xor ebx, ebx
jmp 0x14010007e
mov r10, rcx
xor eax, eax
jmp 0x140100045

Function at 0x140109fd0
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.140119ad0
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.140119ad0
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 0x14010a040
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140584a34]
mov rbx, rcx
test esi, esi
jle 0x14010a170
mov rax, qword [0x140584a38]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14010a08b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14010a115
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14010a070
mov rcx, rbx
call fcn.14010aa90
mov rdi, rax
test rax, rax
je 0x14010a192
mov rax, qword [0x140584a38]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14010abd0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140584a38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14010a177
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14010a10e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14010a120
add dword [0x140584a34], 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 [0x140584a38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14010a10e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140109fd0
nop dword [rax]
xor esi, esi
jmp 0x14010a098
mov rax, qword [0x140584a38]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140109fd0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140109fd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14010a700
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140584aa0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140584a80]
test rbx, rbx
je 0x14010a75c
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 eax, eax
jne 0x14010a753
test rsi, rsi
je 0x14010a753
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14010a738
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 0x14010aa90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402af030]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14010aab0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14010aab8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14010aab0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14010ab0d
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 0x14010ab04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14010aab0
add rax, 0x28
cmp rax, r9
jne 0x14010aaf0
xor eax, eax
ret

Function at 0x14010ab10
Capabilities:
Parse pe header

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

Function at 0x14010abd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402af030]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14010abef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14010abf8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14010bba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x14010bd50
cmp byte [rbx], 0
je 0x14010bd18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14010bd60
test al, 0x10
je 0x14010bd18
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__fullpath
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
test rax, rax
je 0x14010bd88
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x14010bce0
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x14010bc88
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x14010bc88
cmp cl, 0x2f
jne 0x14010bd38
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x14010bd70
test eax, eax
je 0x14010bc69
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x14010bc69
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x14010bc69
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x14010bc88
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x14010bd25
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 2
jmp 0x14010bd25
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x14010bc69
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x14010bd25
Function at 0x14010cec0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14010cef0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14011c3c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1402af0f0]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14011c4da
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14011c4b2
add rax, 1
cmp rax, 0x6b
je 0x14011c4cf
cmp byte [rcx + rax], 0
jne 0x14011c4a8
movsxd rdx, eax
cmp eax, 0x6a
je 0x14011c4cf
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14011c4c3

Function at 0x14011c870
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1405856c0], 1
je 0x14011c8e8
lea rdi, [0x1405856c0]
mov rcx, rdi
call fcn.14011c140
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14011ba50
mov esi, dword [0x1405856c0]
test esi, esi
jne 0x14011c8f8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14026b838], eax
cmp eax, 0xffffffff
je 0x140269e06
mov dword [0x1405856c0], 1
mov rcx, rbp
call fcn.14011bd40
test rbx, rbx
je 0x14011c8e8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14011c4f0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14011c8c8
mov ecx, 2
call qword [fcn.140119ad0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14011c8c8
call sub.msvcrt.dll_abort
nop