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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180018610
sub rsp, rax
mov rax, qword [0x1800461c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002648c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180027b6f
mov rax, rbp
jmp 0x180027c77
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x48640]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180028c40
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x48640]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180027c73
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180027c73
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180028c40
test rax, rax
js 0x180027c73
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180027c73
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180027c65
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180027c65
cmp byte [rcx], 0xd
jne 0x180027c4b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180027c5a
cmp byte [rcx + 1], 0xa
jne 0x180027c5a
inc rcx
jmp 0x180027c5a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x465d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180027c2d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180027c77
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180018430
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180027e98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180027eae
mov al, 1
jmp 0x180027f0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180027ebf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180027f0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002ffe8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180027f0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180027f0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180027f0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180027f0e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180027fe0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180048640]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180028037
cmp word [rdx], r13w
jne 0x180028037
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002803c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180028161
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180028182
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180028075
mov rdx, r9
mov word [rbx], cx
jmp 0x18002809c
cmp r9, r8
jae 0x1800280ac
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180028056
jmp 0x180028161
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180028156
cmp dword [rsp + 0x80], esi
je 0x180028156
lea r8, [0x180048640]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002812e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800280fe
mov word [rbx], r13w
jmp 0x18002815e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002810b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002815e
cmp word [rsp + 0x70], r13w
jne 0x18002813b
cmp rbx, r14
je 0x1800280f8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180028c48
cmp word [rsp + 0x70], r13w
je 0x180028161
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180048640]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002815b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180028161
Function at 0x18002ccb0
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 0x18002cce0
xor eax, eax
jmp 0x18002cda3
mov rbp, rbx
cmp word [rax], si
je 0x18002cd05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002ccec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002cce8
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.18002b398
movsxd r14, eax
test eax, eax
jne 0x18002cd43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002ccd9
mov rcx, r14
call fcn.1800256e8
mov rdi, rax
test rax, rax
jne 0x18002cd5c
xor ecx, ecx
call fcn.1800256ac
jmp 0x18002cd38
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.18002b398
test eax, eax
jne 0x18002cd8d
mov rcx, rdi
call fcn.1800256ac
jmp 0x18002cd97
xor ecx, ecx
call fcn.1800256ac
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 0x18002f5f4
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.180023ac8
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 0x18002f695
cmp ebx, dword [rsp + 0x30]
je 0x18002f68e
test esi, esi
je 0x18002f68e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002f669
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002f676
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002f653
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002f67a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002f697
mov eax, 1
jmp 0x18002f697
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180032724
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180028c48
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180028c48
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180032874
cmp rax, 0xffffffffffffffff
je 0x180032874
xor edi, edi
test rbp, rbp
jle 0x18003281f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180025748
mov rbx, rax
test rax, rax
jne 0x1800327ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180032815
mov edx, 0x8000
mov ecx, r14d
call fcn.1800325a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180027398
cmp eax, 0xffffffff
je 0x1800327f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800327bc
mov edx, r15d
mov ecx, r14d
call fcn.1800325a8
jmp 0x180032815
cmp byte [rsi + 0x38], dil
je 0x18003280c
cmp dword [rsi + 0x34], 5
jne 0x18003280c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180032815
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800256ac
jmp 0x180032888
jns 0x180032888
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180028c48
cmp rax, 0xffffffffffffffff
jne 0x180032840
cmp byte [rsi + 0x30], dil
je 0x180032888
mov edi, dword [rsi + 0x2c]
jmp 0x180032888
mov ecx, r14d
call fcn.18002ffe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180032888
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180032888
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180032881
mov eax, dword [rsi + 0x2c]
jmp 0x180032886
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180028c48
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180033350
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180033378
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180033378
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400c7fb4
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140136f50
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140136f78
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140136fc2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x140136f6d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c9850
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14018d270
mov rax, rcx
neg rcx
test rax, 7
je 0x14018d28d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14018d2e8
test al, 7
jne 0x14018d280
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14018d2a1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14018d312
test dh, dh
je 0x14018d30c
shr rdx, 0x10
test dl, dl
je 0x14018d306
test dh, dh
je 0x14018d300
shr rdx, 0x10
test dl, dl
je 0x14018d2fa
test dh, dh
je 0x14018d2f4
shr edx, 0x10
test dl, dl
je 0x14018d2ee
test dh, dh
jne 0x14018d2a1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400c9887
Capabilities:
Query environment variable

Disassembly:
jmp 0x14023d460
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14023cfe0
lea rcx, [rsp + 0x20]
call fcn.14023d030
movzx eax, al
test eax, eax
jne 0x14023d4a5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14023d010
mov rax, qword [rsp + 0x40]
jmp 0x14023d59f
lea rcx, [rsp + 0x20]
call fcn.14023d130
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14023d0d0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c9c6f
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c9189
lea rcx, [rsp + 0x28]
call fcn.1400ca1b5
movzx eax, al
test eax, eax
jne 0x14023d53f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400cb862
lea rcx, [rsp + 0x20]
call fcn.14023d010
mov rax, qword [rsp + 0x50]
jmp 0x14023d59f
lea rcx, [rsp + 0x20]
call fcn.14023d130
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400cc9ce
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c9b9d
lea rcx, [rsp + 0x28]
call fcn.1400cd3dd
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400cb862
lea rcx, [rsp + 0x20]
call fcn.14023d010
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c9e36
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14018b420
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14018ada0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14018b45f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402df020]
jmp 0x14018b469
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400ca0d9
Capabilities:
Query environment variable

Disassembly:
jmp 0x14023d1b0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14023cfe0
lea rcx, [rsp + 0x40]
call fcn.14023d160
movzx eax, al
test eax, eax
jne 0x14023d1f8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14023d010
mov rax, qword [rsp + 0x70]
jmp 0x14023d3c9
lea rcx, [rsp + 0x40]
call fcn.14023d130
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14023d0d0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14023d130
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400cb411
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14023d29e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14023d010
mov rax, qword [rsp + 0x80]
jmp 0x14023d3c9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c9c6f
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c9a0d
lea rcx, [rsp + 0x48]
call fcn.1400c93dc
movzx eax, al
test eax, eax
jne 0x14023d305
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c7e1f
lea rcx, [rsp + 0x40]
call fcn.14023d010
mov rax, qword [rsp + 0x88]
jmp 0x14023d3c9
lea rcx, [rsp + 0x48]
call fcn.1400ca638
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14023d130
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400cb411
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14023d39b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c7e1f
lea rcx, [rsp + 0x40]
call fcn.14023d010
mov rax, qword [rsp + 0xa0]
jmp 0x14023d3c9
lea rcx, [rsp + 0x48]
call fcn.1400c99b8
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c7e1f
lea rcx, [rsp + 0x40]
call fcn.14023d010
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400ca0f2
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14018b350
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14018ad20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14018b391
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402df020]
jmp 0x14018b397
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400ca1bf
Capabilities:
Get geographical location

Disassembly:
jmp 0x140225d50
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140224c80
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140225db7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402df030]
jmp 0x140225dd9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c9346
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400ca1d3
Capabilities:
Terminate process

Disassembly:
jmp 0x140168660
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400ca5d4
Capabilities:
Print debug messages

Disassembly:
jmp 0x14024f390
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402bf080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14024f3b6
jmp 0x14024f433
mov rcx, qword [rbp + 0x30]
call fcn.1400c9850
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14024f3cf
jmp 0x14024f433
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14024f3ec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c8068
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400c86f3
test eax, eax
jne 0x14024f433
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c9b70
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400caa52
Capabilities:
Set environment variable

Disassembly:
jmp 0x14023f310
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400caacf
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400e9100
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
lea rcx, [0x1402dd39d]
call fcn.1400ccabe
nop
mov byte [rbp + 0x24], 1
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareWow6432NodeValveSteam
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400e91bb
mov dword [rbp + 0x44], 0x103
mov rax, qword [rbp + 0x140]
lea rcx, [rbp + 0x44]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.InstallPath
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400e91b0
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x140]
mov byte [rcx + rax], 0
mov byte [rbp + 0x24], 0
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, byte [rbp + 0x24]
test eax, eax
je 0x1400e91da
mov rax, qword [rbp + 0x140]
lea rdx, [0x1402711d8]
mov rcx, rax
call fcn.1400c8db5
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140272980]
call fcn.1400cbac9
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400caddb
Capabilities:
Parse pe header

Disassembly:
jmp 0x140169a20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140169a40
xor al, al
jmp 0x140169ac1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140169a53
xor al, al
jmp 0x140169ac1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140169a7d
xor al, al
jmp 0x140169ac1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140169a91
xor al, al
jmp 0x140169ac1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140169aa3
xor al, al
jmp 0x140169ac1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140169abf
xor al, al
jmp 0x140169ac1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400cb72c
Capabilities:
Terminate process

Disassembly:
jmp 0x14018c410
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14018c43e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400cc460
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400cc4e7
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402211a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400cc668
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14018b490
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14018ade0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14018b4d9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402df020]
jmp 0x14018b4e8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400cc794
Capabilities:
Set environment variable

Disassembly:
jmp 0x140255700
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400c912f
lea rcx, [rsp + 0x48]
call fcn.1400c912f
call fcn.1400ca02a
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c8dce
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14025576f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c96d9
lea rcx, [rsp + 0x78]
call fcn.1400c96d9
mov eax, dword [rsp + 0x24]
jmp 0x140255800
call fcn.1400ca02a
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c8dce
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1402557b6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c96d9
lea rcx, [rsp + 0x78]
call fcn.1400c96d9
mov eax, dword [rsp + 0x2c]
jmp 0x140255800
lea rcx, [rsp + 0x48]
call fcn.1400c9026
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400c9026
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400c96d9
lea rcx, [rsp + 0x78]
call fcn.1400c96d9
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret