joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14005bd60]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.140009f50
nop
mov dword [rsp + 0x28], Ordinal_265
xor eax, eax
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x1400096f0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000a330
nop
jmp 0x1400096f2
lea rcx, [rsp + 0x30]
call fcn.14000ae50
test eax, eax
je 0x140009711
lea rdx, str.C:_temp
lea rcx, [rsp + 0x30]
call fcn.14000a330
lea rcx, [rsp + 0x30]
call fcn.14000ae50
test eax, eax
jne 0x14000978b
lea rcx, [rsp + 0x30]
call fcn.14000a670
mov dword [rsp + 0x24], eax
cmp qword [rsp + 0x280], 0
je 0x140009778
mov rax, qword [rsp + 0x288]
mov ecx, dword [rsp + 0x24]
cmp dword [rax], ecx
jle 0x140009776
lea rcx, [rsp + 0x30]
call fcn.14000a650
mov rcx, qword [rsp + 0x288]
movsxd rcx, dword [rcx]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
mov byte [rsp + 0x20], 1
jmp 0x14000977d
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x288]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x30]
call fcn.140009f90
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140029b50
add rsp, 0x270
pop rdi
ret
Function at 0x140009d60
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x14005bd60]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140009e1b
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140009e10
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], 0
je 0x140009e2c
mov dword [rsp + 0x64], 1
jmp 0x140009e34
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140029b50
add rsp, 0x88
ret

Function at 0x14000c4d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14005bd60]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
lea rdx, [0x14003e370]
lea rcx, [rsp + 0x58]
call fcn.14000a050
nop
lea rcx, [rsp + 0x58]
call fcn.14000a650
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000c599
lea rdx, [0x14003e390]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000c58e
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [rsp + 0x38]
test eax, eax
jl 0x14000c58e
mov dword [rsp + 0x34], 1
mov byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14000c5ec
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.Common_Application_Data
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.140009f90
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140029b50
add rsp, 0x290
pop rdi
ret
Function at 0x14000cf40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000d012
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MSVCR120.dll_wcslen]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000d007
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x54]
add rsp, 0x68
ret

Function at 0x14000d030
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000d0d2
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000d0c7
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x54]
add rsp, 0x68
ret
Function at 0x14000d0f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.140009f50
nop
mov dword [rsp + 0x30], 0x1000
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14000a720
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14000d193
cmp dword [rsp + 0x34], 1
je 0x14000d1a9
cmp dword [rsp + 0x34], 2
je 0x14000d1a9
lea rdx, [0x14003d9d4]
lea rcx, [rsp + 0x40]
call fcn.14000a330
jmp 0x14000d235
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.14000a800
lea rcx, [rsp + 0x40]
call fcn.14000aaa0
cmp dword [rsp + 0x34], 2
jne 0x14000d235
mov dword [rsp + 0x30], 0x1000
lea rcx, [rsp + 0x68]
call fcn.140009f50
nop
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14000a720
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.14000a650
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x68]
call fcn.14000a800
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.14000a390
nop
lea rcx, [rsp + 0x68]
call fcn.140009f90
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
call fcn.140009fc0
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x40]
call fcn.140009f90
mov rax, qword [rsp + 0xa0]
add rsp, 0x98
ret

