joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140265e30
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x14026604c
mov rbx, r8
mov r15, r8
inc r15
js 0x140266058
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14034f150]
xor ecx, ecx
mov rdx, r15
call fcn.1401fcae0
test rax, rax
je 0x14026605d
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.14025a776
cmp rbx, 0x10
jae 0x140265ec8
test rbx, rbx
je 0x140265f6f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x140265fd4
inc rax
cmp rbx, rax
jne 0x140265eb0
jmp 0x140265f6f
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x140265f21
lea rcx, [rbx - 0x10]
xor eax, eax
movabs rdx, 0x101010101010100
movabs r8, 0x8080808080808080
nop
mov r9, qword [r14 + rax]
mov r10, qword [r14 + rax + 8]
mov r11, rdx
sub r11, r10
or r11, r10
mov r10, rdx
sub r10, r9
or r10, r9
and r10, r11
not r10
test r10, r8
jne 0x140265f4c
add rax, 0x10
cmp rax, rcx
jbe 0x140265ef0
jmp 0x140265f4c
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r14 + rcx], 0
je 0x140265fd4
inc rcx
cmp rax, rcx
jne 0x140265f30
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x140265edb
cmp rax, rbx
je 0x140265f6f
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x140265fd4
inc rax
cmp rbx, rax
jne 0x140265f60
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.14002e250
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140266007
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14026601b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x14034f0b8]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x14026603c
mov rcx, qword [0x14034f0b8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.alloc_src_ffic_str.rs
call fcn.14025bec0
call fcn.14002e150
mov ecx, 1
mov rdx, r15
call fcn.14025b3e0
int3
Function at 0x14003173c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400317b4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400317b4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400317b4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400317a8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400317c6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031796
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400317b6

Function at 0x140033300
Capabilities:
Parse pe header

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

Function at 0x14003c094
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bdf8

Function at 0x140045fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140002300
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a8f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a900]
mov dword [rax], 1
mov rax, qword [0x14000a910]
mov dword [rax], 1
mov rax, qword [0x14000a870]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a8e0]
mov dword [0x14000e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a9c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a9a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a850]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001599
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov ecx, 8
call sym.malloc
mov qword [rbp - 8], rax
mov ecx, 8
call sym.malloc
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov dword [rax], 0x64
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0xffff
lea r8, str.DeviceKeyboardClass0
lea rax, str.HARDWAREDEVICEMAPSCSISCSI_PORT_0SCSI_BUS_0TARGET_ID
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegGetValueA]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x14000163c
lea rax, str.Reading_was_a_success_
mov rcx, rax
call dbg.__mingw_printf
lea rax, [rbp - 0x80]
mov rdx, rax
lea rax, [0x14000a168]
mov rcx, rax
call dbg.__mingw_printf
jmp 0x140001650
mov eax, dword [rbp - 0x14]
mov edx, eax
lea rax, [0x14000a16c]
mov rcx, rax
call dbg.__mingw_printf
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0xc0
pop rbp
ret

Function at 0x140001940
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400019b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x140001ae0
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b02
mov rax, qword [0x14000e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a90
add dword [0x14000e0a4], 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 [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a7e
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 esi, esi
jmp 0x140001a08
mov rax, qword [0x14000e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x140002104
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400020fb
test eax, eax
jne 0x1400020fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020e0
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 0x140002340
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002358
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002360
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002370
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023bf
add rax, 0x28
cmp rax, r9
jne 0x1400023a0
xor eax, eax
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002450
mov rdx, qword [0x14000a870]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000243e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000243e
cmp word [rax + 0x18], 0x20b
jne 0x14000243e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002450
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002429
add rbx, 0x28
cmp rbx, rdi
je 0x140002450
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002420
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x1400024e0
Capabilities:
Parse pe header

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

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a870]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002540
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002548
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002540
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002598
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000258f
test rcx, rcx
je 0x140002540
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002580
xor eax, eax
ret
Function at 0x1400025a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a870]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14000a870]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002600
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002608
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002600
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002600
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002654
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002660
add rdx, 0x28
cmp r9, rdx
jne 0x140002640
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a870]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002692
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002692
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002692
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002692
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002708
add rdx, 0x28
cmp r10, rdx
jne 0x1400026e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002717
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002727
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026fe
test ecx, ecx
jg 0x140002710
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x10002ca88
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x1c0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x1c0], rbx
mov qword [rbp + 0x1c8], rsi
mov qword [rbp + 0x1d0], rdi
mov rax, qword [0x10003d110]
xor rax, rbp
mov qword [rbp + 0x190], rax
mov eax, dword [0x10003e110]
mov r13d, 1
test r13b, al
jne 0x10002cb0f
or eax, r13d
mov ebx, 0x114
lea rcx, [rbp + 0x70]
mov r8, rbx
xor edx, edx
mov dword [0x10003e110], eax
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rbp + 0x80]
mov dword [0x10003e114], r13d
mov dword [0x10003e6c8], r11d
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x10002cb3c
xor eax, eax
jmp 0x10002cc03
mov rbx, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x3c]
mov ecx, 0x11000
lea edi, [rax - 1]
mov r12, rax
not rdi
and rdi, rsi
mov esi, 0x2000
sub rdi, rax
mov eax, dword [0x10003e6c8]
cmp eax, r13d
cmove rsi, rcx
add rsi, rbx
cmp rdi, rsi
jb 0x10002cb35
cmp eax, r13d
je 0x10002cbe3
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x10002cb35
add rbx, qword [rbp + 0x20]
bt dword [rbp + 0x28], 0xc
jae 0x10002cb80
bt dword [rbp + 0x2c], 8
mov rbx, qword [rbp + 8]
jae 0x10002cbb3
mov eax, r13d
jmp 0x10002cc03
cmp rdi, rbx
jb 0x10002cb35
cmp rbx, rsi
mov r9d, 4
mov r8d, 0x1000
cmovb rbx, rsi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10003e6c8]
jmp 0x10002cbe6
mov rbx, rdi
mov r8d, 0x104
cmp eax, r13d
lea r9, [rbp]
mov rdx, r12
mov rcx, rbx
cmove r8d, r13d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbp + 0x190]
xor rcx, rbp
call fcn.10003a9b0
mov rbx, qword [rbp + 0x1c0]
mov rsi, qword [rbp + 0x1c8]
mov rdi, qword [rbp + 0x1d0]
lea rsp, [rbp + 0x1a0]
pop r13
pop r12
pop rbp
ret
Function at 0x10002cd64
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10002ce68
test rcx, rcx
je 0x10002cdde
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x10002ce04
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10002cd64
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10002ce68
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10002cdec
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x10002ce56
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.10002ccb4
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x10002ce73
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10003a9b0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10002fbf0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
mov dword [rcx + 8], edi
mov word [rcx + 0xc], di
cmp dword [0x10003e230], edi
jne 0x10002fc87
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [0x10003e230], 1
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, edi
je 0x10002fc87
cmp dword [rsp + 0x24], 5
jb 0x10002fc67
cmp dword [rsp + 0x28], 1
jae 0x10002fc6e
cmp dword [rsp + 0x24], 6
jb 0x10002fc87
mov ecx, dword [0x10003d1d0]
cmp dword [rsp + 0x30], 2
mov eax, 0x7f
cmove ecx, eax
mov dword [0x10003d1d0], ecx
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10003a9b0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret

Function at 0x1000302e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r12, r8
mov rbp, rdx
mov rbx, rcx
call fcn.100030020
xor r13d, r13d
cmp rbp, r13
jne 0x100030310
mov eax, 0x80070057
jmp 0x100030453
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov edi, 0x80070057
mov dword [rsp + 0x88], r13d
mov dword [rsp + 0x78], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
jne 0x100030451
mov eax, dword [rsp + 0x88]
cmp eax, 1
je 0x10003036b
cmp eax, 2
je 0x10003036b
cmp eax, 7
jne 0x100030451
mov edx, dword [rsp + 0x78]
shr edx, 1
test byte [rbx + 0xc], 0x20
mov dword [rsp + 0x78], edx
je 0x1000303cf
cmp edx, dword [rbx + 8]
mov rcx, rbp
cmovae edx, dword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
lea eax, [rdx + rdx]
mov dword [rsp + 0x78], edx
mov rdx, r12
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rbx + 8], r13d
jle 0x1000303c4
movsxd rdx, dword [rbx + 8]
mov rcx, qword [rbx]
mov word [rcx + rdx*2 - 2], r13w
cmp eax, r13d
jne 0x100030451
jmp 0x100030438
mov rcx, rbx
call fcn.100030890
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, r13
je 0x100030451
mov ecx, dword [rsp + 0x78]
lea rax, [rsp + 0x30]
xor r9d, r9d
add ecx, ecx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
mov rcx, rbp
mov rdx, r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
cmp eax, r13d
je 0x100030423
lea rdx, [rsp + 0x38]
call fcn.1000308c4
jmp 0x100030451
test byte [rbx + 0xc], 4
mov rdx, rsi
je 0x100030433
call fcn.100030808
jmp 0x100030438
call fcn.100030794
cmp dword [rsp + 0x88], 2
je 0x100030447
mov edi, r13d
jmp 0x100030451
mov rcx, rbx
call fcn.1000304f4
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000304f4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx]
xor ebp, ebp
xor r8d, r8d
xor edx, edx
mov rdi, rbp
mov qword [rax + 0x10], rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp eax, ebp
je 0x1000305eb
mov edx, eax
mov rcx, rsi
call fcn.100030890
mov rdi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbp
je 0x1000305e4
mov rcx, qword [rsi]
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
je 0x1000305eb
test byte [rsi + 0xc], 0x20
je 0x1000305cd
movsxd rcx, dword [rsi + 8]
mov rdx, qword [rsi]
mov ebx, ebp
cmp rcx, rbp
je 0x10003057b
cmp rcx, 0x7fffffff
jbe 0x100030580
mov ebx, 0x80070057
cmp ebx, ebp
jl 0x1000305ff
mov ebx, ebp
cmp rcx, rbp
je 0x1000305bf
mov r8d, 0x7ffffffe
mov r9, rdi
sub r8, rcx
sub r9, rdx
lea rax, [r8 + rcx]
cmp rax, rbp
je 0x1000305ba
movzx eax, word [r9 + rdx]
cmp ax, bp
je 0x1000305ba
mov word [rdx], ax
add rdx, 2
sub rcx, 1
jne 0x10003059a
cmp rcx, rbp
jne 0x1000305c8
sub rdx, 2
mov ebx, 0x8007007a
mov word [rdx], bp
jmp 0x1000305ff
mov rdx, rdi
mov rcx, rsi
call fcn.100030794
mov rdi, rbp
mov qword [rsp + 0x38], rbp
mov ebx, ebp
jmp 0x1000305ff
mov ebx, 0x8007000e
jmp 0x1000305ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, ebp
cmovle ebx, eax
cmp rdi, rbp
je 0x100030611
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.1000308c4
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret