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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b250
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], edx
mov ebx, ecx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.0040f7f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], 1
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x40280f
push 0x80070057
call fcn.0040fbb0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x40282c
push esi
lea ecx, [ebp + 8]
call fcn.0040f980
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00559c55
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x402805
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
or edi, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ecx
jl 0x40289d
push str._GAMEDIR_
push eax
call fcn.00558e99
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x40289d
sub ecx, eax
sar ecx, 1
cmp ecx, edi
je 0x40289d
lea eax, [ecx + 9]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp + 8]
call fcn.0040c090
mov byte [ebp - 4], 2
push dword [eax]
mov eax, dword [ebp - 0x220]
push dword [eax]
jmp 0x402920
cmp dword [eax - 0xc], 0
jl 0x402954
push str._APPDATA_
push eax
call fcn.00558e99
mov esi, eax
add esp, 8
test esi, esi
je 0x402951
mov eax, dword [ebp + 8]
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x402954
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esi + 9]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp + 8]
call fcn.0040c090
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x218]
push eax
push str._s_s
push ebx
call fcn.0040f7d0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x21c]
add esp, 0x10
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402951
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
lea esi, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40296f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x418], ecx
call fcn.0055c960
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00558864
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push str.GamePatch
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call edi
push str.Config.ini
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [ebp - 0x418]
push ebx
push 0x104
lea eax, [edi + 4]
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40332a
lea eax, [ebp - 0x20c]
push eax
push 0
push str.Win7
push 0x5c39b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x4032ce
call fcn.0042b0c0
test al, al
jne 0x4032dc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x5c52ec
push str.Win7Msg
push 0x5c39b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x40
push 0x5c39d4
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x4032dc
call fcn.0042b0c0
test al, al
jne 0x40325d
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [edi]
push 0x104
add eax, 4
push eax
push 0x5c52ec
push str.mainExe
push 0x5c39b0
call esi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [edi]
push 0x104
add eax, 0x20c
push eax
push 0x5c52ec
push str.param
push 0x5c39b0
call esi
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x20c]
push eax
lea eax, [esi + 4]
push eax
lea eax, [edi + 4]
push eax
push str.MSG:_Init_base_value_from_config_file_succeed__dir_s__exe_s__param_s__code_d
call fcn.0042abd0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00557f7f
mov esp, ebp
pop ebp
ret 4
Function at 0x403830
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
mov edx, 0x44
jmp 0x403880
xor ecx, ecx
test esi, esi
jle 0x4038a1
jmp 0x403890
movzx eax, word [ebp + ecx*2 - 0x20c]
cmp eax, edx
je 0x4038b2
inc ecx
cmp ecx, esi
jl 0x403890
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
inc edx
cmp edx, 0x5b
jl 0x403880
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x4038d0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00402a30
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
call esi
push str.run.bat
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4039b4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0055c960
add esp, 0xc
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.0042aab0
push 0
lea eax, [ebp - 0x418]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
push str.MSG:_Excute_bat_file_s__workdir_s__code_d
call fcn.0042abd0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call esi
push str.run.vbs
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403a9b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0055c960
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str.wscript___s_
push eax
call fcn.0040e0a0
push 0x40
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.0055c960
add esp, 0x24
mov dword [ebp - 0x460], 0x44
mov eax, 5
mov dword [ebp - 0x434], 1
mov word [ebp - 0x430], ax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x460]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x418]
push eax
push str.MSG:_Excute_vbs_cmdline_s__code_d
call fcn.0042abd0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x403ab0
Capabilities:
Check if file exists
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x824]
mov ecx, edi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00558864
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
add esp, 0xc
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x5c52ec
push str.runFirstExe
push str.action_first
call esi
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x5c52ec
push str.runFirstParam
push str.action_first
call esi
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b92
sub eax, edx
sar eax, 1
jne 0x403bb5
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004089e0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
test eax, eax
je 0x403c4f
lea esi, [edi + 4]
push esi
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.MSG:_runpre_file_s__param_s__workdir_s__code_d
call fcn.0042abd0
add esp, 0x14
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x61c]
push eax
push str.MSG:_runpre_url_s__code_d
call fcn.0042abd0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x403ca0
Capabilities:
Check if file exists
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x824]
mov ecx, edi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00558864
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
add esp, 0xc
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x5c52ec
push str.runFirstExe2
push str.action_first
call esi
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x5c52ec
push str.runFirstParam2
push str.action_first
call esi
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d82
sub eax, edx
sar eax, 1
jne 0x403da5
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004089e0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
test eax, eax
je 0x403e3f
lea esi, [edi + 4]
push esi
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.MSG:_runpre_file_s__param_s__workdir_s__code_d
call fcn.0042abd0
add esp, 0x14
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x61c]
push eax
push str.MSG:_runpre_url_s__code_d
call fcn.0042abd0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x403e90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0
push str.setBits
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
test edi, edi
jle 0x403fda
push 0xdc
call fcn.00430e8a
add esp, 4
mov esi, eax
push esi
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
cmp edi, dword [esi + 0xa8]
jne 0x403f85
push esi
call fcn.00430ec0
push str.MSG:_setBits_false__current_bits_perpel_is_equal_to_set
call fcn.0042abd0
add esp, 8
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
push 0xdc
call fcn.00430e8a
mov esi, eax
add esp, 4
mov eax, 0xdc
push 1
push esi
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb8], 0
mov dword [esi + 0x48], 0x5c0000
mov word [esi + 0x44], ax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push esi
call fcn.00430ec0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x403ff0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40409c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x5c52ec
push str.CompatibilityMode
push 0x5c39b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
jmp 0x4040f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040f0
sub ecx, edx
sar ecx, 1
je 0x40408b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00558864
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [esi]
add eax, 4
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404177
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00404190
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret

Function at 0x404190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, esi
push edi
lea edi, [edx + 2]
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4041a0
sub edx, edi
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push esi
push 1
push ecx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x4041e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SetCompatibilityMode_Succeed:_mode_s__code_d
call fcn.0042abd0
add esp, 0xc
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x407ba0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407c8f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5c52ec
push str.delFileOrDirs
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407ca0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x407ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b816
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
push eax
call fcn.0040f690
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jne 0x407cf9
xor bl, bl
jmp 0x407e2a
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
push 0x7c
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.0042a940
mov edi, dword [ebp - 0x224]
add esp, 4
xor esi, esi
test edi, edi
jle 0x407e17
lea eax, [ebx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x22c], eax
lea esp, [esp]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
push dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00558864
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test esi, esi
js 0x407e6b
cmp esi, edi
jge 0x407e6b
mov eax, dword [ebp - 0x228]
push dword [eax + esi*4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x407dea
lea ecx, [ebp - 0x218]
call fcn.0042a480
lea eax, [ebp - 0x218]
push eax
push str.MSG:_Delete_directory_succeed__dir_s
call fcn.0042abd0
add esp, 8
jmp 0x407e0e
lea eax, [ebp - 0x218]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
push str.MSG:_Delete_file_succeed__file_s__code_d
call fcn.0042abd0
add esp, 0xc
inc esi
cmp esi, edi
jl 0x407d50
lea ecx, [ebp - 0x228]
mov bl, 1
call fcn.0040e110
mov eax, dword [ebp - 0x21c]
lea esi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407e4b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]