joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d0f0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.140010410
mov qword [0x140026040], rax
call fcn.14000ee80
test eax, eax
je 0x14000d1c7
call fcn.14000f110
call fcn.14000f210
call fcn.14000f2c0
call fcn.14000f690
call fcn.14000f750
lea rbx, [0x14001c678]
jmp 0x14000d13f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c678]
cmp rbx, rax
jb 0x14000d139
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f850
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001ad0
mov ebx, eax
lea rsi, [0x14001c678]
jmp 0x14000d1a6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c678]
cmp rsi, rax
jb 0x14000d1a0
mov ecx, ebx
jmp 0x14000f8a0
mov ecx, 0xfffffffe
call fcn.14000f910
jmp 0x14000d117
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f8c5
mov rax, qword [0x14001d060]
lea rdx, [rax + 1]
mov qword [0x14001d060], rdx
lea rdx, [0x140026780]
call qword [rdx + rax*8]
cmp qword [0x14001d060], 0x50
jb 0x14000f8a9
cmp qword [0x140026a00], 0
je 0x14000f8ff
mov rax, qword [0x140026a00]
sub rax, 1
mov qword [0x140026a00], rax
lea rdx, [0x140026780]
call qword [rdx + rax*8]
cmp qword [0x140026a00], 0
jne 0x14000f8d9
mov ecx, ebx
jmp fcn.140010610

Function at 0x14000f690
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
cmp byte [rbx], 0
jne 0x14000f6c0
xor ecx, ecx
lea rdx, [rsp + 0x3c]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rbx, [rsp + 0x3c]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rbx
xor edx, edx
xor r8, r8
lea r9, [rsp + 0x30]
call fcn.14000f4e0
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rax*8]
call fcn.14000dac0
mov rsi, rax
test rsi, rsi
je 0x14000f72f
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x30]
lea r8, [rsi + rdi*8]
mov rcx, rbx
mov rdx, rsi
lea r9, [rsp + 0x30]
call fcn.14000f4e0
sub rdi, 1
mov eax, edi
mov dword [0x140026160], eax
mov qword [0x140026180], rsi
jmp 0x14000f739
mov ecx, 0xfffffffc
call fcn.14000f910
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f750
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
cmovne rbx, rax
cmove rbx, qword [0x14001d050]
mov rsi, rbx
xor eax, eax
cmp byte [rsi], 0
je 0x14000f7ae
nop
nop word [rax + rax]
or rdx, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rdx, 1
cmp byte [rsi + rdx], 0
jne 0x14000f790
lea rdi, [rdx + 1]
cmp byte [rsi], 0x3d
je 0x14000f7a6
add rax, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f780
lea rcx, [rax + 1]
call fcn.14000dac0
mov rdx, rax
mov qword [0x1400261a0], rax
test rax, rax
je 0x14000f830
mov rsi, rbx
cmp byte [rsi], 0
je 0x14000f819
nop
or rax, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rax, 1
cmp byte [rsi + rax], 0
jne 0x14000f7e0
lea rdi, [rax + 1]
cmp byte [rsi], 0x3d
je 0x14000f811
xor ecx, ecx
nop
nop word [rax + rax]
mov al, byte [rsi + rcx]
mov byte [rdx + rcx], al
add rcx, 1
test al, al
jne 0x14000f800
add rdx, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f7d0
mov byte [rdx], 0
cmp rbx, qword [0x14001d050]
je 0x14000f83a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x14000f83a
mov ecx, 0xfffffffc
call fcn.14000f910
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000f850
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [rax], 0x22
jne 0x14000f879
nop
add rax, 1
cmp byte [rax], 0x22
je 0x14000f873
cmp byte [rax], 0
jne 0x14000f860
cmp byte [rax], 0x22
jne 0x14000f884
add rax, 1
jmp 0x14000f884
cmp byte [rax], 0x20
jbe 0x14000f884
add rax, 1
jmp 0x14000f879
mov dl, byte [rax]
test dl, dl
je 0x14000f88f
cmp dl, 0x20
jbe 0x14000f873
add rsp, 0x28
ret
Function at 0x14000f8a0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.140010410
mov qword [0x140026040], rax
call fcn.14000ee80
test eax, eax
je 0x14000d1c7
call fcn.14000f110
call fcn.14000f210
call fcn.14000f2c0
call fcn.14000f690
call fcn.14000f750
lea rbx, [0x14001c678]
jmp 0x14000d13f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c678]
cmp rbx, rax
jb 0x14000d139
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f850
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001ad0
mov ebx, eax
lea rsi, [0x14001c678]
jmp 0x14000d1a6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c678]
cmp rsi, rax
jb 0x14000d1a0
mov ecx, ebx
jmp 0x14000f8a0
mov ecx, 0xfffffffe
call fcn.14000f910
jmp 0x14000d117
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f8c5
mov rax, qword [0x14001d060]
lea rdx, [rax + 1]
mov qword [0x14001d060], rdx
lea rdx, [0x140026780]
call qword [rdx + rax*8]
cmp qword [0x14001d060], 0x50
jb 0x14000f8a9
cmp qword [0x140026a00], 0
je 0x14000f8ff
mov rax, qword [0x140026a00]
sub rax, 1
mov qword [0x140026a00], rax
lea rdx, [0x140026780]
call qword [rdx + rax*8]
cmp qword [0x140026a00], 0
jne 0x14000f8d9
mov ecx, ebx
jmp fcn.140010610

Function at 0x14000f910
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [ecx + 0x11]
cmp eax, 0xf
ja 0x14000f9c8
lea rax, [0x14001ad30]
sub ecx, 0xffffffef
movsxd rdx, ecx
jmp qword [rax + rdx*8]
lea rbx, str.unexpected_error
lea rcx, str.CRT:
lea rdx, [0x14001d190]
call fcn.140010660
mov rcx, rbx
lea rdx, [0x14001d190]
call fcn.140010660
lea rcx, [0x14001adc2]
lea rdx, [0x14001d190]
call fcn.140010660
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000fa32
int3
mov ecx, 0xff
jmp fcn.140010610
Function at 0x1400120f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov qword [rsp + 0x20], rbx
mov rdi, rbx
mov ax, word [rdi + 6]
and ax, 0x7ff0
shr ax, 4
mov r12w, ax
cmp r12w, 0x7ff
je 0x140012236
test r12w, r12w
je 0x140012263
movsx eax, r12w
add esi, eax
cmp esi, 0x7ff
jge 0x14001227d
test esi, esi
jg 0x1400122a9
mov ax, word [rdi + 6]
mov r14w, ax
and r14w, 0x8000
and ax, 0xf
or ax, 0x10
mov word [rdi + 6], ax
lea eax, [esi - 1]
cmp eax, 0xffffffcc
jl 0x1400122c4
cmp ax, 0xfff0
jg 0x1400121a7
nop
nop word [rax + rax]
mov dx, word [rdi + 2]
mov word [rdi], dx
mov dx, word [rdi + 4]
mov word [rdi + 2], dx
mov dx, word [rdi + 6]
mov word [rdi + 4], dx
mov word [rdi + 6], 0
add ax, 0x10
cmp ax, 0xfff0
jle 0x140012180
mov dx, ax
neg dx
mov ax, dx
test dx, dx
je 0x140012229
movsx eax, ax
mov edx, eax
neg edx
add edx, 0x10
movzx r8d, word [rdi]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 2]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi], cx
movzx r8d, word [rdi + 2]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 4]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi + 2], cx
movzx r8d, word [rdi + 4]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 6]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov dx, r8w
mov word [rdi + 4], dx
movzx edx, word [rdi + 6]
mov ecx, eax
sar edx, cl
mov ax, dx
mov word [rdi + 6], ax
or word [rdi + 6], r14w
or eax, 0xffffffff
jmp 0x1400122dc
test word [rdi + 6], 0xf
jne 0x140012252
cmp word [rdi + 4], 0
jne 0x140012252
cmp word [rdi + 2], 0
jne 0x140012252
cmp word [rdi], 0
je 0x14001225c
mov eax, 2
jmp 0x1400122dc
mov eax, 1
jmp 0x1400122dc
mov rcx, rdi
call fcn.140013940
test ax, ax
jg 0x140012279
mov r12w, ax
jmp 0x14001212e
xor eax, eax
jmp 0x1400122dc
cmp word [rdi + 6], 0
jge 0x140012296
movsd xmm0, qword [0x14001bac0]
xorpd xmm0, xmmword [0x14001bb00]
jmp 0x14001229e
movsd xmm0, qword [0x14001bac0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400122dc
mov ax, word [rdi + 6]
and ax, 0x800f
mov dx, si
shl dx, 4
or ax, dx
mov word [rdi + 6], ax
or eax, 0xffffffff
jmp 0x1400122dc
mov word [rdi + 6], r14w
mov word [rdi + 4], 0
mov word [rdi + 2], 0
mov word [rdi], 0
xor eax, eax
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140013b60
Capabilities:
Terminate process

Disassembly:
cmp dword [0x140022860], 0
jne 0x140013b7f
mov dword [0x140022860], 1
lea rcx, [0x140013b20]
jmp 0x140014560
ret
mov rax, qword [0x140026a00]
cmp qword [0x14001d060], rax
ja 0x140014575
jmp 0x140014d50
lea rdx, [rax + 1]
mov qword [0x140026a00], rdx
lea rdx, [0x140026780]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.140014da0
mov ecx, 1
jmp 0x14000f8a0
Function at 0x140013cc0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x140013ddb
lea rax, [rsp + 0x82f]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x140013d51
nop dword [rax]
cmp r12, rdi
jae 0x140013d51
cmp byte [r12], 0xa
jne 0x140013d3c
add qword [rsp + 0x838], 1
mov byte [rdx], 0xd
add rdx, 1
add rdx, 1
add r12, 1
mov cl, byte [r12 - 1]
mov byte [rdx - 1], cl
cmp rdx, rax
jb 0x140013d20
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.1400148f0
test eax, eax
je 0x140013d82
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
mov r9d, r14d
mov edx, dword [0x140026a20]
lea r8, [rsp + 0x30]
call fcn.140014ab0
mov ecx, esi
call fcn.140014890
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140013dce
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x140013ddb
add r12, 1
cmp r12, rdi
jb 0x140013d06
jmp 0x140013ddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013e10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x140013f5f
lea rax, [rsp + 0x82e]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x140013ea6
nop dword [rax]
cmp r12, rdi
jae 0x140013ea6
cmp word [r12], 0xa
jne 0x140013e8f
add qword [rsp + 0x838], 2
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x140013e70
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.1400148f0
test eax, eax
je 0x140013f19
mov ecx, esi
call fcn.140014890
mov rcx, rax
mov qword [rsp + 0x20], 0
mov eax, r14d
shr rax, 1
mov r8d, eax
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x140013f52
mov eax, dword [rsp + 0x2c]
add rax, rax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x140013f5f
add r12, 2
cmp r12, rdi
jb 0x140013e56
jmp 0x140013f5f
mov ecx, esi
call fcn.140014890
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013ef7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
jmp 0x140013f5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013f90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push r13
sub rsp, 0xc50
mov qword [rsp + 0xc90], rcx
mov ebx, edx
mov rsi, r8
lea rdi, [rsi + r9]
mov r12, rsi
xor r14, r14
cmp r12, rdi
jae 0x140014079
lea rax, [rsp + 0xc46]
lea rdx, [rsp + 0x848]
lea rcx, [rsp + 0x848]
cmp rax, rcx
jbe 0x14001400d
nop
cmp r12, rdi
jae 0x14001400d
cmp word [r12], 0xa
jne 0x140013ff6
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x140013fe0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x848]
sub rdx, rax
sar rdx, 1
mov eax, edx
mov r9d, eax
mov ecx, 0xfde9
xor edx, edx
lea r8, [rsp + 0x848]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140014083
mov eax, eax
lea r15, [rsp + rax + 0x48]
lea rax, [rsp + 0x48]
cmp r15, rax
jbe 0x1400140fe
lea r13, [rsp + 0x48]
jmp 0x1400140c4
mov dword [rsp + 0x40], 0
jmp 0x14001408d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc90]
mov qword [rax], r14
mov rax, qword [rsp + 0xc90]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xc90]
mov edx, dword [rsp + 0x40]
mov dword [rax + 0x10], edx
mov rax, qword [rsp + 0xc90]
jmp 0x14001414a
mov ecx, ebx
call fcn.140014890
mov rcx, rax
mov qword [rsp + 0x20], 0
mov rax, r15
sub rax, r13
mov r8d, eax
mov rdx, r13
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014116
mov eax, dword [rsp + 0x44]
add r13, rax
cmp r13, r15
jb 0x1400140c4
mov r14, r12
sub r14, rsi
add r12, 2
cmp r12, rdi
jb 0x140013fc2
jmp 0x140014079
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xc90]
mov qword [rdx], r14
mov rdx, qword [rsp + 0xc90]
mov qword [rdx + 8], 0
mov rdx, qword [rsp + 0xc90]
mov dword [rdx + 0x10], eax
mov rax, qword [rsp + 0xc90]
add rsp, 0xc50
pop r13
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014160
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, edx
mov rsi, r8
mov rdi, r9
call fcn.140014890
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400141a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
jmp 0x1400141a8
mov edx, dword [rsp + 0x2c]
xor eax, eax
mov qword [rbx], rdx
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], eax
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014670
Capabilities:
Delete file

Disassembly:
jmp 0x140014d70
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140014d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014c70
or eax, 0xffffffff
jmp 0x140014d92
xor eax, eax
add rsp, 0x28
ret
Function at 0x140014d50
Capabilities:
Terminate process

Disassembly:
cmp dword [0x140022860], 0
jne 0x140013b7f
mov dword [0x140022860], 1
lea rcx, [0x140013b20]
jmp 0x140014560
ret
mov rax, qword [0x140026a00]
cmp qword [0x14001d060], rax
ja 0x140014575
jmp 0x140014d50
lea rdx, [rax + 1]
mov qword [0x140026a00], rdx
lea rdx, [0x140026780]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.140014da0
mov ecx, 1
jmp 0x14000f8a0

Function at 0x140014d70
Capabilities:
Delete file

Disassembly:
jmp 0x140014d70
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140014d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014c70
or eax, 0xffffffff
jmp 0x140014d92
xor eax, eax
add rsp, 0x28
ret

Function at 0x140014da0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x38
mov ebx, ecx
mov edx, 1
call fcn.1400106f0
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140014dda
cmp rsi, 1
je 0x140014dd3
test rsi, rsi
je 0x140014de2
mov ecx, ebx
xor edx, edx
call fcn.1400106f0
mov ecx, ebx
call rsi
xor eax, eax
jmp 0x140014edb
or eax, 0xffffffff
jmp 0x140014edb
mov eax, ebx
lea edx, [eax - 2]
cmp edx, 0xd
ja 0x140014e3d
lea rdx, [0x14001c590]
movsxd rax, eax
jmp qword [rdx + rax*8 - 0x10]
lea rcx, [rsp + 0x37]
mov byte [rcx], 0
nop
nop word [rax + rax]
sub rcx, 1
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
neg edx
add edx, ebx
add edx, 0x30
mov byte [rcx], dl
mov ebx, eax
test eax, eax
jne 0x140014e50
sub rcx, 1
mov byte [rcx], 0x23
sub rcx, 1
mov byte [rcx], 0x20
sub rcx, 1
mov byte [rcx], 0x6c
sub rcx, 1
mov byte [rcx], 0x61
sub rcx, 1
mov byte [rcx], 0x6e
sub rcx, 1
mov byte [rcx], 0x67
sub rcx, 1
mov byte [rcx], 0x69
sub rcx, 1
mov byte [rcx], 0x73
lea rdx, [0x14001d190]
call fcn.140010660
lea rcx, str.____terminating_n
lea rdx, [0x14001d190]
call fcn.140010660
mov ecx, 1
jmp 0x14000f8a0
add rsp, 0x38
pop rsi
pop rbx
ret

Function at 0x140015280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov esi, edx
mov edi, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov qword [rsp + 0x30], 0
xor edx, edx
cmp eax, 0xffffffff
cmove eax, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
mov rcx, rbx
mov edx, esi
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015380
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
lea rcx, [0x14001efc0]
lea rdx, [0x14001a60c]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test rsi, rsi
je 0x1400153ed
mov rcx, rsi
xor edx, edx
mov r8d, 1
call fcn.140015280
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
lea rdx, [0x14001efc0]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
test esi, esi
je 0x1400155b5
cmp esi, 0x400
jg 0x1400155b5
mov rcx, rbx
lea rdx, [0x14001f7c0]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
test esi, esi
je 0x1400155b5
cmp esi, 0x400
jg 0x1400155b5
lea rcx, [0x14001ffc0]
lea rdx, str._s_s_r_n
lea r8, [0x14001efc0]
lea r9, [0x14001f7c0]
call qword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
lea rcx, str._WIN_
lea rdx, [0x14001f7c0]
mov r8d, 0x800
call qword [sym.imp.pbcore64.dll_EvalVarBuf]
lea rcx, [0x14001f7c0]
mov edx, 0xc0000000
mov r8d, 4
call fcn.140015280
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x1400155b5
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test r12, r12
je 0x140015592
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r12
mov r8d, edi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015592
cmp edi, dword [rsp + 0x2c]
jne 0x140015592
mov rcx, r12
lea rdx, str._Rename__r_n
call fcn.1400152d0
test rax, rax
je 0x14001559d
lea rcx, [rax + 0xa]
lea rdx, [0x14001a5f4]
call fcn.1400152d0
test rax, rax
je 0x140015540
mov edx, edi
lea rcx, [r12 + rdx]
add rdx, r12
movsxd r8, ebx
add rdx, r8
cmp rcx, rax
jbe 0x140015535
nop
nop word [rax + rax]
sub rdx, 1
sub rcx, 1
mov r8b, byte [rcx + 1]
mov byte [rdx + 1], r8b
cmp rcx, rax
ja 0x140015520
sub rax, r12
add rax, 1
mov edx, eax
jmp 0x140015542
mov edx, edi
mov eax, edx
mov eax, eax
lea rcx, [r12 + rax]
lea rdx, [0x14001ffc0]
mov r8d, ebx
call fcn.140015350
mov rcx, rsi
xor edx, edx
xor r8, r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r8d, [edi + ebx]
mov rcx, rsi
mov rdx, r12
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400155b5
mov eax, edi
lea rcx, [r12 + rax]
lea rdx, str._Rename__r_n
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x140015540
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015910
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x2000
call fcn.14000dac0
mov rdi, rax
test rdi, rdi
je 0x140015994
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r12d, eax
test r12d, r12d
je 0x140015998
cmp r12d, 0x1000
ja 0x1400159b1
mov r14d, 1
jmp 0x140015961
xor r14d, r14d
test r14d, r14d
je 0x140015974
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.pbcore64.dll_SetVar]
jmp 0x140015984
mov rcx, rsi
lea rdx, [0x14001a5d4]
call qword [sym.imp.pbcore64.dll_SetVar]
mov rcx, rdi
call fcn.14000dec0
test r14d, r14d
setne al
jmp 0x1400159e9
xor al, al
jmp 0x1400159e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14001595e
mov rcx, rdi
call fcn.14000dec0
xor al, al
jmp 0x1400159e9
mov eax, r12d
lea rdx, [rax + rax]
mov rcx, rdi
call fcn.14000e320
mov rdi, rax
test rdi, rdi
je 0x140015994
mov rcx, rbx
mov rdx, rdi
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140015956
mov rcx, rdi
call fcn.14000dec0
xor al, al
add rsp, 0x20
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140016c90
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x430
mov r8, rcx
lea rdi, [rsp + 0x228]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000ccb0
lea rcx, [rsp + 0x20]
call fcn.140016af0
lea rax, [rsp + 0x20]
mov rbx, rax
nop dword [rax]
cmp word [rbx], 0x5c
je 0x140016cf2
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x140016ce0
xor ebx, ebx
xor esi, esi
jmp 0x140016d82
lea rax, [rsp + 0x20]
neg rax
add rax, rbx
sar rax, 1
lea r9, [rax + 1]
lea rcx, [rsp + 0x228]
mov edx, 0x104
lea r8, [rsp + 0x20]
call fcn.14000e650
lea rcx, [rsp + 0x228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140016d64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
add rbx, 2
mov rax, rbx
nop
nop word [rax + rax]
cmp word [rbx], 0x5c
je 0x140016d62
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x140016d50
xor ebx, ebx
jmp 0x140016d82
cmp byte [0x140022b80], 0
je 0x140016d3e
mov ecx, 1
lea rdx, [rsp + 0x228]
call qword [sym.imp.pbcore64.dll_AddUninstLog]
jmp 0x140016d3e
test rbx, rbx
jne 0x140016cf9
mov eax, esi
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret

Function at 0x140016da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140016dbd
test eax, 0x10
je 0x140016dbd
mov eax, 1
jmp 0x140016dbf
xor eax, eax
add rsp, 0x28
ret