joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push 1
push 0x118
call fcn.004056cd
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403ba2
push ebp
push esi
push edi
push ebx
push 0x40e474
call fcn.0040603e
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x403a8b
test byte [ebx], 0x10
je 0x403a70
lea eax, [ebx + 0x14]
mov edi, 0x40e470
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403a70
mov edi, 0x40e1b0
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403a70
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x403a70
push 1
push 0x104
call fcn.004056cd
mov esi, eax
add esp, 8
test esi, esi
je 0x403a70
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.00401070
push esi
mov edi, eax
call fcn.00405a1e
add esp, 8
test edi, edi
jne 0x403a70
mov eax, dword [esp + 0x14]
push eax
call fcn.004039c0
add esp, 4
push ebx
push ebp
call fcn.00406108
add esp, 8
test eax, eax
je 0x4039f6
push ebp
call fcn.004061cd
add esp, 4
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.0040603e
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x403ac8
test byte [ebx], 0x10
jne 0x403ab1
lea edx, [ebx + 0x14]
push edx
call fcn.00405f0c
add esp, 4
push ebx
push esi
call fcn.00406108
add esp, 8
test eax, eax
je 0x403aa0
push esi
call fcn.004061cd
add esp, 4
push 1
push 0x104
call fcn.004056cd
mov esi, eax
add esp, 8
test esi, esi
je 0x403b8b
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.00401070
push esi
mov edi, eax
call fcn.00405a1e
add esp, 8
test edi, edi
jne 0x403b8b
push ebx
push 0x40e474
mov dword [esp + 0x1c], 1
call fcn.0040603e
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x403b78
test byte [ebx], 0x10
je 0x403b5f
lea eax, [ebx + 0x14]
mov edi, 0x40e470
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403b4f
mov esi, eax
mov edi, 0x40e1b0
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403b5f
push ebx
push ebp
call fcn.00406108
add esp, 8
test eax, eax
je 0x403b23
jmp 0x403b67
mov dword [esp + 0x14], 0
push ebp
call fcn.004061cd
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x403b8b
call fcn.00403030
push ebx
call fcn.00405a1e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40e1b0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call fcn.00405a1e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403bb0
Capabilities:
Delete directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x10c
push edi
mov edi, dword [0x410c6c]
test edi, edi
je 0x403d01
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403d01
push ebx
push ebp
push 1
push 0x104
call fcn.004056cd
push 1
push 0x104
mov ebx, eax
call fcn.004056cd
mov ebp, dword [0x410c6c]
mov dword [esp + 0x1c], eax
add esp, 0x10
cmp byte [ebp], 0
je 0x403cec
push esi
push 0x23
push ebp
call fcn.004054e0
add esp, 8
test eax, eax
je 0x403c29
push 0x104
push ebp
push ebx
call fcn.00403880
add esp, 0xc
jmp 0x403c6b
mov ecx, dword [0x410c50]
mov edx, ebx
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403c31
push ebx
call fcn.00401800
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5c
push ebx
call fcn.004055a0
mov esi, eax
add esp, 8
test esi, esi
je 0x403ccf
push ebx
mov byte [esi], 0
call fcn.00401070
add esp, 4
test eax, eax
jne 0x403ccf
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call edi
test eax, eax
je 0x403ccf
inc esi
push esi
call fcn.004039c0
mov ecx, dword [0x410c50]
push ecx
call fcn.00401840
mov edx, dword [0x410c50]
add esp, 8
push edx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
jne 0x403c09
pop esi
mov eax, dword [esp + 0xc]
push eax
call fcn.00405a1e
push ebx
call fcn.00405a1e
add esp, 8
pop ebp
pop ebx
pop edi
add esp, 0x10c
ret
Function at 0x403d10
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x410c50]
push ebx
push esi
push eax
call fcn.00401840
mov ecx, dword [0x410c50]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 4
push ecx
call esi
push 0x40e1b0
call esi
mov edx, dword [0x410c50]
push edx
call fcn.00401800
mov eax, dword [0x410c80]
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [0x410c84]
xor ebx, ebx
mov byte [esp + 0xc], 0
test eax, eax
jbe 0x403f1c
mov edx, dword [0x410c54]
push ebp
push edi
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx]
test byte [ebp + 8], 2
jne 0x403f01
mov ecx, dword [ebp]
cmp byte [ecx], 0x2e
jne 0x403dcf
mov ecx, dword [0x410c50]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403d8e
mov eax, dword [ebp]
cmp byte [eax + 1], 0x5c
jne 0x403dd9
lea edi, [eax + 2]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x410c54]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403dd9
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403dcf
mov ecx, dword [ebp + 4]
mov edx, dword [0x410c54]
mov eax, edx
cmp byte [ecx], 0
je 0x403e3c
push edx
call fcn.00401800
mov edi, dword [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x410c54]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x410c54]
push eax
call fcn.004055a0
add esp, 0xc
test eax, eax
je 0x403ebe
mov byte [eax], 0
mov edx, dword [0x410c54]
test eax, eax
je 0x403ec4
push edx
call fcn.00401840
mov edx, dword [0x410c54]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004052b0
add esp, 0xc
test eax, eax
je 0x403ebe
xor edi, edi
mov eax, dword [0x410c54]
push eax
call fcn.00401070
add esp, 4
test eax, eax
jne 0x403ebe
mov ecx, dword [0x410c54]
push ecx
call fcn.00405ee2
add esp, 4
test eax, eax
jne 0x403ebe
mov esi, dword [0x410c54]
test edi, edi
jne 0x403eaa
lea edx, [esp + 0x14]
mov edi, 1
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403ea0
push 0x5c
push esi
call fcn.004055a0
add esp, 8
test eax, eax
je 0x403ebe
mov byte [eax], 0
jmp 0x403e64
mov edx, dword [0x410c54]
mov ecx, dword [0x410c98]
test ecx, ecx
je 0x403f01
mov edx, dword [0x410c7c]
mov eax, dword [0x410c74]
mov edi, dword [0x410c84]
add eax, edx
add eax, edi
xor edx, edx
add eax, ebx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
div ecx
push eax
call fcn.00402340
mov edx, dword [0x410c54]
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [0x410c84]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x10], ecx
jb 0x403d70
pop edi
pop ebp
mov ecx, dword [0x410c50]
push ecx
call fcn.00401800
add esp, 4
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x403f40
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00401800
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401530
add esp, 0x18
cmp eax, 0xffffffff
je 0x403f98
push eax
call fcn.004016a0
add esp, 4
or eax, 0xffffffff
jmp 0x403fa6
push esi
call fcn.00401580
add esp, 4
cmp eax, 0xffffffff
jne 0x403faf
inc ebx
cmp ebx, 0x3e7
jl 0x403f51
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403fc0
Capabilities:
Create process on windows
Create process suspended
Get common file path
Self delete
Set current directory
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword [0x410c50]
sub esp, 0x97c
push eax
call fcn.00401840
mov ecx, dword [0x410c54]
mov edx, dword [0x410cac]
add esp, 4
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x410c94]
push 0x208
test eax, eax
je 0x40400b
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x404019
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
lea edx, [esp + 0x160]
push esi
push edx
call fcn.00401840
add esp, 4
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x60]
push str.delme_d.bat
push ecx
call fcn.00403f40
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4041c2
mov eax, dword [0x410c50]
push ebp
lea edx, [esp + 0x64]
push edi
push edx
push eax
mov eax, dword [0x410c54]
lea ecx, [esp + 0x174]
push eax
push eax
push str._echo_off_r_n:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s__r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea edx, [esp + 0x57c]
lea eax, [esp + 0x16c]
push edx
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
lea ecx, [esp + 0x20]
push 0
push ecx
lea edi, [esp + 0x584]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x584]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x54], ax
mov eax, dword [0x410c94]
test eax, eax
je 0x404118
xor eax, eax
mov cl, byte [eax + str.cmd.exe__C__]
mov byte [esp + eax + 0x16c], cl
inc eax
test cl, cl
jne 0x404104
jmp 0x40412c
xor eax, eax
mov cl, byte [eax + str.command.com__C__]
mov byte [esp + eax + 0x16c], cl
inc eax
test cl, cl
jne 0x40411a
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x40e160]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0
mov word [edi - 1], ax
push 0
push 0
lea eax, [esp + 0x188]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop ebp
test eax, eax
je 0x4041b5
mov ecx, dword [esp + 8]
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call ebx
pop esi
pop ebx
add esp, 0x97c
ret
lea eax, [esp + 0x60]
push eax
call fcn.00405f0c
add esp, 4
pop esi
pop ebx
add esp, 0x97c
ret
Function at 0x40533c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405367
test byte [esp + 8], 0x80
je 0x405356
and al, 0xfe
jmp 0x405358
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x405378
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406526
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40549d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406526
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4054be
test byte [esp + 8], 2
je 0x4054be
mov dword [0x410cb8], 0xd
mov dword [0x410cbc], 5
jmp 0x405499
xor eax, eax
ret

Function at 0x409441
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410988
cmp edx, dword [eax]
je 0x409463
add eax, 8
inc ecx
cmp eax, 0x410a18
jl 0x409454
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410988]
jne 0x409591
mov eax, dword [0x410d0c]
cmp eax, 1
je 0x40956b
test eax, eax
jne 0x409494
cmp dword [0x40e524], 1
je 0x40956b
cmp edx, 0xfc
je 0x409591
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4094cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004086f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a790
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40950e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a790
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c63c
push edi
call fcn.00405f40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004086f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408700
lea eax, [ebp - 0xa0]
push 0x40c61c
push eax
call fcn.00408700
push dword [esi + 0x41098c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408700
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a80b
add esp, 0x2c
pop edi
jmp 0x409591
lea eax, [ebp + 8]
lea esi, [esi + 0x41098c]
push 0
push eax
push dword [esi]
call fcn.0040a790
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401120
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x82c
mov eax, dword [0x434480]
xor eax, esp
mov dword [esp + 0x828], eax
mov eax, dword [esp + 0x834]
push ebx
mov ebx, dword [esp + 0x83c]
push ebp
mov ebp, dword [esp + 0x848]
push esi
mov esi, dword [esp + 0x848]
push edi
mov edi, dword [esp + 0x840]
push eax
push 0x436920
lea eax, [esp + 0x20]
push 0x42a304
push eax
call fcn.00405500
lea eax, [esp + 0x230]
push esi
push eax
call fcn.00402460
add esp, 0x18
test eax, eax
jne 0x4011b4
push esi
push str.An_error_occurred_while_attempting_to_find_the_path_to__s._n
call fcn.00404f40
cmp byte [esi], 0x64
mov ecx, str.in_the_Start_menu
mov eax, str.on_the_desktop
cmovne eax, ecx
push eax
push edi
push str.An_error_has_occurred.__A_shortcut_to__s_will_not_be_created__s._n
call fcn.00404f40
add esp, 0x14
jmp 0x4012ec
lea eax, [esp + 0x220]
push eax
call fcn.004135c4
push edi
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x63c]
push str._s_s.lnk
push eax
call fcn.00405500
add esp, 0x14
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4011fd
push str.Error:__Could_not_open_the_COM_library.__Not_creating_shortcut._n
call fcn.00404f40
add esp, 4
jmp 0x4012ec
lea eax, [esp + 0x10]
push eax
push 0x42ad80
push 1
push 0
push 0x42ada0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4012de
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x42ad90
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4012cf
push 0x208
lea eax, [esp + 0x224]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x63c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x220]
push 1
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, 1
jmp 0x4012ee
push str.QueryInterface_Error_n
call fcn.00404f40
add esp, 4
jmp 0x4012ec
push eax
push str.CoCreateInstance_Error___hres___08x_n
call fcn.00404f40
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x838]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004060be
add esp, 0x82c
ret
Function at 0x4020c0
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
push edi
push dword [0x436908]
call fcn.00404d80
push 0x428a10
call fcn.00414f25
mov edi, dword [esp + 0x18]
add esp, 8
mov esi, 0x433248
push dword [esi - 0x14]
call fcn.00405100
add esp, 4
mov dword [esi], eax
test edi, edi
jne 0x402103
push dword [esi - 0xc]
call fcn.00405100
add esp, 4
mov dword [esi + 4], eax
cmp dword [0x434f88], 0
jne 0x40215c
mov eax, dword [esi]
test eax, eax
je 0x40215c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402115
sub eax, edx
inc eax
push eax
call fcn.00411600
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4021fd
mov edx, dword [esi]
mov dword [0x434f88], ecx
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x402140
push dword [0x434f88]
call fcn.00404f70
add esp, 4
test edi, edi
je 0x402175
mov eax, dword [esi]
test eax, eax
je 0x402175
push eax
call fcn.004115f0
add esp, 4
mov dword [esi], 0
add esi, 0x228
cmp esi, 0x434388
jl 0x4020e4
mov cl, byte [0x436920]
mov eax, 0x436920
test cl, cl
je 0x4021f9
cmp byte [0x436921], 0x3a
jne 0x4021eb
mov ax, word [0x428a14]
mov word [esp + 8], ax
mov al, byte [0x428a16]
push ebx
movsx ebx, cl
mov byte [esp + 0xe], al
lea edx, [ebx - 0x61]
lea eax, [ebx - 0x20]
cmp edx, 0x19
movzx ecx, al
movzx eax, bl
cmova ecx, eax
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x10], cl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebx
test eax, eax
je 0x4021f9
cmp byte [0x436922], 0
mov eax, 0x436922
je 0x4021f9
pop edi
pop esi
add esp, 4
mov dword [esp + 4], eax
jmp fcn.00414f25
pop edi
pop esi
pop ecx
ret
push str.ERROR:_out_of_memory_n
call fcn.00404f40
add esp, 4
push 1
call fcn.00411951
int3
Function at 0x402220
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, 0x436920
push edi
mov edi, dword [ebp]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402232
sub esi, ecx
test edi, edi
je 0x402329
push esi
push 0x436920
push edi
call fcn.004149f3
add esp, 0xc
test eax, eax
jne 0x402329
movsx eax, byte [esi + edi]
add esi, edi
push eax
push 0x428be4
call fcn.00406c20
add esp, 8
inc esi
test eax, eax
je 0x402329
push 0x5c
push esi
call fcn.00406c20
add esp, 8
test eax, eax
jne 0x402329
push 0x2f
push esi
call fcn.00406c20
add esp, 8
test eax, eax
jne 0x402329
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4022a2
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00401070
add esp, 4
mov edi, eax
mov edx, esi
sub eax, esi
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x4022c0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4022d2
sub ecx, edx
push 0
push edi
mov byte [ecx + edi - 1], 0x78
call fcn.00414b2b
add esp, 8
push edi
push esi
test eax, eax
je 0x40232d
call fcn.0040a013
add esp, 8
test eax, eax
jne 0x402342
push ebx
push esi
call fcn.00405100
push esi
push edi
mov ebx, eax
call fcn.0040a013
add esp, 0xc
test eax, eax
jne 0x402360
push dword [ebp]
call fcn.004115f0
push edi
call fcn.004115f0
add esp, 8
mov dword [ebp], ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push edi
push str._nERROR:__s_and__s_clash.__Remove_or_rename__s._n
call fcn.00404f40
add esp, 0x10
push 1
call fcn.00404df0
push 0
call fcn.00412ac2
push eax
push edi
push esi
push str._nERROR:_failed_to_rename__s_to__s:__s_n
call fcn.00404f40
add esp, 0x14
push 1
call fcn.00404df0
push 0
call fcn.00412ac2
push eax
push esi
push edi
push str._nERROR:_failed_to_rename__s_back_to__s:__s_n
call fcn.00404f40
add esp, 0x14
push 1
call fcn.00404df0
int3
Function at 0x4026e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x434480]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
push str.VIMRUNTIME
call fcn.00412872
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40278a
cmp byte [ecx], 0
je 0x40278a
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402717
sub edx, esi
cmp edx, 0x208
jae 0x40278a
lea edx, [esp + 0x210]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402731
lea ecx, [esp + 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402748
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x402781
nop dword [eax + eax]
lea edx, [esp + 0x210]
mov cl, byte [edx + eax]
cmp cl, 0x2f
je 0x40277d
cmp cl, 0x5c
je 0x40277d
dec eax
test eax, eax
jg 0x402760
mov esi, edx
jmp 0x4027b1
mov byte [edx + eax], 0
lea esi, [esp + 0x210]
jmp 0x4027b1
push 0x428c78
call fcn.00412872
mov esi, eax
add esp, 4
test esi, esi
je 0x4027a2
cmp byte [esi], 0
jne 0x4027b1
mov eax, dword [0x434f8c]
mov esi, 0x42844e
test eax, eax
cmovne esi, eax
lea eax, [esp + 8]
push eax
push 0x1fc
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4027c8
sub ecx, edx
test ecx, ecx
jle 0x4027f9
mov al, byte [esp + ecx + 7]
cmp al, 0x5c
je 0x4027f9
cmp al, 0x2f
je 0x4027f9
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4027e6
mov ax, word [0x428a10]
mov word [edi], ax
lea ecx, [esp + 8]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402800
mov eax, dword [str.vimini.ini]
mov dword [ecx], eax
mov eax, dword [0x428c80]
mov dword [ecx + 4], eax
mov ax, word [0x428c84]
mov word [ecx + 8], ax
mov al, byte [0x428c86]
mov byte [ecx + 0xa], al
lea eax, [esp + 8]
push 0x4289cc
push eax
call fcn.00409a71
mov edi, eax
add esp, 8
test edi, edi
je 0x40287a
push str._vimini__n
push edi
call fcn.00402380
push esi
push str.dir__s__n
push edi
call fcn.00402380
push edi
call fcn.00409628
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004060be
add esp, 0x414
ret
lea eax, [esp + 8]
push eax
push str.Failed_to_open__s_n
call fcn.00404f40
add esp, 8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.004060be
add esp, 0x414
ret
Function at 0x404d80
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
test al, al
je 0x404de7
cmp byte [esi + 1], 0x3a
jne 0x404ddc
push ebx
movsx ebx, al
mov ax, word [0x428a14]
mov word [esp + 0xc], ax
mov al, byte [0x428a16]
mov byte [esp + 0xe], al
lea edx, [ebx - 0x61]
lea eax, [ebx - 0x20]
cmp edx, 0x19
movzx ecx, al
movzx eax, bl
cmova ecx, eax
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x10], cl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebx
test eax, eax
jne 0x404dd4
or eax, 0xffffffff
pop esi
ret
add esi, 2
cmp byte [esi], 0
je 0x404de7
push esi
call fcn.00414f25
add esp, 4
pop esi
ret
xor eax, eax
pop esi
ret