joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d345
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x46d424
test edi, edi
je 0x46d424
cmp dword [ebp + 0x10], 0x80
jl 0x46d424
and dword [ebp - 0x10c], 0
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x46d424
cmp eax, 0xff
ja 0x46d424
lea ecx, [ebp - 0x104]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46d424
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x4ce4dc
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46d424
push dword [ebp + 0x10]
push 0
push edi
call fcn.00484150
mov eax, dword [ebp - 0x108]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x4c5ea8
push dword [ebp + 0x10]
push edi
call fcn.00446d7d
xor eax, eax
add esp, 0x28
inc eax
jmp 0x46d426
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret 0xc

Function at 0x46d621
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [esi + 0x8c]
push edi
lea edi, [esi + 0x94]
push dword [edi]
call fcn.0040cf00
mov esi, dword [esi + 0x90]
push ebx
push dword [edi]
push eax
push esi
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
mov esi, eax
call fcn.0041d302
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc

Function at 0x46dc34
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0040b680
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484247
leave
ret
Function at 0x46e01d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x388], eax
and dword [ebp - 0x7c], 0
push esi
push edi
mov edi, dword [ebp + 0x394]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
mov esi, ecx
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0x50]
mov dword [ebp - 0x7c], 1
push dword [esi + 0x4c]
mov dword [ebp - 0x80], 0x200
push dword [esi + 0x58]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0040b680
mov ecx, dword [ebp + 0x388]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00484247
add ebp, 0x38c
leave
ret 4

Function at 0x46e0ad
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x46e11b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push edi
test eax, eax
je 0x46e115
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
jmp 0x46e120
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Non_existent_Process
mov ecx, esi
call fcn.0040b680
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00484247
leave
ret 8

Function at 0x46e139
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4bb5d6
call fcn.0048501f
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0046e01d
and dword [ebp - 4], 0
push 0x4ce4dc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041af66
add esi, 0x54
push esi
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00426cd6
mov ecx, dword [ebp - 0x18]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.0040dd20
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e1cb
push 0
push dword [ebp - 0x10]
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
jne 0x46e1b7
push 1
push 0x4e8700
push dword [ebp - 0x10]
call fcn.0040e9e0
add esp, 0xc
jmp 0x46e1cb
push 5
push str._fromInstaller
push dword [ebp - 0x10]
push 0
call fcn.004414e4
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
call fcn.004850f7
ret
Function at 0x46e294
Capabilities:
Check if file exists
Create directory

Disassembly:
push 8
mov eax, 0x4bb601
call fcn.0048501f
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp + 8]
call fcn.0042e769
push 0x4ce4dc
lea ecx, [ebp + 8]
call fcn.0041cb8c
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x46e331
test ecx, ecx
jge 0x46e2d7
push 0x80070057
call fcn.0040dfb0
movzx edx, word [eax]
cmp dx, 0x61
jb 0x46e2e6
cmp dx, 0x7a
jbe 0x46e2ef
add edx, 0xffffffbf
cmp dx, 0x19
ja 0x46e331
cmp ecx, 1
jl 0x46e2cd
movzx edx, word [eax + 2]
cmp dx, 0x3a
je 0x46e30d
lea ecx, [eax - 0x10]
call fcn.0040dd20
xor eax, eax
jmp 0x46e3aa
cmp ecx, 2
jl 0x46e2cd
movzx edx, word [eax + 4]
movzx esi, dx
cmp si, 0x5c
je 0x46e331
cmp ecx, 2
jl 0x46e2cd
movzx edx, dx
mov esi, 0x2f2f
cmp dx, si
jne 0x46e2fe
xor edi, edi
test ecx, ecx
jle 0x46e39f
push edi
lea ecx, [ebp + 8]
call fcn.0042e1e4
cmp ax, 0x5c
jne 0x46e396
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0041a88c
mov esi, dword [ebp - 0x10]
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46e38a
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x46e37e
cmp eax, 0x50
je 0x46e37e
cmp eax, 0xb7
jne 0x46e3b2
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.0042f254
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.0040dd20
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x46e337
lea ecx, [eax - 0x10]
call fcn.0040dd20
xor eax, eax
inc eax
call fcn.004850f7
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea ecx, [esi - 0x10]
call fcn.0040dd20
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
jmp 0x46e301
Function at 0x46e3dc
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x4bb637
call fcn.0048501f
mov ebx, dword [ebp + 0x114]
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call fcn.0042ec63
push ebx
push ecx
lea eax, [ebp + 0x110]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 1
call fcn.004198bb
lea ecx, [ebp - 0x38]
call fcn.0046e294
cmp eax, edi
jne 0x46e474
lea ecx, [ebp - 0x38]
call fcn.0046e23e
mov ecx, dword [ebp + 0x110]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00484247
add ebp, 0x108
leave
ret
xor eax, eax
push 0x100
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00484150
mov esi, 0x80
lea eax, [ebp]
push esi
push eax
call fcn.00441255
add esp, 0x14
push 0x4ecda4
lea ecx, [ebp - 0x10]
call fcn.0040ba90
lea eax, [ebp]
push eax
push dword [ebp + 0x110]
lea eax, [ebp - 0x10]
push str._s_s.tf
push eax
mov byte [ebp - 4], 2
call fcn.0041cbb1
add esp, 0x10
push edi
push esi
push 2
push edi
push 2
push 0x120116
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46e533
lea eax, [ebp]
push eax
call fcn.00484927
pop ecx
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp]
push eax
push esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46e519
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x46e521
mov dword [ebp - 0x14], 1
jmp 0x46e521
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46e53b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov edi, dword [ebp - 0x14]
jmp 0x46e439

Function at 0x46e591
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0042eed1
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00484150
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x46e615
cmp word [ebp - 0x804], 0
push esi
lea esi, [ebp - 0x804]
je 0x46e611
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46e600
push esi
mov ecx, edi
call fcn.0042f644
push esi
call fcn.00484927
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x46e5ec
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00484247
leave
ret 4
Function at 0x46fbfe
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.00484950
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
mov edx, dword [ebp + 0xfac]
mov ecx, dword [ebp + 0xfa4]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
cmp eax, 0xffffffff
je 0x46fd07
test ecx, ecx
je 0x46fd07
mov edi, dword [ebp + 0xfa8]
test edi, edi
jle 0x46fd07
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x46fc77
dec edi
or edi, 0xfffff000
inc edi
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
test esi, esi
jle 0x46fcca
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0048a200
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46fd07
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x46fcbf
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x46fc8b
test edi, edi
jle 0x46fd02
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0048a200
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46fd07
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x46fd02
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x46fd09
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484247
add ebp, 0xf98
leave
ret

Function at 0x46fd42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x14]
push 8
push 0
push edi
call fcn.00484150
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46fd97
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46fd96
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x46ff16
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46ff4c
xor eax, eax
jmp 0x46ff6d
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.0046fbfe
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x470086
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4bb7c1
call fcn.0048501f
mov dword [ebp - 0x14], ecx
mov esi, 0x4ecda4
push esi
lea ecx, [ebp - 0x10]
call fcn.0040ba90
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004415dd
pop ecx
test eax, eax
jne 0x4700ca
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.004850f7
ret 4
mov edi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0046ff16
test eax, eax
jne 0x4700e8
lea ecx, [edi - 0x10]
jmp 0x4700bb
push esi
lea ecx, [ebp - 0x14]
call fcn.0040ba90
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004415dd
mov esi, dword [ebp - 0x14]
pop ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.00470023
pop ecx
pop ecx
test eax, eax
jne 0x47012e
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x4700c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041cb3f
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x47011a

Function at 0x470142
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4bb7ec
call fcn.0048501f
mov dword [ebp - 0x14], ecx
mov esi, 0x4ecda4
push esi
lea ecx, [ebp - 0x10]
call fcn.0040ba90
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0046a2c8
pop ecx
test eax, eax
jne 0x470186
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.004850f7
ret 4
mov edi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0046ff16
test eax, eax
jne 0x4701a4
lea ecx, [edi - 0x10]
jmp 0x470177
push esi
lea ecx, [ebp - 0x14]
call fcn.0040ba90
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0046a2c8
mov esi, dword [ebp - 0x14]
pop ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.00470023
pop ecx
pop ecx
test eax, eax
jne 0x4701ea
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x47017e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041cb3f
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x4701d6
Function at 0x4701fe
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4bb80f
call fcn.0048501f
mov esi, ecx
push 0x4ecda4
lea ecx, [ebp - 0x10]
call fcn.0040ba90
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0046a2c8
pop ecx
test eax, eax
jne 0x470240
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.004850f7
ret 4
mov edi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
push edi
mov ecx, esi
call fcn.0046ff16
test eax, eax
jne 0x47025d
lea ecx, [edi - 0x10]
jmp 0x470231
mov esi, dword [ebp + 8]
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [esi]
push edi
call fcn.00470023
pop ecx
pop ecx
test eax, eax
jne 0x470286
xor esi, esi
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, esi
jmp 0x470238
push edi
call ebx
xor esi, esi
inc esi
jmp 0x47027a
Function at 0x47028e
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
sub esp, 0x914
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x914], eax
push 0x10
mov eax, 0x4bb83a
call fcn.0048501f
mov ebx, dword [ebp + 0x920]
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x47044d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47044d
push 0x5c
pop eax
mov word [ebp + 0x458], ax
mov dword [ebp + 0x45c], esi
mov dword [ebp + 0x460], esi
xor eax, eax
mov edi, 0x18e
push edi
mov word [ebp + 0x5f4], ax
lea eax, [ebp + 0x5f6]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00484150
push ebx
push 0x4c5418
lea esi, [edi + 2]
lea eax, [ebp + 0x5f4]
push esi
push eax
call fcn.00446d7d
add esp, 0x1c
lea eax, [ebp + 0x5f4]
push eax
lea ecx, [ebp]
call fcn.0045d5c6
test eax, eax
je 0x470431
mov ebx, 0x4bf160
lea ecx, [ebp]
call fcn.0045ce0b
lea ecx, [ebp]
mov dword [ebp - 0x14], eax
call fcn.0045d589
test eax, eax
jne 0x470424
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
call fcn.0045ecc6
push 0xc8
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040cf00
push eax
push esi
lea eax, [ebp + 0x464]
push eax
call fcn.0040e610
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0040dd20
push 0x10
lea ecx, [ebp]
call fcn.0045cde7
push edi
push 0
test eax, eax
je 0x4703e7
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484150
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d7d
mov ecx, dword [ebp - 0x18]
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call fcn.0047028e
jmp 0x470424
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484150
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d7d
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 0
jne 0x470341
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0045ce32
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp]
call fcn.0045ce32
xor eax, eax
inc eax
jmp 0x47044f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x914]
xor ecx, ebp
call fcn.00484247
add ebp, 0x918
leave
ret 4
Function at 0x470474
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x4bb872
call fcn.0048501f
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x18], ecx
mov esi, 0x4ecda4
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.0040ba90
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0046a2c8
pop ecx
test eax, eax
jne 0x4704f6
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00484247
add ebp, 0x804
leave
ret 4
mov edi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
mov ecx, dword [ebp - 0x18]
push edi
call fcn.0046ff16
test eax, eax
jne 0x470514
lea ecx, [edi - 0x10]
jmp 0x4704ca
push esi
lea ecx, [ebp - 0x10]
call fcn.0040ba90
push 0x800
lea eax, [ebp]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.00484150
add esp, 0xc
lea eax, [ebp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c8e0
push 0x4c65e8
lea ecx, [ebp - 0x10]
call fcn.0041cb8c
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0047028e
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.00470023
pop ecx
pop ecx
test eax, eax
jne 0x470597
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x4704d1
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0041cb3f
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x470580
Function at 0x470a67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x470b63
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [esi + 0x10]
push 0x30
push eax
call ebp
movzx eax, word [esi]
push 5
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
call fcn.0047084b
and dword [esp + 0x10], 0
push ebx
mov dword [esp + 0x18], eax
call fcn.00470834
pop ecx
pop ecx
xor ecx, ecx
cmp cx, word [eax]
jae 0x470b43
push edi
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x470ae1
push 5
push dword [esi + 8]
jmp 0x470ae4
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x470b42
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 0x14]
je 0x470b0f
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x470af0
test edi, edi
je 0x470b42
push 1
push dword [esi + 0x10]
push 0x30
push edi
call ebp
push 1
push dword [esp + 0x18]
call fcn.004708cb
inc dword [esp + 0x18]
push ebx
mov dword [esp + 0x20], eax
call fcn.00470834
movzx eax, word [eax]
add esp, 0xc
cmp dword [esp + 0x10], eax
jl 0x470ad3
pop edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x470f6a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x18
push esi
xor esi, esi
cmp ecx, esi
je 0x470fc3
cmp word [ecx], si
je 0x470fc3
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x470fc3
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
shrd ecx, edx, 0xa
shr edx, 0xa
mov dword [eax], ecx
mov dword [eax + 4], edx
inc esi
mov eax, esi
pop esi
leave
ret 8