joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cf60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47d02a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00642988]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47d00f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004b0ae0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x47cffe
mov edi, 1
lea rsi, [0x004b0ae0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0055f998]
lea rsi, [0x0055f120]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x49c5e0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x49c5f7
inc rax
cmp rax, 4
jge 0x49c60f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x49c5f4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x49c620
inc rax
cmp rax, 4
jge 0x49c62e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x49c657
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49c63b
jmp 0x49c61d
Function at 0x6d7d52f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f65e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d5478
mov rax, qword [0x6d7f65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d533c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d53c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d5320
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d54ad
mov rax, qword [0x6d7f65e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f65e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d5490
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d53be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d5420
add dword [0x6d7f65e4], 1
cmp edi, 8
jae 0x6d7d53f3
test dil, 4
jne 0x6d7d5464
test edi, edi
je 0x6d7d53e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d547f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d53e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d540c
jmp 0x6d7d53e8
add rsi, qword [0x6d7f65e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d53be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d53e8
xor esi, esi
jmp 0x6d7d5347
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d53e8
mov rax, qword [0x6d7f65e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d5c00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f68c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f68a0]
test rbx, rbx
je 0x6d7d5c54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d5c4b
test rsi, rsi
je 0x6d7d5c4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d5c30
lea rcx, [0x6d7f68c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d5e90
Capabilities:
Parse pe header

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

Function at 0x6d7d5eb0
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 0x6d7d5ef1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d5ee8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d5ef3
add rax, 0x28
cmp rax, r9
jne 0x6d7d5ed4
xor eax, eax
ret

Function at 0x6d7d5f90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d5ffd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5ffd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d5ffd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d5ff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d5fff
add rax, 0x28
cmp rax, r9
jne 0x6d7d5fe0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d6100
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d6120
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d6118
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d617d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d6174
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d6184
add rax, 0x28
cmp rax, r9
jne 0x6d7d6160
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d61a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d620e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d620e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d620e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d620e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d6205
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d6215
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d61f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d6228
jmp 0x6d7d620e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d6236
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d620e
test r9d, r9d
jg 0x6d7d6220
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d6570
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x401835
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jae 0x40192a
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401924
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 4]
lea rcx, [rax + rax]
mov rax, qword [rbp - 0x30]
add rax, rcx
movzx eax, word [rax]
movzx eax, ax
lea rcx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rcx
mov eax, dword [rax]
mov eax, eax
add rax, rdx
jmp 0x40192f
add dword [rbp - 4], 1
jmp 0x4018bb
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x402550
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d684]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4026d8
mov rax, qword [0x0040d688]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40259c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402625
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402580
mov rcx, rbx
call fcn.004031f0
test rax, rax
mov r12, rax
je 0x40270d
mov rax, qword [0x0040d688]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00403320
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040d688]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4026f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40261e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402680
add dword [0x0040d684], 1
cmp edi, 8
jae 0x402653
test dil, 4
jne 0x4026c4
test edi, edi
je 0x402648
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4026df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402648
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40266c
jmp 0x402648
add rsi, qword [0x0040d688]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40261e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00408410
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402648
xor esi, esi
jmp 0x4025a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402648
mov rax, qword [0x0040d688]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00408410
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00408410
nop
nop dword [rax]

Function at 0x402e60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040d960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d940]
test rbx, rbx
je 0x402eb4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402eab
test rsi, rsi
je 0x402eab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402e90
lea rcx, [0x0040d960]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4031f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040a8c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40325d
mov rcx, r8
call fcn.004030d0
test eax, eax
je 0x40325d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40325d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403254
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40325f
add rax, 0x28
cmp rax, r9
jne 0x403240
xor eax, eax
add rsp, 0x28
ret

Function at 0x408410
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00408170
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.00408170
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x14009c6a8
Capabilities:
Set registry value

Disassembly:
jmp 0x1400be540
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
mov rax, qword [rbp + 0xe0]
cmp qword [rax], 0
jne 0x1400be5a9
mov eax, dword [0x14023a060]
inc eax
lea rcx, str.m_hKey___0
mov qword [rsp + 0x28], rcx
lea rcx, [0x1401e8148]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, [0x1401e8310]
mov ecx, 2
call fcn.14009b8e3
cmp eax, 1
jne 0x1400be5a9
int3
xor eax, eax
test eax, eax
jne 0x1400be55d
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0xe8]
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14009c75c
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1400e9640
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14023f048]
test rcx, rcx
jne 0x1400e9666
call fcn.1400e97c4
test eax, eax
je 0x1400e96a5
mov rcx, qword [0x14023f048]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rbx, rax
test rax, rax
je 0x1400e9687
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x16]
call fcn.14009ecbe
jmp 0x1400e9709
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400e96bc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x14023f048]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x1400e96e9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x1400e970c
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x14023f048]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x1400e96f0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14009c7ca
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400bdec0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [rbp + 0x140]
cmp qword [rax], 0
jne 0x1400bdf43
mov eax, dword [0x14023a05c]
add eax, 5
lea rcx, str.m_hKey___0
mov qword [rsp + 0x28], rcx
lea rcx, [0x1401e8148]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, [0x1401e8310]
mov ecx, 2
call fcn.14009b8e3
cmp eax, 1
jne 0x1400bdf43
int3
xor eax, eax
test eax, eax
jne 0x1400bdef6
mov dword [rbp + 0x24], 4
lea rax, [rbp + 0x24]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x44]
xor r8d, r8d
mov rdx, qword [rbp + 0x148]
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400bdf91
mov eax, dword [rbp + 4]
jmp 0x1400bdfa0
cmp dword [rbp + 0x44], 4
je 0x1400bdf9e
mov eax, 0xd
jmp 0x1400bdfa0
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401e9ca0]
call fcn.14009f330
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14009cddd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1400ce2c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
mov r8d, ILClone
mov edx, 1
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400ce302
xor eax, eax
jmp 0x1400ce3ae
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400ce330
xor eax, eax
jmp 0x1400ce3ae
mov rax, qword [rbp + 0x48]
add rax, 0x28
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x168], 0
je 0x1400ce35f
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x14]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rbp + 0x168]
mov dword [rcx], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x10]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
and eax, 0xff
shl eax, 0x18
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx + 0x10]
and rcx, 0xffff
movzx ecx, cx
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx + 0x14]
shr rcx, 0x10
and rcx, 0xffff
movzx ecx, cx
or eax, ecx
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14009d4bd
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14016c520
mov rax, rcx
neg rcx
test rax, 7
je 0x14016c53d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14016c598
test al, 7
jne 0x14016c530
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14016c551
mov rdx, qword [rax - 8]
test dl, dl
je 0x14016c5c2
test dh, dh
je 0x14016c5bc
shr rdx, 0x10
test dl, dl
je 0x14016c5b6
test dh, dh
je 0x14016c5b0
shr rdx, 0x10
test dl, dl
je 0x14016c5aa
test dh, dh
je 0x14016c5a4
shr edx, 0x10
test dl, dl
je 0x14016c59e
test dh, dh
jne 0x14016c551
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14009d50d
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401b3470
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401b2ff0
lea rcx, [rsp + 0x20]
call fcn.1401b3040
movzx eax, al
test eax, eax
jne 0x1401b34b5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401b3020
mov rax, qword [rsp + 0x40]
jmp 0x1401b35af
lea rcx, [rsp + 0x20]
call fcn.1401b3140
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401b30e0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.14009d873
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14009ce9b
lea rcx, [rsp + 0x28]
call fcn.14009dd0f
movzx eax, al
test eax, eax
jne 0x1401b354f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14009f114
lea rcx, [rsp + 0x20]
call fcn.1401b3020
mov rax, qword [rsp + 0x50]
jmp 0x1401b35af
lea rcx, [rsp + 0x20]
call fcn.1401b3140
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400a00f0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.14009d7ce
lea rcx, [rsp + 0x28]
call fcn.1400a098d
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14009f114
lea rcx, [rsp + 0x20]
call fcn.1401b3020
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x14009d9f4
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140116b20
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401164a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140116b5f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140259020]
jmp 0x140116b69
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14009dc83
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140116a50
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140116420
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140116a91
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140259020]
jmp 0x140116a97
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x14009dd14
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401aa320
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401a9290
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401aa387
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140259030]
jmp 0x1401aa3a9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14009d021
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x14009dd32
Capabilities:
Terminate process

Disassembly:
jmp 0x1400f2fa0
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]
add rsp, 0x28
ret