joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x40f2dc]
mov edx, dword [0x40f2e0]
push esi
push 0x17
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x40f2e4]
mov dword [eax + 4], edx
mov edx, dword [0x40f2e8]
mov dword [eax + 8], ecx
lea esi, [ebp - 0x20c]
mov dword [eax + 0xc], edx
call fcn.004017a0
add esp, 0x14
push 0x411f9c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov ecx, esi
push ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov word [ebp + eax*2 - 0x20a], dx
lea edx, [ebp - 0x22c]
mov eax, esi
mov ecx, 0x614
push edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], 3
mov word [ebp - 0x21c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret

Function at 0x403380
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0040ca90
mov eax, dword [ebp + 0x14]
mov edx, eax
shr edx, 0x18
push edx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
push edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
mov eax, dword [ebp + 0xc]
push edx
mov ecx, eax
shr ecx, 0x10
push ecx
movzx edx, ax
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp - 0x414]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x40
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x20c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [ebp + 8]
call fcn.00401720
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x403480
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x620]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push 0x80000001
mov dword [ebp - 0x620], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4036a4
push 0x206
lea edx, [ebp - 0x412]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x62c], 0x104
mov word [ebp - 0x414], cx
call fcn.0040ca90
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
mov ecx, dword [ebp - 0x620]
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x403697
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x620]
lea edx, [ebp - 0x624]
push edx
push 0xf003f
push ebx
lea eax, [ebp - 0x20c]
push eax
push ecx
mov dword [ebp - 0x624], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403662
mov ecx, dword [ebp - 0x624]
lea edx, [ebp - 0x630]
push edx
lea eax, [ebp - 0x414]
push eax
push ebx
push ebx
push str.CLSID
push ecx
mov dword [ebp - 0x630], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403655
push 0x206
lea eax, [ebp - 0x61a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x61c], dx
call fcn.0040ca90
mov eax, dword [ebp + 0x14]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
mov eax, dword [ebp + 0x10]
push edx
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
mov eax, dword [ebp + 0xc]
push edx
mov ecx, eax
shr ecx, 0x10
push ecx
movzx edx, ax
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp - 0x61c]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push ecx
call edi
add esp, 0x40
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x403655
mov ecx, dword [ebp - 0x624]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x620]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x403668
mov ecx, dword [ebp - 0x624]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x628]
mov ecx, dword [ebp - 0x628]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x62c]
push edx
mov edx, dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x403540
pop edi
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 8]
call fcn.00401720
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x4036c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ed48
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41507c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00402c80
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
add esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00402ac0
sub esp, 0x54
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
lea ecx, [ebp + 8]
call fcn.00403800
call fcn.00402e90
add esp, 0x74
cmp dword [ebp + 0x7c], 0
je 0x40379d
sub esp, 0x74
mov ecx, esp
mov dword [ebp + 0x7c], esp
push ecx
lea ecx, [ebp + 8]
call fcn.00403800
call fcn.004030e0
add esp, 0x74
call fcn.004032a0
sub esp, 0x74
mov edx, esp
mov dword [ebp + 0x7c], esp
push edx
lea ecx, [ebp + 8]
call fcn.00403800
call fcn.00403380
mov eax, esp
mov dword [ebp + 0x7c], esp
push eax
lea ecx, [ebp + 8]
call fcn.00403800
call fcn.00403480
add esp, 0x74
push str.SoftwareIime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [ebp + 8]
call fcn.00401720
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x412600
push 0x105
push esi
call edi
push 0x412614
push 0x106
push esi
call edi
push 0x412654
push 0x107
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x109
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push eax
call ebx
push 0x10a
push esi
call edi
push 1
push eax
call ebx
push 0x108
push esi
call edi
push 0
push eax
call ebx
push 0x10b
push esi
call edi
push 0
push eax
call ebx
push 0x10c
push esi
call edi
push 0
push eax
call ebx
push 0x412688
push 0x10d
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x111
push esi
call edi
mov ebx, eax
push 0x4126c0
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x110
push esi
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebx
ret
Function at 0x403e20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x4126d4
push 0x105
push esi
call edi
push 0x4126e8
push 0x106
push esi
call edi
push 0x412724
push 0x107
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x109
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x10a
push esi
call edi
push 0
push eax
call ebx
push 0x10a
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
neg eax
sbb eax, eax
push 0x108
inc eax
push esi
mov dword [0x416abc], eax
call edi
push 0x690000
push 0
push 0x401
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
push 0
push 0xf
push 0x404
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
push 0
push ecx
call ebx
push 0x10b
push esi
call edi
push 1
push eax
call ebx
push 0x10c
push esi
call edi
push 1
push eax
call ebx
push 0x412688
push 0x10d
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x111
push esi
call edi
mov ebx, eax
push 0x4126c0
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x110
push esi
call edi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403f40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x10b
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x403fc3
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403fa3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
mov ecx, 0x415cb0
call fcn.00401c00
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x412744
push 0x105
push esi
call edi
push 0x412758
push 0x106
push esi
call edi
push str._vz_N
push 0x107
push esi
call edi
push 0x4127b8
push 0x10d
push esi
call edi
push 0x4127e8
push 0x111
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x108
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x10b
push esi
call edi
push eax
call ebx
push 0
push 0x10c
push esi
call edi
push eax
call ebx
push 1
push 0x110
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x4041e0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x112
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
call ebx
push 0x111
push esi
call edi
push 0
push eax
call ebx
push 0x110
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x10b
push esi
call edi
push 0
push eax
call ebx
push 0x10c
push esi
call edi
push 0
push eax
call ebx
push 0
push 0
push esi
push 0x404060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
ret
Function at 0x404f20
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
mov eax, dword [0x415c38]
mov esi, 8
add esp, 0xc
cmp dword [0x415c4c], esi
jae 0x404f6a
mov eax, 0x415c38
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x415c54]
cmp dword [0x415c68], esi
jae 0x404f8a
mov eax, 0x415c54
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [ebp - 0x20c]
push edx
call edi
test eax, eax
jne 0x404fd5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Iime
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x20c]
push edx
call edi
pop edi
pop esi
test eax, eax
je 0x405061
xor eax, eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x22c], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
lea ecx, [ebp - 0x22c]
lea edx, [ebp - 0x20c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], 3
mov word [ebp - 0x21c], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret

Function at 0x405070
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
mov dword [ebp - 4], 0
call fcn.00401910
add esp, 4
test eax, eax
je 0x4050b2
push 2
call fcn.00401910
add esp, 4
test eax, eax
mov eax, str.D:_A_OICI_GRGWGX___AU__A_OICI_GA___BA__A_OICI_GA___SY__A_OICI_GA___WD__A_OICI_GA___AC_
jne 0x4050a3
mov eax, str.D:_A_OICI_GRGWGX___AU__A_OICI_GA___BA__A_OICI_GA___SY__A_OICI_GA___WD_
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x4050e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
mov eax, dword [0x415cb0]
add esp, 0xc
cmp dword [0x415cc4], 8
jae 0x405124
mov eax, 0x415cb0
push esi
push edi
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Iime
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x20c]
push ecx
call edi
test eax, eax
jne 0x405180
lea edx, [ebp - 0x20c]
push edx
call fcn.00405070
add esp, 4
test eax, eax
jne 0x405180
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
push str.Skin
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
call edi
test eax, eax
jne 0x4051ae
lea edx, [ebp - 0x20c]
push edx
call fcn.00405070
add esp, 4
test eax, eax
je 0x40516e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x405470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
mov eax, dword [0x415c38]
add esp, 0xc
cmp dword [0x415c4c], 8
jae 0x4054b4
mov eax, 0x415c38
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea edx, [ebp - 0x20c]
push edx
call edi
cmp dword [0x415c68], 8
mov eax, dword [0x415c54]
jae 0x4054d9
mov eax, 0x415c54
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405522
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Iime
lea ecx, [ebp - 0x20c]
push ecx
call esi
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.0040ca90
mov eax, dword [0x415cb0]
add esp, 0xc
cmp dword [0x415cc4], 8
jae 0x405553
mov eax, 0x415cb0
push eax
lea ecx, [ebp - 0x414]
push ecx
call edi
push str.Iime
lea edx, [ebp - 0x414]
push edx
call esi
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004051d0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x405650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
cmp dword [0x416ab8], esi
je 0x405772
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.0040ca90
mov eax, dword [0x415c38]
add esp, 0x18
cmp dword [0x415c4c], 8
jae 0x4056bf
mov eax, 0x415c38
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call edi
cmp dword [0x415c68], 8
mov eax, dword [0x415c54]
jae 0x4056e2
mov eax, 0x415c54
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea edx, [ebp - 0x20c]
push edx
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40572b
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Iime
lea eax, [ebp - 0x20c]
push eax
call esi
cmp dword [0x415cc4], 8
mov eax, dword [0x415cb0]
jae 0x40573e
mov eax, 0x415cb0
push eax
lea ecx, [ebp - 0x414]
push ecx
call edi
push str.Iime
lea edx, [ebp - 0x414]
push edx
call esi
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [0x416abc], 0
je 0x4057c7
test esi, esi
je 0x4057de
call fcn.004050e0
test eax, eax
jne 0x40579d
mov eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
call fcn.00405470
test eax, eax
jne 0x4057c0
mov dword [0x416abc], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
call fcn.00404f20
jmp 0x4057de
cmp dword [0x416ab8], 0
je 0x4057d5
call fcn.00404f20
call fcn.004050e0
test eax, eax
je 0x405788
cmp dword [0x416ab8], 0
je 0x405806
push esi
sub esp, 0x74
mov edx, esp
mov dword [ebp - 0x620], esp
push edx
mov ecx, 0x415c18
call fcn.00403800
call fcn.004036c0
add esp, 0x78
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x61a]
push ecx
mov word [ebp - 0x61c], ax
call fcn.0040ca90
add esp, 0xc
lea edi, [ebp - 0x61c]
call fcn.004055a0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405834
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x61c]
mov ecx, 0x415ce8
call fcn.00401c00
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x405920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
push str.BUFFER_FILE_MAPPING
mov ebx, eax
mov eax, dword [ebx]
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x40594c
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4059c6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
add ecx, 0xfffffff7
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], eax
mov al, byte [ebx + 8]
lea ecx, [ebx + 9]
push esi
lea edx, [ebp - 8]
lea ebx, [ebp - 4]
mov byte [ebp - 0x14], al
call fcn.00408b60
add esp, 0xc
test eax, eax
jne 0x4059bf
cmp dword [ebp - 4], eax
je 0x4059bf
push eax
push 0x80
push 2
push eax
push eax
mov eax, dword [ebp + 8]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4059d6
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push esi
push ebx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebx
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret