joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415770
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.0040efe0
movzx eax, al
test eax, eax
je 0x41579f
mov eax, 0xffffd8ee
jmp 0x415951
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.0040f070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4157bf
mov eax, 0xffffd8ee
jmp 0x415951
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.0040f070
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41580b
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x415815
jmp 0x415909
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 0x41583c
jmp 0x415909
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00415970
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 0x415881
jmp 0x415909
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
jne 0x415890
jmp 0x415909
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.00519e00
add esp, 0xc
push 0x10
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0058af2e
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4158d0
mov dword [ebp - 0x2c], 0xffffd8ee
jmp 0x415909
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.0040f070
push eax
call fcn.005136a0
add esp, 0x18
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x415909
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x20], 0
je 0x415920
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 0x415937
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 0x41594e
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.005367cc
mov esp, ebp
pop ebp
ret 8
Function at 0x415a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e798
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x68e4d8]
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.0040efc0
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0058abd0
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.0040ab00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x224]
push eax
push 0
lea ecx, [ebp - 0x234]
push ecx
call fcn.004151d0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.0040aae0
push 0x32
lea ecx, [ebp - 0x224]
call fcn.0040f070
push eax
call fcn.0051b440
add esp, 8
test eax, eax
je 0x415b27
push ecx
mov ecx, esp
mov dword [ebp - 0x25c], esp
lea edx, [ebp - 0x224]
push edx
call fcn.0040efa0
call fcn.0051c3f0
add esp, 4
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x415ca0
push 0x32
call fcn.0051b860
add esp, 4
mov word [ebp - 0x22c], ax
movzx eax, word [ebp - 0x22c]
test eax, eax
jne 0x415b92
xor ecx, ecx
mov byte [ebp - 0x225], cl
push 0x30
lea ecx, [ebp - 0x225]
call fcn.00415cf0
push eax
push 0x65f938
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.0040aae0
mov eax, dword [ebp - 0x244]
jmp 0x415cd5
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.0040ab00
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.004151d0
add esp, 0xc
test eax, eax
je 0x415c37
push ecx
mov ecx, esp
mov dword [ebp - 0x260], esp
lea eax, [ebp - 0x224]
push eax
call fcn.0040efa0
call fcn.0051c3f0
add esp, 4
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x415c37
mov dword [ebp - 0x238], 0
jmp 0x415c41
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 0x415c71
and dword [ebp - 0x230], 0xfffffffe
lea ecx, [ebp - 0x23c]
call fcn.0040aae0
movzx eax, byte [ebp - 0x226]
test eax, eax
je 0x415ca0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0040aae0
mov eax, dword [ebp - 0x24c]
jmp 0x415cd5
lea ecx, [ebp - 0x224]
call fcn.0040f070
push eax
mov ecx, dword [ebp - 0x250]
call fcn.00415e20
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0040aae0
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.005367cc
mov esp, ebp
pop ebp
ret
Function at 0x415e20
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 0x415e36
xor eax, eax
jmp 0x415eb9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415e52
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.0040aac0
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 0x4159b0
push 0
push 0
call fcn.005b0bd7
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x50], 0
je 0x415eaf
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
je 0x415eaf
mov dword [ebp - 8], 1
jmp 0x415eb6
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x417f90
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 0x417fef
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x417fbc
mov eax, 1
jmp 0x41800d
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 0x417fed
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 0x41800d
jmp 0x418008
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x418008
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x41800d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4187c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x4187c9
cmp dword [ebp + 0xc], 0
je 0x4187dc
mov dword [ebp - 0xc], 1
jmp 0x4187e3
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4187f6
mov eax, 0xd
jmp 0x41884b
xor edx, edx
jne 0x4187cd
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 0x418809
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 0x418860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
xor eax, eax
jne 0x418869
cmp dword [ebp + 0xc], 0
je 0x41887c
mov dword [ebp - 0x18], 1
jmp 0x418883
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x418899
mov eax, 0xd
jmp 0x41891c
xor edx, edx
jne 0x41886d
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 0x4188b9
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 0x4188aa
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 0x418930
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.00418430
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.004186f0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x4189af
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.00418460
mov eax, dword [ebp - 0x220]
jmp 0x418a64
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 0x418a33
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00418930
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x418a27
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.00418460
mov eax, dword [ebp - 0x224]
jmp 0x418a64
mov dword [ebp - 0x210], 0x100
jmp 0x4189b9
lea ecx, [ebp - 0x21c]
call fcn.004185e0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.00418500
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.00418460
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4
Function at 0x421420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0058abd0
add esp, 0xc
push str.depsGeeksSvc.dll
mov ecx, dword [ebp - 0x218]
add ecx, 4
call fcn.0040f070
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4214c6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x4214c6
push str.InstallSelf
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x4214c6
push 0
call dword [ebp - 0x214]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret

Function at 0x4214e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0058abd0
add esp, 0xc
push str.deps_native.dll
mov ecx, dword [ebp - 0x21c]
add ecx, 4
call fcn.0040f070
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421598
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x421598
push str.SetAutoStart
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x421598
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4
Function at 0x421620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f3db
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0058abd0
add esp, 0xc
call fcn.0040c210
test eax, eax
je 0x421693
push str.deps_shellGeeksShell64.dll
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.0040f070
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x4216b4
push str.deps_shellGeeksShell.dll
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.0040f070
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4216cc
xor eax, eax
jmp 0x421770
lea ecx, [ebp - 0x21c]
call fcn.0040efc0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4216f0
mov dword [ebp - 0x224], str.__s___s__i
jmp 0x4216fa
mov dword [ebp - 0x224], str._u__s___s_
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00410b10
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.0040f070
push eax
call fcn.005198c0
add esp, 4
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
call fcn.0040f070
push eax
push str.regsvr32.exe
call fcn.00528e80
add esp, 0x1c
mov dword [ebp - 0x228], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040aae0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4
Function at 0x421790
Capabilities:
Get session user name
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f41b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x68e4d8]
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 0x4217e1
mov eax, 1
jmp 0x4219b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4217f3
xor eax, eax
jmp 0x4219b2
mov dword [ebp - 0x228], str.SYSTEMCurrentControlSetControlSession_Manager
lea ecx, [ebp - 0x224]
call fcn.00408130
mov dword [ebp - 4], 0
push 0x1a
lea ecx, [ebp - 0x224]
call fcn.00408880
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x42185b
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.00408760
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.004081a0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4218ca
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.00408760
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 0x421907
mov dword [ebp - 0x230], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408180
mov eax, dword [ebp - 0x230]
jmp 0x4219b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x421936
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408180
mov eax, dword [ebp - 0x234]
jmp 0x4219b2
push 1
lea ecx, [ebp - 0x224]
call fcn.00408880
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x421982
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.00408760
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.00408180
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.005367cc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a820
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6100b6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x68e4d8]
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.00529990
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.00529b40
test eax, eax
jne 0x42a8a5
mov dword [ebp - 0x818], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.005299b0
mov eax, dword [ebp - 0x818]
jmp 0x42a9b1
lea ecx, [ebp - 0x814]
call fcn.0040efc0
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x834]
call fcn.00529d40
test eax, eax
jne 0x42a902
mov dword [ebp - 0x81c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x814]
call fcn.0040aae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.005299b0
mov eax, dword [ebp - 0x81c]
jmp 0x42a9b1
mov dword [ebp - 0x838], 0x400
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.0058abd0
add esp, 0xc
push 0x6613b8
lea ecx, [ebp - 0x814]
call fcn.0040f070
push eax
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.005140e0
add esp, 4
mov dword [ebp - 0x824], eax
lea ecx, [ebp - 0x810]
push ecx
mov ecx, dword [ebp - 0x820]
add ecx, 0x2bc
call fcn.0040aac0
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.0040aae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.005299b0
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.005367cc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42aa80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6100f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x68e4d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push str.OnBeforeExit
call fcn.005198c0
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 0x42ab67
mov ecx, dword [ebp - 0x10]
add ecx, 0x11c
call fcn.0052c5d0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040efa0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040efa0
mov byte [ebp - 4], 1
push str.FileList.xml
lea ecx, [ebp - 0x14]
call fcn.00414a80
push 0
lea ecx, [ebp - 0x14]
call fcn.0040f070
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f070
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x18]
call fcn.0040f070
push eax
call fcn.005198c0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040f070
push eax
call fcn.005198c0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040aae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
cmp dword [ebp + 8], 0
jne 0x42ae84
jmp 0x42af8a
mov dword [ebp - 0x21c], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0058abd0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.0042b0d0
test eax, eax
je 0x42aec9
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x21c], 0
jne 0x42af2d
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 0x42af0c
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.0042afa0
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 + 0x30]
call eax
test eax, eax
je 0x42af73
push 0x32
call fcn.0051b860
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.005b0cd4
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 8