joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d2b4
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 0x46d393
test edi, edi
je 0x46d393
cmp dword [ebp + 0x10], 0x80
jl 0x46d393
and dword [ebp - 0x10c], 0
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004840d0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x46d393
cmp eax, 0xff
ja 0x46d393
lea ecx, [ebp - 0x104]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46d393
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x4ce474
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46d393
push dword [ebp + 0x10]
push 0
push edi
call fcn.004840d0
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 0x4c5e40
push dword [ebp + 0x10]
push edi
call fcn.00446d66
xor eax, eax
add esp, 0x28
inc eax
jmp 0x46d395
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004841c7
leave
ret 0xc

Function at 0x46d590
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 0x46dba3
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.004840d0
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.004840d0
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.004841c7
leave
ret
Function at 0x46df8c
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.004840d0
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.004841c7
add ebp, 0x38c
leave
ret 4

Function at 0x46e01c
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 0x46e08a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push edi
test eax, eax
je 0x46e084
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
jmp 0x46e08f
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.004841c7
leave
ret 8

Function at 0x46e0a8
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4bb556
call fcn.00484f9f
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0046df8c
and dword [ebp - 4], 0
push 0x4ce474
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 0x46e13a
push 0
push dword [ebp - 0x10]
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
jne 0x46e126
push 1
push 0x4e8700
push dword [ebp - 0x10]
call fcn.0040e9e0
add esp, 0xc
jmp 0x46e13a
push 5
push str._fromInstaller
push dword [ebp - 0x10]
push 0
call fcn.004414ce
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.00485077
ret
Function at 0x46e203
Capabilities:
Check if file exists
Create directory

Disassembly:
push 8
mov eax, 0x4bb581
call fcn.00484f9f
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp + 8]
call fcn.0042e769
push 0x4ce474
lea ecx, [ebp + 8]
call fcn.0041cb8c
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x46e2a0
test ecx, ecx
jge 0x46e246
push 0x80070057
call fcn.0040dfb0
movzx edx, word [eax]
cmp dx, 0x61
jb 0x46e255
cmp dx, 0x7a
jbe 0x46e25e
add edx, 0xffffffbf
cmp dx, 0x19
ja 0x46e2a0
cmp ecx, 1
jl 0x46e23c
movzx edx, word [eax + 2]
cmp dx, 0x3a
je 0x46e27c
lea ecx, [eax - 0x10]
call fcn.0040dd20
xor eax, eax
jmp 0x46e319
cmp ecx, 2
jl 0x46e23c
movzx edx, word [eax + 4]
movzx esi, dx
cmp si, 0x5c
je 0x46e2a0
cmp ecx, 2
jl 0x46e23c
movzx edx, dx
mov esi, 0x2f2f
cmp dx, si
jne 0x46e26d
xor edi, edi
test ecx, ecx
jle 0x46e30e
push edi
lea ecx, [ebp + 8]
call fcn.0042e1e4
cmp ax, 0x5c
jne 0x46e305
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 0x46e2f9
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x46e2ed
cmp eax, 0x50
je 0x46e2ed
cmp eax, 0xb7
jne 0x46e321
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 0x46e2a6
lea ecx, [eax - 0x10]
call fcn.0040dd20
xor eax, eax
inc eax
call fcn.00485077
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 0x46e270
Function at 0x46e34b
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, 0x4bb5b7
call fcn.00484f9f
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.0046e203
cmp eax, edi
jne 0x46e3e3
lea ecx, [ebp - 0x38]
call fcn.0046e1ad
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.004841c7
add ebp, 0x108
leave
ret
xor eax, eax
push 0x100
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.004840d0
mov esi, 0x80
lea eax, [ebp]
push esi
push eax
call fcn.0044123f
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 0x46e4a2
lea eax, [ebp]
push eax
call fcn.004848a7
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 0x46e488
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x46e490
mov dword [ebp - 0x14], 1
jmp 0x46e490
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 0x46e4aa
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 0x46e3a8

Function at 0x46e500
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.004840d0
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x46e584
cmp word [ebp - 0x804], 0
push esi
lea esi, [ebp - 0x804]
je 0x46e580
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46e56f
push esi
mov ecx, edi
call fcn.0042f644
push esi
call fcn.004848a7
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x46e55b
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004841c7
leave
ret 4
Function at 0x46fb6d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.004848d0
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 0x46fc76
test ecx, ecx
je 0x46fc76
mov edi, dword [ebp + 0xfa8]
test edi, edi
jle 0x46fc76
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x46fbe6
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 0x46fc39
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0048a180
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 0x46fc76
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x46fc2e
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x46fbfa
test edi, edi
jle 0x46fc71
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0048a180
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 0x46fc76
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x46fc71
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x46fc78
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004841c7
add ebp, 0xf98
leave
ret

