joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.005373d0
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.0040ade0
cmp eax, 0x104
jle 0x41539d
xor eax, eax
jmp 0x4154c1
mov dword [ebp - 0x110c], 0x400
push 0x800
push 0
lea eax, [ebp - 0x1104]
push eax
call fcn.0058a9f0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x904]
push ecx
call fcn.0058a9f0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.0040f210
push eax
lea edx, [ebp - 0x1104]
push edx
call fcn.00416b70
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x41540c
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x41540c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x1110], 0xa
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.0058a9f0
add esp, 0xc
mov dword [ebp - 0x1108], 0
jmp 0x415447
mov edx, dword [ebp - 0x1108]
add edx, 1
mov dword [ebp - 0x1108], edx
cmp dword [ebp - 0x1108], 0xa
jge 0x4154bf
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.004151c0
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x1104]
push edx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea ecx, [ebp - 0x904]
push ecx
call fcn.00416b50
add esp, 8
lea edx, [ebp - 0x904]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4154ba
lea eax, [ebp - 0x904]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0040ac60
mov eax, 1
jmp 0x4154c1
jmp 0x415438
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret

Function at 0x415620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601780
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x67e4d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CFileManager.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CFileManager.1.0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.00416060
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0040f210
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41568d
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0040f210
push eax
call fcn.0043e0f0
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00416740
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0040ac80
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00414fd0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.0040ac80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x415910
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.0040f180
movzx eax, al
test eax, eax
je 0x41593f
mov eax, 0xffffd8ee
jmp 0x415af1
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.0040f210
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41595f
mov eax, 0xffffd8ee
jmp 0x415af1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0xffffd8f0
push 0
push 1
push 3
push 0
push 7
push SysReAllocString
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.0040f210
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4159ab
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4159b5
jmp 0x415aa9
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4159dc
jmp 0x415aa9
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00415b10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0
push 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x415a21
jmp 0x415aa9
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
jne 0x415a30
jmp 0x415aa9
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0043d950
add esp, 0xc
push 0x10
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0058ace1
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x415a70
mov dword [ebp - 0x2c], 0xffffd8ee
jmp 0x415aa9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.0040f210
push eax
call fcn.00438300
add esp, 0x18
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x415aa9
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x20], 0
je 0x415ac0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0
je 0x415ad7
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x1c], 0
je 0x415aee
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 8
Function at 0x415bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601808
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x224]
call fcn.0040f160
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0058a9f0
add esp, 0xc
push 1
push 0x23
lea ecx, [ebp - 0x220]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x234]
call fcn.0040aca0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x224]
push eax
push 0
lea ecx, [ebp - 0x234]
push ecx
call fcn.00415370
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0040ac80
push 0x32
lea ecx, [ebp - 0x224]
call fcn.0040f210
push eax
call fcn.0043ef90
add esp, 8
test eax, eax
je 0x415cc7
push ecx
mov ecx, esp
mov dword [ebp - 0x25c], esp
lea edx, [ebp - 0x224]
push edx
call fcn.0040f140
call fcn.0043ff40
add esp, 4
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x415e40
push 0x32
call fcn.0043f3b0
add esp, 4
mov word [ebp - 0x22c], ax
movzx eax, word [ebp - 0x22c]
test eax, eax
jne 0x415d32
xor ecx, ecx
mov byte [ebp - 0x225], cl
push 0x30
lea ecx, [ebp - 0x225]
call fcn.00415e90
push eax
push 0x6501c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0040ac80
mov eax, dword [ebp - 0x244]
jmp 0x415e75
xor edx, edx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], dx
mov eax, 2
imul ecx, eax, 0
mov dx, word [ebp - 0x22c]
mov word [ebp + ecx - 0x18], dx
mov eax, 2
shl eax, 0
mov ecx, 0x3a
mov word [ebp + eax - 0x18], cx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x23c]
call fcn.0040aca0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
or eax, 1
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x224]
push ecx
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.00415370
add esp, 0xc
test eax, eax
je 0x415dd7
push ecx
mov ecx, esp
mov dword [ebp - 0x260], esp
lea eax, [ebp - 0x224]
push eax
call fcn.0040f140
call fcn.0043ff40
add esp, 4
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x415dd7
mov dword [ebp - 0x238], 0
jmp 0x415de1
mov dword [ebp - 0x238], 1
mov cl, byte [ebp - 0x238]
mov byte [ebp - 0x226], cl
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x230]
and edx, 1
je 0x415e11
and dword [ebp - 0x230], 0xfffffffe
lea ecx, [ebp - 0x23c]
call fcn.0040ac80
movzx eax, byte [ebp - 0x226]
test eax, eax
je 0x415e40
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0040ac80
mov eax, dword [ebp - 0x24c]
jmp 0x415e75
lea ecx, [ebp - 0x224]
call fcn.0040f210
push eax
mov ecx, dword [ebp - 0x250]
call fcn.00415fc0
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0040ac80
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret
Function at 0x415fc0
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x415fd6
xor eax, eax
jmp 0x416059
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415ff2
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x40
call fcn.0040ac60
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x64], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x415b50
push 0
push 0
call fcn.005a82d8
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x50], 0
je 0x41604f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
je 0x41604f
mov dword [ebp - 8], 1
jmp 0x416056
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x418140
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x41819f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41816c
mov eax, 1
jmp 0x4181bd
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41819d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x4181bd
jmp 0x4181b8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4181b8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4181bd
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x418970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x418979
cmp dword [ebp + 0xc], 0
je 0x41898c
mov dword [ebp - 0xc], 1
jmp 0x418993
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4189a6
mov eax, 0xd
jmp 0x4189fb
xor edx, edx
jne 0x41897d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x4189b9
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418a10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
xor eax, eax
jne 0x418a19
cmp dword [ebp + 0xc], 0
je 0x418a2c
mov dword [ebp - 0x18], 1
jmp 0x418a33
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x418a49
mov eax, 0xd
jmp 0x418acc
xor edx, edx
jne 0x418a1d
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x418a69
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x20]
sar edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jne 0x418a5a
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x418ae0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.004185e0
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004188a0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x418b5f
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.00418610
mov eax, dword [ebp - 0x220]
jmp 0x418c14
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x418be3
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00418ae0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x418bd7
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.00418610
mov eax, dword [ebp - 0x224]
jmp 0x418c14
mov dword [ebp - 0x210], 0x100
jmp 0x418b69
lea ecx, [ebp - 0x21c]
call fcn.00418790
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.004186b0
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.00418610
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 4
Function at 0x421600
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0058a9f0
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov byte [ebp - 0x415], dl
lea ecx, [ebp - 0x415]
call fcn.004216f0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42168d
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0058a9f0
add esp, 0xc
push str.config.ini
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040aca0
mov ecx, dword [ebp - 0x41c]
or ecx, 1
mov dword [ebp - 0x41c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 4
Function at 0x421890
Capabilities:
Get session user name
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60243b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4218e1
mov eax, 1
jmp 0x421ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4218f3
xor eax, eax
jmp 0x421ab2
mov dword [ebp - 0x228], str.SYSTEMCurrentControlSetControlSession_Manager
lea ecx, [ebp - 0x224]
call fcn.004082d0
mov dword [ebp - 4], 0
push 0x1a
lea ecx, [ebp - 0x224]
call fcn.00408a20
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x42195b
push 0xf003f
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x224]
call fcn.00408900
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x22c], 0x105
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x224]
call fcn.00408340
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4219ca
push 0xf003f
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x224]
call fcn.00408900
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x421a07
mov dword [ebp - 0x230], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408320
mov eax, dword [ebp - 0x230]
jmp 0x421ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x421a36
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408320
mov eax, dword [ebp - 0x234]
jmp 0x421ab2
push 1
lea ecx, [ebp - 0x224]
call fcn.00408a20
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x421a82
push 0xf003f
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x224]
call fcn.00408900
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408320
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428e60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
lea ecx, [ebp - 0x834]
call fcn.004503c0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x834]
call fcn.00450570
test eax, eax
jne 0x428ee5
mov dword [ebp - 0x818], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.004503e0
mov eax, dword [ebp - 0x818]
jmp 0x428ff1
lea ecx, [ebp - 0x814]
call fcn.0040f160
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x834]
call fcn.00450770
test eax, eax
jne 0x428f42
mov dword [ebp - 0x81c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x814]
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.004503e0
mov eax, dword [ebp - 0x81c]
jmp 0x428ff1
mov dword [ebp - 0x838], 0x400
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.0058a9f0
add esp, 0xc
push 0x651b8c
lea ecx, [ebp - 0x814]
call fcn.0040f210
push eax
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.00438d40
add esp, 4
mov dword [ebp - 0x824], eax
lea ecx, [ebp - 0x810]
push ecx
mov ecx, dword [ebp - 0x820]
add ecx, 0x2c0
call fcn.0040ac60
push 4
push 0
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x828], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x814]
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.004503e0
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4290c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602ee0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x67e4d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push str.OnBeforeExit
call fcn.0043d410
add esp, 4
push 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 8], 1
jne 0x4291a7
mov ecx, dword [ebp - 0x10]
add ecx, 0x120
call fcn.00453000
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f140
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040f140
mov byte [ebp - 4], 1
push 0x651ba0
lea ecx, [ebp - 0x14]
call fcn.00414c20
push 0
lea ecx, [ebp - 0x14]
call fcn.0040f210
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f210
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x18]
call fcn.0040f210
push eax
call fcn.0043d410
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040f210
push eax
call fcn.0043d410
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040ac80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x429460
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
cmp dword [ebp + 8], 0
jne 0x429484
jmp 0x42958a
mov dword [ebp - 0x21c], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0058a9f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.004296d0
test eax, eax
je 0x4294c9
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x21c], 0
jne 0x42952d
push 1
push 0x2a
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x20c]
test edx, edx
jne 0x42950c
push 1
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
mov byte [ebp - 0x20d], cl
lea ecx, [ebp - 0x20d]
call fcn.004295a0
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x218]
mov eax, dword [edx + 0x28]
call eax
test eax, eax
je 0x429573
push 0x32
call fcn.0043f3b0
add esp, 4
mov word [ebp - 0x214], ax
mov ecx, 2
imul edx, ecx, 0
mov ax, word [ebp - 0x214]
mov word [ebp + edx - 0x20c], ax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005a83d3
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 8