joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088ff0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012f028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140147378]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140089050
mov rsi, qword [0x140147370]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140095f80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140147378]
call fcn.140093f10
cmp dword [0x140147378], 0xffffffff
jne 0x14008902c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400980c0
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.140093d8c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401473c0]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140089110
lea r8, [0x140147390]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140019a00
mov qword [0x140147370], rsi
lea rcx, [0x140147378]
call fcn.140093f78
jmp 0x14008902c
lea rcx, [0x1401473c0]
call fcn.140093f10
cmp dword [0x1401473c0], 0xffffffff
jne 0x1400890e1
xorps xmm0, xmm0
movups xmmword [0x1401473b0], xmm0
movups xmmword [0x1401473a0], xmm0
movups xmmword [0x140147390], xmm0
lea rcx, [0x140147390]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401473c0]
call fcn.140093f78
jmp 0x1400890e1
Function at 0x14008c1b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012f028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140147378]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008c214
mov rax, qword [0x140147370]
mov rsi, qword [rax + 0x58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140095f80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140147378]
call fcn.140093f10
cmp dword [0x140147378], 0xffffffff
jne 0x14008c1ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400980c0
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.140093d8c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401473c0]
mov ecx, dword [0x14013e9b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008c2d4
lea r8, [0x140147390]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140019a00
mov qword [0x140147370], rsi
lea rcx, [0x140147378]
call fcn.140093f78
jmp 0x14008c1ec
lea rcx, [0x1401473c0]
call fcn.140093f10
cmp dword [0x1401473c0], 0xffffffff
jne 0x14008c2a5
xorps xmm0, xmm0
movups xmmword [0x1401473b0], xmm0
movups xmmword [0x1401473a0], xmm0
movups xmmword [0x140147390], xmm0
lea rcx, [0x140147390]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401473c0]
call fcn.140093f78
jmp 0x14008c2a5
Function at 0x14008e0f0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp rcx, 1
jne 0x14008e16c
mov rdi, qword [0x140147158]
mov esi, 2
cmp rdi, 2
jae 0x14008e1a1
lea rcx, [rsi*8]
call fcn.140093d8c
mov rcx, qword [0x140147150]
mov qword [0x140147150], rax
test rcx, rcx
jne 0x14008e165
mov qword [0x140147158], rsi
xor eax, eax
mov rcx, qword [0x140147150]
mov qword [rcx + rax*8], 0
inc rax
cmp rsi, rax
jne 0x14008e13b
mov r8, qword [0x140147160]
test r8, r8
jne 0x14008e1d0
add rsp, 0x28
pop rdi
pop rsi
ret
call fcn.140093dd0
jmp 0x14008e132
mov rsi, rcx
lea rax, [rcx - 1]
test rcx, rax
je 0x14008e183
mov rcx, rsi
call fcn.140080630
mov rsi, rax
mov rdi, qword [0x140147158]
cmp rsi, rdi
jbe 0x14008e1a1
mov rax, rsi
shr rax, 0x3d
je 0x14008e112
jmp 0x14008e3cd
cmp rsi, rdi
jae 0x14008e15e
mov rax, qword [0x140147168]
test rax, rax
jns 0x14008e2e5
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14008e2ea
mov rcx, qword [r8 + 8]
mov rax, rsi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rsi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x14008e248
cmp rcx, rsi
jb 0x14008e24f
mov rax, rcx
xor edx, edx
div rsi
mov rcx, rdx
jmp 0x14008e24f
lea rax, [rsi - 1]
and rcx, rax
mov rax, qword [0x140147150]
lea rdx, [0x140147160]
mov qword [rax + rcx*8], rdx
mov r10, qword [r8]
test r10, r10
je 0x14008e15e
lea r11, [rsi - 1]
jmp 0x14008e2cc
mov qword [rdx + rax*8], r8
jmp 0x14008e2ba
and rax, r11
cmp rax, rcx
je 0x14008e2b7
mov rdx, qword [0x140147150]
cmp qword [rdx + rax*8], 0
je 0x14008e273
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [0x140147150]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [0x140147150]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x14008e15e
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14008e279
cmp rax, rsi
jb 0x14008e27c
xor edx, edx
div rsi
mov rax, rdx
jmp 0x14008e27c
cvtsi2ss xmm0, rax
divss xmm0, dword [0x140147170]
call fcn.1400c6034
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140115f80]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rdi, 3
jb 0x14008e3a0
mov rcx, rdi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rdi
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x14008e3a0
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x14008e3ab
mov rcx, rax
call fcn.140080630
mov rdx, rax
cmp rsi, rdx
cmova rdx, rsi
cmp rdx, rdi
jae 0x14008e15e
lea rcx, [0x140147150]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400ece20
int3
Function at 0x1400936d0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
mov rdx, qword [rcx]
mov r9, qword [rcx + 8]
mov r8, r9
sub r8, rdx
je 0x140093767
mov rax, r8
shr rax, 2
neg r9
xor r9, rdx
cmp r9, 0xffffffffffffffff
je 0x140093762
mov r10, r8
and r10, 0xfffffffffffffffe
xor r9d, r9d
lea r11, [0x14011efa0]
nop dword [rax]
movzx esi, al
movzx edi, byte [rdx + r9]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [rdx + r9 + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add r9, 2
cmp r10, r9
jne 0x140093710
test r8b, 1
je 0x14009375c
movzx r8d, al
movzx edx, byte [rdx + r9]
xor edx, r8d
lea r8, [0x14011efa0]
shr eax, 8
xor eax, dword [r8 + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor r9d, r9d
jmp 0x14009373c
xor eax, eax
jmp 0x14009375c
sub rsp, 0x28
movapd xmmword [rsp + 0x10], xmm7
movapd xmmword [rsp], xmm6
mov r11, qword [r8]
mov r10, qword [r8 + 8]
mov rax, r10
sub rax, r11
sar rax, 2
lea r9, [rax - 1]
cmp r9, 2
jb 0x1400ee7c8
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, edx
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x140115370]
subpd xmm2, xmmword [0x140115380]
haddpd xmm2, xmm2
mov ecx, 1
movdqa xmm3, xmmword [0x140115370]
movapd xmm4, xmmword [0x140115380]
movsd xmm5, qword [0x14011a870]
mov rdx, qword [r8]
mov r10, qword [r8 + 8]
sub r10, rdx
sar r10, 2
cmp r10, rcx
jbe 0x1400ee7ea
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
haddpd xmm6, xmm6
lea r10, [rcx - 1]
movq xmm7, r10
punpckldq xmm7, xmm3
subpd xmm7, xmm4
haddpd xmm7, xmm7
mulsd xmm6, xmm0
mulsd xmm7, xmm1
addsd xmm7, xmm6
divsd xmm7, xmm2
addsd xmm7, xmm5
cvttsd2si r10d, xmm7
mov dword [rdx + rcx*4], r10d
dec rax
inc rcx
cmp rcx, r9
jne 0x1400ee760
mov r11, qword [r8]
mov r10, qword [r8 + 8]
cmp r10, r11
je 0x1400ee7ed
mov dword [r10 - 4], 0x7fffffff
mov rcx, r8
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
add rsp, 0x28
jmp 0x1400936d0
int3
int3

Function at 0x1400952e4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14009535c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14009535c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14009535c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140095350
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14009536e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14009533e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14009535e
Function at 0x140095984
Capabilities:
Parse pe header

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

Function at 0x1400a6078
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400a60af
call fcn.140093e50
mov dword [rax], 0x16
call fcn.1400b7424
xor eax, eax
jmp 0x1400a613d
mov rdx, r9
mov rcx, r8
call fcn.1400a6160
mov rbx, rax
test rax, rax
je 0x1400a613a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400a61d0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400a6127
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a8f48
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a610e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a611d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140092cd0
jmp 0x1400a613a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a6137
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b14e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b1508
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b1508
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400bb968
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.1400b5084
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 0x1400bba09
cmp ebx, dword [rsp + 0x30]
je 0x1400bba02
test esi, esi
je 0x1400bba02
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400bb9dd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400bb9ea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400bb9c7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400bb9ee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400bba0b
mov eax, 1
jmp 0x1400bba0b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bc744
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 0x1400bc774
xor eax, eax
jmp 0x1400bc837
mov rbp, rbx
cmp word [rax], si
je 0x1400bc799
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400bc780
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400bc77c
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.1400bc664
movsxd r14, eax
test eax, eax
jne 0x1400bc7d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400bc76d
mov rcx, r14
call fcn.1400501f0
mov rdi, rax
test rax, rax
jne 0x1400bc7f0
xor ecx, ecx
call fcn.140092cd0
jmp 0x1400bc7cc
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.1400bc664
test eax, eax
jne 0x1400bc821
mov rcx, rdi
call fcn.140092cd0
jmp 0x1400bc82b
xor ecx, ecx
call fcn.140092cd0
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 0x1400bc854
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 0x1400bc8db
mov rsi, rbx
cmp word [rax], bp
je 0x1400bc89a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400bc884
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400bc880
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400501f0
mov rdi, rax
test rax, rax
je 0x1400bc8c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140097a10
mov rbp, rdi
xor ecx, ecx
call fcn.140092cd0
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

Function at 0x1400bf62c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14012f028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400bf676
call fcn.1400a8f28
mov dword [rax], 0xf
call fcn.140093e50
mov dword [rax], 0xd
call fcn.1400b7424
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140095f80
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400bf681
lea eax, [rbx + 1]
jmp 0x1400bf663
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400bf661
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400bf663
Function at 0x1400bfc4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400bfc62
mov al, 1
jmp 0x1400bfcc2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400bfc73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400bfcc0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a905c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bfcc0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bfcc0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bfcc0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400bfcc2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400c3718
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.1400a0a10
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c37a2
cmp byte [rbp - 0x21], r15b
je 0x1400c379d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c37d8
call fcn.1400b5854
test eax, eax
jne 0x1400c37c4
cmp byte [rbp - 0x21], r15b
je 0x1400c37bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c37d8
cmp byte [rbp - 0x21], r15b
je 0x1400c37d5
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.1400a5efc
test eax, eax
jne 0x1400c3878
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a0a10
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c3817
cmp byte [rbp - 0x21], r15b
je 0x1400c384c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c384c
call fcn.1400b5854
test eax, eax
jne 0x1400c3838
cmp byte [rbp - 0x21], r15b
je 0x1400c3831
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c384c
cmp byte [rbp - 0x21], r15b
je 0x1400c3849
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.1400a5efc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c3878
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c387b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c3889
mov rcx, rdi
call fcn.140092cd0
cmp byte [rbp + 0x3f], r15b
je 0x1400c3898
mov rcx, qword [rbp + 0x27]
call fcn.140092cd0
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 0x1400c7390
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14012f028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140147480], 0
jne 0x1400c7450
mov rdi, qword [0x140147478]
test rdi, rdi
je 0x1400c746d
cmp byte [rdi + 0x17], 0
jns 0x1400c73d6
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140147480], rax
inc rax
cmp rax, 1
ja 0x1400c7450
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400980c0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400c754a
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140095f80
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0x18
call fcn.140093d8c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400980c0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140114ca0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400c7b70
movzx ecx, byte [rdi + 0x17]
mov r9d, ecx
and r9d, 0x7f
test cl, cl
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
cmovs r9, rdx
mov r10, rdi
cmovs r10, rax
test r9, r9
je 0x1400c7529
add r9, r9
test r9, r9
je 0x1400c7529
lea r8, [r9 - 2]
cmp word [r10 + r9 - 2], 0x5c
mov r9, r8
jne 0x1400c74ea
cmp r8, 0xfffffffffffffffe
je 0x1400c7529
sar r8, 1
lea r9, [r8 + 1]
test cl, cl
jns 0x1400c762d
cmp rdx, r8
jbe 0x1400c7645
mov qword [rdi + 8], r9
mov word [rax + r8*2 + 2], 0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140020250
mov qword [0x140147478], rdi
jmp 0x1400c73cd
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140094568
mov rcx, qword [0x140147478]
mov rdx, rdi
mov r8, rax
call fcn.1400333d0
mov rcx, qword [0x140147478]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x1400c7620
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400c7642
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400c75ad
lea rdx, [0x140116d9a]
mov r8d, 1
call fcn.140020250
mov rcx, qword [0x140147478]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140020250
mov rcx, qword [0x140147478]
cmp byte [rcx + 0x17], 0
jns 0x1400c75cf
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140147480], rax
inc rax
cmp rax, 1
ja 0x1400c7450
mov qword [0x140147480], 0
jmp 0x1400c744e
test rax, rax
je 0x1400c7642
mov rdx, rcx
jmp 0x1400c758c
cmp r8, rcx
jae 0x1400c7645
and r9b, 0x7f
mov byte [rdi + 0x17], r9b
mov rax, rdi
jmp 0x1400c7521
int3
int3
Function at 0x1400c9150
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test ecx, ecx
js 0x1400c9162
mov rsi, rdx
test rdx, rdx
jne 0x1400c9169
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400c91b0
test edi, edi
je 0x1400c9162
cmp byte [rsi + rdi - 1], 0xa
je 0x1400c9162
lea rcx, [0x140115061]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400c91b0

Function at 0x1400c91b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14012f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400c91fe
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1400c923c
cmp rdi, rsi
jae 0x1400c923c
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400c91f7
jmp 0x1400c91f4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140095f80
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret