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

Disassembly:
push 0xffffffffffffffff
push 0x437350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x90]
lea edi, [esi + 0x104]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, edi
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
call fcn.0040e970
test eax, eax
jne 0x40b772
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push 0x69
call fcn.0040e970
add esp, 4
test eax, eax
jne 0x40b791
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebx
push 0x4489e4
push str.SaveState
lea edx, [esp + 0x1c]
push 0x44adc0
push edx
mov ecx, esi
call fcn.00409560
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x40b7d6
mov dword [esi + 0xf8], 0
push edi
lea ecx, [esp + 0xc]
call fcn.0042c6ee
push str.MasterFilm.ini
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
call fcn.0042ca54
mov eax, dword [esp + 8]
push eax
push 0
push str.MinimizeWhenClose
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
cmp ecx, eax
mov ecx, esi
sbb edx, edx
neg edx
mov dword [esi + 0x140], edx
call fcn.0040b870
test eax, eax
je 0x40b82d
mov ecx, esi
call fcn.0040ba20
push str.CF_CZLD_VI_IMAGE_BOX
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
lea ecx, [esp + 8]
mov dword [esi + 0x13c], eax
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40bc20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x437416
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
add ecx, 0x104
push edi
push ecx
lea ecx, [esp + 8]
call fcn.0042c6ee
push str.SmitPlatform.ini
lea ecx, [esp + 8]
mov dword [esp + 0x418], 0
call fcn.0042ca54
mov al, byte [0x44adc0]
mov ecx, 0xff
mov byte [esp + 0xc], al
xor eax, eax
lea edi, [esp + 0xd]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 4]
push ecx
push 0x400
stosw word es:[edi], ax
push edx
push 0x44adc0
push str.DataSource
push str.System
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x40bcc6
mov ecx, dword [esp + 0x418]
lea eax, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator
jmp 0x40bd0a
push str.DSNPacs
push str.DataSource
lea ecx, [esp + 0xc]
push 0x44adc0
push ecx
mov ecx, 0x44add0
call fcn.00409560
mov ecx, dword [esp + 0x418]
push eax
mov byte [esp + 0x414], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x410], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x410], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
add esp, 0x414
ret 4
Function at 0x410ac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x437dee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ebp, dword [edi + 8]
sub esp, 0x38
lea ecx, [esp + 0x5c]
mov esi, esp
mov dword [esp + 0x44], esp
push ecx
mov dword [esp + 0x54], 0
lea ecx, [esi + 4]
mov dword [esp + 0x48], esi
mov dword [esi], eax
call fcn.0042c6ee
mov edx, dword [esp + 0x60]
mov byte [esp + 0x50], 1
mov dword [esi + 8], edx
mov eax, dword [esp + 0x64]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x68]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x70]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x78]
mov dword [esi + 0x1c], ecx
push edx
lea ecx, [esi + 0x20]
call fcn.0042c6ee
lea eax, [esp + 0x7c]
lea ecx, [esi + 0x24]
push eax
mov byte [esp + 0x54], 2
call fcn.0042c6ee
mov ecx, dword [esp + 0x80]
push ebp
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0x88]
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0x8c]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x90]
mov dword [esi + 0x34], ecx
mov ecx, edi
mov byte [esp + 0x54], 0
call fcn.00411830
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x10
ret 0x38
Function at 0x413980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4381b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov eax, dword [esi + 0x40]
add eax, 0x68
push eax
call fcn.0042c6ee
xor edi, edi
mov ebx, 0x43c144
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x3c], 1
call fcn.004136f0
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x413a0e
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
imul esi, dword [eax]
mov dword [esp + 0x14], ebx
cmp eax, edi
mov byte [esp + 0x30], 2
je 0x413a91
push eax
jmp 0x413a89
cmp eax, 2
je 0x413a5f
cmp eax, 3
je 0x413a5f
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x30], 4
cmp eax, edi
je 0x413a32
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x43b208
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
xor esi, esi
cmp ecx, edi
jle 0x413a7b
push ebp
mov eax, edx
mov ebp, dword [eax]
add eax, 4
add esi, ebp
dec ecx
jne 0x413a70
pop ebp
mov dword [esp + 0x14], ebx
cmp edx, edi
mov byte [esp + 0x30], 3
je 0x413a91
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x43b208
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x413b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4381e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov eax, dword [edi + 0x40]
add eax, 0x68
push eax
call fcn.0042c6ee
xor ebx, ebx
mov dword [esp + 0x14], 0x43c144
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x3c], 1
call fcn.004136f0
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x413bbc
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push esi
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, edi
call fcn.00413ca0
jmp 0x413be3
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
cmp eax, 2
mov eax, dword [esp + 0x3c]
push esi
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, edi
jne 0x413bde
call fcn.00413d30
jmp 0x413be3
call fcn.00413dd0
cmp dword [edi + 0x138], ebx
je 0x413c44
mov ecx, dword [esi + 8]
mov edi, dword [esi]
mov edx, dword [esi + 4]
sub ecx, edi
mov edi, dword [esi + 0xc]
push ebp
sub edi, edx
xor ebp, ebp
cmp ecx, edi
jle 0x413c0e
mov eax, ecx
sub eax, edi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x413c19
mov eax, edi
sub eax, ecx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [esi]
mov edx, ecx
add eax, ebp
mov ebp, dword [esi + 4]
add ebp, ebx
cmp ecx, edi
mov dword [esi + 4], ebp
mov ebx, ebp
mov dword [esi], eax
pop ebp
jl 0x413c32
mov edx, edi
add eax, edx
cmp ecx, edi
mov dword [esi + 8], eax
jl 0x413c3d
mov ecx, edi
add ebx, ecx
mov dword [esi + 0xc], ebx
xor ebx, ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_InflateRect]
mov dword [esp + 0x14], 0x43c144
mov eax, dword [esp + 0x18]
pop edi
pop esi
cmp eax, ebx
mov byte [esp + 0x28], 2
pop ebx
je 0x413c70
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp]
mov dword [esp + 8], 0x43b208
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x416070
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x438328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x44af0c]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp eax, edi
mov dword [esp + 0x10], ebx
je 0x416198
mov ebp, 0x43c4a8
xor eax, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov esi, dword [ebx + 0x40]
mov dword [esp + 0x30], edi
cmp dword [esi + 0x628], edi
jle 0x416133
mov eax, dword [esi + 0x624]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x41611a
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41611a
mov ecx, dword [eax + 8]
mov ecx, dword [ecx]
call dword [sym.imp.ImageObjectPro.dll_public:_int___thiscall_CImageObject::IsSelected_void_]
test eax, eax
je 0x41611a
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x624]
mov ebp, eax
inc eax
mov ebx, dword [edx + edi*4]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.004116d0
mov eax, dword [esp + 0x18]
mov dword [eax + ebp*4], ebx
mov ebx, dword [esp + 0x10]
mov ebp, 0x43c4a8
mov eax, dword [esi + 0x628]
inc edi
cmp edi, eax
jl 0x4160cb
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
jne 0x416143
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], 1
cmp eax, edi
jmp 0x41618d
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41615f
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], 2
jmp 0x416187
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.00415c90
test eax, eax
jne 0x4161ad
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], 3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x416198
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push eax
mov eax, dword [0x44af0c]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], 4
test eax, eax
je 0x4161dd
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x416da9
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov eax, dword [esi + 0x40]
add eax, 0x68
push eax
call fcn.0042c6ee
xor edi, edi
mov ebx, 0x43c144
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x3c], 1
call fcn.004136f0
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x416e2b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00416950
mov esi, eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x30], 2
cmp eax, edi
je 0x416e7c
jmp 0x416e73
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp eax, 2
lea eax, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
jne 0x416e5b
call fcn.00416b70
mov esi, eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x30], 3
cmp eax, edi
je 0x416e7c
jmp 0x416e73
call fcn.00416b70
mov esi, eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x30], 4
cmp eax, edi
je 0x416e7c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x43b208
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x417f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4385d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, dword [ecx + 0x40]
push edi
lea ecx, [esp + 0xc]
lea eax, [esi + 0x58]
push eax
call fcn.0042c6ee
add esi, 0x5c
lea ecx, [esp + 0x1c]
push esi
mov dword [esp + 0x30], 0
call fcn.0042c6ee
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x449014
push ecx
mov byte [esp + 0x34], 1
call ebp
add esp, 8
test eax, eax
jne 0x417f95
push str.21CMX29CM
jmp 0x417fad
mov edx, dword [esp + 0xc]
push 0x44911c
push edx
call ebp
add esp, 8
test eax, eax
jne 0x417fb6
push str.29CMX42CM
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push str.1234567890
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::FindOneOf
test eax, eax
jge 0x417fe8
mov esi, dword [esp + 0x10]
mov edi, 0xe
mov dword [esp + 0x18], edi
jmp 0x41807a
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
call esi
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x418037
mov edi, 0xe
mov dword [esp + 0x18], edi
push 0x58
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x418071
inc eax
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push eax
call esi
mov esi, eax
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x41807a
mov esi, 0x11
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x1c]
push str.PORTRAIT
push eax
call ebp
add esp, 8
test eax, eax
je 0x41809b
mov eax, edi
mov edi, esi
mov esi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
push 0x44918c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x4180cf
fild dword [esp + 0x18]
fmul qword [str.ffffff9__n]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x10]
mov edi, eax
fmul qword [str.ffffff9__n]
call sub.MSVCRT.dll__ftol
jmp 0x4180d9
lea edi, [edi + edi*4]
lea eax, [esi + esi*4]
shl edi, 1
shl eax, 1
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x2c], 1
mov dword [ecx], edi
mov dword [ecx + 4], eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4182d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4385e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
mov edi, dword [esi + 0x40]
call sub.MFC42.DLL_CFile::CFile
mov ebp, dword [esp + 0x58]
push 0
push 0x8000
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x41833b
lea eax, [esp + 0x20]
push eax
call fcn.00430ba0
lea ecx, [esp + 0x20]
mov ebx, eax
call sub.MFC42.DLL_CFile::Close
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
jne 0x418353
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.0042cb74
xor eax, eax
jmp 0x418405
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00417de0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00417f30
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
mov ebp, dword [ecx + 8]
mov edx, dword [ecx]
sub ebp, edx
cdq
imul ebp, dword [edi + 0x78]
idiv dword [esp + 0x10]
mov edx, eax
mov eax, ebp
mov ebp, edx
cdq
idiv ebp
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 4]
sub ebp, eax
mov eax, dword [esp + 0x1c]
cdq
imul ebp, dword [edi + 0x7c]
idiv dword [esp + 0x14]
mov edx, eax
mov eax, ebp
mov ebp, edx
cdq
idiv ebp
mov ebp, dword [esp + 0x5c]
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
mov edx, dword [edi + 0x84]
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, esi
call fcn.00418130
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.0042cb74
mov eax, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x420b50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x439069
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov dword [esp], ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004275e0
xor edi, edi
mov dword [esp + 0x10], 0x43dfb4
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x188]
push 0x449280
push eax
mov dword [esp + 0x188], edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x420bd2
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
mov dword [esp + 0x10], 0x43dfa8
mov dword [esp + 0x70], edi
call fcn.00427670
xor eax, eax
jmp 0x420d08
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x84
lea ecx, [esp + 0x88]
push 1
push ecx
call ebp
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
lea eax, [esp + 0x110]
mov edx, str.DICM
add esp, 0x10
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x420c0e
mov edi, 0x84
jmp 0x420c18
push 0
push 0
push esi
call ebx
add esp, 0xc
push esi
push 6
lea edx, [esp + 0x88]
push 1
push edx
call ebp
mov cl, byte [esp + 0x95]
xor eax, eax
cmp cl, 0xa
push 0
setg al
add eax, 0x64
push edi
push esi
mov ebp, eax
call ebx
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x1b0]
add esp, 0x1c
cmp edi, 1
mov dword [esp + 0x7c], esi
jne 0x420c7f
push 0xc350
lea ecx, [esp + 0x1c]
call fcn.00427bc0
test eax, eax
je 0x420c7f
push 0xc350
lea ecx, [esp + 0x1c]
call fcn.00427bc0
test eax, eax
jne 0x420c6d
push 0x70
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x188], 1
je 0x420caa
mov ecx, esi
call fcn.004249e0
mov dword [esi], 0x43d4c8
jmp 0x420cac
xor esi, esi
mov ecx, dword [esp + 0x10]
push edi
push ebp
lea eax, [esp + 0x20]
mov edx, dword [ecx]
push esi
push eax
mov byte [esp + 0x198], 0
call dword [edx + 0x64]
pop ebp
pop ebx
test eax, eax
jne 0x420cd9
test esi, esi
je 0x420cd7
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00420ad0
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
mov dword [esp + 0x10], 0x43dfa8
mov dword [esp + 0x70], 0
call fcn.00427670
mov eax, esi
mov ecx, dword [esp + 0x178]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x17c
ret 8
Function at 0x425b70
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x80
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jne 0x425be9
lea ecx, [esp + 0x10]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x425be9
mov esi, dword [eax]
lea ecx, [ebx + 0x34]
mov edx, ecx
pop edi
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [eax + 8]
mov dword [edx + 8], esi
mov eax, dword [eax + 0xc]
pop esi
pop ebp
mov dword [edx + 0xc], eax
mov eax, ecx
pop ebx
add esp, 0x80
ret 4
lea ecx, [esp + 0x10]
push ecx
call sub.WSOCK32.dll_inet_addr
lea edx, [ebx + 8]
lea ecx, [ebx + 0xc]
pop edi
pop esi
mov dword [edx], eax
mov dword [ebx + 0x40], ecx
lea eax, [ebx + 0x34]
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x80
ret 4
Function at 0x4289f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43960b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push 0x449280
mov ebx, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x428a3a
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push ebp
push 0x28
lea ecx, [esp + 0x14]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov esi, str.HCZ_VR_LIB
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x428a7a
test cl, cl
je 0x428a76
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x428a7a
add eax, 2
add esi, 2
test cl, cl
jne 0x428a56
xor eax, eax
jmp 0x428a7f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x428aab
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x428aab
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
test esi, esi
mov dword [esp + 0x3c], 0
je 0x428afb
push edi
mov edi, dword [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0
lea eax, [edi*4]
push eax
call sub.MFC42.DLL_operatornew
lea ecx, [edi*8]
mov dword [esi + 8], eax
push ecx
call sub.MFC42.DLL_operatornew
add esp, 8
mov dword [esi + 0xc], eax
pop edi
jmp 0x428afd
xor esi, esi
test esi, esi
mov dword [ebx], esi
jne 0x428b23
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov edx, dword [esp + 0x1c]
push ebp
mov dword [esi + 4], edx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
mov dword [eax], ecx
mov eax, dword [ebx]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 8]
push edx
push 1
push ecx
call esi
mov eax, dword [ebx]
mov edx, dword [esp + 0x3c]
push ebp
push edx
mov ecx, dword [eax + 0xc]
push 1
push ecx
call esi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x58]
add esp, 0x24
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4