Function at 0x46fcb1
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.004840d0
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 0x46fd06
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 0x46fd05
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 0x46fe85
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 0x46febb
xor eax, eax
jmp 0x46fedc
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.0046fb6d
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 0x46fff5
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4bb741
call fcn.00484f9f
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.004415c7
pop ecx
test eax, eax
jne 0x470039
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.00485077
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.0046fe85
test eax, eax
jne 0x470057
lea ecx, [edi - 0x10]
jmp 0x47002a
push esi
lea ecx, [ebp - 0x14]
call fcn.0040ba90
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004415c7
mov esi, dword [ebp - 0x14]
pop ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.0046ff92
pop ecx
pop ecx
test eax, eax
jne 0x47009d
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x470031
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041cb3f
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x470089

Function at 0x4700b1
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4bb76c
call fcn.00484f9f
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.0046a237
pop ecx
test eax, eax
jne 0x4700f5
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.00485077
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.0046fe85
test eax, eax
jne 0x470113
lea ecx, [edi - 0x10]
jmp 0x4700e6
push esi
lea ecx, [ebp - 0x14]
call fcn.0040ba90
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0046a237
mov esi, dword [ebp - 0x14]
pop ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.0046ff92
pop ecx
pop ecx
test eax, eax
jne 0x470159
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x4700ed
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041cb3f
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x470145
Function at 0x47016d
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4bb78f
call fcn.00484f9f
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.0046a237
pop ecx
test eax, eax
jne 0x4701af
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
xor eax, eax
call fcn.00485077
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.0046fe85
test eax, eax
jne 0x4701cc
lea ecx, [edi - 0x10]
jmp 0x4701a0
mov esi, dword [ebp + 8]
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [esi]
push edi
call fcn.0046ff92
pop ecx
pop ecx
test eax, eax
jne 0x4701f5
xor esi, esi
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, esi
jmp 0x4701a7
push edi
call ebx
xor esi, esi
inc esi
jmp 0x4701e9
Function at 0x4701fd
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, 0x4bb7ba
call fcn.00484f9f
mov ebx, dword [ebp + 0x920]
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x4703bc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4703bc
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.004840d0
push ebx
push 0x4c5418
lea esi, [edi + 2]
lea eax, [ebp + 0x5f4]
push esi
push eax
call fcn.00446d66
add esp, 0x1c
lea eax, [ebp + 0x5f4]
push eax
lea ecx, [ebp]
call fcn.0045d5ae
test eax, eax
je 0x4703a0
mov ebx, 0x4bf160
lea ecx, [ebp]
call fcn.0045cdf3
lea ecx, [ebp]
mov dword [ebp - 0x14], eax
call fcn.0045d571
test eax, eax
jne 0x470393
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
call fcn.0045ecae
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.0045cdcf
push edi
push 0
test eax, eax
je 0x470356
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.004840d0
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d66
mov ecx, dword [ebp - 0x18]
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call fcn.004701fd
jmp 0x470393
xor eax, eax
mov word [ebp + 0x784], ax
lea eax, [ebp + 0x786]
push eax
call fcn.004840d0
lea eax, [ebp + 0x464]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x784]
push ebx
push esi
push eax
call fcn.00446d66
add esp, 0x20
lea eax, [ebp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 0
jne 0x4702b0
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0045ce1a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp]
call fcn.0045ce1a
xor eax, eax
inc eax
jmp 0x4703be
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.004841c7
add ebp, 0x918
leave
ret 4
Function at 0x4703e3
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, 0x4bb7f2
call fcn.00484f9f
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.0046a237
pop ecx
test eax, eax
jne 0x470465
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.004841c7
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.0046fe85
test eax, eax
jne 0x470483
lea ecx, [edi - 0x10]
jmp 0x470439
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.004840d0
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 0x4c6580
lea ecx, [ebp - 0x10]
call fcn.0041cb8c
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.004701fd
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push edi
call fcn.0046ff92
pop ecx
pop ecx
test eax, eax
jne 0x470506
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0040dd20
lea ecx, [edi - 0x10]
call fcn.0040dd20
mov eax, ebx
jmp 0x470440
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0041cb3f
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x4704ef
Function at 0x4709d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x470ad2
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.004707ba
and dword [esp + 0x10], 0
push ebx
mov dword [esp + 0x18], eax
call fcn.004707a3
pop ecx
pop ecx
xor ecx, ecx
cmp cx, word [eax]
jae 0x470ab2
push edi
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x470a50
push 5
push dword [esi + 8]
jmp 0x470a53
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x470ab1
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 0x14]
je 0x470a7e
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x470a5f
test edi, edi
je 0x470ab1
push 1
push dword [esi + 0x10]
push 0x30
push edi
call ebp
push 1
push dword [esp + 0x18]
call fcn.0047083a
inc dword [esp + 0x18]
push ebx
mov dword [esp + 0x20], eax
call fcn.004707a3
movzx eax, word [eax]
add esp, 0xc
cmp dword [esp + 0x10], eax
jl 0x470a42
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 0x470ed9
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 0x470f32
cmp word [ecx], si
je 0x470f32
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 0x470f32
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