joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b1a
Capabilities:
Check if file exists
Create thread
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x2c], bl
jne 0x407b8d
push dword [esi + 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407b4e
push 1
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x4441d4
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [esi + 0x2c], 1
push 0x104
lea eax, [ebp - 0x80]
push eax
push 0x4441c4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x407bff
push ebx
push ebx
push esi
push 0x407a3d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x407b87
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [esi + 4]
jmp 0x407ba9
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0xc4]
cmp ecx, 1
jne 0x407bb1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x407bff
cmp ecx, ebx
jne 0x407bc1
push 0xff
push str.ck_W_nN_O
jmp 0x407be6
mov eax, dword [eax + 0xc8]
cmp eax, 1
jne 0x407bd8
push 0xff
push 0x444180
jmp 0x407be6
cmp eax, ebx
jne 0x407bff
push 0xff
push 0x444168
lea eax, [ebp - 0x78]
push eax
call fcn.00422c76
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp + 0x188]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004201f5
add ebp, 0x18c
leave
ret 0x10

Function at 0x408177
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
mov edi, dword [ebp + 0x1a0]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x7c], esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.00420210
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40820a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.00405a89
mov ecx, dword [ebp + 0x194]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004201f5
add ebp, 0x198
leave
ret
Function at 0x40828a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00420210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.firstaidSuperKiller.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408312
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00405a89
jmp 0x40831f
push str._firstaidSuperKiller.exe
push esi
call fcn.0040822e
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004201f5
leave
ret
Function at 0x409f1c
Capabilities:
Create process on windows
Create thread
Hide graphical window

Disassembly:
push ebp
sub esp, 0x4e8
lea ebp, [esp - 4]
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
push 0x5c
mov eax, 0x43bdbc
call fcn.00422277
mov ebx, ecx
xor esi, esi
push esi
push dword [ebx + 0x28]
mov byte [ebx + 0x2d], 1
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x444e84
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
push esi
push ebx
push 0x407a3d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x409fd7
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
mov byte [0x4540f0], 1
call fcn.00420210
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
xor eax, eax
push esi
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x34]
push esi
push eax
push esi
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409fd7
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1c]
call edi
push 0x3e9
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x40a078
lea eax, [ebp - 0x24]
push eax
call fcn.004134be
pop ecx
mov eax, dword [eax]
xor edi, edi
inc edi
push edi
push esi
push eax
lea ecx, [ebp]
mov dword [ebp - 4], esi
call fcn.004072be
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00402a0d
lea eax, [ebp - 0x20]
push eax
mov dword [ebp + 0x160], edi
call fcn.004134be
pop ecx
push eax
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 3
call fcn.004086e9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402a0d
push esi
push str.Q360SDClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, eax
cmp ecx, esi
je 0x40a070
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0x4a
push ecx
mov dword [ebp - 0x18], 0x363363
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp]
call fcn.004049b3
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4e8]
xor ecx, ebp
call fcn.004201f5
add ebp, 0x4ec
leave
ret 0x10
Function at 0x40a27e
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f94]
mov eax, 0x4014
call fcn.00422b90
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x3f90], eax
mov eax, dword [ebp + 0x3f9c]
push ebx
mov ebx, dword [ebp + 0x3fa8]
push esi
mov esi, dword [ebp + 0x3fa0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x3fac]
push edi
mov edi, dword [ebp + 0x3fa4]
mov dword [ebp - 0x78], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.00420210
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40a347
cmp eax, 0x3fff
ja 0x40a347
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
push dword [ebp - 0x74]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40a347
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x444e98
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40a347
mov eax, dword [ebp - 0x74]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov cx, word [eax + 8]
mov word [edi], cx
mov cx, word [eax + 0xe]
mov word [ebx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp - 0x78]
mov word [ecx], ax
xor eax, eax
inc eax
jmp 0x40a349
xor eax, eax
mov ecx, dword [ebp + 0x3f90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004201f5
add ebp, 0x3f94
leave
ret

Function at 0x40a3f1
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
push esi
push edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x80], esi
call fcn.00420210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x7c]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.SDVersion.dll
lea eax, [ebp - 0x7c]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x7c]
push eax
call ebx
test eax, eax
je 0x40a46c
mov dword [ebp - 0x80], 1
jmp 0x40a48e
lea eax, [ebp - 0x7c]
push eax
call esi
push str.360ver.dll
lea eax, [ebp - 0x7c]
push eax
call edi
lea eax, [ebp - 0x7c]
push eax
call ebx
test eax, eax
je 0x40a48e
mov dword [ebp - 0x80], 2
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004201f5
add ebp, 0x190
leave
ret
Function at 0x40a76e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push ebx
push esi
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 0x80000000
push eax
xor esi, esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40a7c2
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
pop edi
test eax, eax
je 0x40a7b9
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov edx, ebx
pop ebx
leave
ret

Function at 0x40a7ca
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x4f90]
mov eax, 0x5010
call fcn.00422b90
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x4f8c], eax
push esi
xor eax, eax
push 0x4ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
mov esi, ecx
call fcn.00420210
mov eax, dword [esi + 0xd0]
add esp, 0xc
lea ecx, [ebp - 0x7c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40a87b
cmp eax, 0x4fff
ja 0x40a87b
mov ecx, dword [esi + 0xd0]
lea edx, [ebp - 0x74]
push edx
push eax
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40a87b
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x444e98
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40a87b
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x444ed8
add esi, 0x1e4
push esi
call fcn.00422dfe
add esp, 0x18
mov ecx, dword [ebp + 0x4f8c]
xor ecx, ebp
pop esi
call fcn.004201f5
add ebp, 0x4f90
leave
ret

Function at 0x40a891
Capabilities:
Copy file
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x2e4]
push eax
push 0
push str.backup
lea ebx, [esi + 0x3e4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40a934
push edi
mov ecx, esi
call fcn.0040a361
mov edi, 0x104
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00420210
add esp, 0xc
add esi, 0x5f8
push esi
push edi
lea eax, [ebp - 0x80]
push eax
call fcn.0040a67f
lea eax, [ebp - 0x80]
push 0x5c
push eax
call fcn.00423780
pop ecx
pop ecx
pop edi
test eax, eax
je 0x40a934
inc eax
push ebx
push eax
call fcn.00423d60
lea eax, [ebp - 0x80]
push str..zip
push eax
call fcn.00423d70
add esp, 0x10
push 0
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp + 0x84]
pop esi
xor ecx, ebp
pop ebx
call fcn.004201f5
add ebp, 0x88
leave
ret
Function at 0x40b352
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push esi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push eax
mov esi, ecx
call fcn.00420210
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x444f24
push str.SOFTWARE360SafeLiveup
push 0x80000002
mov dword [ebp - 0x80], 0x200
mov dword [ebp - 0x7c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40b3fa
push eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041b5a3
mov eax, dword [ebp - 0x74]
add esp, 0xc
cmp dword [ebp - 0x60], 0x10
jae 0x40b3dc
lea eax, [ebp - 0x74]
push eax
push 0x100
add esi, 0xe4
push esi
call fcn.0040a67f
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.00401f6a
mov ecx, dword [ebp + 0x1a4]
xor ecx, ebp
pop esi
call fcn.004201f5
add ebp, 0x1a8
leave
ret

Function at 0x40b410
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov ebx, ecx
lea edi, [ebx + 0x4f4]
push edi
call esi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0041b5db
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40b447
mov eax, dword [eax + 4]
jmp 0x40b44a
add eax, 4
push dword [ebp - 4]
mov edi, str.dumpuper.__s:__d
push eax
push edi
call fcn.00402abd
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040b003
lea eax, [ebx + 0x5f8]
push eax
call esi
mov dword [ebp - 4], eax
push 0
lea eax, [ebx + 0x5f8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041b5db
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40b494
mov eax, dword [eax + 4]
jmp 0x40b497
add eax, 4
push dword [ebp - 4]
push eax
push edi
call fcn.00402abd
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040b003
add ebx, 0x6fc
push ebx
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0041b5db
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40b4d5
mov eax, dword [eax + 4]
jmp 0x40b4d8
add eax, 4
push esi
push eax
push edi
call fcn.00402abd
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040b003
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b538
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
push 0x40
lea eax, [ebp - 0x44]
push edi
push eax
mov dword [ebp - 0x4c], edi
call fcn.00420210
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], 0x20
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b5cc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push str.svcVersion
push dword [ebp - 0x48]
call esi
test eax, eax
je 0x40b5c2
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push str.Version
push dword [ebp - 0x48]
call esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push edi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0041b5a3
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004201f5
leave
ret 4

Function at 0x40bd8b
Capabilities:
Write file on windows

Disassembly:
push 0x60
mov eax, 0x43bee3
call fcn.00422277
mov esi, ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0040ba94
xor ebx, ebx
cmp dword [eax + 0x14], ebx
push ebx
push 1
lea ecx, [ebp - 0x34]
setne byte [ebp - 0xd]
call fcn.00401f6a
cmp byte [ebp - 0xd], bl
je 0x40be4d
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
lea eax, [esi + 0x6fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40be4d
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
mov dword [ebp - 0x18], ebx
call fcn.0040ba94
mov edi, eax
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040ba94
cmp dword [eax + 0x18], 0x10
mov edi, dword [edi + 0x14]
jb 0x40be1b
mov eax, dword [eax + 4]
jmp 0x40be1e
add eax, 4
push ebx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00401f6a
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00401f6a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0042234f
ret
Function at 0x40bf87
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x5104]
mov eax, 0x5104
call fcn.00422b90
push 0xffffffffffffffff
push 0x43bf6d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x5100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x510c]
mov esi, dword [ebp + 0x5110]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ebx
call fcn.004077d8
xor eax, eax
push 0x4ffe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
call fcn.00420210
add esp, 0xc
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x40c00c
mov eax, dword [edi]
jmp 0x40c00e
mov eax, edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x40c0a5
cmp eax, 0x4fff
ja 0x40c0a5
cmp dword [esi + 0x18], 8
jb 0x40c02f
mov edi, dword [edi]
lea ecx, [ebp]
push ecx
push eax
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c0a5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x444e98
lea eax, [ebp]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c0a5
push 0x100
lea eax, [ebp + 0x5000]
push ebx
push eax
call fcn.00420210
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp + 0x5000]
push 0x444ed8
push eax
call fcn.00422dfe
mov ecx, dword [ebp - 0x10]
add esp, 0x24
lea eax, [ebp + 0x5000]
push eax
call fcn.00402405
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5100]
xor ecx, ebp
call fcn.004201f5
add ebp, 0x5104
leave
ret 8
Function at 0x40c306
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x6c
mov eax, 0x43c03e
call fcn.00422277
mov ebx, ecx
mov ecx, dword [ebp + 0x230]
xor esi, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], esi
call fcn.004077d8
push 0x208
xor edi, edi
lea eax, [ebp + 0x1c]
push esi
inc edi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
call fcn.00420210
add esp, 0xc
push esi
lea ecx, [ebx + 0xcc]
call fcn.00404b09
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
call fcn.0040799f
push 0x445004
push 0x104
lea eax, [ebp + 0x1c]
push eax
call fcn.00402c9e
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40c483
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40c47a
push eax
call fcn.0041f58f
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x40c3e5
sub ecx, eax
push ecx
push esi
push eax
call fcn.00420210
mov eax, dword [ebp - 0x18]
add esp, 0xc
push esi
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
lea ecx, [ebp]
push dword [ebp - 0x18]
call fcn.0040b831
lea eax, [ebx + 0x8c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], edi
call fcn.0040bb4d
add ebx, 0x38
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.0040bb4d
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 3
call fcn.00413d47
add esp, 0x20
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push esi
push eax
mov byte [ebp - 4], 4
call fcn.00402215
push esi
push edi
lea ecx, [ebp - 0x78]
call fcn.00401f6a
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.00401f6a
push esi
push edi
lea ecx, [ebp - 0x5c]
call fcn.00401f6a
push esi
push edi
lea ecx, [ebp]
call fcn.00401f6a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.004201f5
add ebp, 0x228
leave
ret 4
Function at 0x40eaaa
Capabilities:
Read .ini file

Disassembly:
push 0x50
mov eax, 0x43c550
call fcn.004222e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00401f4e
mov dword [ebp - 4], ebx
mov edi, 0x400
add edi, edi
push edi
call fcn.0041f58f
mov esi, eax
lea eax, [esi + edi]
pop ecx
cmp esi, eax
je 0x40eb0a
sub eax, esi
push eax
push ebx
push esi
call fcn.00420210
add esp, 0xc
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x18], 0x10
jb 0x40eb1a
add eax, 4
mov eax, dword [eax]
jmp 0x40eb1d
add eax, 4
push eax
push edi
push esi
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
call fcn.004022a7
push esi
call fcn.00422381
pop ecx
cmp dword [ebp - 0x34], ebx
je 0x40eb50
cmp dword [ebp - 0x38], ebx
je 0x40eb50
xor eax, eax
inc eax
jmp 0x40eb53
push 2
pop eax
mov ecx, edi
sub ecx, eax
cmp dword [ebp - 0x3c], ecx
je 0x40eaeb
push 1
push 0x443780
lea ecx, [ebp - 0x5c]
call fcn.0040b831
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040ea0a
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00401f6a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401f6a
mov eax, dword [ebp - 0x30]
call fcn.00422363
ret