joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018e7c
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, [0x140036230]
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 0x140018ed3
cmp word [rdx], r13w
jne 0x140018ed3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140018ed8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018ffd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001901e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140018f11
mov rdx, r9
mov word [rbx], cx
jmp 0x140018f38
cmp r9, r8
jae 0x140018f48
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 0x140018ef2
jmp 0x140018ffd
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 0x140018ff2
cmp dword [rsp + 0x80], esi
je 0x140018ff2
lea r8, [0x140036230]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140018fca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140018f9a
mov word [rbx], r13w
jmp 0x140018ffa
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 0x140018fa7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140018ffa
cmp word [rsp + 0x70], r13w
jne 0x140018fd7
cmp rbx, r14
je 0x140018f94
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019ae4
cmp word [rsp + 0x70], r13w
je 0x140018ffd
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, [0x140036230]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140018ff7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018ffd
Function at 0x14001cd60
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 0x14001cd90
xor eax, eax
jmp 0x14001ce53
mov rbp, rbx
cmp word [rax], si
je 0x14001cdb5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001cd9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001cd98
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.14001b360
movsxd r14, eax
test eax, eax
jne 0x14001cdf3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001cd89
mov rcx, r14
call fcn.140014af0
mov rdi, rax
test rax, rax
jne 0x14001ce0c
xor ecx, ecx
call fcn.140014ab4
jmp 0x14001cde8
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.14001b360
test eax, eax
jne 0x14001ce3d
mov rcx, rdi
call fcn.140014ab4
jmp 0x14001ce47
xor ecx, ecx
call fcn.140014ab4
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 0x14001fb1c
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.140015294
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 0x14001fbbd
cmp ebx, dword [rsp + 0x30]
je 0x14001fbb6
test esi, esi
je 0x14001fbb6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001fb91
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001fb9e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001fb7b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001fba2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001fbbf
mov eax, 1
jmp 0x14001fbbf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140021b5c
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.14000e1b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140021be6
cmp byte [rbp - 0x21], r15b
je 0x140021be1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140021c1c
call fcn.140016d48
test eax, eax
jne 0x140021c08
cmp byte [rbp - 0x21], r15b
je 0x140021c00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021c1c
cmp byte [rbp - 0x21], r15b
je 0x140021c19
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.140010f68
test eax, eax
jne 0x140021cbc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e1b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140021c5b
cmp byte [rbp - 0x21], r15b
je 0x140021c90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021c90
call fcn.140016d48
test eax, eax
jne 0x140021c7c
cmp byte [rbp - 0x21], r15b
je 0x140021c75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021c90
cmp byte [rbp - 0x21], r15b
je 0x140021c8d
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.140010f68
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021cbc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021cbf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021ccd
mov rcx, rdi
call fcn.140014ab4
cmp byte [rbp + 0x3f], r15b
je 0x140021cdc
mov rcx, qword [rbp + 0x27]
call fcn.140014ab4
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 0x140023450
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x1402031ef
test r15, r15
je 0x1402032dd
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x140203239
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.140336540
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x1402031cd
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x140203309
lea rcx, [r12*8]
call fcn.1403336b8
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x1402032ad
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x1402032dd
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x140203295
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x1402031cd
mov rcx, r14
call fcn.1403336f4
mov r15, qword [rsi + 0x10]
jmp 0x1402031cd
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str........._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.14036f7d0
call fcn.14036ee50
int3
Function at 0x140203680
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1403dedb0]
mov qword [rcx], rax
add rcx, 8
call fcn.14030c2e0
lea rcx, [rsi + 0x10]
call fcn.14030c2e0
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.14030c2e0
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [reloc.WS2_32.dll_accept]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.140223800
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.1401f1190
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x1403e7bd0], edx
je 0x14020387b
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.14031fb30
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14020389f
call fcn.140206390
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140206440
mov qword [0x14041ebe8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x1403e7bd4], edx
jne 0x1402038b2
test dword [reloc.WS2_32.dll_recv], edx
jne 0x1402038c0
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.140222960
jmp 0x14020383c
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1403339d6.0]
jmp 0x140203849
cmp rax, 0x40
mov eax, 0x100
jmp 0x140203833
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140203894
Function at 0x140205190
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1402051c0
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1402051ce
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14030b0b0
lea rax, [rdx - 1]
test rdx, rax
jne 0x1402051e4
mov rdi, rdx
jmp 0x1402051a5
jae 0x1402052d1
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1402051f1
cvtsi2ss xmm0, rax
jmp 0x140205206
mov rcx, rdx
call fcn.140306b80
mov rdi, rax
jmp 0x1402051a5
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1403517b8
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1403d0618]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1402052b9
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1402052b9
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1402052c1
mov rcx, rdx
call fcn.140306b80
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1402051ae
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140206bf0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14041ec08]
mov ecx, dword [0x14041b3b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140206c50
lea rsi, [0x14041ec00]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140334bf0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14041ec08]
call fcn.1403338a0
cmp dword [0x14041ec08], 0xffffffff
jne 0x140206c2c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1403369a0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1403336b8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14041ec50]
mov ecx, dword [0x14041b3b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140206d10
lea r8, [0x14041ec20]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140206e10
mov qword [0x14041ec00], rsi
lea rcx, [0x14041ec08]
call fcn.140333938
jmp 0x140206c2c
lea rcx, [0x14041ec50]
call fcn.1403338a0
cmp dword [0x14041ec50], 0xffffffff
jne 0x140206ce1
xorps xmm0, xmm0
movups xmmword [0x14041ec40], xmm0
movups xmmword [0x14041ec30], xmm0
movups xmmword [0x14041ec20], xmm0
lea rcx, [0x14041ec20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14041ec50]
call fcn.140333938
jmp 0x140206ce1
Function at 0x140206d60
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14041ec50]
mov ecx, dword [0x14041b3b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140206d9b
movzx eax, word [0x14041ec20]
cmp eax, 9
jne 0x140206de3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14041ec50]
call fcn.1403338a0
cmp dword [0x14041ec50], 0xffffffff
jne 0x140206d85
xorps xmm0, xmm0
movups xmmword [0x14041ec40], xmm0
movups xmmword [0x14041ec30], xmm0
movups xmmword [0x14041ec20], xmm0
lea rcx, [0x14041ec20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14041ec50]
call fcn.140333938
jmp 0x140206d85
test eax, eax
je 0x140206d96
cmp eax, 6
jne 0x140206df3
mov eax, 2
jmp 0x140206d96
cmp eax, 0xc
jne 0x140206dff
mov eax, 3
jmp 0x140206d96
mov eax, 4
jmp 0x140206d96

