joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035d0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov eax, dword [0x456600]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x43a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x440], ax
call fcn.0042e640
add esp, 0xc
lea ebx, [esp + 0x434]
call fcn.004010a0
push 0x206
lea eax, [esp + 0x232]
xor edx, edx
push edi
push eax
mov word [esp + 0x238], dx
call fcn.0042e640
add esp, 0xc
mov ecx, ebx
push ecx
push 0x104
lea edx, [esp + 0x234]
push edx
push 0x4497fc
push str.regDlls
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x22c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403690
sub eax, edx
sar eax, 1
jne 0x4036a8
xor al, al
jmp 0x4037b4
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x14]
call fcn.004050b0
mov dword [esp + 0x650], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x650], 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.0040b410
mov edi, dword [esp + 0x1c]
xor ebx, ebx
test edi, edi
jle 0x40377e
add esi, 4
mov dword [esp + 0x14], esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2e]
push edx
mov word [esp + 0x30], cx
call fcn.0042e640
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.0042c4ff
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test ebx, ebx
jl 0x4037d8
cmp ebx, edi
jge 0x4037d8
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ebx*4]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40376d
lea esi, [esp + 0x24]
call fcn.004037f0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, edi
jl 0x4036f6
lea esi, [esp + 0x18]
call fcn.004044f0
mov dword [esp + 0x650], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.0042c4f0
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4037f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x264], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x62]
push ecx
mov word [esp + 0x64], ax
call fcn.0042e640
push esi
push str.regsvr32__s___s_
lea edx, [esp + 0x6c]
call fcn.004044b0
push 0x40
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0042e640
add esp, 0x20
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x20
push 0
push 0
mov eax, 5
mov word [esp + 0x4c], ax
push 0
lea eax, [esp + 0x78]
push eax
push 0
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.regsvr32_success__
call fcn.0040b6a0
mov ecx, dword [esp + 0x270]
add esp, 0xc
xor ecx, esp
mov al, 1
call fcn.0042c4f0
add esp, 0x26c
ret

Function at 0x4038b0
Capabilities:
Check for peb beingdebugged flag
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x441a76
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456600]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0x236]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x23c], ax
call fcn.0042e640
add esp, 0xc
lea ebx, [esp + 0x230]
call fcn.004010a0
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x34], dx
call fcn.0042e640
add esp, 0xc
mov ecx, ebx
push ecx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x4497fc
push str.killProNames
push str.action_after
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x403960
sub eax, edx
sar eax, 1
jne 0x403978
xor al, al
jmp 0x403a10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.004050b0
mov dword [esp + 0x444], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x444], 1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.0040b410
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp edi, ebp
jle 0x4039da
mov ebp, dword [esp + 0x18]
test esi, esi
jl 0x403a38
cmp esi, edi
jge 0x403a38
mov ebx, dword [ebp + esi*4]
call fcn.0040b760
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, edi
jl 0x4039bc
lea esi, [esp + 0x18]
call fcn.004044f0
mov dword [esp + 0x444], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x434
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x403a50
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x824
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x820], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0042e640
add esp, 0xc
lea edi, [esp + 4]
mov ecx, esi
call fcn.00401000
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.toSystem
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x403ac6
xor al, al
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x824
ret
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x41a]
push eax
mov word [esp + 0x41c], dx
call fcn.0042e640
add esp, 0xc
push 0x104
lea ecx, [esp + 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x212]
push eax
mov word [esp + 0x214], dx
call fcn.0042e640
movzx ecx, word [esp + 0x41c]
push ecx
push str._c:_
lea edx, [esp + 0x21c]
call fcn.004044b0
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040ab20
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x63e]
push edx
mov word [esp + 0x640], cx
call fcn.0042e640
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.__s____s
lea edx, [esp + 0x64c]
call fcn.004044b0
push 0
lea edx, [esp + 0x650]
push edx
push str.Copy_succeed
call fcn.0040b6a0
mov ecx, dword [esp + 0x860]
add esp, 0x40
xor ecx, esp
mov al, 1
call fcn.0042c4f0
add esp, 0x824
ret

Function at 0x403bb0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x618], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0042e640
add esp, 0xc
lea edi, [esp + 4]
mov ecx, esi
call fcn.00401000
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.CurrentUserDir
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x403c26
xor al, al
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x61c
ret
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x212]
push eax
mov word [esp + 0x214], dx
call fcn.0042e640
add esp, 0xc
push 0
push 0x10
lea ecx, [esp + 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x208]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x208]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.0040ab20
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x422]
push eax
mov word [esp + 0x424], dx
call fcn.0042e640
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x18]
push edx
push str.__s____s
lea edx, [esp + 0x430]
call fcn.004044b0
push 0
lea eax, [esp + 0x434]
push eax
push str.Copy_succeed
call fcn.0040b6a0
mov ecx, dword [esp + 0x644]
add esp, 0x2c
xor ecx, esp
mov al, 1
call fcn.0042c4f0
add esp, 0x61c
ret
Function at 0x403cf0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x618], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0042e640
add esp, 0xc
lea edi, [esp + 4]
mov ecx, esi
call fcn.00401000
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.My_Documents
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x403d66
xor al, al
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x61c
ret
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x212]
push eax
mov word [esp + 0x214], dx
call fcn.0042e640
add esp, 0xc
push 0
push 5
lea ecx, [esp + 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x208]
push edx
lea eax, [esp + 4]
push eax
call fcn.0040ab20
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x422]
push edx
mov word [esp + 0x424], cx
call fcn.0042e640
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.__s____s
lea edx, [esp + 0x430]
call fcn.004044b0
push 0
lea edx, [esp + 0x434]
push edx
push str.Copy_succeed
call fcn.0040b6a0
mov ecx, dword [esp + 0x644]
add esp, 0x2c
xor ecx, esp
mov al, 1
call fcn.0042c4f0
add esp, 0x61c
ret

Function at 0x403e90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x620
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x426]
push ecx
mov word [esp + 0x428], ax
call fcn.0042e640
add esp, 0xc
lea ebx, [esp + 0x41c]
call fcn.004010a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21e]
push eax
mov word [esp + 0x220], dx
call fcn.0042e640
add esp, 0xc
mov ecx, ebx
push ecx
push 0x104
lea edx, [esp + 0x21c]
push edx
push 0x4497fc
push str.assocToGid
push str.game_base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f23
sub eax, edx
sar eax, 1
jne 0x403f4d
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x620
ret
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.0042e640
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x218]
push eax
call fcn.00402450
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403fc1
lea edx, [esp + 0xc]
push edx
add esi, 4
push esi
call fcn.0040ab20
add esp, 8
test eax, eax
je 0x403fc1
lea eax, [esp + 0xc]
push eax
push 0x104
push esi
call fcn.0042c4ff
push 0
push str.assis_to_gid_succeed
push str.AssisToGid
call fcn.0040b6a0
add esp, 0x18
mov ecx, dword [esp + 0x624]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042c4f0
add esp, 0x620
ret
Function at 0x403fe0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x418
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x21e]
push ecx
mov word [esp + 0x220], ax
call fcn.0042e640
add esp, 0xc
lea ebx, [esp + 0x214]
call fcn.004010a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call fcn.0042e640
add esp, 0xc
mov ecx, ebx
push ecx
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x4497fc
push str.runFirstUrl
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
pop esi
lea edx, [eax + 2]
pop ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404070
sub eax, edx
sar eax, 1
jne 0x404098
xor al, al
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x418
ret
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x448f1c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x414]
xor ecx, esp
mov al, 1
call fcn.0042c4f0
add esp, 0x418
ret

Function at 0x404ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404ae9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404b24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404b20
lea ebx, [ebx]
cmp esi, eax
jae 0x404b24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404b10
cmp esi, eax
jb 0x404b2a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405310
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x441c4d
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push esi
push edi
mov eax, dword [0x456600]
xor eax, esp
push eax
lea eax, [esp + 0x4a4]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00411d4a
push 0
call fcn.00412eca
add esp, 4
push 0
lea eax, [ebx + 0xb0]
push eax
lea ecx, [ebx + 0xc0]
push ecx
call sub.gdiplus.dll_GdiplusStartup
mov edx, dword [ebx + 0x48]
mov eax, edx
lea esi, [eax + 2]
jmp 0x405380
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405380
sub eax, esi
sar eax, 1
je 0x40539f
mov edi, dword [ebx + 0xa4]
push edx
call fcn.00401120
jmp 0x4053f4
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a2]
push eax
mov word [esp + 0x2a4], dx
call fcn.0042e640
add esp, 0xc
push 0x104
lea ecx, [esp + 0x29c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x298]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebx + 0xa4]
lea ecx, [esp + 0x298]
call fcn.00401690
mov eax, dword [ebx + 0xa4]
call fcn.00403e20
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push ebx
push 0x405620
push 0
push 0
mov dword [ebx + 0xac], eax
call fcn.0042d01d
add esp, 0x18
mov ecx, ebx
mov dword [ebx + 0xa8], eax
call fcn.00405570
sub eax, 1
je 0x405497
sub eax, 1
jne 0x4054b1
lea eax, [esp + 0x14]
push eax
call fcn.00405d00
lea ecx, [esp + 0x14]
mov dword [esp + 0x4ac], 0
mov dword [ebx + 0x20], ecx
call fcn.00413b1f
cmp eax, 2
je 0x405480
mov edx, dword [ebx + 0xa8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebx + 0xa4]
call fcn.004017a0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x4b0], 0xffffffff
call fcn.004054e0
jmp 0x4054b1
mov ecx, dword [ebx + 0xa8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebx + 0xa4]
call fcn.004017a0
xor eax, eax
mov ecx, dword [esp + 0x4a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x4a0
ret

Function at 0x405570
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov edi, 1
mov word [esp + 0x18], ax
call fcn.0042e640
mov esi, dword [esi + 0xa4]
add esp, 0xc
lea ebx, [esp + 0xc]
call fcn.004010a0
mov edx, ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4055fb
mov eax, ebx
push eax
push 0
push 0x449848
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
pop ebx
inc ecx
mov eax, ecx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042c4f0
add esp, 0x20c
ret
Function at 0x405a00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
push edi
push 0
push 0
push 3
push 0
push 1
mov dword [esi + 0x208], 0
mov dword [esi + 0x20c], 0
mov eax, dword [eax]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405a9b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea ecx, [ebp + 1]
push ecx
call fcn.0040fe92
add esp, 4
push 0
lea edx, [esp + 0xc]
push edx
push ebp
push eax
push edi
mov dword [esi + 0x20c], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x20c]
push edi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x20c]
push ebp
push ecx
call fcn.0040fc40
add esp, 8
mov dword [esi + 0x208], eax
test eax, eax
je 0x405a9b
mov al, 1
pop edi
pop ebp
pop ecx
ret
pop edi
xor al, al
pop ebp
pop ecx
ret
Function at 0x408970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00413d57

Function at 0x408cf0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x34
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
push 0x104
push eax
mov dword [esp + 0x20], ecx
add ecx, 0x18
push 0x104
push ecx
call fcn.0042d465
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408d54
push eax
push str.the_configuration_file_does_not_exist
push str.Install_the_runtime_fails
call fcn.0040b6a0
add esp, 0xc
xor al, al
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x34
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
push 0xa
push 0xa
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.0042d62e
add esp, 0x10
push edi
push 0
push str.checkType
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, eax
cmp ebp, 2
je 0x408dbc
cmp ebp, 3
je 0x408dbc
cmp ebp, 1
jne 0x408ee0
push 0xa30
call fcn.0040fe58
mov esi, eax
add esp, 4
test esi, esi
je 0x408de1
push 0xa30
push 0
push esi
call fcn.0042e640
add esp, 0xc
jmp 0x408de3
xor esi, esi
push edi
push 0xa28
lea ecx, [esi + 0x620]
push ecx
push 0x4497fc
push str.checkPath
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x34], esi
mov dword [esi], ebp
call ebx
push edi
push 0x104
lea eax, [esi + 0x828]
push eax
push 0x4497fc
push str.checkVerion
lea ecx, [esp + 0x3c]
push ecx
call ebx
push edi
push 0x104
lea edx, [esi + 8]
push edx
push 0x4497fc
push str.instName
lea eax, [esp + 0x3c]
push eax
call ebx
push edi
push 0x104
lea ecx, [esi + 0x210]
push ecx
push 0x4497fc
push str.instFile
lea edx, [esp + 0x3c]
push edx
call ebx
push edi
push 0x104
lea eax, [esi + 0x418]
push eax
push 0x4497fc
push str.instParam
lea ecx, [esp + 0x3c]
push ecx
call ebx
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x408e8b
xor ecx, ecx
jmp 0x408e93
mov ecx, dword [ebp + 0x14]
sub ecx, eax
sar ecx, 2
mov edx, dword [ebp + 0x10]
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x408eac
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
add eax, 4
mov dword [ebp + 0x10], eax
jmp 0x408ece
mov esi, dword [ebp + 0x10]
cmp eax, esi
jbe 0x408eb8
call fcn.0042d455
mov eax, dword [ebp]
push esi
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, ebp
call fcn.00409920
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x1e
mov dword [esp + 0x10], eax
jl 0x408d7e
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042c4f0
add esp, 0x34
ret 4
Function at 0x40aa70
Capabilities:
Check if file exists
Get file version info

Disassembly:
sub esp, 0xc
test edi, edi
je 0x40ab16
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ab16
push esi
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 4], eax
test eax, eax
jbe 0x40ab0f
push eax
call fcn.0040fe92
mov esi, eax
add esp, 4
test esi, esi
je 0x40ab0f
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ab06
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0x448f18
push esi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ab06
mov eax, dword [esp + 8]
test eax, eax
je 0x40ab06
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx], edx
call fcn.0040fe87
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.0040fe87
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x40ae30
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x40ae76
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x20c
ret
mov eax, esi
lea edx, [eax + 2]
jmp 0x40ae80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ae80
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x40aeaf
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042c4f0
add esp, 0x20c
ret
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0042c4ff
add esp, 0xc
lea edx, [esp + 8]
call fcn.0040ba30
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40ae96
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jne 0x40aef2
lea eax, [esp + 8]
push eax
call fcn.0040ae30
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.0042c4f0
add esp, 0x20c
ret