joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bc8
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x41791d
call fcn.00410b5c
sub esp, 0x4b0
mov eax, dword [0x41d280]
push ebx
push esi
push 0x208
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [ebp - 0x2b4]
push esi
push eax
mov ebx, ecx
call fcn.004103a0
add esp, 0xc
call fcn.0040aac5
mov ecx, eax
call fcn.004081b3
test eax, eax
je 0x402c20
add ebx, 0x14
push ebx
call fcn.0040866f
mov ecx, eax
call fcn.00409767
jmp 0x402cff
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x4bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x41879c
lea ecx, [ebp - 0x2c]
call fcn.00402a16
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4bc]
push eax
mov dword [ebp - 4], esi
call fcn.00409581
pop ecx
pop ecx
lea eax, [ebp - 0x2b4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x1f
xor eax, eax
cmp dword [ebp - 0x14], 8
pop ecx
mov word [ebp - 0xac], si
lea edi, [ebp - 0xaa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x28]
pop edi
jae 0x402c88
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xac]
push str.UninstallWork_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
lea eax, [ebp - 0x2b4]
push esi
push eax
call fcn.0040961d
lea eax, [ebp - 0x2b4]
add esp, 0x10
push eax
call fcn.0040866f
mov ecx, eax
call fcn.00407ee1
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebx + 0x14]
call fcn.004028c5
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b0c
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
pop ebx
call fcn.004102ee
leave
ret
Function at 0x40360a
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4179aa
call fcn.00410b5c
sub esp, 0x448
mov eax, dword [0x41d280]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xa8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x424], esi
call fcn.0040a8ac
call fcn.00407bbc
test eax, eax
je 0x4036f0
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004103a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
lea eax, [ebp - 0x218]
push eax
mov edi, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push edi
mov esi, SysReAllocString
push esi
call fcn.00407b97
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004085e7
push ebx
xor ebx, ebx
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004103a0
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x420]
push str.SIGN.IE0_x__s
push eax
call fcn.00410e19
push 1
lea eax, [ebp - 0x420]
push eax
push edi
push esi
call fcn.00407b97
mov esi, dword [ebp - 0x424]
add esp, 0x20
jmp 0x4036f2
xor ebx, ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], ebx
call fcn.00403311
push str.minizip.dll
lea ecx, [ebp - 0x454]
call fcn.00402a16
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.004035ca
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0
call fcn.00401b0c
push str.zlib1.dll
lea ecx, [ebp - 0x454]
call fcn.00402a16
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.004035ca
push ebx
push edi
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0
call fcn.00401b0c
cmp dword [esi + 0x2c], 8
jb 0x40378e
mov esi, dword [esi + 0x18]
jmp 0x403791
add esi, 0x18
push edi
push edi
lea eax, [ebp - 0x438]
push eax
push esi
call fcn.0040961d
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403620
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4179aa
call fcn.00410b5c
sub esp, 0x448
mov eax, dword [0x41d280]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xa8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x424], esi
call fcn.0040a8ac
call fcn.00407bbc
test eax, eax
je 0x4036f0
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004103a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
lea eax, [ebp - 0x218]
push eax
mov edi, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push edi
mov esi, SysReAllocString
push esi
call fcn.00407b97
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004085e7
push ebx
xor ebx, ebx
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004103a0
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x420]
push str.SIGN.IE0_x__s
push eax
call fcn.00410e19
push 1
lea eax, [ebp - 0x420]
push eax
push edi
push esi
call fcn.00407b97
mov esi, dword [ebp - 0x424]
add esp, 0x20
jmp 0x4036f2
xor ebx, ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], ebx
call fcn.00403311
push str.minizip.dll
lea ecx, [ebp - 0x454]
call fcn.00402a16
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.004035ca
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0
call fcn.00401b0c
push str.zlib1.dll
lea ecx, [ebp - 0x454]
call fcn.00402a16
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.004035ca
push ebx
push edi
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0
call fcn.00401b0c
cmp dword [esi + 0x2c], 8
jb 0x40378e
mov esi, dword [esi + 0x18]
jmp 0x403791
add esi, 0x18
push edi
push edi
lea eax, [ebp - 0x438]
push eax
push esi
call fcn.0040961d
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403b00
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x403b1a
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x403b46
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403b51
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x404378
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41d280]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.00403acb
cmp eax, esi
jne 0x404400
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4043c9
lea eax, [ebp - 0x70]
push eax
call fcn.00404378
cmp eax, esi
jne 0x4043ff
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x4043bc
call fcn.00403a66
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00403a66
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.004102ee
add ebp, 0x194
leave
ret 4
Function at 0x404e7e
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x404e9a
xor eax, eax
jmp 0x404eae
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x404782
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ecx
ret
Function at 0x405ce4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x417a35
call fcn.00410b5c
sub esp, 0x420
mov eax, dword [0x41d280]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x41d050]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x405d4f
call fcn.00403873
mov esi, eax
jmp 0x405e0b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x405dd8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x405dd8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.00404813
jmp 0x405da2
cmp dword [ebp - 0x418], edi
mov dword [ebp - 4], 1
jne 0x405db8
mov esi, 0x8007000e
jmp 0x405dff
call dword [0x41d050]
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x405ddf
call fcn.00403873
jmp 0x405dfd
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [eax + esi*2], di
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00405b51
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405e24
lea ecx, [ebp - 0x418]
call fcn.004042d2
lea ecx, [ebp - 0x41c]
call fcn.0040420c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004102ee
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x406299
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
mov eax, 0x417a59
call fcn.00410b5c
sub esp, 0xac8
mov eax, dword [0x41d280]
push ebx
push esi
push edi
push 0x208
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x4bc]
push ebx
push eax
call fcn.004103a0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x4bc]
push eax
push ebx
call edi
lea eax, [ebp - 0x4bc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.004103a0
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x8cc]
push eax
push ebx
call edi
mov esi, 0x41879c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402a16
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8cc]
push eax
mov dword [ebp - 4], ebx
call fcn.00409581
pop ecx
pop ecx
push 0x1f
xor eax, eax
cmp dword [ebp - 0x14], 8
mov word [ebp - 0xac], bx
pop ecx
lea edi, [ebp - 0xaa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x28]
jae 0x406361
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xac]
push str.Uninstall_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push ebx
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.0040961d
add esp, 0x10
push str.Uninstall.exe
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0xad4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
lea eax, [ebp - 0xad4]
push eax
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4063e4
mov esi, 0x80004005
jmp 0x406434
xor eax, eax
mov word [ebp - 0x6c4], bx
mov ecx, 0x81
lea edi, [ebp - 0x6c2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x6c4]
push str._NoCrashMonitor___uninstallpath_s_
push eax
call fcn.00410e19
push ebx
push 1
push esi
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0xad4]
push eax
call fcn.00407c1f
add esp, 0x20
test eax, eax
jl 0x4063dd
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b0c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004102ee
leave
ret
Function at 0x406c1e
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x417ad1
call fcn.00410b5c
sub esp, 0x64
mov eax, dword [0x41d280]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
cmp dword [ebp - 0x68], edi
mov dword [ebp - 0x70], eax
jle 0x406d33
push ebx
push esi
mov dword [ebp - 0x6c], 0x3d
mov esi, 0x41879c
mov eax, dword [ebp - 0x70]
push dword [eax + edi*4]
lea ecx, [ebp - 0x2c]
call fcn.00402a16
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x48]
call fcn.00402a16
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00402a16
push 1
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00404673
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406cba
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401f0d
push esi
lea ecx, [ebp - 0x64]
call fcn.004028c5
jmp 0x406ce6
cmp ebx, 1
jbe 0x406ce6
lea eax, [ebx - 1]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401f0d
inc ebx
cmp ebx, dword [ebp - 0x18]
jae 0x406ce6
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401f0d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.00406b8e
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
call fcn.004024b1
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00401b0c
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401b0c
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b0c
inc edi
cmp edi, dword [ebp - 0x68]
jl 0x406c5d
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
pop edi
call fcn.004102ee
leave
ret

