joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b930
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140042e20
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400436a0
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, case.0x14002e304.214
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003bb1e
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003b9f7
cmp dword [rbp + 0xff0], 0
jne 0x14003bb33
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x14003bb33
cmp ebx, 0x1000
ja 0x14003bb77
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14003bb63
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14003bb26
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003baa0
cmp dword [rbp + 0xff0], 0
jne 0x14003bb2c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x14003ba40
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003b9f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003bb33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x1413a0a48]
mov rcx, r14
mov rdx, rbx
call fcn.1400514f0
jmp 0x14003bb8b
lea r8, [0x1413a0a48]
mov edx, 0x1000
mov rcx, rbx
call fcn.1400512c0
ud2
Function at 0x14003bbe0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003bc1f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140029d60]
mov qword [rbp - 0x28], rax
lea rax, [0x1413a0bc0]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1413a0bf8]
lea rcx, [rbp - 0x60]
call fcn.1400511a0
ud2

Function at 0x14003da70
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003db7f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003daa8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003db42
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003db61
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003dafe
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003db1b
jmp 0x14003db10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003db16
cmp eax, 0x6d
jne 0x14003db32
mov byte [rsi + 1], 0
jmp 0x14003db26
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003db28
mov r8d, 0x10
mov rcx, rbx
call fcn.140051010
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003dab5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140051010
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003dab5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400523e0
ud2

Function at 0x14004742c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047228
Function at 0x140001c14
Capabilities:
Parse pe header

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

Function at 0x140008010
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007e00
Function at 0x14000d31c
Capabilities:
Query environment variable

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d34c
xor eax, eax
jmp 0x14000d40f
mov rbp, rbx
cmp word [rax], si
je 0x14000d371
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d358
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d354
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d26c
movsxd r14, eax
test eax, eax
jne 0x14000d3af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d345
mov rcx, r14
call fcn.140009b1c
mov rdi, rax
test rax, rax
jne 0x14000d3c8
xor ecx, ecx
call fcn.140008e98
jmp 0x14000d3a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d26c
test eax, eax
jne 0x14000d3f9
mov rcx, rdi
call fcn.140008e98
jmp 0x14000d403
xor ecx, ecx
call fcn.140008e98
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001270c
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.14000c370
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012796
cmp byte [rbp - 0x21], r15b
je 0x140012791
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400127cc
call fcn.1400090ec
test eax, eax
jne 0x1400127b8
cmp byte [rbp - 0x21], r15b
je 0x1400127b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400127cc
cmp byte [rbp - 0x21], r15b
je 0x1400127c9
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.14000b94c
test eax, eax
jne 0x14001286c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c370
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001280b
cmp byte [rbp - 0x21], r15b
je 0x140012840
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012840
call fcn.1400090ec
test eax, eax
jne 0x14001282c
cmp byte [rbp - 0x21], r15b
je 0x140012825
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012840
cmp byte [rbp - 0x21], r15b
je 0x14001283d
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.14000b94c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001286c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001286f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001287d
mov rcx, rdi
call fcn.140008e98
cmp byte [rbp + 0x3f], r15b
je 0x14001288c
mov rcx, qword [rbp + 0x27]
call fcn.140008e98
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 0x140014e30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014e58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014e58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140016f57
Capabilities:
Identify system language via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
call fcn.14011b410
call fcn.14011b000
mov qword [rbp - 0x20], 0
call fcn.14011b180
call fcn.14011b180
call sub.KERNEL32.dll_GetUserDefaultLangID
mov qword [rbp - 0x10], rax
call fcn.14011b090
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.140119260
call fcn.14011b090
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14011b250
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.140118aa0
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 3
jne 0x140017009
call fcn.14011b180
lea rax, [0x140931100]
mov rcx, rax
call fcn.14011b1e0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b090
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14011b250
jmp 0x14001700a
nop
call fcn.14011b180
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b150
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011b3f0
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x140030a1e
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x18]
cdqe
mov rcx, rax
call fcn.14011b410
call fcn.14011b000
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14011b450
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x10], 0
call fcn.14011b180
call fcn.14011b180
call fcn.14011b090
mov edx, eax
mov ecx, 0x3e8
call fcn.140118af0
call fcn.14011b090
mov edx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14011b250
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x18], rax
lea rax, str.WINDIR
mov rdx, qword [rbp - 0x18]
mov r8d, 0x3e8
mov rcx, rax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x78]
lea rdx, [0x1409587e0]
mov rcx, rax
call fcn.14011b2e0
call fcn.14011b180
call fcn.14011b180
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011b1e0
lea rax, str.System32
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b390
call fcn.14011b180
lea rax, str.__c
mov rcx, rax
call fcn.14011b1e0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b390
call fcn.14011b180
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011b1e0
lea rax, str.System32cmd.exe
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b150
mov qword [rbp - 0x28], rax
call fcn.14011b150
mov qword [rbp - 0x30], rax
call fcn.14011b150
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov r9d, SafeArrayGetLBound
mov r8, rcx
mov rcx, rax
call fcn.1400c2278
mov qword [rbp - 0x40], rax
call fcn.14011b0e0
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140030c76
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c2884
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x140030c63
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c28e0
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x140030c5d
call fcn.14011b180
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b180
call fcn.14011b180
call fcn.14011b180
call fcn.14011b180
call fcn.14011b090
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8d, edx
mov edx, SafeArrayPutElement
mov rcx, rax
call fcn.1400c2a2c
call fcn.14011b150
mov qword [rbp - 0x58], rax
call fcn.14011b090
mov edx, eax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.140014612
mov qword [rbp - 0x60], rax
call fcn.14011b090
lea rax, [0x14094c590]
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b090
mov edx, eax
lea rax, [rbp - 0x78]
mov rcx, rax
call fcn.14011b250
jmp 0x140030b9b
nop
jmp 0x140030b9b
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c29bc
mov qword [rbp - 0x68], rax
jmp 0x140030c77
nop
call fcn.14011b180
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011b1e0
call fcn.14011b150
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14011b3f0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011b3f0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011b3f0
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x14003518c
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.14011b000
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rax, str.Kernel32
mov rcx, rax
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rbp - 0x20], rax
lea rdx, [0x14094aa00]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_CreateRemoteThread
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140035248
mov qword [rbp - 8], 0
jmp 0x140035295
nop
mov rax, qword [rbp - 0x10]
mov rdx, 0xffffffffffffffff
mov rcx, rax
call sub.KERNEL32.dll_WaitForSingleObject
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_GetExitCodeThread
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x14003606d
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 8], 0
call fcn.14011b000
mov rdx, qword [rbp + 0x18]
lea rax, [rbp + 0x18]
mov rcx, rax
call fcn.14011b450
mov rdx, qword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.14011b450
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegCreateKeyExW
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14003617a
mov rax, qword [rbp + 0x20]
mov r10, rax
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov rdx, r10
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rbp - 0x30], rax
jmp 0x14003617b
nop
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14011b3f0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14011b3f0
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret
Function at 0x140075410
Capabilities:
Parse pe header

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

Function at 0x140079d78
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140079de7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140079de7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140079de7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140079de7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140079de7
cmp dword [rcx + 0x84], 0xe
jbe 0x140079de7
cmp dword [rcx + 0xf8], 0
je 0x140079de7
mov ecx, ebx
call fcn.140079eec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140079bac
nop
cmp dword [rbp + 0x20], 0
je 0x140079e35
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140079e40
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140079d78

Function at 0x140079fd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140079d78
Function at 0x140085b6c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14007be1c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140085c0d
cmp ebx, dword [rsp + 0x30]
je 0x140085c06
test esi, esi
je 0x140085c06
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140085be1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140085bee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140085bcb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140085bf2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140085c0f
mov eax, 1
jmp 0x140085c0f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140086ea4
Capabilities:
Query environment variable

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x140086ed4
xor eax, eax
jmp 0x140086f97
mov rbp, rbx
cmp word [rax], si
je 0x140086ef9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140086ee0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140086edc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14008719c
movsxd r14, eax
test eax, eax
jne 0x140086f37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140086ecd
mov rcx, r14
call fcn.14007c8a0
mov rdi, rax
test rax, rax
jne 0x140086f50
xor ecx, ecx
call fcn.14007abd0
jmp 0x140086f2c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14008719c
test eax, eax
jne 0x140086f81
mov rcx, rdi
call fcn.14007abd0
jmp 0x140086f8b
xor ecx, ecx
call fcn.14007abd0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140086fb4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14008703b
mov rsi, rbx
cmp word [rax], bp
je 0x140086ffa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140086fe4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140086fe0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007c8a0
mov rdi, rax
test rax, rax
je 0x140087028
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400952b0
mov rbp, rdi
xor ecx, ecx
call fcn.14007abd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret