joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014c70
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e8d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140014cfa
cmp byte [rbp - 0x21], r15b
je 0x140014cf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014d30
call fcn.14000b5b4
test eax, eax
jne 0x140014d1c
cmp byte [rbp - 0x21], r15b
je 0x140014d14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014d30
cmp byte [rbp - 0x21], r15b
je 0x140014d2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000deb0
test eax, eax
jne 0x140014dd0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e8d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140014d6f
cmp byte [rbp - 0x21], r15b
je 0x140014da4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140014da4
call fcn.14000b5b4
test eax, eax
jne 0x140014d90
cmp byte [rbp - 0x21], r15b
je 0x140014d89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140014da4
cmp byte [rbp - 0x21], r15b
je 0x140014da1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000deb0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140014dd0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140014dd3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140014de1
mov rcx, rdi
call fcn.14000b364
cmp byte [rbp + 0x3f], r15b
je 0x140014df0
mov rcx, qword [rbp + 0x27]
call fcn.14000b364
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400173e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4ca450
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cae52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4caeea
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4caece
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4caec2
cmp qword [rbp - 0x10], 0
je 0x2fc4caec2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cae88
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4caeeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4caff0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb018
mov eax, 0
jmp 0x2fc4cb066
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb041
mov eax, 0
jmp 0x2fc4cb066
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb061
mov eax, 0
jmp 0x2fc4cb066
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb06c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb0ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb0e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb0e1
mov rax, qword [rbp - 8]
jmp 0x2fc4cb0ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb0b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000c6d4
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
pxor xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cvtsi2sd xmm0, rdx
test rdx, rdx
jns 0x14000c707
addsd xmm0, qword [0x140030590]
divsd xmm0, qword [0x140030588]
call fcn.140017570
movsd xmm2, qword [0x140030580]
xor eax, eax
movapd xmm1, xmm0
movapd xmm6, xmm0
mulsd xmm1, qword [0x140030578]
comisd xmm1, xmm2
jbe 0x14000c74b
subsd xmm1, xmm2
comisd xmm1, xmm2
jae 0x14000c74b
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si rcx, xmm1
add rcx, rax
mov qword [rsi], rcx
mov esi, 2
inc rcx
mov edx, esi
call fcn.1400136c4
mov r11, rax
test rax, rax
je 0x14000c88a
xor edx, edx
lea r10, [0x140000000]
test rbx, rbx
je 0x14000c839
mov r9, rax
movsxd rax, edx
cmp rax, rbx
jae 0x14000c798
movzx ecx, word [rdi]
inc edx
add rdi, rsi
jmp 0x14000c79a
xor ecx, ecx
movsxd rax, edx
cmp rax, rbx
jae 0x14000c7ad
movzx r8d, word [rdi]
inc edx
add rdi, rsi
jmp 0x14000c7b0
xor r8d, r8d
movsxd rax, edx
cmp rax, rbx
jae 0x14000c7c2
movzx eax, word [rdi]
inc edx
add rdi, rsi
jmp 0x14000c7c4
xor eax, eax
shl ecx, 8
add ecx, r8d
shl ecx, 8
add ecx, eax
mov eax, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, word [r10 + rax*2 + 0x3f550]
mov word [r9], ax
add r9, rsi
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, word [r10 + rax*2 + 0x3f550]
mov word [r9], ax
add r9, rsi
mov eax, ecx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, word [r10 + rax*2 + 0x3f550]
mov word [r9], ax
movzx eax, word [r10 + rcx*2 + 0x3f550]
add r9, rsi
mov word [r9], ax
movsxd rax, edx
add r9, rsi
cmp rax, rbx
jb 0x14000c786
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbx, rax
mov edx, dword [r10 + rbx*4 + 0x3f5d0]
test edx, edx
jle 0x14000c887
mulsd xmm6, qword [0x140030570]
mov rcx, r11
cvttsd2si rax, xmm6
add rax, rax
sub rcx, rax
mov eax, edx
sub rcx, rsi
mov edx, 0x3d
mov word [rcx], dx
sub rcx, rsi
dec rax
jne 0x14000c877
mov rax, r11
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x14000d8a4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000d907
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d91b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000d91b
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x14000d920
cmp dword [rcx + 8], 0
je 0x14000d91b
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000d920
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d930
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000d956
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14000d8a4
jmp 0x14000d9bd
cmp byte [0x1400578e8], 0
jne 0x14000d99a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d98a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400578e0], rax
jmp 0x14000d991
mov rax, qword [0x1400578e0]
mov byte [0x1400578e8], 1
jmp 0x14000d9a1
mov rax, qword [0x1400578e0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000d9b7
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x14000d9bd
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e1d0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x68
test rdx, rdx
jne 0x14000e1dd
xor eax, eax
jmp 0x14000e23a
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
add rsp, 0x68
ret

Function at 0x14000e630
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0xf50]
mov eax, 0x1050
call fcn.140013a40
sub rsp, rax
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rbp + 0xf40], rax
mov rbx, rcx
mov edi, r8d
mov r12, rdx
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], si
call fcn.140013aa0
lea r8, str.SOFTWAREClassesCLSID_sInprocServer32
lea rcx, [rsp + 0x40]
mov r9, rbx
mov edx, 0x400
call fcn.140014c60
lea rax, [rsp + 0x30]
neg edi
sbb rcx, rcx
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
add rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000e6d6
cmp eax, 2
sete sil
jmp 0x14000e73b
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x740]
lea rdx, [0x140030644]
mov dword [rsp + 0x38], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000e70f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000e73d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x740]
sub rdx, r12
movzx eax, word [r12]
movzx ecx, word [r12 + rdx]
sub eax, ecx
jne 0x14000e735
add r12, 2
test ecx, ecx
jne 0x14000e71f
test eax, eax
setne sil
mov eax, esi
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.140013160
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14000e9f0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor edi, edi
mov word [rcx], di
mov dword [rax - 0x38], 0x104
mov r9, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400316b0]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov ebx, eax
test eax, eax
jns 0x14000ea4f
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.1400109bc
xor edx, edx
mov ecx, ebx
call fcn.14002f010
nop
jmp 0x14000ea5a
test ebx, ebx
jns 0x14000eadb
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
jns 0x14000ea93
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
call fcn.1400109bc
xor edx, edx
mov ecx, ebx
call fcn.14002f010
nop
jmp 0x14000ea9e
test ebx, ebx
jns 0x14000eadb
mov r9d, 1
lea r8d, [r9 + 0x19]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
test eax, eax
jns 0x14000ead5
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
call fcn.1400109bc
xor edx, edx
mov ecx, ebx
call fcn.14002f010
nop
jmp 0x14000eadb
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14000fac0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd r12, edx
mov rdi, rcx
xor ebx, ebx
mov word [rcx], bx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test eax, eax
jns 0x14000fb30
mov edx, eax
lea rcx, str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1400109bc
xor edx, edx
mov ecx, esi
call fcn.14002f010
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140010348
mov rax, qword [rax]
test rax, rax
je 0x14000fb4c
mov r8, qword [rax]
jmp 0x14000fb4f
mov r8, rbx
mov rdx, r12
mov r9d, 0x104
mov rcx, rdi
call fcn.140013bd8
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x14000fba0
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x14000fba0
test rdi, rdi
je 0x14000fba0
cmp qword [rdi], rbx
je 0x14000fb89
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000fb97
call fcn.140017d18
mov rcx, rdi
call fcn.140017ba0
nop
jmp 0x14000fba8
test esi, esi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140013160
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r12
pop rdi
pop rsi
ret
Function at 0x1400107bc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.140013a40
sub rsp, rax
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, 0x7fe
lea rcx, [rbp + 0x782]
xor r13d, r13d
xor edx, edx
mov r8d, ebx
mov word [rbp + 0x780], r13w
call fcn.140013aa0
or r14, 0xffffffffffffffff
lea rcx, [rbp + 0x780]
mov r8, r14
mov r9, rsi
mov edx, 0x400
mov qword [rsp + 0x20], rdi
call fcn.140019e84
test eax, eax
jns 0x140010847
mov word [rbp + 0xf7e], r13w
xor edx, edx
lea rcx, [rsp + 0x42]
mov word [rsp + 0x40], r13w
lea r8d, [rdx + 0x3e]
call fcn.140013aa0
mov edi, 0x20
lea rcx, [rsp + 0x40]
mov edx, edi
call fcn.1400106fc
lea r8, [0x14003153c]
lea rcx, [rsp + 0x40]
mov edx, edi
call fcn.14001873c
lea rcx, [rbp - 0x7e]
mov r8, rbx
xor edx, edx
mov word [rbp - 0x80], r13w
call fcn.140013aa0
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 6
jbe 0x1400108c2
lea rsi, [rsi + rcx*2 - 0xc]
lea rdi, str.__08x_
lea ecx, [rax + 7]
repe cmpsw word [rsi], word [rdi]
lea edx, [rax + 1]
je 0x1400108c5
mov edx, r13d
lea rdi, [rsp + 0x40]
mov rcx, r14
lea rbx, [0x14003154c]
repne scasw ax, word [rdi]
lea rax, str.Error:
test edx, edx
not rcx
cmovne rbx, rax
lea rsi, [rcx - 1]
lea r12, [rcx + rcx - 2]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x3ff
sub rdx, rsi
lea rsi, [rbp + 0x780]
lea rcx, [rbp + r12 - 0x80]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbx
lea r9, str.P:_04d_T:_04d__s_s
mov r8, r14
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.140014c84
test eax, eax
jns 0x140010956
mov rdx, r13
lea rax, [0x1400316a8]
movzx eax, word [rdx + rax]
add rdx, 2
mov word [rbp + rdx + 0x774], ax
test ax, ax
jne 0x14001093a
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov r8, r12
call fcn.140013f20
xor eax, eax
lea rdi, [rbp - 0x80]
mov rcx, r14
repne scasw ax, word [rdi]
mov eax, dword [reloc.WSOCK32.dll_inet_addr]
lea rcx, [rbp - 0x80]
mov dword [rdi - 2], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140013160
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140010ab4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x3f88]
mov eax, 0x4070
call fcn.140013a40
sub rsp, rax
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rbp + 0x3f60], rax
xor esi, esi
mov rbx, rcx
mov r13d, 0xffe
mov dword [rsp + 0x44], esi
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, r13d
mov edi, esi
mov word [rsp + 0x60], si
call fcn.140013aa0
lea rcx, [rbp + 0xf62]
mov r8d, r13d
xor edx, edx
mov word [rbp + 0xf60], si
call fcn.140013aa0
lea rax, [rsp + 0x48]
lea rdx, [0x1400318e0]
mov r12d, 0x800
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010c87
xor edx, edx
jmp 0x140010c56
lea rax, [rsp + 0x60]
lea r9, [0x140031950]
lea r8, [0x1400319a8]
lea rcx, [rbp + 0xf60]
mov rdx, r12
mov qword [rsp + 0x20], rax
call fcn.140014c60
lea r11, [rsp + 0x50]
lea rdx, [rbp + 0xf60]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010c4d
lea rcx, [rbp + 0x1f62]
mov r8, r13
xor edx, edx
mov word [rbp + 0x1f60], si
call fcn.140013aa0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, [0x140031858]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010c4d
cmp dword [rsp + 0x40], esi
jbe 0x140010c4d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2f60]
lea rdx, [0x1400318c8]
xor r8d, r8d
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc edi
mov dword [rsp + 0x40], r12d
mov edx, edi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140010b6b
lea rdx, [rbp + 0x2f60]
mov rcx, rbx
call fcn.140010348
mov rax, rbx
mov rcx, qword [rbp + 0x3f60]
xor rcx, rsp
call fcn.140013160
lea r11, [rsp + 0x4070]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x1400115d8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
cmp dword [0x140057910], ebx
je 0x140011605
mov eax, dword [0x14005790c]
jmp 0x140011650
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
call fcn.140013aa0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
mov r11d, 1
jne 0x140011641
cmp dword [rsp + 0x24], 6
jb 0x140011641
mov ebx, r11d
mov dword [0x14005790c], ebx
mov dword [0x140057910], r11d
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140013160
add rsp, 0x150
pop rbx
ret

Function at 0x140011678
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x2f70]
mov eax, 0x3070
call fcn.140013a40
sub rsp, rax
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rbp + 0x2f60], rax
mov rdi, rcx
mov r12d, edx
xor ebx, ebx
mov r14d, 0xffe
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, r14d
mov esi, ebx
mov word [rsp + 0x60], bx
call fcn.140013aa0
lea rcx, [rbp + 0xf62]
mov r8d, r14d
xor edx, edx
mov word [rbp + 0xf60], bx
call fcn.140013aa0
lea rax, [rsp + 0x48]
lea rdx, [0x140031fd0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x800
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011841
xor edx, edx
jmp 0x140011810
lea rax, [rsp + 0x60]
lea r9, [0x140032030]
lea r8, [0x140031fb8]
lea rcx, [rbp + 0xf60]
mov edx, 0x800
mov qword [rsp + 0x20], rax
call fcn.140014c60
lea r11, [rsp + 0x50]
lea rdx, [rbp + 0xf60]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011804
lea rcx, [rbp + 0x1f62]
mov r8, r14
xor edx, edx
mov word [rbp + 0x1f60], bx
call fcn.140013aa0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, str.RuntimeLib
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011804
cmp dword [rsp + 0x40], ebx
jbe 0x140011804
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, [0x140032088]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc esi
mov dword [rsp + 0x40], 0x800
mov edx, esi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140011724
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
dec rcx
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x2f60]
xor rcx, rsp
call fcn.140013160
mov rbx, qword [rsp + 0x30b0]
add rsp, 0x3070
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret