joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fa70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
test eax, eax
je 0x43fafb
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x47f338]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x47f338]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x47f338]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x47f338]
xor edx, edi
dec ecx
jne 0x43fa96
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
and ebx, 3
je 0x43fb38
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
nop
movzx ecx, byte [esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x47f338]
inc esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
dec ebx
jne 0x43fb10
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442f40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x442fd7
cmp dword [ebp - 0x18], 0
je 0x442fd7
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x442fd7
mov eax, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00452076
mov esp, ebp
pop ebp
ret 8
Function at 0x442ff0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push str.RtlGetVersion
push str.ntdll
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x443045
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x44305a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44316f
cmp dword [ebp - 0x110], 2
jne 0x44316f
mov eax, dword [ebp - 0x11c]
cmp eax, 4
ja 0x443085
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4430db
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4430a7
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4430bf
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x44316f
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x44316a
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x443106
cmp byte [ebp - 6], 1
setne al
add eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x443125
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x44313d
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x443155
mov eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
jbe 0x44316f
mov eax, 0x64
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret
cmp eax, 7
jae 0x443157
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00452076
mov esp, ebp
pop ebp
ret
Function at 0x443460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45958c
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x47f060]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
push edi
mov eax, dword [0x47f060]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [0x482718]
mov esi, 0x409
mov dword [esp + 0xc], 0
test al, 1
jne 0x4434e2
or eax, 1
mov dword [0x482718], eax
mov dword [esp + 0x98], 0
call fcn.00443180
push 0x45aea0
call fcn.004521b7
add esp, 4
mov dword [esp + 0x98], 0xffffffff
push ecx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x4826e8
call fcn.004433f0
cmp dword [eax + 0x14], 8
jb 0x4434fa
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [esp + 0x30], 8
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x443521
push dword [esp + 0x1c]
call edi
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4435c9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.language
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x443571
mov esi, dword [esp + 0x18]
jmp 0x44367f
xor eax, eax
push 0x4e
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
mov dword [esp + 0x1c], 0x28
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.language
push dword [esp + 0x20]
call edi
test eax, eax
jne 0x44367f
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi]
add esp, 4
mov esi, eax
jmp 0x44367f
mov eax, dword [0x482718]
test al, 1
jne 0x443602
or eax, 1
mov dword [0x482718], eax
mov dword [esp + 0x98], 1
call fcn.00443180
push 0x45aea0
call fcn.004521b7
add esp, 4
mov dword [esp + 0x98], 0xffffffff
push ecx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x4826e8
call fcn.004433f0
cmp dword [eax + 0x14], 8
jb 0x44361a
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [esp + 0x30], 8
jb 0x44363b
push dword [esp + 0x1c]
call edi
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x443689
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push str.language
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00452076
mov esp, ebp
pop ebp
ret
Function at 0x443950
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45964b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x443ac3
push 0x46cdf4
lea eax, [ebp - 0x154]
push esi
push eax
mov dword [ebp - 0x154], 0
call dword [sym.imp.MSVCR110.dll__wfopen_s]
mov esi, dword [ebp - 0x154]
add esp, 0xc
test esi, esi
je 0x443ac3
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push esi
push 0x104
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
push dword [ebp - 0x154]
mov esi, eax
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 0x14
test esi, esi
je 0x443ac3
lea ecx, [ebp - 0x11c]
call fcn.0044b840
mov esi, eax
test esi, esi
je 0x443ac3
push esi
lea ecx, [ebp - 0x14c]
call fcn.00411e50
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
call fcn.00446d60
lea ecx, [ebp - 0x14c]
call fcn.00411eb0
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp - 0x120], 8
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], 0
call fcn.00443770
test al, al
je 0x443ab8
cmp dword [ebp - 0x120], 8
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, edi
lea edx, [eax + eax]
call fcn.00406dd0
lea ecx, [ebp - 0x134]
call fcn.00401100
mov al, 1
jmp 0x443ae5
lea ecx, [ebp - 0x134]
call fcn.00401100
mov eax, dword [ebp + 0x10]
lea edx, [eax + eax]
shr edx, 1
je 0x443ae3
cmp edx, 0x7fffffff
ja 0x443ae3
push ecx
push str.0.0.0
push ecx
mov ecx, edi
call fcn.00406e00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 0xc
Function at 0x443b10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 0x238], ebx
call fcn.00443de0
mov edi, eax
mov dword [ebp - 0x234], 0
test edi, edi
je 0x443c03
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x443b61
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x443bed
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x22c
mov ebx, eax
lea eax, [ebp - 0x230]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x443bda
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x443bb1
jmp 0x443be0
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
cmp eax, 0x1e
jl 0x443b41
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00452076
mov esp, ebp
pop ebp
ret 4

Function at 0x443c20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x40
mov dword [ebp - 0x23c], str.open
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], esi
call sub.MSVCR110.dll_memset
add esp, 0x14
mov edx, 0x104
push edi
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00406e00
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
xor eax, eax
cmp byte [ebp + 0x14], al
setne al
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
jne 0x443cf1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x443d05
push 0xffffffffffffffff
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00452076
mov esp, ebp
pop ebp
ret 0x10
Function at 0x443de0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x443e24
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x22c
mov edi, eax
lea eax, [ebp - 0x230]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.MSVCR110.dll__wcsicmp]
lea eax, [ebp - 0x20c]
push edi
push eax
call ebx
add esp, 8
test eax, eax
je 0x443e87
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x443e62
jmp 0x443e93
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00452076
mov esp, ebp
pop ebp
ret 4

Function at 0x443f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x443f3d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
xor eax, eax
xorps xmm0, xmm0
push 0x46cb20
mov word [ebp - 0x2c], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x2c]
push 0x28
push eax
movq qword [ebp - 0x2a], xmm0
movq qword [ebp - 0x22], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0x12], xmm0
call fcn.00401c10
add esp, 0x10
lea eax, [ebp - 0x2c]
push esi
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452076
mov esp, ebp
pop ebp
ret 0xc
Function at 0x443fa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x443fd3
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
xor eax, eax
push dword [ebp + 0x10]
xorps xmm0, xmm0
push str._I64d
mov word [ebp - 0x2c], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x2c]
push 0x28
push eax
movq qword [ebp - 0x2a], xmm0
movq qword [ebp - 0x22], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0x12], xmm0
call fcn.00401c10
add esp, 0x14
lea eax, [ebp - 0x2c]
push esi
push eax
push str.instdate
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00452076
mov esp, ebp
pop ebp
ret 0x10

Function at 0x444100
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45968e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4441cd
mov eax, dword [0x482718]
test al, 1
jne 0x444190
or eax, 1
mov dword [0x482718], eax
mov dword [ebp - 4], 0
call fcn.00443180
push 0x45aea0
call fcn.004521b7
add esp, 4
cmp dword [0x482714], 8
mov eax, 0x482700
cmovae eax, dword [0x482700]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4441c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4441cd
mov al, 1
jmp 0x4441cf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4441f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
push esi
movq qword [ebp - 0x21c], xmm0
mov eax, 0x614
mov word [ebp - 0x21c], ax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], 0
push eax
mov esi, ecx
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x216], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x212], 0
call sub.MSVCR110.dll_memset
push esi
push 0x46f344
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00401c10
lea eax, [ebp - 0x20c]
add esp, 0x1c
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
xor ecx, ebp
pop esi
call fcn.00452076
mov esp, ebp
pop ebp
ret

Function at 0x4442d0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44431f
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x44431f
mov eax, dword [0x483214]
test al, 1
jne 0x444308
or eax, 1
push 0x45b070
mov dword [0x483214], eax
call fcn.004521b7
add esp, 4
push esi
push str.Failed_to_create_directory_:__s
push 0x483210
call fcn.0044bc70
add esp, 0xc
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x444330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.main
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4443b6
lea eax, [ebp - 0x20c]
push ecx
push eax
push ecx
mov edx, 0x104
mov ecx, esi
call fcn.00406e00
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push str...configmain
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x444401
lea eax, [ebp - 0x414]
jmp 0x444393
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00452076
mov esp, ebp
pop ebp
ret 8
Function at 0x444420
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45968e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 1
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4444f4
mov eax, dword [0x482718]
test al, 1
jne 0x4444b0
or eax, 1
mov dword [0x482718], eax
mov dword [ebp - 4], 0
call fcn.00443180
push 0x45aea0
call fcn.004521b7
add esp, 4
cmp dword [0x482714], 8
mov eax, 0x482700
cmovae eax, dword [0x482700]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4444e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4444f4
mov ecx, esi
call fcn.00449fa0
mov al, 1
jmp 0x4444f6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 8

Function at 0x446bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp word [edx], ax
jne 0x446c28
xor ecx, ecx
jmp 0x446c3f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446c30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00406c00
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0xc]
mov esi, dword [ebx]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
add eax, eax
push eax
push ecx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x446c9b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 8
jb 0x446c86
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 8], 8
jb 0x446cad
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00452076
mov esp, ebp
pop ebp
ret 8