Function at 0x14000d3e0
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, 0x68
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14000d49e
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000d493
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x14000d4b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d528
cmp dword [rsp + 0x30], 4
je 0x14000d519
cmp dword [rsp + 0x30], 3
jne 0x14000d528
cmp dword [rsp + 0x34], 4
jne 0x14000d528
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x140011100
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140011180
cmp dword [rsp + 0x34], 3
jne 0x140011180
cmp qword [rsp + 0x60], 0
je 0x14001117e
mov dword [rsp + 0x38], 1
jmp 0x140011195
cmp dword [rsp + 0x30], 0xea
je 0x140011195
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400111b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2118
call fcn.140029ba0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14005bd60]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x60]
call fcn.140009f50
nop
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x2130]
mov rcx, qword [rsp + 0x2128]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400113bb
mov dword [rsp + 0x4c], 0x800
mov dword [rsp + 0x44], 0x800
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x10f0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0xe0]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400113b0
cmp dword [rsp + 0x50], 1
jne 0x140011391
lea rcx, [rsp + 0x60]
call fcn.14000a670
test eax, eax
jle 0x1400112f0
lea rdx, [0x14003d6ec]
lea rcx, [rsp + 0xc8]
call fcn.14000a050
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x60]
call fcn.14000a510
nop
lea rcx, [rsp + 0xc8]
call fcn.140009f90
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call fcn.14000a050
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.14000a510
nop
lea rcx, [rsp + 0xb0]
call fcn.140009f90
lea rdx, [0x14003d70c]
lea rcx, [rsp + 0x80]
call fcn.14000a050
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.14000a510
nop
lea rcx, [rsp + 0x80]
call fcn.140009f90
lea rdx, [rsp + 0x10f0]
lea rcx, [rsp + 0x98]
call fcn.14000a050
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.14000a510
nop
lea rcx, [rsp + 0x98]
call fcn.140009f90
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], 0x800
mov dword [rsp + 0x44], 0x800
jmp 0x140011254
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2120]
call fcn.140009fc0
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x60]
call fcn.140009f90
mov rax, qword [rsp + 0x2120]
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140029b50
add rsp, 0x2118
ret
Function at 0x140016470
Capabilities:
Encrypt data using blowfish

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
jmp 0x140016497
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x140016500
mov dword [rsp + 0x24], 0
jmp 0x1400164b2
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jge 0x1400164fe
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
lea rcx, [0x14003f510]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x24]
movsxd rdx, dword [rsp + 0x20]
imul rdx, rdx, 0x400
mov r8, qword [rsp + 0x50]
lea rdx, [r8 + rdx + 0x48]
movsxd r8, dword [rsp + 0x24]
mov eax, dword [rax + rcx*4]
mov dword [rdx + r8*4], eax
jmp 0x1400164a8
jmp 0x14001648d
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x14001651c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x12
jge 0x1400165aa
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
jmp 0x140016543
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jge 0x140016583
mov eax, dword [rsp + 0x34]
shl eax, 8
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
jl 0x140016581
mov dword [rsp + 0x24], 0
jmp 0x140016539
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x14003f4c0]
mov edx, dword [rsp + 0x34]
mov eax, dword [rcx + rax*4]
xor eax, edx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx*4], eax
jmp 0x140016512
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 0
jmp 0x1400165cf
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x12
jge 0x140016611
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1400166c0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x2c]
mov dword [rcx + rax*4], edx
jmp 0x1400165c4
mov dword [rsp + 0x20], 0
jmp 0x140016625
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1400166b2
mov dword [rsp + 0x24], 0
jmp 0x140016645
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jge 0x1400166ad
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1400166c0
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x48]
movsxd rcx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov dword [rax + rcx*4], edx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x48]
mov ecx, dword [rsp + 0x24]
inc ecx
movsxd rcx, ecx
mov edx, dword [rsp + 0x2c]
mov dword [rax + rcx*4], edx
jmp 0x14001663a
jmp 0x14001661b
add rsp, 0x48
ret
Function at 0x140016e70
Capabilities:
Read .ini file

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14005bd60]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor eax, eax
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov r8d, Ordinal_265
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140016ece
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rdx, qword [str.pculog.configure]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call fcn.140008300
movzx eax, al
test eax, eax
je 0x140016f80
lea rdx, str.logging_setting
lea rcx, [rsp + 0x28]
call fcn.14000a050
nop
lea rcx, [rsp + 0x28]
call fcn.14000a650
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, str.PerformanceLog
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140016f3e
mov byte [rsp + 0x20], 0
jmp 0x140016f43
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov byte [0x14005b179], al
lea rcx, [rsp + 0x28]
call fcn.14000a650
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.LoggingLevel
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x14005de7c], eax
lea rcx, [rsp + 0x28]
call fcn.140009f90
mov al, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140029b50
add rsp, 0x270
pop rdi
ret
Function at 0x140016fb0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x1b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14005bd60]
xor rax, rbp
mov qword [rbp + 0x160], rax
movzx eax, byte [0x14005b178]
test eax, eax
je 0x14001717e
mov eax, dword [0x14005de7c]
cmp dword [rbp + 0x188], eax
jg 0x14001717e
mov edx, 0x80
lea rcx, [rbp + 0x60]
call fcn.1400171a0
lea rcx, [rbp + 0x38]
call fcn.140009f50
nop
mov r9, qword [rbp + 0x180]
lea r8, [rbp + 0x60]
lea rdx, [0x140040e40]
lea rcx, [rbp + 0x38]
call fcn.14000ab80
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x14005dc70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140017175
call fcn.140003c70
mov dword [rbp + 0x14], eax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x10], 0
lea rcx, [rbp + 0x38]
call fcn.14000a650
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x1400170b8
mov qword [rbp + 0x28], 0
jmp 0x140017139
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x1400170da
mov qword [rbp + 0x20], 0
jmp 0x140017131
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x30], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x140017102
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.140029ba0
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x14]
mov rcx, qword [rbp + 0x30]
mov r8d, ecx
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call fcn.140009e50
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x38]
call fcn.14000a670
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov r8d, eax
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x38]
call fcn.140009f90
mov rcx, qword [rbp + 0x160]
xor rcx, rbp
call fcn.140029b50
lea rsp, [rbp + 0x170]
pop rbp
ret

Function at 0x140017270
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
ret
Function at 0x140018f90
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x2b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14005bd60]
xor rax, rbp
mov qword [rbp + 0x260], rax
call fcn.1400191f0
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jne 0x140018fd4
jmp 0x14001916d
movzx eax, byte [0x14005e0a8]
test eax, eax
jne 0x140018fef
mov rcx, qword [rbp + 0x20]
call fcn.140019270
mov byte [0x14005e0a8], 1
mov edx, 0x100
lea rcx, [rbp + 0x60]
call fcn.1400192b0
lea rcx, [rbp + 0x40]
call fcn.140009f50
nop
mov r9, qword [rbp + 0x280]
lea r8, [rbp + 0x60]
lea rdx, str._s____s_r_n
lea rcx, [rbp + 0x40]
call fcn.14000ab80
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x14005dea0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140019164
call fcn.140003c70
mov dword [rbp + 0x14], eax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x10], 0
lea rcx, [rbp + 0x40]
call fcn.14000a650
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x1400190a7
mov qword [rbp + 0x30], 0
jmp 0x140019128
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x1400190c9
mov qword [rbp + 0x28], 0
jmp 0x140019120
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x38], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x1400190f1
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.140029ba0
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x14]
mov rcx, qword [rbp + 0x38]
mov r8d, ecx
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call fcn.140009e50
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x40]
call fcn.14000a670
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov r8d, eax
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x40]
call fcn.140009f90
mov rcx, qword [rbp + 0x260]
xor rcx, rbp
call fcn.140029b50
lea rsp, [rbp + 0x270]
pop rbp
ret

Function at 0x140019270
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rdx, [0x14005dea0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400192a3
lea rdx, str.DIMLog.txt
lea rcx, [0x14005dea0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
add rsp, 0x28
ret