Function at 0x407bbc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41d280]
push 0x114
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004103a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x407c0a
cmp dword [ebp - 0x70], 2
jne 0x407c0a
xor eax, eax
inc eax
jmp 0x407c0c
xor eax, eax
mov ecx, dword [ebp + 0x94]
call fcn.004102ee
add ebp, 0x98
leave
ret
Function at 0x407c1f
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x407c37
mov eax, 0x80004005
jmp 0x407ccd
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
jne 0x407c45
mov esi, 0x41879c
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004103a0
add esp, 0xc
cmp dword [ebp + 0x14], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
je 0x407c74
call fcn.00407bbc
test eax, eax
mov dword [ebp - 0x30], str.runas
jne 0x407c7b
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x38], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x407cb9
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x407cb5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x407ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, 0x80004005
pop esi
pop ebx
pop edi
leave
ret

Function at 0x407d4a
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 8], 0
je 0x407d77
push dword [esp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407d77
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
ret

Function at 0x4082f5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jg 0x408315
mov eax, 0x80004005
jmp 0x408390
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407ce3
push dword [ebp - 0xc]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x408339
mov edi, 0x80004005
jmp 0x408386
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x41908c
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408332
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.00407cfc
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40854d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4085df
cmp dword [ebp + 0xc], esi
je 0x4085df
cmp dword [ebp + 0x10], esi
jle 0x4085df
push ebx
push esi
push 0x80
push 2
push esi
push esi
push 7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x40858e
mov esi, 0x80004005
jmp 0x4085d2
push edi
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push ebx
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4085c8
mov eax, dword [ebp + 8]
cmp eax, esi
jle 0x4085c8
sub dword [ebp + 0x10], eax
add edi, eax
cmp dword [ebp + 0x10], esi
jg 0x40859b
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x4085d1
mov dword [eax], edi
pop edi
lea ecx, [ebp - 4]
call fcn.00408223
mov eax, esi
pop ebx
jmp 0x4085e4
mov eax, 0x86180008
pop esi
leave
ret

Function at 0x4085e7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
push dword [ebp + 8]
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x408618
mov edi, 0x80004005
jmp 0x408628
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
lea ecx, [ebp - 4]
call fcn.00408223
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x408978
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4089a0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4089ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x4089e4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4089c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x4089e3
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call fcn.0040854d
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x4091a8
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x417cd7
call fcn.00410b5c
sub esp, 0x478
mov eax, dword [0x41d280]
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.00402a16
mov eax, dword [ebp - 0x18]
xor esi, esi
dec eax
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004083ec
cmp word [eax], 0x5c
je 0x4091f2
push 0x41908c
lea ecx, [ebp - 0x2c]
call fcn.004028a8
push 0x419120
lea ecx, [ebp - 0x2c]
call fcn.004028a8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40920b
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4092d8
push edi
push 0x208
lea eax, [ebp - 0x484]
push esi
push eax
call fcn.004103a0
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
add esp, 0xc
push 0x419088
lea eax, [ebp - 0x250]
push eax
call edi
test eax, eax
je 0x4092b7
push 0x419118
lea eax, [ebp - 0x250]
push eax
call edi
test eax, eax
je 0x4092b7
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x484]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x27c], 0x10
lea eax, [ebp - 0x484]
je 0x4092ae
push dword [ebp + 0x10]
push esi
push eax
call fcn.004091a8
add esp, 0xc
cmp dword [esi], 0
je 0x4092b7
lea eax, [ebp - 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4092b7
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004089e7
lea eax, [ebp - 0x27c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409243
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
pop edi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b0c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004102ee
leave
ret

Function at 0x40961d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.004091a8
add esp, 0xc
test esi, esi
pop esi
je 0x409656
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
leave
ret