Function at 0x140207a80
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140207ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140207b38
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140207b22
cmp dword [rsp + 0x38], 4
jne 0x140207b22
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140334bf0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140207b22
Function at 0x140207b40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140334b80
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1403369a0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140207c03
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140207c07
lea rcx, [rsp + 0x840]
call fcn.14035ad74
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140202270
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140334bf0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140207be4
cmp eax, 2
jne 0x140207c5c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1403369a0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140207c63
lea rcx, [rsp + 0x40]
call fcn.14035ad74
lea rdx, [rsp + 0x40]
jmp 0x140207bd7
mov edi, 0x3f4
jmp 0x140207be4
mov edi, 0xea
jmp 0x140207be4
Function at 0x140208810
Capabilities:
Create thread

Disassembly:
jmp 0x140208810
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1403336b8
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14041a8c8]
jne 0x14020887d
mov rcx, r15
call fcn.1403005f0
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140208cd0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1402088c2
test r14, r14
je 0x140208906
mov qword [r14], rdi
jmp 0x14020890f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1402088db
mov ebp, eax
cmp eax, 0x5af
je 0x1402088db
cmp ebp, 0xe
jne 0x140208935
mov rcx, rbx
call fcn.14038fe00
test rsi, rsi
je 0x14020890f
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14041a8c8]
jne 0x1402088fc
call fcn.140300740
mov rcx, rsi
call fcn.1403336f4
jmp 0x14020890f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140334bf0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x14041ecf8]
mov ecx, dword [0x14041b3b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402089a8
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14020f2f0
movzx eax, byte [rbx + 0x17]
test al, al
mov rcx, qword [rbx]
cmovns rcx, rbx
cmovs rax, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x14041ecf0]
call fcn.1403209d0
cmp byte [rbx + 0x17], 0
jns 0x1402088e3
mov rcx, qword [rsp + 0x38]
call fcn.1403336f4
jmp 0x1402088e3
lea rcx, [0x14041ecf8]
call fcn.1403338a0
cmp dword [0x14041ecf8], 0xffffffff
jne 0x140208956
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1402259b0
mov qword [0x14041ecf0], rax
lea rcx, [0x14041ecf8]
call fcn.140333938
jmp 0x140208956

Function at 0x140209090
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1402090d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1402090f1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1402090cf
mov qword [rsi], rdi
call fcn.140317d40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140209107
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140317d40
mov rcx, qword [rsi]
call fcn.14030bac0
mov qword [rsi], 0
jmp 0x1402090bd
int3
Function at 0x140209480
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x1403df810]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str........._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.140317d20
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14030e910
test esi, esi
js 0x14020958a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140320d20
test al, al
jne 0x140209591
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140320db0
lea rcx, [rsp + 0x50]
call fcn.14030eb40
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140334bf0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14020955d
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140394520
jmp 0x140209522