joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d748
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 0x46d827
test edi, edi
je 0x46d827
cmp dword [ebp + 0x10], 0x80
jl 0x46d827
and dword [ebp - 0x10c], 0
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00484550
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x46d827
cmp eax, 0xff
ja 0x46d827
lea ecx, [ebp - 0x104]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46d827
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x4ce544
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46d827
push dword [ebp + 0x10]
push 0
push edi
call fcn.00484550
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 0x4c5f10
push dword [ebp + 0x10]
push edi
call fcn.00446dcf
xor eax, eax
add esp, 0x28
inc eax
jmp 0x46d829
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00484647
leave
ret 0xc

Function at 0x46da24
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.0041d354
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc

Function at 0x46e037
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.00484550
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.00484550
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.00484647
leave
ret
Function at 0x46e420
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.00484550
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.00484647
add ebp, 0x38c
leave
ret 4

Function at 0x46e4b0
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 0x46e51e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push edi
test eax, eax
je 0x46e518
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
jmp 0x46e523
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.00484647
leave
ret 8

Function at 0x46e53c
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4bba7f
call fcn.00485421
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0046e420
and dword [ebp - 4], 0
push 0x4ce544
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041afb8
add esi, 0x54
push esi
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00426d2b
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 0x46e5ce
push 0
push dword [ebp - 0x10]
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
jne 0x46e5ba
push 1
push 0x4e8700
push dword [ebp - 0x10]
call fcn.0040e9e0
add esp, 0xc
jmp 0x46e5ce
push 5
push str._fromInstaller
push dword [ebp - 0x10]
push 0
call fcn.00441537
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.004854f9
ret
Function at 0x46e697
Capabilities:
Check if file exists
Create directory

Disassembly:
push 8
mov eax, 0x4bbaaa
call fcn.00485421
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp + 8]
call fcn.0042e7bc
push 0x4ce544
lea ecx, [ebp + 8]
call fcn.0041cbde
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x46e734
test ecx, ecx
jge 0x46e6da
push 0x80070057
call fcn.0040dfb0
movzx edx, word [eax]
cmp dx, 0x61
jb 0x46e6e9
cmp dx, 0x7a
jbe 0x46e6f2
add edx, 0xffffffbf
cmp dx, 0x19
ja 0x46e734
cmp ecx, 1
jl 0x46e6d0
movzx edx, word [eax + 2]
cmp dx, 0x3a
je 0x46e710
lea ecx, [eax - 0x10]
call fcn.0040dd20
xor eax, eax
jmp 0x46e7ad
cmp ecx, 2
jl 0x46e6d0
movzx edx, word [eax + 4]
movzx esi, dx
cmp si, 0x5c
je 0x46e734
cmp ecx, 2
jl 0x46e6d0
movzx edx, dx
mov esi, 0x2f2f
cmp dx, si
jne 0x46e701
xor edi, edi
test ecx, ecx
jle 0x46e7a2
push edi
lea ecx, [ebp + 8]
call fcn.0042e237
cmp ax, 0x5c
jne 0x46e799
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 0x46e78d
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x46e781
cmp eax, 0x50
je 0x46e781
cmp eax, 0xb7
jne 0x46e7b5
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.0042f2a7
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 0x46e73a
lea ecx, [eax - 0x10]
call fcn.0040dd20
xor eax, eax
inc eax
call fcn.004854f9
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 0x46e704
Function at 0x46e7df
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, 0x4bbae0
call fcn.00485421
mov ebx, dword [ebp + 0x114]
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call fcn.0042ecb6
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.0046e697
cmp eax, edi
jne 0x46e877
lea ecx, [ebp - 0x38]
call fcn.0046e641
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.00484647
add ebp, 0x108
leave
ret
xor eax, eax
push 0x100
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00484550
mov esi, 0x80
lea eax, [ebp]
push esi
push eax
call fcn.004412a8
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.0041cc03
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 0x46e936
lea eax, [ebp]
push eax
call fcn.00484d27
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 0x46e91c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x46e924
mov dword [ebp - 0x14], 1
jmp 0x46e924
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 0x46e93e
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 0x46e83c

Function at 0x46e994
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.0042ef24
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00484550
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x46ea18
cmp word [ebp - 0x804], 0
push esi
lea esi, [ebp - 0x804]
je 0x46ea14
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46ea03
push esi
mov ecx, edi
call fcn.0042f697
push esi
call fcn.00484d27
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x46e9ef
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00484647
leave
ret 4
Function at 0x470001
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.00484d50
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 0x47010a
test ecx, ecx
je 0x47010a
mov edi, dword [ebp + 0xfa8]
test edi, edi
jle 0x47010a
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x47007a
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 0x4700cd
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0048a600
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 0x47010a
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4700c2
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x47008e
test edi, edi
jle 0x470105
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0048a600
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 0x47010a
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x470105
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x47010c
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484647
add ebp, 0xf98
leave
ret

Function at 0x470145
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.00484550
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 0x47019a
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 0x470199
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 0x470319
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 0x47034f
xor eax, eax
jmp 0x470370
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.00470001
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 0x470489
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4bbc6a
call fcn.00485421
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.00441630
pop ecx
test eax, eax
jne 0x4704cd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.004854f9
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.00470319
test eax, eax
jne 0x4704eb
lea ecx, [edi - 0x10]
jmp 0x4704be
push esi
lea ecx, [ebp - 0x14]
call fcn.0040ba90
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00441630
mov esi, dword [ebp - 0x14]
pop ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.00470426
pop ecx
pop ecx
test eax, eax
jne 0x470531
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x4704c5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041cb91
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x47051d

Function at 0x470545
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4bbc95
call fcn.00485421
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.0046a6f2
pop ecx
test eax, eax
jne 0x470589
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.004854f9
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.00470319
test eax, eax
jne 0x4705a7
lea ecx, [edi - 0x10]
jmp 0x47057a
push esi
lea ecx, [ebp - 0x14]
call fcn.0040ba90
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0046a6f2
mov esi, dword [ebp - 0x14]
pop ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.00470426
pop ecx
pop ecx
test eax, eax
jne 0x4705ed
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x470581
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041cb91
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x4705d9
Function at 0x470601
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4bbcb8
call fcn.00485421
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.0046a6f2
pop ecx
test eax, eax
jne 0x470643
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.004854f9
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.00470319
test eax, eax
jne 0x470660
lea ecx, [edi - 0x10]
jmp 0x470634
mov esi, dword [ebp + 8]
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [esi]
push edi
call fcn.00470426
pop ecx
pop ecx
test eax, eax
jne 0x470689
xor esi, esi
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, esi
jmp 0x47063b
push edi
call ebx
xor esi, esi
inc esi
jmp 0x47067d
Function at 0x470691
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, 0x4bbce3
call fcn.00485421
mov ebx, dword [ebp + 0x920]
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x470850
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470850
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.00484550
push ebx
push 0x4c5480
lea esi, [edi + 2]
lea eax, [ebp + 0x5f4]
push esi
push eax
call fcn.00446dcf
add esp, 0x1c
lea eax, [ebp + 0x5f4]
push eax
lea ecx, [ebp]
call fcn.0045d71e
test eax, eax
je 0x470834
mov ebx, 0x4bf1c8
lea ecx, [ebp]
call fcn.0045cf63
lea ecx, [ebp]
mov dword [ebp - 0x14], eax
call fcn.0045d6e1
test eax, eax
jne 0x470827
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
call fcn.0045ee1e
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.0045cf3f
push edi
push 0
test eax, eax
je 0x4707ea
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484550
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446dcf
mov ecx, dword [ebp - 0x18]
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call fcn.00470691
jmp 0x470827
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.00484550
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446dcf
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 0
jne 0x470744
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0045cf8a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp]
call fcn.0045cf8a
xor eax, eax
inc eax
jmp 0x470852
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.00484647
add ebp, 0x918
leave
ret 4
Function at 0x470877
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, 0x4bbd1b
call fcn.00485421
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.0046a6f2
pop ecx
test eax, eax
jne 0x4708f9
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.00484647
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.00470319
test eax, eax
jne 0x470917
lea ecx, [edi - 0x10]
jmp 0x4708cd
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.00484550
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 0x4c6650
lea ecx, [ebp - 0x10]
call fcn.0041cbde
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.00470691
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.00470426
pop ecx
pop ecx
test eax, eax
jne 0x47099a
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x4708d4
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0041cb91
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x470983
Function at 0x470e6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x470f66
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.00470c4e
and dword [esp + 0x10], 0
push ebx
mov dword [esp + 0x18], eax
call fcn.00470c37
pop ecx
pop ecx
xor ecx, ecx
cmp cx, word [eax]
jae 0x470f46
push edi
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x470ee4
push 5
push dword [esi + 8]
jmp 0x470ee7
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x470f45
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 0x14]
je 0x470f12
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x470ef3
test edi, edi
je 0x470f45
push 1
push dword [esi + 0x10]
push 0x30
push edi
call ebp
push 1
push dword [esp + 0x18]
call fcn.00470cce
inc dword [esp + 0x18]
push ebx
mov dword [esp + 0x20], eax
call fcn.00470c37
movzx eax, word [eax]
add esp, 0xc
cmp dword [esp + 0x10], eax
jl 0x470ed6
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 0x47136f
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 0x4713c8
cmp word [ecx], si
je 0x4713c8
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 0x4713c8
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