joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8c1
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41f020
call fcn.00414b54
sub esp, 0x4e0
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4eb]
mov byte [ebp - 0x4ec], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x42a448
lea eax, [ebp - 0x4ec]
push 0x400
push eax
push 0x428770
push str.DotNetVersion
push dword [0x420574]
call esi
cmp byte [ebp - 0x4ec], bl
jne 0x40a929
xor eax, eax
jmp 0x40aa64
cmp dword [0x42b318], ebx
jne 0x40a97c
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xeb]
mov byte [ebp - 0xec], bl
push 0x42a448
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xec]
push 0x80
push eax
push 0x428770
push str.UseDotNetUI
push dword [0x420574]
call esi
cmp byte [ebp - 0xec], 0x59
je 0x40a987
cmp byte [ebp - 0xec], 0x79
je 0x40a987
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x40a98c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push dword [0x42aa64]
mov ecx, dword [ebp - 0x10]
call fcn.0040aa98
mov ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
mov dword [eax], ecx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x1c]
push 0x424b88
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x6c]
push 1
pop esi
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040acb1
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040738b
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00407311
cmp dword [ebp - 0x38], ebx
jbe 0x40aa56
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], 0x4205dc
cmp eax, ebx
je 0x40aa07
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x40aa10
xor esi, esi
jmp 0x40aa3e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00414d30
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x4ec]
push esi
push eax
call fcn.0040fa67
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setl cl
mov esi, ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407311
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x4f8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40aa98
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x42a448
push 0
push dword [0x4205a4]
mov esi, ecx
push str.dotnetfx.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
mov edi, 0x409
je 0x40aace
push eax
mov ecx, esi
push dword [esp + 0x10]
call fcn.0040aad9
test eax, eax
je 0x40aad2
mov edi, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x40c129
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040105f
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x40c1d9
dec eax
je 0x40c1ce
dec eax
jne 0x40c1e0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x40c1be
dec eax
je 0x40c1b5
dec eax
jne 0x40c1c1
mov dword [ebp - 0x18], 5
jmp 0x40c1c1
mov dword [ebp - 0x18], 3
jmp 0x40c1c1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x40c1e0
mov dword [ebp - 0x14], esi
jmp 0x40c1e0
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x40c1e0
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0040cff7
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40c3cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x40c409
mov eax, dword [ecx + 0x6c]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x40c3e7
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x40d9a6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
push dword [0x424f48]
mov dword [ebp - 8], ecx
call fcn.0040db8f
test eax, eax
je 0x40da9a
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4b7]
mov byte [ebp - 0x4b8], bl
rep stosd dword es:[edi], eax
push dword [0x424f48]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b8]
push 0x428774
push eax
call fcn.0040f821
lea eax, [ebp - 0x4b8]
mov edi, str.Languages
push eax
push ebx
push str.Count
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
jbe 0x40da92
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 4]
lea eax, [ebp - 0xb8]
push 0x4244f0
push str._s_d
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x20]
push 0x13
push eax
lea eax, [ebp - 0xb8]
push 0x428770
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40da9a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push str.0x0_s.ini
push eax
call esi
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 0x38]
push ebx
push 1
push eax
call fcn.0040db8f
test eax, eax
je 0x40da9a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40da25
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40da95

Function at 0x40dc6b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40dd21
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0040f191
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x40dd11
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40dccd
lea eax, [ebp - 0x118]
push 0x424170
push eax
call fcn.00415640
pop ecx
test eax, eax
pop ecx
jne 0x40dce9
mov eax, 0x486
push eax
mov dword [0x42b314], eax
call fcn.0040f0b1
pop ecx
push dword [0x42b314]
call fcn.0041553e
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.00410188
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8
Function at 0x40deda
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
mov byte [ebp - 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x42a448
push edi
push ebx
push dword [0x420698]
push dword [0x420694]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x4250bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call esi
push eax
call esi
push edi
lea ecx, [ebp - 0x41c]
push 0x400
push ecx
push eax
push eax
push dword [0x420694]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x40dfbc
dec eax
jne 0x40dfd5
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0040db8f
test eax, eax
je 0x40dfb8
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
push 0x428774
push esi
call fcn.0040f821
push esi
call fcn.0040f959
test eax, eax
jne 0x40dfd5
lea eax, [ebp - 0x41c]
push eax
push 0x42af14
push esi
call fcn.0040f821
push esi
call fcn.0040f959
test eax, eax
jne 0x40dfd5
xor eax, eax
jmp 0x40dfd8
lea eax, [ebp - 0x41c]
push eax
push 0x42af14
push dword [ebp + 0xc]
call fcn.0040f821
push dword [ebp + 0xc]
jmp 0x40dfaf
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40dfdf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x2d3c]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x40e137
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x2d3c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40e062
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40e104
push 0xd0
call fcn.004146d7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40e104
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x2d3c]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x2900], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x40e108
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40e130
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2900], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2900]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e61f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41f39e
call fcn.00414b54
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x11c]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x114], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x420a48
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040eb1d
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [esi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x40e6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40e72f
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004146d7
push 0x2e
push edi
push eax
mov dword [esi + 0x118], eax
call fcn.004144d0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x110]
push dword [esi + 0x108]
call fcn.0040edab
test eax, eax
je 0x40e72f
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x118]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e72f
cmp dword [ebp - 0x10], edi
je 0x40e72f
mov ecx, esi
call fcn.0040e7cb
test eax, eax
je 0x40e72f
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x40e72f
movzx eax, ax
push eax
mov ecx, esi
call fcn.0040ea99
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40e8da
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10c], ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
je 0x40e929
cmp dword [ebp + 8], ebx
je 0x40e929
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 3
add ecx, 4
push SysReAllocStringLen
push ecx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x40e932
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x114], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0040edab
test eax, eax
je 0x40e929
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x40e976
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ecx + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e929
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10c]
mov eax, 0x400
cmp ecx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
jae 0x40e991
mov dword [ebp + 8], ecx
push dword [ebp + 8]
call fcn.004146d7
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x40e9ef
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
sub dword [ebp + 0xc], eax
je 0x40e9ef
cmp eax, ebx
je 0x40e9ef
cmp dword [ebp + 0xc], 0x400
jae 0x40e9e1
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 8]
jmp 0x40e9ae
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 0x10]
call esi
push edi
call fcn.00413d7e
pop ecx
push 1
pop eax
jmp 0x40e92b

Function at 0x40ea99
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x40eb16
mov esi, 0x138
push esi
call fcn.004146d7
mov ebx, eax
push esi
push 0
push ebx
call fcn.004144d0
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40eb16
cmp dword [ebp - 8], 0
je 0x40eb16
push ebx
lea ecx, [edi + 0x11c]
call fcn.0040edf0
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0040edab
test eax, eax
je 0x40eb16
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x40eab2
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40eb1d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push SysReAllocStringLen
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40eb62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40ebb1
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.0040edab
test eax, eax
je 0x40ebb1
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.0040edab
test eax, eax
jne 0x40ebb5
xor eax, eax
jmp 0x40ec07
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x40ebf1
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x40ebdb
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x40ebc1
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040ec0c
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ec0c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40ec38
xor eax, eax
jmp 0x40ece8
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40ecdd
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x40ecd2
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.0040eced
cmp eax, ebx
je 0x40ec88
cmp dword [eax + 0xc], edi
jne 0x40ec88
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x40ecb9
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.0040eced
mov edi, eax
cmp edi, ebx
je 0x40ecd2
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x40ecd2
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x40eccd
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x40ecc3
jmp 0x40ecd0
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40f27a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x428770
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call fcn.004145c0
push esi
push dword [ebp + 0x10]
call fcn.004145c0
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40f405
push edi
push esi
call fcn.00414d5f
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.004144d0
add esp, 0x10
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40f3fb
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.004144d0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x424c80
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f33d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004144d0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f3fb
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
cmp esi, ebx
mov dword [ebp + 0xc], eax
jle 0x40f3fb
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x40f39c
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.00415060
movzx eax, word [ebp - 8]
add esp, 0xc
cmp edi, ebx
push eax
jne 0x40f3cd
lea eax, [ebp - 0x144]
push 0x424f28
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40f3e5
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call fcn.004145c0
inc edi
pop ecx
cmp edi, esi
pop ecx
jl 0x40f391
push dword [ebp - 0x10]
call fcn.00414b73
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f44d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40f550
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40f4df
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.0040f8ad
test eax, eax
je 0x40f4b7
lea eax, [ebp - 0x82c]
push eax
call fcn.0040f756
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x40f546
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x40f53d
mov eax, SysReAllocString
jmp 0x40f53d
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40f546
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x40f608
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x40f661
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.0040f409
pop ecx
test eax, eax
pop ecx
je 0x40f661
push esi
call fcn.0040f5a4
test eax, eax
pop ecx
jne 0x40f66e
inc ebx
cmp ebx, 0x1a
jl 0x40f62c
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x40f66a