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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.XLGameUninstall_
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
lea ecx, [ebp - 0x228]
call fcn.00402126
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
call fcn.00417190
pop ecx
test al, al
jne 0x4053f7
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
call fcn.004171d1
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push ecx
cmovae eax, dword [ebp - 0x228]
push eax
call fcn.00405578
lea ecx, [ebp - 0x228]
call fcn.004021e1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00418ae7
leave
ret 8

Function at 0x405411
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x50], edi
jle 0x40551b
push dword [eax + edi*4]
lea ecx, [ebp - 0x34]
call fcn.00402126
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x38], 7
mov esi, 0x447264
mov word [ebp - 0x4c], ax
push esi
call fcn.0040220f
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 8], 7
push esi
mov word [ebp - 0x1c], ax
call fcn.0040220f
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x24]
cmovae ecx, dword [ebp - 0x34]
test eax, eax
je 0x4054ad
mov esi, ecx
cmp word [esi], 0x3a
je 0x40552e
add esi, 2
sub eax, 1
jne 0x40549b
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004062f3
push 0x447264
lea ecx, [ebp - 0x1c]
call fcn.0040220f
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00406698
mov ecx, dword [eax]
lea eax, [ebp - 0x1c]
add ecx, 0x28
cmp ecx, eax
je 0x4054f6
cmp dword [ebp - 8], 8
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.00402236
lea ecx, [ebp - 0x1c]
call fcn.004021e1
lea ecx, [ebp - 0x4c]
call fcn.004021e1
lea ecx, [ebp - 0x34]
call fcn.004021e1
mov eax, dword [ebp - 0x54]
inc edi
cmp edi, dword [ebp - 0x50]
jl 0x405443
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ae7
leave
ret 8
test esi, esi
je 0x4054ad
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4054ad
cmp esi, 1
jbe 0x4054ca
lea eax, [esi - 1]
push eax
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004062f3
inc esi
cmp esi, dword [ebp - 0x24]
jae 0x4054ca
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004062f3
jmp 0x4054ca
Function at 0x4057df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00404a24
mov edi, 0x208
lea eax, [ebp - 0x210]
push edi
xor esi, esi
push esi
push eax
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x210]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x447bd8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x44e010]
test eax, eax
je 0x405849
lea ecx, [ebp - 0x210]
push ecx
call eax
lea ecx, [ebp - 0x448]
call fcn.00408da0
cmp dword [ebp - 0x434], 0x10
lea eax, [ebp - 0x448]
mov ecx, dword [0x44e008]
cmovae eax, dword [ebp - 0x448]
test ecx, ecx
je 0x405875
push eax
call ecx
push edi
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x418]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2e
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.0041701a
mov ecx, dword [0x44e01c]
lea eax, [ebp - 0x430]
add esp, 0xc
cmp dword [ebp - 0x41c], 8
cmovae eax, dword [ebp - 0x430]
test ecx, ecx
je 0x4058da
push eax
push str.xlgameuninstall
push esi
push esi
push 0x447c3c
call ecx
mov eax, dword [0x44e00c]
test eax, eax
je 0x4058e7
push 1
call eax
mov ecx, dword [0x44e018]
test ecx, ecx
je 0x4058f5
push 1
call ecx
lea ecx, [ebp - 0x430]
call fcn.004021e1
lea ecx, [ebp - 0x448]
call fcn.004022b0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ae7
leave
ret
Function at 0x405af1
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28c], ecx
push edi
test esi, esi
je 0x405cbf
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402126
push 0x447c50
lea ecx, [ebp - 0x1c]
call fcn.004062cc
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x288]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
jmp 0x405c74
mov edx, ebx
lea ecx, [ebp - 0x25c]
call fcn.0040591c
test eax, eax
je 0x405b74
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x405c74
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040220f
push 0x4477d0
lea ecx, [ebp - 0x1c]
call fcn.004062cc
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004062cc
test byte [ebp - 0x288], 0x10
lea eax, [ebp - 0x1c]
je 0x405bf8
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x28c]
cmovae eax, dword [ebp - 0x1c]
push ebx
push eax
call fcn.00405af1
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push str.RemoveDirectory_dir__s
push 0x3ff
push str.CUnity::CleanDirectory
push str.D:Code_thunder11xlgamecppsrcXLGameUninstallUnity.cpp
push 4
call fcn.004016ce
add esp, 0x18
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c74
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405c74
and dword [ebp - 0x24], eax
lea ecx, [ebp - 0x34]
and dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004063ea
lea ecx, [ebp - 0x1c]
jmp 0x405c3b
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405c4e
lea ecx, [ebp - 0x34]
push 0x447cb8
call fcn.004062cc
cmp dword [ebp - 0x24], 0x104
jb 0x405c22
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x34]
cmp dword [ebp - 8], 8
push ecx
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x34]
call fcn.004021e1
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405b51
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push str.RemoveDirectory_dir__s
push 0x41c
push str.CUnity::CleanDirectory
push str.D:Code_thunder11xlgamecppsrcXLGameUninstallUnity.cpp
push 4
call fcn.004016ce
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x1c]
call fcn.004021e1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ae7
leave
ret 8
Function at 0x405cd0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 0x208
push 0
push eax
call fcn.0041a810
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x20c]
add esp, 0xc
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x405d09
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405d41
mov eax, 0x80004005
jmp 0x405e0a
push edi
push 0x228
lea eax, [ebp - 0x63c]
push 0
push eax
call fcn.0041a810
add esp, 0xc
mov dword [ebp - 0x640], 0x22c
lea eax, [ebp - 0x640]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x405df8
push ebx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x405dea
push dword [ebp - 0x638]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405dea
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00421291
pop ecx
pop ecx
test eax, eax
je 0x405e1a
lea eax, [ebp - 0x640]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405d75
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ae7
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x405e07
Function at 0x405e2c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
push 0x208
xor esi, esi
mov dword [ebp - 0x874], edi
push esi
push eax
call fcn.0041a810
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x418]
add esp, 0xc
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x405e6d
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x405e85
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004220b1
pop ecx
pop ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406086
push 0x228
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x870], 0x22c
push esi
push eax
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x406073
push 0x208
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0041a810
add esp, 0xc
push dword [ebp - 0x868]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405f35
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x210]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x405f40
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004220b1
xor eax, eax
mov dword [ebp - 0x420], esi
pop ecx
pop ecx
mov word [ebp - 0x430], ax
lea ecx, [ebp - 0x430]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x41c], 7
push eax
call fcn.0040220f
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
push eax
push dword [ebp - 0x868]
push str._FindProcessByPath__enum__d___s
push 0x467
push str.CUnity::FindProcessByPath
push str.D:Code_thunder11xlgamecppsrcXLGameUninstallUnity.cpp
push 4
call fcn.004016ce
add esp, 0x18
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0x430]
push eax
call fcn.00406248
cmp eax, 0xffffffff
je 0x40605a
push 0x208
lea eax, [ebp - 0x63c]
push esi
push eax
call fcn.0041a810
mov eax, dword [ebp - 0x868]
cmp dword [ebp - 0x41c], 8
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
push 0x103
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00421e67
mov eax, dword [edi + 4]
add esp, 0x18
cmp eax, dword [edi + 8]
je 0x40604b
mov ecx, 0x83
lea esi, [ebp - 0x640]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x874]
add dword [edi + 4], 0x20c
xor esi, esi
jmp 0x40605a
lea ecx, [ebp - 0x640]
push ecx
push eax
mov ecx, edi
call fcn.00406585
lea ecx, [ebp - 0x430]
call fcn.004021e1
lea eax, [ebp - 0x870]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405eec
test ebx, ebx
je 0x406086
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ae7
leave
ret 8
Function at 0x406ecb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
call fcn.00404b43
call fcn.004057df
mov esi, str.XLGameUninstall_C47D7A66_9759_498B_AF1B_37B9001083EE
xor edi, edi
push esi
push edi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x406f1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.xlgameuninstall_is_running
push 0x35
push str.wWinMain
push str.D:Code_thunder11xlgamecppsrcXLGameUninstallXLGameUninstall.cpp
push 4
call fcn.004016ce
add esp, 0x14
or eax, 0xffffffff
jmp 0x406f81
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push dword [ebp + 0x10]
mov esi, eax
call fcn.00404b43
mov ecx, eax
call fcn.004051a5
test eax, eax
jne 0x406f17
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x406f7f
cmp dword [0x44e000], edi
jne 0x406f5b
push 1
call fcn.00418f64
pop ecx
mov dword [0x44e000], eax
call fcn.00401f5a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x406f79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407d50
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0x23
lea eax, [ebp - 0x108]
mov edi, ecx
push eax
mov dword [ebp - 0x10c], edi
push 0
mov dword [ebp - 0x10c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x407d9d
push str.c:windows_temp
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
jne 0x407dc2
push 0
lea eax, [ebp - 0x108]
push eax
call esi
push str.Thunder_Network
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x407ded
push 0
lea eax, [ebp - 0x108]
push eax
call esi
push str.DownloadLib
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x407e18
push 0
lea eax, [ebp - 0x108]
push eax
call esi
lea esi, [ebp - 0x108]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea ecx, [esi + 1]
mov byte [edi], 0
mov al, byte [esi]
inc esi
test al, al
jne 0x407e32
sub esi, ecx
cmp esi, 0xf
ja 0x407e5a
push esi
lea eax, [ebp - 0x108]
mov dword [edi + 0x10], esi
push eax
push edi
call fcn.0041a970
mov byte [edi + esi], 0
jmp 0x407eeb
cmp esi, 0x7fffffff
ja 0x407f01
mov ebx, esi
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x407e97
mov ebx, 0x7fffffff
mov ecx, 0x80000023
push ecx
call fcn.00418f64
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x407f0b
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x407ec5
mov eax, 0x16
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x1000
jb 0x407eb4
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x407f06
jmp 0x407e7d
test eax, eax
je 0x407ec3
push eax
call fcn.00418f64
add esp, 4
jmp 0x407ec5
xor eax, eax
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x10c], eax
push ecx
push eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ebx
call fcn.0041a290
mov eax, dword [ebp - 0x10c]
mov byte [eax + esi], 0
mov dword [edi], eax
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00418ae7
mov esp, ebp
pop ebp
ret
call fcn.0040145c
call fcn.00401423
call fcn.0042113f
int3
Function at 0x40ad30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4387e0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x44c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x3c], 1
je 0x40ada2
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40ad6d
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
add edx, ecx
jmp 0x40ad77
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x1c]
mov edx, dword [eax]
add edx, dword [ecx]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
sub edx, eax
cmp edx, 0x1000
jb 0x40ad98
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40adf3
mov eax, ecx
push edx
push eax
call fcn.00418f2e
add esp, 8
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
and dword [esi + 0x3c], 0xfffffffe
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042113f
int3
Function at 0x415770
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea ebx, [edi + 0x10]
mov eax, edi
mov dword [ebx], 0
mov dword [ebp - 0x88], ebx
cmp dword [edi + 0x14], 0x10
jb 0x4157a0
mov eax, dword [edi]
push 0x64
mov byte [eax], 0
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0041a810
add esp, 0xc
lea eax, [ebp - 0x84]
push 0
push 0
push 0
push 0
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x448468
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4157e9
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418ae7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x84]
mov eax, ecx
push esi
shr eax, 0x18
push 0
push 0
push eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
push eax
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.00415730
lea esi, [ebp - 0x18]
add esp, 0x20
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x415827
sub esi, ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x8c], ecx
cmp esi, ecx
ja 0x41586b
cmp ecx, 0x10
jb 0x415844
mov edi, dword [edi]
push esi
lea eax, [ebp - 0x18]
mov dword [ebx], esi
push eax
push edi
call fcn.0041a970
add esp, 0xc
mov byte [esi + edi], 0
mov al, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418ae7
mov esp, ebp
pop ebp
ret
cmp esi, 0x7fffffff
ja 0x41595d
mov ebx, esi
or ebx, 0xf
cmp ebx, 0x7fffffff
ja 0x4158b3
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x4158b3
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea ecx, [ebx + 1]
cmp ecx, 0x1000
jb 0x4158db
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x415962
jmp 0x4158bd
mov ebx, 0x7fffffff
mov eax, 0x80000023
push eax
call fcn.00418f64
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x415958
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4158ec
test ecx, ecx
je 0x4158ea
push ecx
call fcn.00418f64
add esp, 4
jmp 0x4158ec
xor eax, eax
mov ecx, dword [ebp - 0x88]
push esi
mov dword [ebp - 0x80], eax
mov dword [edi + 0x14], ebx
mov dword [ecx], esi
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0041a290
mov ebx, dword [ebp - 0x80]
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov byte [ebx + esi], 0
cmp eax, 0x10
jb 0x415943
lea ecx, [eax + 1]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x415939
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415958
mov eax, edx
push ecx
push eax
call fcn.00418f2e
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
mov dword [edi], ebx
xor ecx, ebp
pop edi
pop ebx
call fcn.00418ae7
mov esp, ebp
pop ebp
ret
call fcn.0042113f
call fcn.0040145c
call fcn.00401423
int3
Function at 0x41701a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x44c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], esi
test edi, edi
je 0x417118
xor eax, eax
cmp ax, word [edi]
je 0x417118
xor ebx, ebx
push ebx
push edi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x45], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x417111
inc eax
push eax
call fcn.00418f94
mov dword [ebp - 0x60], eax
pop ecx
test eax, eax
je 0x417111
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], ebx
push ebx
push edi
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_GetFileVersionInfoW
mov edi, dword [ebp - 0x60]
test eax, eax
je 0x4170d5
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x5c], ebx
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0x34
push eax
push 0x4477d0
push edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4170d5
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 0x45], 1
movzx ecx, word [eax + 0xc]
movzx ebx, word [eax + 8]
mov dword [ebp - 0x58], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xa]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
push edi
call fcn.00418f5f
cmp byte [ebp - 0x45], 0
pop ecx
je 0x417111
mov eax, dword [ebp - 0x58]
movzx ecx, word [ebp + 0x10]
movzx eax, ax
push eax
push ecx
push dword [ebp - 0x50]
movzx eax, bx
push ecx
push eax
push ecx
push dword [ebp - 0x54]
lea eax, [ebp - 0x44]
push 0x43a344
push eax
call fcn.00417147
add esp, 0x24
lea eax, [ebp - 0x44]
push eax
jmp 0x417129
push 0x447264
jmp 0x417129
push 0x132b3a1
call fcn.00417268
mov dword [esp], 0x447264
mov ecx, esi
call fcn.00402126
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ae7
leave
ret

Function at 0x417190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4171c1
xor eax, eax
cmp ax, word [esi]
je 0x4171c1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4171cc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4171cc
test al, 0x10
je 0x4171cc
mov al, 1
jmp 0x4171ce
push 0x132b3a1
call fcn.00417268
pop ecx
xor al, al
pop esi
pop ebp
ret
Function at 0x4171d1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x4394c7
call fcn.00419492
mov esi, dword [ebp + 8]
test esi, esi
je 0x417260
xor eax, eax
cmp ax, word [esi]
je 0x417260
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417206
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417206
test al, 0x10
jne 0x41725c
xor ebx, ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41725c
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004173d8
pop ecx
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x417250
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004171d1
pop ecx
test al, al
je 0x417250
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 0x28]
call fcn.004021e1
mov al, bl
jmp 0x417262
mov al, 1
jmp 0x417262
xor al, al
call fcn.0041944d
ret