joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444fb9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x445011
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5b2c3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x445004
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x445013
xor eax, eax
pop esi
leave
ret 4

Function at 0x446980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1060
call fcn.00445f30
mov eax, dword [esp + 0x1064]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push edi
push 0x5936d8
push eax
call esi
mov ebp, eax
xor edi, edi
add esp, 8
cmp ebp, edi
jne 0x4469c6
push str.Error_opening_ciphertext_file_
call sym.Play_unpack.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
mov ecx, dword [esp + 0x1078]
push 0x5936d4
push ecx
call esi
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x4469f6
push str.Error_opening_plaintext_file_
call sym.Play_unpack.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
push 0x3e8
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x446a22
push str.Out_of_memory__n
call sym.Play_unpack.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
mov edx, dword [esp + 0x1080]
mov dword [esp + 0x18], edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004918b0
push ebp
push 0x3e8
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x20
jne 0x446ab0
push 0
push 0x3e8
push esi
lea ecx, [esp + 0x24]
call fcn.004923d0
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov al, byte [ebx + 0xc]
add esp, 0x10
test al, 0x20
jne 0x446ac8
mov al, byte [ebp + 0xc]
push ebp
test al, 0x10
jne 0x446ae0
push 0x3e8
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x20
je 0x446a68
push str.Error_reading_ciphertext_
call sym.Play_unpack.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
push str.Error_writing_plaintext_
call sym.Play_unpack.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
call edi
push ebx
call edi
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
Function at 0x447350
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fcd3b
push eax
mov eax, 0x1014
mov dword fs:[0], esp
call fcn.00445f30
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.uservar.ini
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov dword [esp + 0x102c], ebx
push eax
call fcn.00483c90
mov ecx, eax
call fcn.004844b0
push eax
lea ecx, [esp + 0x1c]
push 0x5da458
push ecx
mov dword [esp + 0x1034], 2
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x1038]
lea edx, [esp + 0x24]
push 0x1000
push edx
push str.blank_value
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0xc]
push str.blank_value
push edx
mov dword [esp + 0x1030], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x44744b
lea eax, [esi + 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x1038]
mov edi, 1
cmp eax, ebx
jne 0x447495
cmp dword [esi + 0x14], edi
jne 0x447495
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esi + 0x34]
add esp, 4
cmp eax, ecx
jb 0x447485
push 0x5b2c3c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
jmp 0x447495
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0xc]
lea eax, [edx + eax*4]
push eax
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x1030]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1028], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1020]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1020
ret 0xc
Function at 0x4475e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fcdf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 4]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 8]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x48]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], 0xa
mov dword [esi + 0x58], 0x538040
push 0x5b2c3c
mov ecx, ebp
mov byte [esp + 0x20], 8
mov dword [esi], 0x531ae0
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov ebx, 1
push 0x5b2c3c
lea ecx, [esi + 0x48]
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], ebx
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0x54]
mov dword [esi + 0x38], ebx
mov word [esi + 0x34], di
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x447da0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fce56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x5b2c3c
lea ecx, [esi + 4]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0x48]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call sub.MFC42.DLL_CString::operator_2
mov dword [esi + 0x38], 1
mov word [esi + 0x34], bx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov edi, dword [esi + 0x4c]
cmp edi, ebx
je 0x447eb9
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x447eb6
cmp edi, ebx
mov dword [ebp - 0x1c], edi
je 0x447eb6
mov edx, dword [edi + 4]
lea ebx, [edi + 4]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov byte [ebp - 4], 2
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5b2c3c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x447e83
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00445726
mov ecx, edi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esi + 0x4c], ebx
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x447f4f
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x447f4c
cmp edi, ebx
mov dword [ebp - 0x18], edi
je 0x447f4c
mov edx, dword [edi + 4]
lea ebx, [edi + 4]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
mov byte [ebp - 4], 4
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5b2c3c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x447f19
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00445726
mov ecx, edi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esi + 0x50], ebx
push 0x5b2c3c
lea ecx, [esi + 0x54]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x447f6f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x74], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449f00
Capabilities:
Create directory
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fd0e8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
lea eax, [esp + 0x14]
mov ecx, 0x5dbd48
push eax
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [0x5dbd48]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [0x5dbd48]
push 0x22
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x4547f0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1054
call fcn.00445f30
mov eax, dword [esp + 0x1060]
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 0x64]
test eax, eax
jne 0x45480f
lea edi, [ecx + 0x68]
mov eax, dword [esp + 0x106c]
test eax, eax
jne 0x4548b8
mov eax, dword [edi]
push 0x5936d8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [edi]
push 0x5b2c3c
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x10
test eax, eax
je 0x4549cc
test esi, esi
je 0x4549cc
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 0x14
test edi, edi
jg 0x454877
push esi
jmp 0x4549c3
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x4548b2
mov edi, dword [esp + 0x1068]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x1000
lea eax, [esp + 0x6c]
push 1
push eax
call ebp
mov ecx, dword [edi]
add esp, 0x10
lea edx, [esp + 0x64]
push 0
push eax
push edx
push edi
call dword [ecx + 0x10]
test byte [esi + 0xc], bl
je 0x45488d
push esi
jmp 0x4549c3
lea eax, [esp + 0x64]
add ecx, 0x34
push eax
push 0
call fcn.00421220
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5b2c3c
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
push ecx
call fcn.004555e0
add esp, 8
mov ecx, eax
call fcn.00421220
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x454945
lea edx, [esp + 0x64]
push edx
push 0
push 0x5b2c3c
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5b2c3c
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push eax
call fcn.004555e0
add esp, 8
mov ecx, eax
call fcn.00421220
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
mov edi, dword [edi]
push 0x5936d4
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4549cc
mov esi, dword [esp + 0x1068]
lea eax, [esp + 0x1c]
push 1
push eax
mov edx, dword [esi]
push esi
call dword [edx + 0x30]
xor ebx, ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x64]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x68]
push 0x1000
push eax
push esi
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
lea edx, [esp + 0x6c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x34]
add esp, 0x10
inc ebx
shr eax, 0xc
cmp ebx, eax
jbe 0x45497e
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1054
ret 0xc
Function at 0x4549e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdf4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov ebx, dword [esi + 8]
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x454a4d
lea edi, [ebx + 8]
mov eax, 1
mov dword [ebp - 0x14], edi
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x18], eax
je 0x454a47
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
add edi, 0x20
mov dword [ebp - 0x14], edi
jmp 0x454a1a
mov ebx, dword [ebx]
xor eax, eax
jmp 0x454a0b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
call sub.MFC42.DLL_CPlex::FreeDataChain
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edi, [esi + 0x64]
mov dword [esi + 0x18], 0
push 0x5b2c3c
mov eax, dword [edi]
push eax
call ebx
add esp, 8
test eax, eax
je 0x454a8b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x68]
push 0x5b2c3c
push eax
call ebx
add esp, 8
test eax, eax
je 0x454aa7
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5b2c3c
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0x34]
call sub.MFC42.DLL_CString::operator_2
push 0x5b2c3c
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
xor edi, edi
cmp eax, edi
mov dword [esi + 0x44], edi
je 0x454aef
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x70], edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4555e0
Capabilities:
Access peb ldr_data
Create directory
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fe107
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0x10], 0
mov al, byte [0x5dbdbc]
mov ebx, 1
test bl, al
mov dword [esp + 0x24], ebx
jne 0x455637
or al, bl
push 0x5b2c3c
mov ecx, 0x5dbdb8
mov byte [0x5dbdbc], al
call sub.MFC42.DLL_CString::CString_1
push 0x4557b0
call fcn.00445f1c
add esp, 4
mov eax, dword [0x5dbdb8]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x5b2c3c
push eax
call esi
add esp, 8
test eax, eax
jne 0x45567b
lea ecx, [esp + 0xc]
push ecx
call fcn.0042cc90
add esp, 4
push eax
mov ecx, 0x5dbdb8
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x30]
push 0x5b2c3c
push edx
call esi
add esp, 8
test eax, eax
je 0x455773
push edi
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0042cbd0
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x64
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Left
push eax
lea edx, [esp + 0x1c]
push 0x5dbdb8
push edx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_operator
push 0x59188c
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x30], 5
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x2c]
push 0x5dbdb8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x459ad0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4feb08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov eax, dword [esp + 0x1c]
push 0x5936d8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x459b25
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
cmp eax, 0x1000
jg 0x459b67
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
push 0
push 0x1000
push esi
call ebp
mov al, byte [esi + 0xc]
add esp, 0xc
xor edi, edi
test al, 0x10
jne 0x459b97
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fgetc]
push esi
call ebx
not eax
add edi, eax
mov al, byte [esi + 0xc]
add esp, 4
test al, 0x10
je 0x459b85
pop ebx
push 0
push 0x1c
push esi
call ebp
push esi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x2c]
add esp, 0x20
xor edx, edx
cmp eax, edi
sete dl
lea ecx, [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45dba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ff248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, ecx
mov eax, dword [esi + 0x30c8]
mov ecx, dword [esi + 0x30cc]
mov dx, word [esi + 0x30d0]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30d4]
mov dword [esp + 8], ecx
mov cx, word [esi + 0x30d8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x30dc]
mov word [esp + 0xc], dx
mov dx, word [esi + 0x30da]
mov word [esp + 0x14], cx
mov ecx, dword [esi + 0x30e0]
mov dword [esp + 0x18], eax
mov word [esp + 0x16], dx
mov edx, dword [esi + 0x30e4]
lea eax, [esi + 0x30e8]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esi + 0x30ec]
mov edx, dword [esi + 0x30f0]
mov eax, dword [esi + 0x30f8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x30fc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x4c]
xor ecx, ecx
lea edx, [esi + 0x3120]
cmp eax, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 4], eax
je 0x45dc85
mov eax, dword [esi + 0x30e0]
cmp eax, ecx
je 0x45dc7f
mov dword [esp + 0x1c], eax
jmp 0x45dc89
mov dword [esp + 0x1c], esi
jmp 0x45dc89
mov dword [esp + 0x1c], ecx
lea eax, [esp + 4]
push eax
call fcn.0045b950
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x461420
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4ff826
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x10]
mov dword [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 0x14]
mov byte [esp + 0x18], 2
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esi + 4], ecx
lea ecx, [esp + 0x30]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 3
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x34]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18