joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443050
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443083
push esi
call fcn.00451410
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44307c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443109
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4430f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4430a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4430ee
cmp eax, 2
je 0x4430f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44309a
cmp eax, 3
je 0x4430cd
cmp eax, 1
jne 0x44309a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44309a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44309a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443130
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443118
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443130
add esp, 4
pop esi
ret

Function at 0x4439b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4439d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4439d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4439d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x45f4b0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45f4fa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x45f529
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45f56b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x475814
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47584c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004738cb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004738a3
jmp 0x475858
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x476f06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x476f48
call fcn.0047c9be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476f48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x476f3f
xor eax, eax
jmp 0x476f50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00476f56
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ceee
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47cf1c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47cf3a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ce54
jmp 0x47cf3a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47cf3a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ce54
test edi, edi
mov eax, edi
jne 0x47cf24
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40e505
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40e514
pop dword [ebp - 0x28]
mov eax, 0x40e514
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x75241bec
sub dword [ebp - 0x38], 0x26d1d6a1
mov dword [ebp - 0x34], 0xb79d9447
sub dword [ebp - 0x34], 0x856a4802
mov dword [ebp - 0x30], 0x4c2aa408
sub dword [ebp - 0x30], 0xffde5fda
mov dword [ebp - 0x2c], 0x4112b333
add dword [ebp - 0x2c], 0xbeed4ccd
lea eax, [ebp - 0x38]
push eax
mov eax, 0xbe919d2d
sub eax, 0xbe4f6cb9
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xf8efc350
add dword [ebp - 0x38], 0x7b82a606
mov dword [ebp - 0x34], 0x1a397ae3
add dword [ebp - 0x34], 0x2732e692
mov dword [ebp - 0x30], 0x9d0593e1
add dword [ebp - 0x30], 0xc669d88b
mov dword [ebp - 0x2c], 0xead59202
sub dword [ebp - 0x2c], 0xead59202
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x3a294d2a
sub eax, 0x39e71c06
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b6a4
push 0
call eax
mov ecx, 0x144f5a34
sub ecx, 0x144f1b6f
mov edx, eax
mov ebx, 0x557abc61
add ebx, 0xaac8879f
add ebx, dword [ebp - 0x28]
mov esi, 0xe4077810
mov dword [ebp - 0x10], 0xb9a62e2
mov edi, dword [ebx]
xor edi, esi
mov dword [ebp - 0x1c], 0x19c9e332
mov dword [edx], edi
add edx, 4
add ebx, 0x1dbf0da5
sub ebx, 0x1dbf0da1
loop 0x40e62b
add eax, 0x2a3321f7
sub eax, 0x2a323410
mov ebx, eax
add eax, 5
mov ecx, 0xeb45d9a6
add ecx, 0x14fa265a
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4db3e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x86000]
push edi
jmp 0x4db3fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4db401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4db3f0
mov eax, 1
add ebx, ebx
jne 0x4db413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4db424
jne 0x4db443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4db443
dec eax
add ebx, ebx
jne 0x4db430
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4db408
add ebx, ebx
jne 0x4db43f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4db495
xor ecx, ecx
sub eax, 3
jb 0x4db45b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4db4ca
sar eax, 1
mov ebp, eax
jmp 0x4db466
add ebx, ebx
jne 0x4db466
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4db434
inc ecx
add ebx, ebx
jne 0x4db474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4db434
add ebx, ebx
jne 0x4db481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4db476
jne 0x4db492
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4db476
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4db4b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4db4a6
jmp 0x4db3f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4db4b4
add edi, ecx
jmp 0x4db3f6
pop esi
mov edi, esi
mov ecx, 0x3ee1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4db4d2
cmp byte [edi], 0x22
jne 0x4db4d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4db4d7
lea edi, [esi + 0xd4000]
mov eax, dword [edi]
or eax, eax
je 0x4db54f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdca14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdcb90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4db504
mov ecx, edi
jns 0x4db533
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdcb94]
or eax, eax
je 0x4db549
mov dword [ebx], eax
add ebx, 4
jmp 0x4db521
call dword [esi + 0xdcba4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4db580
cmp al, 0xef
ja 0x4db573
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4db555
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4db562
mov ebp, dword [esi + 0xdcb98]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4db5b4
sub esp, 0xffffff80
jmp 0x4276b4
Function at 0x4027d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x5c9f243
jg 0x402801
inc edi
cmp edi, 0x1e70dee2
jl 0x4027e0
cmp dword [0x43d0fc], 0x400
jne 0x402853
push 0x432bfc
push str.jumopudigazipaham
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
call fcn.00402a99
push esi
push esi
call fcn.00402ad3
pop ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00402970
fstp st(0)
push esi
call fcn.00402c63
add esp, 0xc
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x58bc6e
jg 0x402872
inc edi
cmp edi, 0xe52f
jl 0x402855
mov eax, dword [0x4350c4]
mov dword [0x43d0fc], eax
call fcn.0040252b
mov edi, 0x3078f
cmp dword [0x43d0fc], 0x51f
jne 0x4028a0
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x402886
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x406671
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434340]
jne 0x40667b
repz ret
jmp fcn.004088bc
Function at 0x407163
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404053
and dword [ebp - 0x14], 0
cmp dword [0x436d0c], 0
mov dword [ebp - 0x18], eax
jne 0x407216
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4072be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4072be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x436d0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x436d10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x436d14], eax
call edi
push eax
call esi
mov dword [0x436d1c], eax
test eax, eax
je 0x407216
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x436d18], eax
mov eax, dword [0x436d18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40726f
cmp dword [0x436d1c], ecx
je 0x40726f
push eax
call esi
push dword [0x436d1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40726f
test ebx, ebx
je 0x40726f
call edi
test eax, eax
je 0x407266
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407266
test byte [ebp - 8], 1
jne 0x40726f
or dword [ebp + 0x10], 0x200000
jmp 0x4072a2
mov eax, dword [0x436d10]
cmp eax, dword [ebp - 0x18]
je 0x4072a2
push eax
call esi
test eax, eax
je 0x4072a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4072a2
mov eax, dword [0x436d14]
cmp eax, dword [ebp - 0x18]
je 0x4072a2
push eax
call esi
test eax, eax
je 0x4072a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436d0c]
call esi
test eax, eax
je 0x4072be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4072c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406671
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401260
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
push 0x408050
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0x100
mov ecx, 0x408370
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x100
push eax
mov eax, dword [esp + 0x10]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x4012b6
push 0xffffffffffffffff
push 0x10
push 0xe12f
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp esi, 0x100
jbe 0x4012de
push 0xffffffffffffffff
mov ecx, 0x408370
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
mov ecx, 0x408370
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 8]
push esi
push eax
push ecx
call edi
push 0xffffffffffffffff
mov ecx, 0x408370
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, 0x408370
call sub.MFC42.DLL_CString::FreeExtra
mov ecx, 0x408370
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [0x408370]
mov edx, dword [eax - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x401319
push 0x5c
mov ecx, 0x408370
call fcn.00405722
push 0x408370
mov ecx, 0x408448
call fcn.00402f20
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea esi, [ecx + 0x14]
push 0x408474
push esi
push edi
push eax
xor ebx, ebx
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0x40846c
push esi
lea edx, [esp + 0x18]
push edi
push edx
call sub.MFC42.DLL_operator_1
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x402387
mov edx, dword [esp + 0x18]
push edx
call esi
cmp eax, 0xffffffff
je 0x40238c
mov ebx, 1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x402990
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
test eax, eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
je 0x4029b4
test eax, eax
jne 0x4029c9
xor eax, eax
pop esi
add esp, 0x114
ret 4
test eax, eax
je 0x4029c9
mov ecx, esi
call fcn.00402b10
pop esi
add esp, 0x114
ret 4
lea eax, [esp + 8]
mov ecx, 0x408448
push eax
call fcn.00402f30
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00402510
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.00402550
mov eax, dword [esp + 4]
mov dword [esp + 0x10], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402a45
test al, 1
je 0x402a45
mov ecx, dword [esp + 4]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402a45
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
add esp, 0x114
ret 4
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0x105
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x105
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x18]
push eax
push 0x105
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x105
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x105
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
call sub.VERSION.dll_VerInstallFileA
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x402aab
mov esi, eax
jmp 0x402ab4
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
add esp, 0x114
ret 4

Function at 0x402b10
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, ecx
push eax
call fcn.00402600
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00402650
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b6b
test al, 1
je 0x402b6b
and al, 0xfe
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402b6b
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push ecx
call esi
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0xc]
mov edi, eax
push ecx
call esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x402d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push edi
mov edi, ecx
mov dword [esp + 0x14], 0x4080c4
mov eax, dword [eax - 8]
mov dword [esp + 0x18], 0x408478
test eax, eax
mov dword [esp + 0x1c], 0x4080b4
mov dword [esp + 0x20], 0x4080ac
jne 0x402d63
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop edi
add esp, 0x20
ret 8
push ebx
push ebp
push esi
push 0x5c
lea ecx, [esp + 0x38]
lea esi, [eax - 1]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, esi
je 0x402d92
push 0x3a
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, esi
je 0x402d92
push 0x5c
lea ecx, [esp + 0x38]
call fcn.00405722
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
mov eax, dword [edx]
lea edx, [esp + 0x1c]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402e22
test al, 0x10
je 0x402e22
mov eax, dword [edi + 8]
xor ebp, ebp
xor ebx, ebx
xor esi, esi
test eax, eax
jle 0x402e1a
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + esi*4]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x402e12
lea edx, [esp + 0x10]
inc ebx
push edx
call fcn.00402310
test eax, eax
je 0x402e12
inc ebp
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x402df5
lea eax, [ebp + ebp]
cmp eax, ebx
jge 0x402e3f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
add edx, 4
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jb 0x402dab
mov eax, dword [esp + 0x18]
pop esi
pop ebp
cmp eax, 4
pop ebx
lea ecx, [esp + 4]
jne 0x402e66
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop edi
add esp, 0x20
ret 8
push ecx
mov ecx, dword [esp + 0x30]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop edi
add esp, 0x20
ret 8

Function at 0x403090
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x403110
cmp eax, 1
je 0x403110
cmp eax, 3
jne 0x4030ff
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x403110
mov eax, dword [esp + 4]
mov dword [esi + 8], 1
imul eax, dword [esp + 8]
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
add esp, 0x10
ret
mov dword [esi + 8], 1
mov eax, 1
pop esi
add esp, 0x10
ret
xor eax, eax
pop esi
add esp, 0x10
ret