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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14005e080]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140023864
xor eax, eax
jmp 0x140023a5a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140023895
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140023aa0
jmp 0x140023a5a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000abc0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140023943
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140003b50
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000e080
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000c720
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.14001fec0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x140023a4a
mov rcx, qword [rsp + 0x80]
call fcn.14001d270
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x1400239f8
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002ff44
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1400239f3
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140023a5a
jmp 0x14002396f
cmp qword [rsp + 0x50], 0
jbe 0x140023a4a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002ff44
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400259c0
add rsp, 0x78
ret

Function at 0x1400262fc
Capabilities:
Parse pe header

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

Function at 0x140033134
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140032f24
Function at 0x1400387b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400387e6
call fcn.140031a38
mov dword [rax], 0x16
call fcn.14002c290
jmp 0x140038905
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140038905
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140038905
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140038815
lock or dword [rcx + 0x14], 0x10
jmp 0x140038905
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140038829
call fcn.140038d20
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140038124
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14003b4d4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400388f3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400388be
mov rcx, rsi
call fcn.140038124
cmp eax, edi
je 0x1400388a9
mov rcx, rsi
call fcn.140038124
cmp eax, 0xfffffffe
je 0x1400388a9
mov rcx, rsi
call fcn.140038124
movsxd rbx, eax
lea r14, [0x140060c30]
mov rcx, rsi
sar rbx, 6
call fcn.140038124
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400388b0
lea rdx, [0x14005e470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400388be
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400388e2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400388e2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400388e2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140038908
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140038920
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140038642
call fcn.140031a38
mov dword [rax], 0x16
call fcn.14002c290
jmp 0x140038792
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140038792
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140038792
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140038671
lock or dword [rcx + 0x14], 0x10
jmp 0x140038792
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140038685
call fcn.140038d20
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140038695
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140038698
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140038124
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14003b4d4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140038780
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14003872b
mov rcx, rbx
call fcn.140038124
cmp eax, 0xffffffff
je 0x140038716
mov rcx, rbx
call fcn.140038124
cmp eax, 0xfffffffe
je 0x140038716
mov rcx, rbx
call fcn.140038124
movsxd rdi, eax
lea rsi, [0x140060c30]
mov rcx, rbx
sar rdi, 6
call fcn.140038124
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14003871d
lea rdx, [0x14005e470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003872b
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14003874f
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14003874f
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14003874f
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14003876d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140038778
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140038797
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14003860c
Function at 0x14003ada8
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.140025960
sub rsp, rax
mov rax, qword [0x14005e080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140038124
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003adf7
mov rax, rbp
jmp 0x14003aeff
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x60c30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003bcac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x60c30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003aefb
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 0x14003aefb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003bcac
test rax, rax
js 0x14003aefb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003aefb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003aeed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003aeed
cmp byte [rcx], 0xd
jne 0x14003aed3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003aee2
cmp byte [rcx + 1], 0xa
jne 0x14003aee2
inc rcx
jmp 0x14003aee2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5e4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003aeb5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003aeff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400259c0
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 0x14003b028
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140060c30]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14003b086
cmp word [rdx], r12w
jne 0x14003b086
or byte [rax + r8*8 + 0x38], cl
jmp 0x14003b08c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003b1e7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003b1c2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14003b0c5
mov rcx, r9
jmp 0x14003b0e8
cmp r9, rdx
jae 0x14003b0ff
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14003b0a9
jmp 0x14003b1e7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b1bc
cmp dword [rsp + 0x80], edi
je 0x14003b1bc
mov rdx, r14
lea r11, [0x140060c30]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14003b195
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14003b168
mov word [rbx], r12w
jmp 0x14003b1e3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14003b171
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003b1e3
cmp word [rsp + 0x70], r12w
jne 0x14003b1a2
cmp rbx, rsi
je 0x14003b162
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14003bcb4
cmp word [rsp + 0x70], r12w
je 0x14003b1e7
mov word [rbx], r13w
jmp 0x14003b1e3
lea r11, [0x140060c30]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003b1df
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003b1e7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003ecd8
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 0x14003ed5f
mov rsi, rbx
cmp word [rax], bp
je 0x14003ed1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003ed08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003ed04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140036d74
mov rdi, rax
test rax, rax
je 0x14003ed4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140046e00
mov rbp, rdi
xor ecx, ecx
call fcn.140036d38
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 0x140045fe0
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.14003bcb4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003bcb4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140046130
cmp rax, 0xffffffffffffffff
je 0x140046130
xor edi, edi
test rbp, rbp
jle 0x1400460db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140036cc0
mov rbx, rax
test rax, rax
jne 0x140046068
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400460d1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400331b0
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.14003a788
cmp eax, 0xffffffff
je 0x1400460b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140046078
mov edx, r15d
mov ecx, r14d
call fcn.1400331b0
jmp 0x1400460d1
cmp byte [rsi + 0x38], dil
je 0x1400460c8
cmp dword [rsi + 0x34], 5
jne 0x1400460c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400460d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140036d38
jmp 0x140046144
jns 0x140046144
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003bcb4
cmp rax, 0xffffffffffffffff
jne 0x1400460fc
cmp byte [rsi + 0x30], dil
je 0x140046144
mov edi, dword [rsi + 0x2c]
jmp 0x140046144
mov ecx, r14d
call fcn.14003f6b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140046144
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 0x140046144
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004613d
mov eax, dword [rsi + 0x2c]
jmp 0x140046142
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003bcb4
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 0x140046a30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140046a58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140046a58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10000ec20
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x240], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.100024060
mov ebx, eax
test eax, eax
jns 0x10000ec73
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x10000ec6c
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
jmp 0x10000ed51
lea rcx, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
call fcn.100023c48
mov edi, eax
test eax, eax
js 0x10000ecae
lea r9, [0x100007d78]
lea r8, [rsp + 0x30]
lea rdx, [0x10000b8f0]
lea rcx, [rsp + 0x28]
call fcn.100027324
mov rbx, qword [rsp + 0x28]
mov edi, eax
test edi, edi
jns 0x10000ecd4
test rbx, rbx
je 0x10000ecc0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x10000ecd0
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
jmp 0x10000ed51
mov esi, 0x80
mov rcx, rbx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdi, qword [rsp + 0x20]
xor r8d, r8d
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10000ed05
call fcn.100027b98
mov esi, eax
jmp 0x10000ed12
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor esi, esi
test esi, esi
js 0x10000ed76
lea rcx, [0x100007d98]
mov dl, 1
call fcn.100015444
lea rcx, [0x100007db8]
mov rdx, rbx
call fcn.10001288c
test rbx, rbx
je 0x10000ed41
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
test rdi, rdi
je 0x10000ed4f
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10002eee0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp esi, 0x80070005
je 0x10000ed33
cmp esi, 0x80070020
je 0x10000ed33
lea rcx, [0x100007d98]
mov dl, 1
call fcn.100015444
lea rdx, [0x100007df0]
mov r9, rbx
mov r8, rdi
mov ecx, esi
call fcn.1000128bc
test rbx, rbx
je 0x10000edb6
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
test rdi, rdi
je 0x10000edc4
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, esi
jmp 0x10000ed51

Function at 0x10000f280
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x100007ed0]
mov rbx, rdx
call fcn.1000262f0
test al, al
jne 0x10000f2f8
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10000f2bb
call fcn.100027b98
jmp 0x10000f2bd
xor eax, eax
test eax, eax
jns 0x10000f2e9
cmp eax, 0x80070002
je 0x10000f2f8
cmp eax, 0x80070003
je 0x10000f2f8
cmp eax, 0x80070005
je 0x10000f2f8
lea rdx, [0x100007ee8]
mov r8, rbx
mov ecx, eax
call fcn.1000128bc
jmp 0x10000f2f8
lea rcx, [0x100007f08]
mov rdx, rbx
call fcn.10001288c
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x100012750
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [0x10003e2d0], 0
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
je 0x100012870
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
test rax, rax
jne 0x10001278c
xor dl, dl
jmp 0x100012795
cmp word [rdi + rax*2 - 2], 0xa
sete dl
xor ebx, ebx
mov qword [rsp + 0x58], rbx
test rsi, rsi
jne 0x1000127a5
test dl, dl
jne 0x1000127e7
test dl, dl
lea r8, [0x1000082d4]
lea rcx, [0x100008338]
mov rax, r8
lea rdx, [0x100008468]
mov r9, rdi
cmove rax, rcx
test rsi, rsi
lea rcx, [rsp + 0x58]
cmovne r8, rsi
mov qword [rsp + 0x20], rax
call fcn.100027324
mov rbx, qword [rsp + 0x58]
test eax, eax
cmovns rdi, rbx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
mov r8, rbp
mov rdx, rdi
call fcn.100027194
test eax, eax
jns 0x10001280d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x100012862
jmp 0x10001285c
mov rdi, qword [rsp + 0x58]
mov rsi, qword [0x10003e350]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcslen]
mov r11, rax
mov eax, 2
mul r11
test rdx, rdx
jne 0x100012841
mov rcx, qword [rsi + 0x18]
mov r8, rdi
mov rdx, rax
call fcn.100024290
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100012854
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x100012862
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
je 0x100012870
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x100015618
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor esi, esi
mov ecx, 0x104
mov word [r11 - 0x22], si
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
jne 0x100015693
call fcn.100027b98
mov ebx, eax
mov rcx, qword [0x10003d610]
lea rax, [0x10003d610]
cmp rcx, rax
je 0x1000156d4
test byte [rcx + 0x1c], 1
je 0x1000156d4
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xa]
lea r8, [0x100007ab0]
mov r9d, ebx
call fcn.10001550c
jmp 0x1000156d4
cmp word [rsp + 0x226], si
je 0x1000156d2
mov rcx, qword [0x10003d610]
lea rax, [0x10003d610]
cmp rcx, rax
je 0x1000156cb
test byte [rcx + 0x1c], 1
je 0x1000156cb
mov rcx, qword [rcx + 0x10]
lea r8, [0x100007ab0]
mov edx, 0xb
call fcn.1000154e8
mov ebx, 0x80004005
jmp 0x1000156d8
mov ebx, esi
cmp ebx, esi
jge 0x1000156dc
mov eax, ebx
jmp 0x1000156e9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1000253cc
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10002eee0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10001585c
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor esi, esi
mov ecx, 0x104
mov word [r11 - 0x22], si
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jne 0x1000158d7
call fcn.100027b98
mov ebx, eax
mov rcx, qword [0x10003d610]
lea rax, [0x10003d610]
cmp rcx, rax
je 0x100015918
test byte [rcx + 0x1c], 1
je 0x100015918
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xe]
lea r8, [0x100007ab0]
mov r9d, ebx
call fcn.10001550c
jmp 0x100015918
cmp word [rsp + 0x226], si
je 0x100015916
mov rcx, qword [0x10003d610]
lea rax, [0x10003d610]
cmp rcx, rax
je 0x10001590f
test byte [rcx + 0x1c], 1
je 0x10001590f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100007ab0]
mov edx, 0xf
call fcn.1000154e8
mov ebx, 0x80004005
jmp 0x10001591c
mov ebx, esi
cmp ebx, esi
jge 0x100015920
mov eax, ebx
jmp 0x10001592d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1000253cc
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10002eee0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret