joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011aac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011ac2
mov al, 1
jmp 0x140011b22
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011ad3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011b20
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000dfb8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011b20
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011b20
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011b20
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011b22
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012b60
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.14000c688
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012bea
cmp byte [rbp - 0x21], r15b
je 0x140012be5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012c20
call fcn.140009424
test eax, eax
jne 0x140012c0c
cmp byte [rbp - 0x21], r15b
je 0x140012c04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012c20
cmp byte [rbp - 0x21], r15b
je 0x140012c1d
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.14000bc68
test eax, eax
jne 0x140012cc0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c688
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012c5f
cmp byte [rbp - 0x21], r15b
je 0x140012c94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012c94
call fcn.140009424
test eax, eax
jne 0x140012c80
cmp byte [rbp - 0x21], r15b
je 0x140012c79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012c94
cmp byte [rbp - 0x21], r15b
je 0x140012c91
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.14000bc68
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012cc0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012cc3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012cd1
mov rcx, rdi
call fcn.1400091d4
cmp byte [rbp + 0x3f], r15b
je 0x140012ce0
mov rcx, qword [rbp + 0x27]
call fcn.1400091d4
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 0x140015250
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [r8 + 4]
mov edi, r9d
mov rsi, rcx
test ebx, ebx
jns 0x1800012aa
mov rax, qword [rsp + 0x60]
btr ebx, 0x1f
and edi, 0xfffffffe
lea r8, [rdx + rbx]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.180001380
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
btr ebx, 0x1f
mov qword [rsp + 0x40], rbp
lea r9, [rsp + 0x50]
add rbx, rdx
mov r8d, 4
mov eax, dword [rbx]
mov dword [rsp + 0x50], 0
mov edx, dword [rbx + 4]
btr eax, 0x1f
lea rbp, [rax + rcx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000135e
mov r10d, dword [rbx]
mov rax, qword [rsp + 0x60]
mov rdx, rbp
mov rcx, qword [rax + 0x10]
mov r8d, dword [rbx + 4]
mov r11d, r10d
imul r10d, r10d, 0xbaadf00d
imul r11d, r11d, 0xccddeeaa
sub ecx, esi
shr r8d, 2
xor ecx, 0xdeadbeef
test r8d, r8d
je 0x180001348
test dil, 0x80
mov eax, 1
mov r9d, 0xffffffff
cmovne r9d, eax
nop dword [rax + rax]
add ecx, r10d
mov eax, r9d
lea rdx, [rdx + 4]
xor ecx, r11d
imul eax, ecx
add dword [rdx - 4], eax
dec r8d
jne 0x180001330
mov edx, dword [rbx + 4]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180004cf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, rdx
mov r9, rcx
test rcx, rcx
jne 0x180004d06
xor eax, eax
add rsp, 8
ret
or eax, 0xffffffff
mov qword [rsp], rbx
lea rbx, [0x18005b260]
cmp rdx, 8
jb 0x180004df3
mov r11, rdx
shr r11, 3
mov rcx, r11
imul rcx, rcx, 0xfffffffffffffff8
add r10, rcx
nop
movzx edx, byte [r9]
mov ecx, eax
shr eax, 8
xor rdx, rcx
add r9, 8
movzx ecx, dl
mov edx, dword [rbx + rcx*4]
movzx ecx, byte [r9 - 7]
xor edx, eax
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 1]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov eax, dword [rbx + rax*4]
xor eax, edx
dec r11
jne 0x180004d30
test r10, r10
je 0x180004e1f
nop dword [rax + rax]
movzx edx, byte [r9]
mov ecx, eax
lea r9, [r9 + 1]
xor rdx, rcx
shr ecx, 8
movzx r8d, dl
mov eax, dword [rbx + r8*4]
xor eax, ecx
dec r10
jne 0x180004e00
not eax
mov rbx, qword [rsp]
add rsp, 8
ret
Function at 0x1800098d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x1800098de
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x180009910
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.18000c300
jmp 0x180009993
movzx eax, byte [0x18005cdb0]
test eax, eax
jne 0x180009955
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000994e
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18005cda8], rax
mov byte [0x18005cdb0], 1
cmp qword [0x18005cda8], 0
je 0x180009980
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [0x18005cda8]
jmp 0x180009993
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x1800099a0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x1800099ae
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x18000c020
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.18000ed60
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180006c00
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.18000b930
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x18000c0b4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x50]
call fcn.180007160
mov eax, dword [rsp + 0x4c]
jmp 0x18000c172
mov dword [rsp + 0x68], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18000c141
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.18000c020
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x18000c134
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x50]
call fcn.180007160
mov eax, dword [rsp + 0x44]
jmp 0x18000c172
mov dword [rsp + 0x68], 0x100
jmp 0x18000c0bc
lea rcx, [rsp + 0x50]
call fcn.1800092c0
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.1800098d0
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x50]
call fcn.180007160
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0x298
ret
Function at 0x18000c300
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x18000c38c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000c33f
mov eax, 1
jmp 0x18000c3ae
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18000c38a
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x18000c3ae
jmp 0x18000c3a9
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x18000c3a9
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x18000c3ae
mov eax, 1
add rsp, 0x48
ret
Function at 0x18000d970
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x18000d983
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x18000d9c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x18000d9d3
cmp qword [rsp + 0x70], 0
je 0x18000d9eb
mov dword [rsp + 0x38], 1
jmp 0x18000d9f3
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x18000da09
mov eax, SafeArrayDestroy
jmp 0x18000da88
xor eax, eax
test eax, eax
jne 0x18000d9d9
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.180031250
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x18000da21
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret

Function at 0x18000da90
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x18000daa8
cmp qword [rsp + 0x60], 0
je 0x18000dac0
mov dword [rsp + 0x30], 1
jmp 0x18000dac8
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x18000dade
mov eax, SafeArrayDestroy
jmp 0x18000db1e
xor eax, eax
test eax, eax
jne 0x18000daae
mov rcx, qword [rsp + 0x60]
call fcn.180031250
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret
Function at 0x180012d90
Capabilities:
Delete file
Move file

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
jne 0x180012dac
xor al, al
jmp 0x180012eb2
mov rcx, qword [rsp + 0x70]
call fcn.180013030
movzx eax, al
test eax, eax
jne 0x180012dda
mov r8, qword [rsp + 0x70]
lea rdx, str.mini::file::DeleteFileLogged:_DeleteFile__s__OK__not_exist_
mov ecx, 2
call fcn.1800284e0
mov al, 1
jmp 0x180012eb2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180012e9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x180012e40
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x180012e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x70]
lea rdx, str.mini::file::DeleteFileLogged:_DeleteFile__s__E1:_d_E2:_d
mov ecx, 3
call fcn.1800284e0
xor al, al
jmp 0x180012eb2
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.180006930
mov qword [rsp + 0x40], rax
mov dl, 1
mov rcx, qword [rsp + 0x40]
call fcn.180012930
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x70]
lea rdx, str.mini::file::DeleteFileLogged:_DeleteFile__s__OK__scheduled__immediate_E:_d___pending_ops_found:_d
mov ecx, 2
call fcn.1800284e0
jmp 0x180012eb0
mov r8, qword [rsp + 0x70]
lea rdx, str.mini::file::DeleteFileLogged:_DeleteFile__s__OK
mov ecx, 2
call fcn.1800284e0
mov al, 1
add rsp, 0x68
ret
Function at 0x180015810
Capabilities:
Get file size

Disassembly:
mov dword [rsp + 0x20], r9d
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov byte [rsp + 0x40], 0
cmp qword [rsp + 0xa8], 0
jne 0x18001584b
xor al, al
jmp 0x18001597d
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x180015861
mov dword [rsp + 0x50], 4
jmp 0x180015869
mov dword [rsp + 0x50], 2
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x70]
call fcn.180006930
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800072d0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x70]
call fcn.180011170
cmp qword [rsp + 0x48], 0
je 0x180015973
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x180015973
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x54], eax
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x180015925
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [rsp + 0x54], 0
jne 0x18001593d
cmp dword [rsp + 0xb8], 1
je 0x18001593d
mov byte [rsp + 0x41], 1
jmp 0x180015942
mov byte [rsp + 0x41], 0
movzx r9d, byte [rsp + 0x41]
mov r8d, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
call fcn.1800152f0
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180015978
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
add rsp, 0x98
ret
Function at 0x180016b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x180016b67
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x180016b6b
xor al, al
jmp 0x180016ba3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x180016b96
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x180016b96
mov dword [rsp + 0x24], 1
jmp 0x180016b9e
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x180018ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x180018f28
cmp dword [rsp + 0x34], 0
ja 0x180018f4e
mov rcx, qword [rsp + 0x90]
call fcn.180006980
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x90]
jmp 0x1800190ac
mov dword [rsp + 0x38], 0
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.180014b40
lea rcx, [rsp + 0x60]
call fcn.180015fa0
nop
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.180017a40
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180018fc0
mov rcx, qword [rsp + 0x90]
call fcn.180006980
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.180011170
mov rax, qword [rsp + 0x90]
jmp 0x1800190ac
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x18001903b
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001900a
cmp dword [rsp + 0x58], 0
jne 0x180019025
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x180019023
mov dword [rsp + 0x38], 0x1f
jmp 0x18001903b
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180018fc9
cmp dword [rsp + 0x38], 0
je 0x18001906e
mov rcx, qword [rsp + 0x90]
call fcn.180006980
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.180011170
mov rax, qword [rsp + 0x90]
jmp 0x1800190ac
mov eax, dword [rsp + 0x34]
mov r9d, dword [rsp + 0xa0]
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
call fcn.180015fc0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.180011170
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0x88
ret
Function at 0x18001ba10
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x18005ccf0]
cmp qword [rax + 0x340], 0
je 0x18001ba9a
cmp qword [0x18005ccf0], 0
je 0x18001ba74
mov rax, qword [0x18005ccf0]
cmp qword [rax + 0x340], 0
je 0x18001ba74
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x18005ccf0]
call qword [rax + 0x340]
mov dword [rsp + 0x20], eax
jmp 0x18001ba94
lea r8, str.RegDeleteKeyEx
lea rdx, str.mini::__registry_class_mini::extended_mini_string_wchar_t___::DeleteKey:__dlsys___s_is_null
mov ecx, 4
call fcn.1800284e0
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
jmp 0x18001baaa
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x18001bab0
Capabilities:
Delete registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x68], 0
jne 0x18001baf1
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x18001bb4c
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x78]
or eax, 0x20006
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18001bb48
cmp qword [rsp + 0x38], 0
je 0x18001bb48
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x18001bb4c
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0x58
ret
Function at 0x18001cac0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.180014b40
lea rcx, [rsp + 0x60]
call fcn.180006980
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov r8, qword [str.JPICONFDATA]
lea rdx, str._s_d
lea rcx, [rsp + 0x60]
call fcn.180010850
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.180021580
lea rcx, [rsp + 0x60]
call fcn.1800072d0
mov r8, rax
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.18001a950
nop
lea rcx, [rsp + 0x58]
call fcn.1800072c0
test rax, rax
jne 0x18001cbbc
lea rcx, [rsp + 0x60]
call fcn.1800072d0
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
mov r9, rcx
mov r8d, eax
lea rdx, str.CIEPluginMain::GetConfData:_E:_x_OpenFileMapping__.80s..
mov ecx, 4
call fcn.1800284e0
mov dword [rsp + 0x34], 0x80004005
lea rcx, [rsp + 0x58]
call fcn.18001abd0
nop
lea rcx, [rsp + 0x60]
call fcn.180011170
mov eax, dword [rsp + 0x34]
jmp 0x18001cc73
lea rcx, [rsp + 0x58]
call fcn.1800072c0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18001cc31
lea rcx, [rsp + 0x60]
call fcn.1800072d0
mov r8, rax
lea rdx, str.CIEPluginMain::GetConfData:_E_MapView__.80s..
mov ecx, 4
call fcn.1800284e0
mov dword [rsp + 0x38], 0x80004005
lea rcx, [rsp + 0x58]
call fcn.18001abd0
nop
lea rcx, [rsp + 0x60]
call fcn.180011170
mov eax, dword [rsp + 0x38]
jmp 0x18001cc73
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.18001abd0
nop
lea rcx, [rsp + 0x60]
call fcn.180011170
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0x88
ret