joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4489d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4998d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048cf84
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0xfce470
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0xfce3b8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x49b050]
push eax
mov ecx, edi
call fcn.0049261d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00493b39
test eax, eax
je 0x448aec
mov ecx, dword [esp + 0x3c]
call fcn.0049264a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x49b524]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x448ab0
push edi
mov ecx, esi
call fcn.0048fcab
mov ecx, esi
call fcn.00448c90
cmp dword [esp + 0x38], 1
jne 0x448ae5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048fde6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x44ad00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ad33
push esi
call fcn.004590a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44ad2c
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 0x44adb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44ada2
mov eax, dword [esi + 8]
test eax, eax
je 0x44ad57
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 0x44ad9e
cmp eax, 2
je 0x44ada2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44ad4a
cmp eax, 3
je 0x44ad7d
cmp eax, 1
jne 0x44ad4a
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 0x44ad4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44ad4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044ade0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44adc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044ade0
add esp, 4
pop esi
ret
Function at 0x46bac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x46bbe1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x46bbc5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x46bb17
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x46baf5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x408ebc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408efa
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408f01
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40d720
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x40909c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x437224], 0
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x4090d9
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x4090c4
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4090b6
mov dword [ecx*4 + 0x437220], eax
inc ecx
cmp ecx, 0x100
jne 0x4090af
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x4090fb
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x437220]
jmp 0x4090e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0xdce8c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdce8d2
pushal
call 0xdce8d8
pop ebp
sub ebp, 0x10
sub ebp, 0x9ce8c8
jmp 0xdce8ee
mov eax, 0x9ce8c8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c7
mov edx, 0xca02be8d
xor byte [eax], dl
inc eax
dec ecx
jne 0xdce905
jmp 0xdce918
push es
inc eax
push es
add al, 0xb1
lea ecx, [ebp + 0x754c0c8d]
lea ecx, [ebp + 0x35408e8d]
mov dword [ebp - 0x5ac87273], ecx
lea ecx, [ebp - 0x71908573]
inc ebp
push es
or al, 0x81
lea ecx, [ebp - 0x22b77173]
fucom st(5)
xchg ecx, eax
imul ebp, dword [ebp + ecx*4 - 0x970de1b], 0xffffff8d
mov word [ecx + 0x20b0e5a9], fs
invalid
Function at 0x401971
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
push esi
push ebx
push 2
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4019a8
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4019ac
mov al, 1
jmp 0x4019ec
push edi
xor edi, edi
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4019e0
lea eax, [ebp - 0x104]
push str.vdgame.exe
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4019af
inc edi
cmp edi, 2
jle 0x4019af
jmp 0x4019e2
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a6a
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x110
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
je 0x401a84
mov dword [eax], 0x407564
jmp 0x401a86
xor eax, eax
mov ecx, dword [esp + 8]
push eax
push 0
push 0x401afa
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 0x402706
Capabilities:
Delete file

Disassembly:
mov eax, 0x405fd0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x418
cmp byte [ebp + 0xc], 0
push ebx
mov dword [ebp - 0x20], ecx
jne 0x40272a
call fcn.004026f4
jmp 0x4028d2
push 0x40a3a0
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 0x4028d2
and dword [0x40a34c], 0
test byte [ebx + 0xc], 0x10
jne 0x402894
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push edi
mov edi, 0x40a39c
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 0x402888
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x40a75c
push eax
call sub.MFC42.DLL_operator
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
je 0x4027cd
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 0x4027ec
push dword [ebp - 0x10]
call fcn.00405413
test al, al
pop ecx
je 0x402801
cmp ebx, dword [0x40a714]
jle 0x402879
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x40a350], ebx
jge 0x40280f
mov dword [0x40a350], ebx
cmp dword [ebp + 0xc], 0
jge 0x402836
inc dword [0x40a34c]
push str.login
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x402836
mov dword [ebp + 0xc], 0xfffe7961
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, 0x40a7f8
push eax
call fcn.004036d0
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, 0x40a7e0
push eax
mov byte [ebp - 4], 1
call fcn.00401c2e
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 0x402765
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x40a350]
pop ecx
cmp eax, 0xffffffff
je 0x4028b1
push eax
mov ecx, 0x40a648
call fcn.0040181c
mov ecx, dword [ebp - 0x20]
push 0x40a388
call fcn.004026a9
mov eax, dword [0x40a7fc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x40a7f0], eax
call fcn.00402a21
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4028e1
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
mov eax, 0x405fe4
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
push edi
mov edi, ecx
jne 0x402925
inc dword [0x40a814]
cmp dword [0x40a814], 0xa
jge 0x402913
call fcn.00402a21
cmp dword [0x40a814], 0xa
jne 0x402a10
mov ecx, edi
call fcn.004026f4
jmp 0x402a10
push str.login
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4029b3
push str..old
lea eax, [ebp + 0xc]
push 0x40a760
push eax
call sub.MFC42.DLL_operator
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], ebx
push dword [0x40a760]
call esi
push dword [0x40a760]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x40299c
push 5
push ebx
push dword [ebp + 0xc]
push dword [0x40a760]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, edi
call fcn.0040368c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x402a10
push dword [0x40a760]
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 - 0x10]
push 0x40a75c
push eax
call sub.MFC42.DLL_operator
push ebx
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
inc dword [0x40a810]
mov esi, str.vdgame.exe
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4029ff
push esi
call fcn.004019f0
pop ecx
mov dword [0x40a778], eax
mov ecx, 0x40a7f0
call fcn.00403e32
mov ecx, edi
call fcn.00402a21
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402aa5
Capabilities:
Create process on windows
Delete file

Disassembly:
mov eax, 0x405ff8
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x13f0
call fcn.00405ab0
push ebx
push esi
push edi
mov esi, str.vdgame.exe
mov edi, 0x40a75c
push esi
lea eax, [ebp - 0x10]
push edi
mov dword [ebp - 0x14], ecx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [0x40a34c]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x402c6d
cmp dword [0x40a810], eax
jl 0x402c6d
push esi
call fcn.004019f0
cmp eax, dword [0x40a778]
pop ecx
je 0x402b25
push esi
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MFC42.DLL_operator
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
call fcn.004035fe
push 0x44
lea eax, [ebp - 0x74]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x74], esi
push ebx
push ebx
push 0x147
push dword [eax + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
call fcn.004052d7
mov ecx, esi
mov dword [ebp - 0x18], ebx
shl ecx, 3
mov dword [ebp - 0x1c], ebx
mov esi, dword [ecx + 0x40a790]
mov edi, dword [ecx + 0x40a794]
sub esi, eax
sub edi, edx
call fcn.00404b0e
cmp eax, ebx
je 0x402ba1
movzx edx, byte [eax + 2]
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edx
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
movzx eax, byte [eax + 5]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x13fc]
push dword [ebp - 0x18]
push edi
push esi
push dword [0x40a808]
push str._s_width_d_height_d_m1_d_m2_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x13fc]
push dword [0x40a75c]
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 0x402c95
mov esi, dword [ebp - 0x14]
push 2
mov byte [0x40a818], 1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x40a710]
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x30]
call edi
mov ecx, dword [0x40a710]
push 5
mov byte [0x40a818], bl
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
push ebx
push ebx
push ebx
push dword [0x40a76c]
lea ecx, [esi + 0xa4]
call fcn.0040554a
mov ecx, esi
call fcn.00402a21
jmp 0x402c95
cmp byte [0x40a819], bl
je 0x402c95
push dword [ebp - 0x10]
call fcn.00405413
test al, al
pop ecx
jne 0x402c95
mov ecx, dword [ebp - 0x14]
push ebx
push 0x40a3d8
push 0x40a3b8
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 esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404f64
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x40638b
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x514
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x138]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [ebp - 0x138]
and byte [ebp - 0x520], 0
mov byte [ebp - 0x30], al
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x51f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
pop ebx
lea eax, [ebp - 0x520]
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0x14
lea esi, [ebp - 0x520]
pop edi
mov al, byte [esi]
test al, al
je 0x405004
cmp al, byte [ebp - 0x138]
je 0x405004
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x405004
push esi
call fcn.00405173
pop ecx
mov cl, byte [esi]
movsx edx, cl
mov dword [edx*4 + 0x40cf38], eax
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
mov byte [ebp + eax - 0x30], cl
add esi, 4
dec edi
jne 0x404fcd
push 0x405154
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov edi, 0x40a764
mov esi, 0x40a5a8
lea eax, [ebp - 0x24]
push edi
push esi
push eax
call sub.MFC42.DLL_operator_2
push 0x40a59c
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp byte [0x40a768], 0
je 0x40509f
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call sub.MFC42.DLL_operator_2
push 0x40a58c
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x18]
xor esi, esi
test edi, edi
jle 0x4050ef
mov al, byte [ebp + esi - 0x30]
lea ecx, [ebp - 0x10]
push eax
push 0
call sub.MFC42.DLL_CString::SetAt
lea eax, [ebp - 0x10]
push str.gamever.txt
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator
push dword [eax]
mov byte [ebp - 4], 6
call fcn.00405413
pop ecx
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x11], 0
jne 0x405143
inc esi
cmp esi, edi
jl 0x4050a8
xor esi, esi
test edi, edi
jle 0x405116
mov al, byte [ebp + esi - 0x30]
lea ecx, [ebp - 0x10]
push eax
push 0
call sub.MFC42.DLL_CString::SetAt
push dword [ebp - 0x10]
call fcn.004053ad
test al, al
pop ecx
jne 0x405116
inc esi
cmp esi, edi
jl 0x4050f5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004056d0
mov dword [ebp - 0x1c], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
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
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004056d0
mov dword [ebp - 0x1c], ebx
jmp 0x405125
Function at 0x40535c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x108], edi
jle 0x40538b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405395
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [esi + 0x108]
jl 0x40536c
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
ret
cmp byte [esi + 0x104], 0
je 0x405392
push 0
push esi
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x405392

Function at 0x4053ad
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call esi
inc eax
push 0x5c
push eax
call esi
add esp, 0x18
mov edi, eax
test edi, edi
je 0x405406
and byte [edi], 0
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [edi], 0x5c
inc edi
push 0x5c
push edi
call esi
pop ecx
pop ecx
jmp 0x4053e1
push dword [ebp + 8]
call fcn.00405413
pop ecx
pop edi
pop esi
leave
ret

Function at 0x405413
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 0x405428
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push esi
push edi
push 0x40a3a0
push dword [esp + 0x18]
call ebp
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x405493
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov edi, eax
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push 0x40a5b4
push dword [esp + 0x50]
call ebp
mov ebp, eax
add esp, 0x3c
test ebp, ebp
jne 0x405497
xor al, al
jmp 0x4054b1
push ebp
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call esi
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x13c96c60
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x10c81022
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219