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

Disassembly:
jmp 0x14007ceb8
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x14007cf8c
mov rsi, rax
cmp word [rax], r14w
je 0x14007cf0b
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14007cef3
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14007ceef
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x14007cf8c
mov rcx, rbp
call fcn.140031ab3
mov rdi, rax
test rax, rax
je 0x14007cf7f
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14007cf7f
mov rsi, rdi
mov rdi, r14
jmp 0x14007cf82
mov rsi, r14
mov rcx, rdi
call fcn.1400317ac
jmp 0x14007cf8f
mov rsi, r14
test rbx, rbx
je 0x14007cf9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400319a5
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14003ad48
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140099eb8]
xor ecx, ecx
lea r8, [0x140099eb0]
lea rdx, [0x140099ec0]
call fcn.14003a7a8
test rax, rax
je 0x14003ad81
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400b9010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140031e9b
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14003819c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14003822a
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14003822a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003822a
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140038211
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14003820b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140038213
add rdx, 0x28
jmp 0x1400381f0
xor edx, edx
test rdx, rdx
jne 0x14003821c
xor al, al
jmp 0x140038230
cmp dword [rdx + 0x24], 0
jge 0x140038226
xor al, al
jmp 0x140038230
mov al, 1
jmp 0x140038230
xor al, al
jmp 0x140038230
add rsp, 0x18
ret

Function at 0x1400321cf
Capabilities:
Parse pe header

Disassembly:
jmp 0x14006a88c
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14006a5e0
Function at 0x14003223d
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14003ae50
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140099f18]
mov edi, ecx
lea rdx, [0x140099f20]
mov ecx, 3
lea r8, [0x140099f10]
call fcn.14003a7a8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14003ae90
call qword [0x1400b9010]
jmp 0x14003ae96
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140032544
Capabilities:
Parse pe header

Disassembly:
jmp 0x14003878c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400387d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400387d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400387d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400387d7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400387d7
cmp dword [rcx + 0xf8], 0
je 0x1400387d7
mov al, 1
jmp 0x1400387d9
xor al, al
add rsp, 0x28
ret

Function at 0x1400327d3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14008adac
sub rsp, 0x58
mov rax, qword [0x1400ad008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov r9, rdx
cmp rax, 0x20
mov r8, rcx
jae 0x14008ae44
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 0x20
jl 0x14008adcb
mov al, byte [rdx]
jmp 0x14008adfe
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
inc r9
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r9]
test al, al
jne 0x14008addf
jmp 0x14008ae23
movzx eax, r9b
mov edx, 1
movzx ecx, r9b
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x14008ae3f
inc r8
mov r9b, byte [r8]
test r9b, r9b
jne 0x14008ae04
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140030bef
add rsp, 0x58
ret
mov rax, r8
jmp 0x14008ae2d
call fcn.140031798
int3

Function at 0x1400327d8
Capabilities:
Terminate process

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

Function at 0x1400329f9
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400721a0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x14009c348]
mov ecx, 3
lea r8, [0x14009c340]
lea rdx, str.FlsAlloc
call fcn.14007184c
test rax, rax
je 0x1400721dc
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400b9010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x140032b70
Capabilities:
Get geographical location

Disassembly:
jmp 0x140072440
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, [0x14009c470]
mov rbp, rcx
lea r8, [0x14009c468]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xb
call fcn.14007184c
mov rcx, rbp
test rax, rax
je 0x140072496
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [0x1400b9010]
jmp 0x1400724ad
xor edx, edx
call fcn.140031653
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 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004044d0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404490]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call dbg.__main
mov dword [rbp - 6], 0x6f6d6544
mov word [rbp - 2], 0x21
movabs rax, 0x6f57206f6c6c6548
mov qword [rbp - 0x13], rax
mov dword [rbp - 0xb], 0x21646c72
mov byte [rbp - 7], 0
lea rdx, [rbp - 0x13]
lea rax, [rbp - 6]
mov r9d, 0
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x401a80
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x401af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00407614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401c98
mov rax, qword [0x00407618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401b3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401bc7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401b20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x401cd2
mov rax, qword [0x00407618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401ce1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401bc0
sub eax, 4
and eax, 0xfffffffb
jne 0x401c50
add dword [0x00407614], 1
cmp ebx, 8
jae 0x401bf8
test bl, 4
jne 0x401ca0
test ebx, ebx
je 0x401be9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401cc0
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 0x401be9
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 0x401c2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00407618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x401b47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401be9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401be9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00407618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4024c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402514
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 0x40250b
test r12, r12
je 0x40250b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024f0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402740
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402750
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402760
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4027a5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40279c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4027a7
add rax, 0x28
cmp rax, r9
jne 0x402788
xor eax, eax
ret

Function at 0x402850
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4028c9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028c9
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 0x4028c6
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 0x4028bd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4028c9
add r8, 0x28
cmp r8, r9
jne 0x4028a8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x4029b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402a1f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a1f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402a1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402a14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a28
add rax, 0x28
cmp rax, r9
jne 0x402a00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402a40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402ab8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ab8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ab8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ab8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402aac
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402ac0
add rdx, 0x28
cmp rdx, r10
jne 0x402a98
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402ad0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402ade
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402ab5
test r8d, r8d
jg 0x402ac8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14000c780
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.140016c60
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.140016c60
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 0x14000c7f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402d50b4]
mov rbx, rcx
test esi, esi
jle 0x14000c920
mov rax, qword [0x1402d50b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000c83b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000c8c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000c820
mov rcx, rbx
call fcn.14000d240
mov rdi, rax
test rax, rax
je 0x14000c942
mov rax, qword [0x1402d50b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000d380
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402d50b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c927
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000c8be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000c8d0
add dword [0x1402d50b4], 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 [0x1402d50b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c8be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000c780
nop dword [rax]
xor esi, esi
jmp 0x14000c848
mov rax, qword [0x1402d50b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000c780
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000c780
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ceb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402d5120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402d5100]
test rbx, rbx
je 0x14000cf0c
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 0x14000cf03
test rsi, rsi
je 0x14000cf03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000cee8
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 0x14000d240
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000d2c0
Capabilities:
Parse pe header

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

Function at 0x14000d380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402aeee0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000d39f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000d3a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14007a6b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007a6f8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007a6ca
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
lea rcx, [0x1402a7520]
jmp 0x14000e090

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

Disassembly:
lea rcx, [0x1402a7520]
jmp 0x14000e090
Function at 0x1000fd7ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor r13d, r13d
mov r12, rdx
mov rbx, rcx
lea rsi, [0x100011668]
cmp rdx, r13
jne 0x1000fd800
lea r8, [0x1000116a8]
mov edx, 0x106
mov rcx, rsi
call fcn.100099ad8
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x1000fd81b
lea r8, [0x10000fb98]
mov edx, 0x107

Function at 0x1000fde5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, r8
mov dword [rsp + 0x60], 4
test r8, r8
jne 0x1000fde92
lea r8, [0x10000a418]
lea rcx, [0x100011a60]
mov edx, 0x46e
call fcn.100099ad8
jmp 0x1000fdee4
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1000fdea2
mov ebx, 0x8000ffff
jmp 0x1000fdef1
and dword [r8], ebx
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000fdedd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1000fdef1
cmp dword [rsp + 0x68], 4
je 0x1000fdeeb
mov ebx, 0x80004005
jmp 0x1000fdef1
mov ecx, dword [rsp + 0x30]
mov dword [rdi], ecx
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret