joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8040
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400a93a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400a8d12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400cb168]
test eax, eax
je 0x1400a8daa
lea rax, [0x1400cb140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400cb170]
mov qword [rbp - 8], rax
jmp 0x1400a8d8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400a8d82
cmp qword [rbp - 0x10], 0
je 0x1400a8d82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400a8d48
lea rax, [0x1400cb140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a8dab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a8eb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400a8ed8
mov eax, 0
jmp 0x1400a8f26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400a8f01
mov eax, 0
jmp 0x1400a8f26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400a8f21
mov eax, 0
jmp 0x1400a8f26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400a8f2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400a8faa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400a8fa1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400a8fa1
mov rax, qword [rbp - 8]
jmp 0x1400a8fbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400a8f74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180006190
Capabilities:
Get hostname

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x1028]
mov eax, 0x1128
call fcn.18002caa0
sub rsp, rax
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rbp + 0x1010], rax
cmp qword [rcx + 0x90], 0
mov rbx, rcx
je 0x180006428
cmp qword [rcx + 0xb8], 0
je 0x180006428
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0xcdd
mov qword [rsp + 0x1150], rdi
call fcn.18002bf70
mov rcx, qword [rbx + 0xd0]
mov eax, 0x10624dd3
mov r8d, 0x3ff
mul dword [rcx + 0x28]
shr edx, 6
imul edx, edx, 0x3e8
mov dword [rsp + 0x36], edx
mov eax, dword [rcx + 0x28]
lea rcx, [rbp + 0xc11]
xor edx, edx
mov dword [rbp - 0x2d], 1
mov byte [rbp + 0xc10], 0
mov dword [rsp + 0x3a], eax
call fcn.18002bf70
cmp qword [rbx + 0x30], 8
lea rcx, [rbx + 0x18]
jb 0x180006245
mov rcx, qword [rcx]
lea rdx, [rbp + 0xc10]
mov r8d, 0x400
call fcn.18001a0a8
lea rdx, [rbp + 0xc10]
test rdx, rdx
jne 0x180006267
xor ecx, ecx
jmp 0x18000627c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0xc10]
repne scasb al, byte [rdi]
not rcx
dec rcx
lea edi, [rcx + 1]
cmp edi, 0xc00
jbe 0x18000628e
xor al, al
jmp 0x18000638a
lea rdx, [rbp + 0xc10]
lea rcx, [rbp + 0xb]
mov r8d, edi
mov qword [rsp + 0x1148], rsi
mov qword [rsp + 0x1120], r12
call fcn.18002c540
lea esi, [rdi + 1]
mov dword [rbp - 0x11], edi
cmp esi, 0xc00
ja 0x180006378
movzx eax, byte [0x180046188]
lea rcx, [rbx + 0x80]
mov byte [rbp + rdi + 0xb], al
shl edi, 0x10
inc edi
cmp qword [rcx + 0x18], 8
mov dword [rbp - 0x15], edi
jb 0x1800062e7
mov rcx, qword [rcx]
lea rdx, [rbp + 0xc10]
mov r8d, 0x400
call fcn.18001a0a8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0xc10]
repne scasb al, byte [rdi]
not rcx
mov edi, ecx
lea r12d, [rcx + rsi]
cmp r12d, 0xc00
ja 0x18000637a
mov r8d, ecx
lea rdx, [rbp + 0xc10]
lea rcx, [rbp + rsi + 0xb]
call fcn.18002c540
shl esi, 0x10
lea rcx, [rbx + 0xa8]
add esi, edi
cmp qword [rcx + 0x18], 8
mov dword [rbp - 0x19], esi
jb 0x180006347
mov rcx, qword [rcx]
lea rdx, [rbp + 0xc10]
mov r8d, 0x400
call fcn.18001a0a8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xc10]
repne scasb al, byte [rdi]
not rcx
mov edi, ecx
lea eax, [rcx + r12]
cmp eax, 0xc00
jbe 0x1800063ab
xor al, al
mov rsi, qword [rsp + 0x1148]
mov r12, qword [rsp + 0x1120]
mov rdi, qword [rsp + 0x1150]
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.18002c920
add rsp, 0x1128
pop rbx
pop rbp
ret
mov r8d, ecx
lea rdx, [rbp + 0xc10]
lea rcx, [rbp + r12 + 0xb]
call fcn.18002c540
mov edx, r12d
mov eax, 0xdd
shl edx, 0x10
xor ecx, ecx
mov byte [rsp + 0x5e], 1
add edx, edi
add di, r12w
add di, ax
mov dword [rbp - 0x1d], edx
mov word [rsp + 0x30], di
mov word [rbp + 0xc0b], di
call fcn.18002ccdc
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x51], 0
mov dword [rsp + 0x32], eax
mov dword [rsp + 0x20], 0x13
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.180005b00
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1800055c0
jmp 0x18000637a
xor al, al
jmp 0x180006392
Function at 0x180012970
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800129e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180012a06
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180012a06
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x180012a06
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x180012b20
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180012b60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x180012b93
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rbx, [rbx + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x180012ba2
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x180013330
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.180012a20
mov ebx, eax
test eax, eax
je 0x1800133a1
jmp 0x180013474
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180013437
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180013330
mov ebx, eax
test eax, eax
jne 0x180013435
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800133e0
jmp 0x180013437
jmp 0x180013474
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001344c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180013466
mov r8, rsi
mov rdx, qword [rdi]
call fcn.180012970
jmp 0x180013472
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001348d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.18002c920
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800158e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180015958
call fcn.180012940
mov ebx, eax
jmp 0x180015a78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180015979
call fcn.180012940
jmp 0x180015a6c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18001599c
call fcn.180012940
jmp 0x180015a6c
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800159be
mov ebx, 0x8007000e
jmp 0x180015a6e
mov ecx, eax
test eax, eax
je 0x1800159f6
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1800159ec
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1800159f6
lea rcx, [rsp + 0x70]
call fcn.1800132c0
jmp 0x180015a00
mov ecx, 0x80070216
call fcn.180011520
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180015a13
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x180015a24
mov ebx, 0x8007000e
jmp 0x180015a6e
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180015a49
call fcn.180012940
jmp 0x180015a6c
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800155c0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180015a8f
lea rcx, [rsp + 0x70]
call fcn.1800132b0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18002c920
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x180018fe0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x1801270c0]
mov edx, 1
call fcn.180018d40
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_ObjectsC145719C_BB7B_4C19_AB6B_0AD230511158
mov rcx, 0xffffffff80000002
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

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

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

Function at 0x18001907c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rsp + 0x30]
cmp r11d, 2
jne 0x1800190e7
test rbx, rbx
je 0x1800190d3
lea r8d, [r11 + 3]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8d, 5
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x180019101
lea r9, str.wininit.ini
lea rcx, str.rename
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18002c920
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret

Function at 0x180019290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rax, rdx
test rdx, rdx
je 0x1800192c9
mov r9, qword [rcx + 8]
test r9, r9
je 0x1800192c9
mov ebx, r8d
lea edx, [rdi + 1]
mov rcx, rax
mov r8d, r8d
call fcn.18002e364
cmp rax, rbx
sete dil
mov eax, edi
jmp 0x1800192cb
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180019324
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x1800195aa
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17b0]
mov eax, 0x18b0
call fcn.18002caa0
sub rsp, rax
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rbp + 0x17a0], rax
xor r14d, r14d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x180019395
lea rcx, [rbp + 0xfa0]
xor edx, edx
mov r8d, 0x800
call fcn.18002bf70
lea rcx, [rbp + 0xfa0]
call fcn.18001968c
lea rsi, [rbp + 0xfa0]
mov rcx, rsi
call fcn.18002e054
mov edx, 1
mov r12d, r14d
lea ecx, [rdx + 0x5b]
cmp word [rsi + rax*2 - 2], cx
mov rcx, rdi
cmove r12d, edx
call fcn.180019058
test eax, eax
je 0x18001958a
mov r15d, 0xb
mov rcx, rdi
test rbx, rbx
jne 0x1800193d7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1800193e3
mov r8d, r15d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18001958a
lea rcx, [rbp + 0x7a2]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x7a0], r14w
call fcn.18002bf70
lea rcx, [rbp - 0x5e]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp - 0x60], r14w
call fcn.18002bf70
test rbx, rbx
je 0x180019485
mov rcx, rbx
call fcn.180019058
test eax, eax
je 0x180019480
lea rdx, str._s.bak
lea rcx, [rbp - 0x60]
mov r8, rbx
call fcn.180002240
mov edx, 0x5c
mov rcx, rbx
call fcn.18002d9d0
test r12d, r12d
je 0x180019457
add rax, 2
lea rdx, str._s_s.bak
lea rcx, [rbp + 0x7a0]
mov r9, rax
mov r8, rsi
call fcn.180002240
lea rdx, [rbp - 0x60]
mov r8d, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rdx, rbx
jmp 0x1800194cb
lea rdx, str._s.bak
lea rcx, [rbp - 0x60]
mov r8, rdi
call fcn.180002240
mov edx, 0x5c
mov rcx, rdi
call fcn.18002d9d0
test r12d, r12d
je 0x1800194ae
add rax, 2
lea rdx, str._s_s.bak
lea rcx, [rbp + 0x7a0]
mov r9, rax
mov r8, rsi
call fcn.180002240
lea rdx, [rbp - 0x60]
mov r8d, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp word [rbp + 0x7a0], r14w
je 0x18001958a
cmp word [rbp - 0x60], r14w
je 0x18001958a
lea rcx, [rbp - 0x60]
call fcn.180019058
test eax, eax
je 0x18001958a
xor ecx, ecx
mov edi, r14d
call fcn.18002ccdc
xor edx, edx
lea rcx, [rsp + 0x22]
lea r8d, [rdx + 0x7e]
mov rbx, rax
mov word [rsp + 0x20], r14w
call fcn.18002bf70
lea rdx, [0x180048c8c]
lea rcx, [rsp + 0x20]
mov r8d, ebx
call fcn.180002240
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x7a0]
call fcn.18002e698
lea rdx, [rbp + 0x7a0]
lea rcx, [rbp - 0x60]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rbp + 0x7a0]
test eax, eax
jne 0x180019583
lea rdx, str..bak
call fcn.18002e698
mov r11d, edi
inc edi
cmp r11d, 0xa
jl 0x180019549
lea rcx, [rbp - 0x60]
xor edx, edx
call fcn.18001907c
mov rcx, qword [rbp + 0x17a0]
xor rcx, rsp
call fcn.18002c920
add rsp, 0x18b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18001932d
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x1800195aa
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17b0]
mov eax, 0x18b0
call fcn.18002caa0
sub rsp, rax
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rbp + 0x17a0], rax
xor r14d, r14d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x180019395
lea rcx, [rbp + 0xfa0]
xor edx, edx
mov r8d, 0x800
call fcn.18002bf70
lea rcx, [rbp + 0xfa0]
call fcn.18001968c
lea rsi, [rbp + 0xfa0]
mov rcx, rsi
call fcn.18002e054
mov edx, 1
mov r12d, r14d
lea ecx, [rdx + 0x5b]
cmp word [rsi + rax*2 - 2], cx
mov rcx, rdi
cmove r12d, edx
call fcn.180019058
test eax, eax
je 0x18001958a
mov r15d, 0xb
mov rcx, rdi
test rbx, rbx
jne 0x1800193d7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1800193e3
mov r8d, r15d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18001958a
lea rcx, [rbp + 0x7a2]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp + 0x7a0], r14w
call fcn.18002bf70
lea rcx, [rbp - 0x5e]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp - 0x60], r14w
call fcn.18002bf70
test rbx, rbx
je 0x180019485
mov rcx, rbx
call fcn.180019058
test eax, eax
je 0x180019480
lea rdx, str._s.bak
lea rcx, [rbp - 0x60]
mov r8, rbx
call fcn.180002240
mov edx, 0x5c
mov rcx, rbx
call fcn.18002d9d0
test r12d, r12d
je 0x180019457
add rax, 2
lea rdx, str._s_s.bak
lea rcx, [rbp + 0x7a0]
mov r9, rax
mov r8, rsi
call fcn.180002240
lea rdx, [rbp - 0x60]
mov r8d, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rdx, rbx
jmp 0x1800194cb
lea rdx, str._s.bak
lea rcx, [rbp - 0x60]
mov r8, rdi
call fcn.180002240
mov edx, 0x5c
mov rcx, rdi
call fcn.18002d9d0
test r12d, r12d
je 0x1800194ae
add rax, 2
lea rdx, str._s_s.bak
lea rcx, [rbp + 0x7a0]
mov r9, rax
mov r8, rsi
call fcn.180002240
lea rdx, [rbp - 0x60]
mov r8d, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp word [rbp + 0x7a0], r14w
je 0x18001958a
cmp word [rbp - 0x60], r14w
je 0x18001958a
lea rcx, [rbp - 0x60]
call fcn.180019058
test eax, eax
je 0x18001958a
xor ecx, ecx
mov edi, r14d
call fcn.18002ccdc
xor edx, edx
lea rcx, [rsp + 0x22]
lea r8d, [rdx + 0x7e]
mov rbx, rax
mov word [rsp + 0x20], r14w
call fcn.18002bf70
lea rdx, [0x180048c8c]
lea rcx, [rsp + 0x20]
mov r8d, ebx
call fcn.180002240
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x7a0]
call fcn.18002e698
lea rdx, [rbp + 0x7a0]
lea rcx, [rbp - 0x60]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rbp + 0x7a0]
test eax, eax
jne 0x180019583
lea rdx, str..bak
call fcn.18002e698
mov r11d, edi
inc edi
cmp r11d, 0xa
jl 0x180019549
lea rcx, [rbp - 0x60]
xor edx, edx
call fcn.18001907c
mov rcx, qword [rbp + 0x17a0]
xor rcx, rsp
call fcn.18002c920
add rsp, 0x18b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18001968c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x830
mov rax, qword [0x180125780]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x400
ja 0x1800196ca
lea rdx, [rsp + 0x20]
test eax, eax
jne 0x1800196d1
lea rdx, str.c:_temp
mov rcx, rbx
call fcn.18002e6c4
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.18002c920
add rsp, 0x830
pop rbx
ret

Function at 0x180019790
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x30
mov eax, dword [rsp + 0x60]
mov r10, r8
mov r8, qword [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r10
mov rsi, r9
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [rsp + 0x70]
xor ebx, ebx
mov dword [rcx], eax
cmp qword [rsp + 0x68], rbx
je 0x1800197d8
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call fcn.18002dab8
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

Function at 0x180019e14
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rdi, rcx
mov r9, rdx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ebx, ebx
test rax, rax
setne bl
test rdi, rdi
je 0x180019e4b
mov qword [rdi], rax
jmp 0x180019e5f
cmp rax, 0xffffffffffffffff
je 0x180019e5f
test rax, rax
je 0x180019e5f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18001a170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10b, byte [rcx + 0x100]
mov r11b, byte [rcx + 0x101]
mov ebx, r8d
mov rdi, rdx
mov r9, rcx
test r8d, r8d
je 0x18001a1ca
inc r10b
movzx edx, r10b
movzx r8d, byte [rdx + r9]
add r11b, r8b
movzx eax, r11b
movzx ecx, byte [rax + r9]
mov byte [rax + r9], r8b
mov byte [rdx + r9], cl
lea edx, [r8 + rcx]
movzx eax, dl
mov cl, byte [rax + r9]
xor byte [rdi], cl
inc rdi
dec ebx
jne 0x18001a196
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov byte [r9 + 0x100], r10b
mov byte [r9 + 0x101], r11b
ret

Function at 0x18001a514
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, 4
mov rdi, rcx
mov qword [rsp + 0x20], rdx
lea r10d, [rax + 2]
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
mov rcx, qword [rcx + 8]
cmove r10d, eax
xor r9d, r9d
xor r8d, r8d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
mov qword [rdi + 0x18], rax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret