joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b86a
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x468598]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x43b890
cmp dword [0x468590], ebx
jne 0x43b890
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jmp 0x43ba4f
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfffffff2
jne 0x43b9bb
mov edi, dword [ebp + 8]
cmp dword [edi + 0x6a0], ebx
je 0x43b8ae
xor eax, eax
jmp 0x43ba63
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
push dword [ebp - 4]
mov esi, 0x468570
push dword [ebp - 8]
push esi
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
jne 0x43b90d
push dword [0x468590]
push dword [ebp + 0xc]
call dword [sym.imp.user32.dll_KillTimer]
or dword [0x456c48], 0xffffffff
or dword [0x456c50], 0xffffffff
or dword [0x456c4c], 0xffffffff
push ebx
push 1
mov dword [0x468590], ebx
push dword [ebp + 0xc]
push edi
call fcn.00438c3c
add esp, 0x10
jmp 0x43b9b3
cmp dword [0x456c48], ebx
jne 0x43b92a
push dword [ebp - 4]
lea ebx, [edi + 8]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043a8cd
jmp 0x43b940
push dword [ebp - 4]
lea ebx, [edi + 0x354]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043a957
add esp, 0x14
cmp dword [0x456c50], eax
mov dword [0x456c4c], eax
je 0x43b9ae
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call fcn.0043a989
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.user32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
neg eax
push eax
mov eax, dword [ebp - 0x28]
neg eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.user32.dll_OffsetRect]
push esi
call dword [sym.imp.user32.dll_GetWindowDC]
mov edi, eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
push edi
push esi
push ebx
call fcn.0043a8a0
add esp, 0x14
push edi
push esi
call dword [sym.imp.user32.dll_ReleaseDC]
mov eax, dword [0x456c4c]
mov dword [0x456c50], eax
xor eax, eax
pop esi
jmp 0x43ba63
cmp ecx, 0xfffd
jne 0x43b9e8
push eax
push dword [ebp + 0xc]
call dword [sym.imp.user32.dll_KillTimer]
push ebx
push 0x37
push 0xfffe
push dword [ebp + 0xc]
call dword [sym.imp.user32.dll_SetTimer]
mov dword [0x468598], eax
jmp 0x43b8a7
cmp ecx, 0xfffe
jne 0x43ba4b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.user32.dll_ScreenToClient]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ae96
mov eax, dword [0x456c54]
add esp, 0x10
cmp eax, 0xffffffff
je 0x43b8a7
push ebx
push eax
push dword [0x468594]
push dword [ebp + 0xc]
call fcn.0043a722
add esp, 0x10
jmp 0x43b8a7
push dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 8]
push 0x113
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.user32.dll_CallWindowProcA]
pop edi
pop ebx
leave
ret
Function at 0x43eca2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp + 0x1c]
mov edi, ecx
push eax
push esi
mov ebx, dword [edi + 0xd8]
mov dword [ebp - 4], edi
call fcn.0043e635
push 0
push eax
push dword [edi + 0x9c]
call dword [sym.imp.user32.dll_SetWindowRgn]
test ebx, ebx
je 0x43ece0
push ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
push 1
push 0xf
call dword [sym.imp.user32.dll_GetSysColor]
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp + 0x1c]
push esi
push eax
push ebx
call fcn.0042776d
mov eax, dword [esi + 0x44]
add esp, 0x14
add dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x48]
add dword [ebp + 0x20], eax
mov eax, dword [esi + 0x4c]
sub dword [ebp + 0x24], eax
mov eax, dword [esi + 0x50]
push dword [ebp + 0x18]
sub dword [ebp + 0x28], eax
call dword [sym.imp.gdi32.dll_CreateFontIndirectA]
push eax
push ebx
mov dword [ebp + 0x18], eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push 3
push 0x456cd0
push ebx
call dword [sym.imp.gdi32.dll_GetTextExtentPointA]
lea eax, [ebp - 0x2c]
lea esi, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
call fcn.004ad0dd
call fcn.0043eb6f
push 0
push 0xf
mov dword [ebp + 0xc], eax
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x1c]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.00427dcf
add esp, 0x14
lea eax, [ebp - 0xf4]
push 0xc8
push eax
push dword [esi + 0x9c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov eax, dword [ebp + 0x14]
and byte [ebp - 0x2d], 0
add eax, 4
push eax
call fcn.004283a6
mov esi, dword [sym.imp.gdi32.dll_SetTextColor]
pop ecx
push eax
push ebx
call esi
mov edi, dword [sym.imp.gdi32.dll_SetBkMode]
push 1
push ebx
mov dword [ebp + 0x10], eax
call edi
push dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
push eax
lea eax, [ebp - 0xf4]
push eax
push ebx
call dword [sym.imp.user32.dll_DrawTextA]
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.gdi32.dll_SelectObject]
push dword [ebp + 0x18]
call dword [sym.imp.gdi32.dll_DeleteObject]
push dword [ebp + 0x14]
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x4433e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push edi
push 1
push eax
call fcn.00443b40
push 0
mov ebx, eax
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00443b40
xor edx, edx
mov dl, byte [ebx + 0x1f]
mov esi, edx
test esi, esi
je 0x443593
cmp esi, 0x1f
jge 0x443593
cmp byte [esi + ebx], 0xe9
jne 0x443593
mov ecx, dword [esi + ebx + 1]
lea edi, [ecx + ebx + 5]
mov cl, byte [ecx + ebx + 5]
cmp cl, 0xe9
je 0x443446
push 9
call dword [sym.imp.kernel32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov edx, dword [edi + 1]
lea ecx, [edx + edi + 5]
cmp ecx, eax
je 0x443464
push 0xc
call dword [sym.imp.kernel32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x4434aa
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4434aa
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
test eax, eax
je 0x4434aa
lea edx, [esp + 0x18]
push edx
push 0x40
push esi
push edi
call dword [sym.imp.kernel32.dll_VirtualProtect]
xor ecx, ecx
mov eax, ebx
test esi, esi
mov edx, edi
jle 0x4434c8
push 0
push eax
push edx
call fcn.00443b80
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
lea edx, [ecx + edi]
jl 0x4434b4
cmp ecx, esi
je 0x44353a
push 0xd
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44359b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x44359b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x44359b
push eax
mov eax, dword [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
test eax, eax
je 0x44359b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x443585
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x443585
mov eax, dword [esp + 0x14]
test eax, eax
je 0x443585
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
test eax, eax
je 0x443585
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push 6
call dword [sym.imp.kernel32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x6f74d5
Capabilities:
Parse pe header

Disassembly:
push esp
lea esp, [esp + 7]
lea esp, [esp]
lea esp, [esp]
jmp 0x6f752a
pushal
push word [esp + 0x1e]
pop dword [esp + 1]
lea esp, [esp + 3]

Function at 0x473050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x45000]
push edi
jmp 0x47306a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x473071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473060
mov eax, 1
add ebx, ebx
jne 0x473083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x473094
jne 0x4730b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730b3
dec eax
add ebx, ebx
jne 0x4730a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x473078
add ebx, ebx
jne 0x4730af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x473105
xor ecx, ecx
sub eax, 3
jb 0x4730cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47313a
sar eax, 1
mov ebp, eax
jmp 0x4730d6
add ebx, ebx
jne 0x4730d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730a4
inc ecx
add ebx, ebx
jne 0x4730e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730a4
add ebx, ebx
jne 0x4730f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4730e6
jne 0x473102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4730e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x473124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x473116
jmp 0x473066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x473124
add edi, ecx
jmp 0x473066
pop esi
mov edi, esi
mov ecx, 0x2046
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x473142
cmp byte [edi], 0x12
jne 0x473142
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 0x473147
lea edi, [esi + 0x6f000]
mov eax, dword [edi]
or eax, eax
je 0x4731b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x79398]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x793c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x473174
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x793c4]
or eax, eax
je 0x4731b0
mov dword [ebx], eax
add ebx, 4
jmp 0x473191
call dword [esi + 0x793d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4731e7
cmp al, 0xef
ja 0x4731da
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4731bc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4731c9
mov ebp, dword [esi + 0x793c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x47321b
sub esp, 0xffffff80
jmp 0x4320d5
Function at 0x4014a3
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x110
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
je 0x4014bd
mov dword [eax], 0x406524
jmp 0x4014bf
xor eax, eax
mov ecx, dword [esp + 8]
push eax
push 0
push 0x401533
mov dword [eax + 0x108], ecx
mov dword [eax + 0x10c], esi
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
pop esi
ret 4

Function at 0x40201f
Capabilities:
Delete file

Disassembly:
mov eax, 0x405050
call fcn.00404bc0
sub esp, 0x418
cmp byte [ebp + 0xc], 0
push ebx
mov dword [ebp - 0x20], ecx
jne 0x402043
call fcn.0040200d
jmp 0x4021e7
push 0x409130
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
je 0x4021e7
and dword [0x4090dc], 0
test byte [ebx + 0xc], 0x10
jne 0x4021ad
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push edi
mov edi, 0x40912c
push ebx
lea eax, [ebp - 0x424]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
lea eax, [ebp - 0x424]
push edi
push eax
call esi
push edi
push 0
mov dword [ebp + 0x10], eax
call esi
push edi
push 0
mov dword [ebp - 0x1c], eax
call esi
add esp, 0x24
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
je 0x4021a1
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x409494
push eax
call sub.MFC42.DLL_operator_1
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
je 0x4020e6
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp + 0xc], eax
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_atoi]
cmp dword [ebp + 0xc], 0
pop ecx
mov ebx, eax
jge 0x402105
push dword [ebp - 0x10]
call fcn.004040ee
test al, al
pop ecx
je 0x40211a
cmp ebx, dword [0x4094ac]
jle 0x402192
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x4090e0], ebx
jge 0x402128
mov dword [0x4090e0], ebx
cmp dword [ebp + 0xc], 0
jge 0x40214f
inc dword [0x4090dc]
push str.login
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x40214f
mov dword [ebp + 0xc], 0xfffe7961
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, 0x409528
push eax
call fcn.00402f1f
mov ecx, eax
call sub.MFC42.DLL_CString::operator_1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x14]
mov ecx, 0x409510
push eax
mov byte [ebp - 4], 1
call fcn.0040165c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [eax], ebx
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x18]
test byte [ebx + 0xc], 0x10
je 0x40207e
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x4090e0]
pop ecx
cmp eax, 0xffffffff
je 0x4021c6
push eax
call fcn.00404160
pop ecx
mov ecx, dword [ebp - 0x20]
push 0x409118
call fcn.00401fc2
mov eax, dword [0x40952c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x409520], eax
call fcn.00402359
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4021f6
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
mov eax, 0x405064
call fcn.00404bc0
cmp byte [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
jne 0x402237
inc dword [0x409544]
cmp dword [0x409544], 0xa
jge 0x402225
call fcn.00402359
cmp dword [0x409544], 0xa
jne 0x402349
mov ecx, edi
call fcn.0040200d
jmp 0x402349
push str.login
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4022d3
push str..old
lea eax, [ebp + 0xc]
push 0x409498
push eax
call sub.MFC42.DLL_operator_1
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
and dword [ebp - 4], 0
push dword [0x409498]
call esi
push dword [0x409498]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x4022bc
push 5
push dword [0x409494]
push dword [ebp + 0xc]
push dword [0x409498]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, edi
call fcn.00402e4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x402349
push dword [0x409498]
push dword [ebp + 0xc]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
push dword [ebp + 8]
lea eax, [ebp + 8]
push 0x409494
push eax
call sub.MFC42.DLL_operator_1
push 0
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x409520]
inc dword [0x409540]
mov ecx, dword [0x40954c]
mov edx, dword [eax + 8]
cmp edx, ecx
je 0x402323
mov eax, dword [edx]
cmp eax, ecx
je 0x40231b
mov edx, eax
jmp 0x402311
mov dword [0x409520], edx
jmp 0x402342
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x402337
mov eax, ecx
mov dword [0x409520], eax
mov ecx, dword [ecx + 4]
jmp 0x402326
cmp dword [eax + 8], ecx
je 0x402342
mov dword [0x409520], ecx
mov ecx, edi
call fcn.00402359
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4023b5
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x405078
call fcn.00404bc0
mov eax, 0x13e0
call fcn.00404bf0
push ebx
push edi
push str.vdgame.exe
lea eax, [ebp - 0x10]
push 0x409494
mov edi, ecx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [0x4090dc]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x4024f7
cmp dword [0x409540], eax
jl 0x4024f7
push esi
push 0x44
pop esi
lea eax, [ebp - 0x64]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], esi
push ebx
push ebx
push 0x147
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
call fcn.0040475d
shl esi, 3
mov ecx, dword [esi + 0x4094c0]
sub ecx, eax
mov eax, dword [esi + 0x4094c4]
sub eax, edx
push eax
push ecx
push dword [0x409538]
lea eax, [ebp - 0x13ec]
push str._s_width_d_height_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x13ec]
push dword [0x409494]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4024e8
push 2
mov byte [0x409548], 1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, 0x4093c8
call fcn.0040146b
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, 0x4093c8
mov byte [0x409548], bl
call fcn.004013f4
push ebx
push ebx
push ebx
push ebx
push dword [0x4094a0]
lea ecx, [edi + 0xa4]
call fcn.004047f6
mov ecx, edi
call fcn.00402359
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
pop esi
jmp 0x40252a
cmp byte [0x409549], bl
je 0x40251e
push dword [ebp - 0x10]
call fcn.004040ee
test al, al
pop ecx
jne 0x40251e
push ebx
push 0x409170
push 0x409150
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40408e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x5c
push ebx
call edi
mov esi, eax
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
inc esi
push 0x5c
push esi
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4040cb
and byte [esi], 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x4040dd
mov byte [esi], 0x5c
jmp 0x4040ba
push ebx
call fcn.004040ee
pop ecx
pop edi
test al, al
pop esi
pop ebx
setne al
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4044d8
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x405327
call fcn.00404bc0
sub esp, 0x118
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x124]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and byte [ebp - 0x121], 0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
or dword [ebp - 0x18], 0xffffffff
push 1
pop ebx
mov edi, 0x4094b4
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 4], 2
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x124]
mov dword [ebp - 0x1c], 0xa
cmp byte [esi], 0
je 0x40459a
push esi
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x40459a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40459a
push esi
call fcn.004045f6
cmp eax, dword [ebp - 0x18]
pop ecx
jle 0x40459a
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CString::operator_1
add esi, 4
dec dword [ebp - 0x1c]
jne 0x404561
push edi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x4045be
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00404958
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret