joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092eb
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 0x40939b
dec eax
je 0x409390
dec eax
jne 0x4093a2
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 0x409380
dec eax
je 0x409377
dec eax
jne 0x409383
mov dword [ebp - 0x18], 5
jmp 0x409383
mov dword [ebp - 0x18], 3
jmp 0x409383
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x4093a2
mov dword [ebp - 0x14], esi
jmp 0x4093a2
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x4093a2
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0040a274
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x409591
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 0x4095cb
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 0x4095a9
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x40a935
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 [0x420a08]
mov dword [ebp - 8], ecx
call fcn.0040ab1e
test eax, eax
je 0x40aa29
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4b7]
mov byte [ebp - 0x4b8], bl
rep stosd dword es:[edi], eax
push dword [0x420a08]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b8]
push 0x424184
push eax
call fcn.0040c9f5
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 0x40aa21
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 4]
lea eax, [ebp - 0xb8]
push 0x420388
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 0x424180
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40aa29
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.0040ab1e
test eax, eax
je 0x40aa29
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40a9b4
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40aa24

Function at 0x40abfa
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 0x40acb0
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0040c385
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x40aca0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40ac5c
lea eax, [ebp - 0x118]
push 0x420180
push eax
call fcn.004126b0
pop ecx
test eax, eax
pop ecx
jne 0x40ac78
mov eax, 0x486
push eax
mov dword [0x425e20], eax
call fcn.0040c311
pop ecx
push dword [0x425e20]
call fcn.004125ae
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0040d322
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 0x40ae78
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, 0x424f58
push edi
push ebx
push dword [0x41c640]
push dword [0x41c63c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x420ac4
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 [0x41c63c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x40af3f
dec eax
jne 0x40af4d
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0040ab1e
test eax, eax
je 0x40af3b
lea eax, [ebp - 0x41c]
push eax
push 0x424184
push dword [ebp + 0xc]
call fcn.0040c9f5
push dword [ebp + 0xc]
call fcn.0040cb2d
test eax, eax
jne 0x40af4d
xor eax, eax
jmp 0x40af50
lea eax, [ebp - 0x41c]
push eax
push 0x425a1c
jmp 0x40af27
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40af57
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 + 0x2cd4]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x40b0af
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 + 0x2cd4]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40afda
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40b07c
push 0xd0
call fcn.00411747
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40b07c
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 + 0x2cd4]
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 + 0x2898], 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 0x40b080
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40b0a8
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2898], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2898]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b86c
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41b5be
call fcn.00411bc4
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], 0x41ca10
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040bd7d
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 0x40b8f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40b97c
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00411747
push 0x2e
push edi
push eax
mov dword [esi + 0x118], eax
call fcn.00411540
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x110]
push dword [esi + 0x108]
call fcn.0040c00b
test eax, eax
je 0x40b97c
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 0x40b97c
cmp dword [ebp - 0x10], edi
je 0x40b97c
mov ecx, esi
call fcn.0040ba34
test eax, eax
je 0x40b97c
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x40b97c
movzx eax, ax
push eax
mov ecx, esi
call fcn.0040bcf9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40bb43
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 0x40bb92
cmp dword [ebp + 8], ebx
je 0x40bb92
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 0x40bb9b
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.0040c00b
test eax, eax
je 0x40bb92
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 0x40bbdf
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 0x40bb92
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 0x40bbfa
mov dword [ebp + 8], ecx
push dword [ebp + 8]
call fcn.00411747
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 0x40bc58
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 0x40bc58
cmp eax, ebx
je 0x40bc58
cmp dword [ebp + 0xc], 0x400
jae 0x40bc4a
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 0x40bc17
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x10]
call esi
push edi
call fcn.0040301d
pop ecx
push 1
pop eax
jmp 0x40bb94

Function at 0x40bcf9
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 0x40bd76
mov esi, 0x138
push esi
call fcn.00411747
mov ebx, eax
push esi
push 0
push ebx
call fcn.00411540
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 0x40bd76
cmp dword [ebp - 8], 0
je 0x40bd76
push ebx
lea ecx, [edi + 0x11c]
call fcn.0040c050
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0040c00b
test eax, eax
je 0x40bd76
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x40bd12
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40bd7d
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 0x40bdc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40be11
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.0040c00b
test eax, eax
je 0x40be11
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.0040c00b
test eax, eax
jne 0x40be15
xor eax, eax
jmp 0x40be67
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x40be51
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 0x40be3b
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 0x40be21
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040be6c
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 0x40be6c
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 0x40be98
xor eax, eax
jmp 0x40bf48
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 0x40bf3d
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 0x40bf32
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.0040bf4d
cmp eax, ebx
je 0x40bee8
cmp dword [eax + 0xc], edi
jne 0x40bee8
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x40bf19
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.0040bf4d
mov edi, eax
cmp edi, ebx
je 0x40bf32
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x40bf32
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x40bf2d
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x40bf23
jmp 0x40bf30
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 0x40c3ca
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
lea eax, [ebp - 0x14]
push dword [0x425574]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call esi
push eax
call esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x814]
push eax
push 0x424f58
call fcn.0040c846
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040c9f5
lea eax, [ebp - 0x414]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x414]
push eax
push 0x12c
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x424180
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
leave
ret
Function at 0x40c460
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x424180
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call fcn.00411630
push esi
push dword [ebp + 0x10]
call fcn.00411630
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 0x40c5eb
push edi
push esi
call fcn.00411dcf
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.00411540
add esp, 0x10
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40c5e1
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00411540
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x42077c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c523
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.00411540
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 0x40c5e1
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 0x40c5e1
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x40c582
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.004120d0
movzx eax, word [ebp - 8]
add esp, 0xc
cmp edi, ebx
push eax
jne 0x40c5b3
lea eax, [ebp - 0x144]
push 0x4209e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40c5cb
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.00411630
inc edi
pop ecx
cmp edi, esi
pop ecx
jl 0x40c577
push dword [ebp - 0x10]
call fcn.00411be3
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c633
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40c725
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40c6b8
push dword [ebp + 8]
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x828]
push eax
call fcn.0040ca81
test eax, eax
je 0x40c69a
lea eax, [ebp - 0x828]
push eax
call fcn.0040c92a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x828]
push eax
call edi
test eax, eax
je 0x40c71b
mov eax, dword [ebp - 0x18]
jmp 0x40c713
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x428], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x427], cl
mov byte [ebp - 0x426], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 0x425], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40c71b
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 4]
shr eax, 0xa
push 1
mov dword [esi], eax
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40c7dc
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 0x40c835
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.0040c5ef
pop ecx
test eax, eax
pop ecx
je 0x40c835
push esi
call fcn.0040c778
test eax, eax
pop ecx
jne 0x40c842
inc ebx
cmp ebx, 0x1a
jl 0x40c800
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x40c83e
Function at 0x40caa0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], 1
call edi
inc eax
inc eax
push eax
call fcn.00411747
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42077c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x40cb1a
cmp byte [ebx], 0x5c
jne 0x40cb0d
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40cb0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cb15
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x40cae8
jmp 0x40cb1a
and dword [esp + 0x10], 0
push esi
call fcn.0040301d
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x40cb2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cb45
test al, 0x10
jne 0x40cb45
push 1
pop eax
jmp 0x40cb47
xor eax, eax
ret 4

Function at 0x40cb4a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cb62
test al, 0x10
je 0x40cb62
push 1
pop eax
jmp 0x40cb64
xor eax, eax
ret 4

Function at 0x40cb67
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.0040cb4a
test eax, eax
je 0x40cb9b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40cb96
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4