joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d6650
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rdi, rdx
mov dword [rsp + 0x20], 0
mov r9d, 2
lea r8, [rsp + 0x50]
lea edx, [r9 + 0xb]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d673b
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400091a0
nop
mov dword [rsp + 0x30], 1
lea rax, [0x1402728d0]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140022e40
test al, al
je 0x1400d670f
lea edx, [rbx + 2]
mov rcx, rdi
call fcn.140065080
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400d66ff
cmp eax, ebx
je 0x1400d6745
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400d6745
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
jmp 0x1400d6745
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400d672d
cmp eax, 0xffffffff
je 0x1400d673b
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400d673b
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
xor edx, edx
mov rcx, rdi
call fcn.140065080
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400d6b50
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 0xf]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x29]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d6be6
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400091a0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140064ff0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400d6bd6
cmp eax, edi
je 0x1400d6bf0
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400d6bf0
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
jmp 0x1400d6bf0
mov dword [rbx + 8], 0x80000000
mov qword [rbx], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140102b40
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400d7280
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 4], 0
mov rbx, rcx
jne 0x1400d7344
mov ecx, dword [rcx]
lea r8, [rsp + 0x20]
mov r9d, 8
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400d72dd
mov dword [rbx + 4], 3
mov eax, 3
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140102b40
add rsp, 0x50
pop rbx
ret
movzx eax, word [rsp + 0x20]
cmp ax, 0x31
jne 0x1400d72f1
mov dword [rbx + 4], 3
jmp 0x1400d7344
cmp ax, 0x30
jne 0x1400d7300
mov dword [rbx + 4], 1
jmp 0x1400d7344
cmp ax, 0x32
jne 0x1400d730f
mov dword [rbx + 4], 2
jmp 0x1400d7344
mov ecx, dword [rbx]
lea r8, [rsp + 0x30]
mov r9d, 0xb
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d72be
movzx ecx, word [rsp + 0x30]
xor edx, edx
movzx eax, word [rsp + 0x20]
add ecx, 2
cmp eax, ecx
setne dl
add edx, 2
mov dword [rbx + 4], edx
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140102b40
add rsp, 0x50
pop rbx
ret

Function at 0x1400d84b0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, edx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x1401885d8]
mov qword [rbx], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0xff
lea r8, [rsp + 0x40]
mov edx, 0x5a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d856d
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1400091a0
mov rdx, qword [rbx]
mov qword [rsp + 0x30], rdx
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400d855f
cmp eax, edi
je 0x1400d856d
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400d856d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140102b40
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x1400de620
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x70], 0x1000
xor edi, edi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400de669
mov edi, dword [rsp + 0x60]
jmp 0x1400de67b
cmp byte [rbx + 0x53], dil
jne 0x1400de67b
mov byte [rbx + 0x53], 1
mov rcx, rbx
call fcn.1400f7530
mov dword [rsp + 0x78], edi
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
cmp edi, 0x1000
cmovae rax, rcx
mov edi, dword [rax]
cmp byte [rbx + 0x53], 0
jne 0x1400de7ac
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400de6c6
mov rdx, qword [rbx + 0x40]
mov rax, rcx
sub rax, rdx
cmp rdi, rax
jle 0x1400de6c6
mov rdi, rcx
sub rdi, rdx
test rdi, rdi
jle 0x1400de7ac
lea rcx, [rbx + 0x28]
mov rdx, rdi
call fcn.1400a33a0
mov rsi, rax
mov word [rbx + 0x50], 0x100
cmp qword [rbx + 0x18], 0
jne 0x1400de6f9
mov ecx, 0x28
call fcn.140102b64
mov qword [rsp + 0x68], rax
mov qword [rax + 0x20], rbx
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
lea rax, [0x1400de5b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 0x18]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400de7ac
mov byte [rbx + 0x51], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
sub ecx, 0x6d
je 0x1400de7a0
cmp ecx, 0x7c
je 0x1400de7a0
mov edx, 0x22
lea rcx, [0x140273850]
call fcn.140025e60
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, edi
mov rcx, rbx
call fcn.1400f7630
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400de790
cmp eax, 0xffffffff
je 0x1400de7ac
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400de7ac
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
jmp 0x1400de7ac
mov byte [rbx + 0x53], 1
mov rcx, rbx
call fcn.1400f7530
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400dedd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
cmp byte [rcx + 0x39], 0
mov rsi, rdx
mov rbx, rcx
je 0x1400dedf3
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp qword [rcx + 0x18], 0
mov qword [rsp + 0x48], rdi
jne 0x1400dee16
mov ecx, 0x28
call fcn.140102b64
mov qword [rsp + 0x40], rax
mov qword [rax + 0x20], rbx
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
xor ecx, ecx
mov rdx, rsi
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
lea rcx, [rbx + 0x20]
call fcn.140036880
mov rdx, qword [rbx + 0x20]
mov r9, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
movsxd rax, dword [rdx + 4]
mov qword [rbx + 0x28], rax
lea rax, [0x1400deed0]
mov r8d, dword [rbx + 0x28]
mov word [rbx + 0x38], 0x100
add rdx, qword [rdx + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
jne 0x1400deeb0
lea rcx, [rbx + 0x20]
mov byte [rbx + 0x39], al
mov qword [rbx + 0x28], 0
call fcn.140036ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x1400dee9e
lea rdx, [0x140273958]
mov ecx, eax
call fcn.14001c7a0
xor al, al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1400ed7f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov qword [rbp - 0x68], rcx
xor esi, esi
mov dword [rsp + 0x70], esi
lea rax, [0x140188608]
mov qword [rcx], rax
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], rsi
or r8d, 0xffffffff
lea rdx, [0x140275830]
lea rcx, [rsp + 0x78]
call fcn.140004100
nop
mov rcx, rax
call fcn.14002b720
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400ed8b2
cmp eax, 0xffffffff
je 0x1400ed8c0
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ed8c0
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
test bl, bl
je 0x1400ed9f9
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400ed9ee
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400ed9ee
mov ebx, esi
mov dword [rsp + 0x74], 0xff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x74]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400ed9e2
or r8d, 0xffffffff
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.1400091a0
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.14000dd40
nop
mov rdx, rax
mov rcx, rdi
call fcn.140036bb0
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400ed9a6
cmp eax, 0xffffffff
je 0x1400ed9b5
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ed9b5
mov rcx, qword [rbp - 0x80]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140035d80
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400ed9d4
cmp eax, 0xffffffff
je 0x1400ed9e2
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ed9e2
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400ed922
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140102b40
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400ef5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov dword [rsp + 0x34], 0
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140123fd0
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r8d, 0xffffffff
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400091a0
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140102b40
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400ef9a0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ebx, ebx
lea r8, [rsp + 0x30]
mov ecx, eax
mov word [rsp + 0x20], bx
lea r9d, [rbx + 3]
lea edx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x1400ef9ff
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400932e0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140102b40
add rsp, 0x40
pop rbx
ret
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140102b40
add rsp, 0x40
pop rbx
ret
Function at 0x1400ffeb0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14104b210]
test rcx, rcx
jne 0x1400ffeda
xor r8d, r8d
lea edx, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14104b210], rax
jmp 0x1400ffee3
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r10, qword [0x14104b238]
lea rax, [rbx - 0x10]
mov rcx, qword [rax]
mov r9, rax
sub r9, qword [rax + 8]
sub r10, rcx
mov qword [0x14104b238], r10
cmp qword [r9], 0
jne 0x1400fff1a
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x1400fff49
xor edx, edx
mov qword [rax + 0x20], rcx
mov rcx, qword [0x14104b230]
lea r8, [rax + 0x20]
mov qword [rax], rdx
mov r9, rax
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdx
test rcx, rcx
je 0x1400fff42
mov qword [rcx + 0x18], rax
mov qword [0x14104b230], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], 0
lea rdx, [rcx + r9]
jne 0x1400fff95
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1400fff6f
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test rcx, rcx
je 0x1400fff82
mov qword [rcx + 0x10], rax
jmp 0x1400fff89
mov qword [0x14104b230], rax
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], 0
jne 0x1400ffffb
cmp qword [rdx], 1
jne 0x1400ffffb
mov rcx, qword [0x14104b240]
lea rax, [r10 + r10*2]
sub rcx, qword [r8]
shr rax, 1
cmp rcx, rax
jbe 0x1400ffffb
mov qword [0x14104b240], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x1400fffd0
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x1400fffe3
mov qword [rcx + 0x10], rax
jmp 0x1400fffea
mov qword [0x14104b230], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x14104b210]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]

Function at 0x14010694c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14010695f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140110b08
lea rdx, [0x14103ea00]
lea rcx, [rsp + 0x20]
call fcn.140123754
int3

Function at 0x140111524
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14104c1c0]
xor edx, edx
jmp fcn.14010694c

Function at 0x140111f14
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14104c1c0]
jmp fcn.14010694c
Function at 0x140131f64
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140131def
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140131def
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140131def
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140131def
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140131def
cmp dword [rcx + 0x84], 0xe
jbe 0x140131def
cmp dword [rcx + 0xf8], 0
je 0x140131def
mov ecx, ebx
call fcn.140131e90
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140131c6c
cmp dword [rbp + 0x20], 0
je 0x140131e3c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140131e44
int3
xor r8d, r8d
xor edx, edx
jmp 0x140131d88
Function at 0x1400011e0
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
xor eax, eax
mov dword [rsp + 0x30], eax
cmp rdi, 0xffffffffffffffff
je 0x14000128d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14000128d
movsx eax, word [rsp + 0x38]
mov edx, 0x20
mov r9d, dword [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x70], rsi
movsx esi, word [rsp + 0x3a]
imul esi, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x140001288
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x34]
movzx edx, word [rsp + 0x40]
mov r8d, esi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x140001288
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002170
add rsp, 0x60
pop rdi
ret
Function at 0x140002af0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push r15
mov rax, 9
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140026dbb
sub rsp, 0x28
call fcn.14003e110
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14003e230
add rsp, 0x10
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.14003e230
add rsp, 0x10
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.14003e230
add rsp, 0x10
mov dword [rsp + 0x40], 0
call fcn.14001b408
and rax, rax
je 0x140026e40
jmp 0x140026e40
xor rax, rax
and rax, rax
je 0x140026e53
mov qword [rsp + 0x58], 0xf013f
jmp 0x140026e5c
mov qword [rsp + 0x58], 0xf003f
sub rsp, 8
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push qword [rsp + 0x68]
push 0
movabs rax, 0x14007b028
push rax
movabs rax, 0x80000000
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_RegOpenKeyExW
add rsp, 0x30
mov r15, rax
and r15, r15
jne 0x140026f2d
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_RegCreateKeyW
mov r15, rax
and r15, r15
jne 0x140026f23
push qword [rsp + 0x38]
pop rcx
call fcn.140032ba0
mov r15, rax
inc r15
add r15, r15
mov rax, r15
push rax
push qword [rsp + 0x40]
push 2
push 0
push qword [rsp + 0x50]
push qword [rsp + 0x78]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_RegSetValueExW
add rsp, 0x30
mov r15, rax
and r15, r15
jne 0x140026f19
mov dword [rsp + 0x40], 1
push qword [rsp + 0x50]
pop rcx
call sub.ADVAPI32.DLL_RegCloseKey
push qword [rsp + 0x48]
pop rcx
call sub.ADVAPI32.DLL_RegCloseKey
movsxd rax, dword [rsp + 0x40]
movsxd rax, eax
jmp 0x140026f3a
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.14003e3e0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.14003e3e0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003e3e0
add rsp, 0x28
pop rax
add rsp, 0x70
pop r15
ret
Function at 0x140027b52
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003e110
mov rcx, qword [rsp + 0x90]
call fcn.140031b04
sub rsp, 0x18
mov rdx, 1
lea rax, [rsp + 0x40]
push rax
xor r9, r9
mov r8, 0xb
mov rcx, 2
sub rsp, 0x20
call fcn.14003db10
add rsp, 0x40
mov qword [rsp + 0x28], rax
push 0
push 0
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
movsxd r15, dword [rsp + 0x48]
and r15, r15
jne 0x140027c03
movabs rcx, 0x14007b028
push rcx
sub rsp, 0x28
call fcn.14003e180
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14003e410
add rsp, 0x28
pop rax
push rax
call fcn.14003e1d0
pop rdx
add rax, rdx
jmp 0x140027cd5
movsxd rax, dword [rsp + 0x48]
inc rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.14003dccc
movsxd r15, dword [rsp + 0x48]
add r15, r15
mov rax, r15
push rax
mov rbp, qword [rsp + 0x30]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.140035c40
movsxd rax, dword [rsp + 0x48]
mov rax, rax
push rax
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
push rcx
sub rsp, 0x28
call fcn.14003e180
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14003e180
add rsp, 0x28
pop rcx
push rax
push 0x19
push 0xffffffffffffffff
mov rbp, qword [rsp + 0x50]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140035d80
add rsp, 0x28
movabs rcx, 0x14007b182
sub rsp, 0x28
call fcn.14003e410
add rsp, 0x28
pop rax
push rax
call fcn.14003e1d0
pop rdx
add rax, rdx
jmp 0x140027cd5
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003ddf4
add rsp, 0x28
pop rax
add rsp, 0x58
pop r15
pop rbp
ret

Function at 0x140031b04
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14007dd5c]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret