joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41ee54
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 ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 8], 0x421ee0
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], 0x421ecc
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
mov byte [esp + 0x1c], 4
mov dword [esi], 0x421ec8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
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 4

Function at 0x40b1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ef97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.0040b5b0
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov edi, eax
call sub.MFC42.DLL_CString::CString_3
push edi
mov ecx, esi
call fcn.0040b650
cmp edi, 0xffffffff
jne 0x40b27b
push str.Unable_to_locate_specified_key.
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x24]
push 0x42b380
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, 1
mov dword [esp + 0xc], eax
jmp 0x40b2c1
cmp eax, 0xffffffff
jne 0x40b29f
push str.Unable_to_locate_specified_value.
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x24]
push 0x42b380
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
jmp 0x40b2b8
mov edx, dword [esi + 0xc]
mov esi, dword [esp + 0x24]
lea ecx, [edi + edi*4]
mov ecx, dword [edx + ecx*8 + 4]
lea edx, [ecx + eax*4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, 1
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0xc
Function at 0x40c3c0
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [esp + 0x21c]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x40c3e2
mov eax, dword [ecx + 0x30]
test eax, eax
jg 0x40c501
jmp 0x40c3ee
push 0xffffffffffffffff
push 0
add ecx, 0x28
call sub.MFC42.DLL_CStringArray::SetSize
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c501
push ebx
push esi
mov eax, dword [esp + 8]
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x34]
push ecx
push edx
mov ebx, 0x100
push esi
push eax
mov dword [esp + 0x30], ebx
call edi
cmp eax, 0x103
je 0x40c4f3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c4c8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c4cd
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
jne 0x40c4bd
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c4bd
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea ecx, [eax + 0x28]
mov eax, dword [eax + 0x30]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push esi
push ecx
call edi
cmp eax, 0x103
jne 0x40c44e
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x40e190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.0041d7ec
lea eax, [esp + 8]
mov dword [esp + 0x38], 0
push eax
call fcn.00415a10
mov ecx, esp
mov dword [esp + 0x10], esp
lea edx, [esp + 0xc]
push str.updatep2pdll.dll
push edx
push ecx
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_operator_2
call fcn.00415930
add esp, 4
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push str.updatep2pdll.dll
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x40e25a
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x34
ret
push ecx
lea eax, [esp + 0xc]
mov edx, esp
mov dword [esp + 0x14], esp
push str.updatep2pdll.dll
push eax
push edx
call sub.MFC42.DLL_operator_2
push 0x8c
mov ecx, edi
call fcn.0040e2c0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x30]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x34
ret
Function at 0x40e2c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x41f730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov eax, dword [esp + 0x24]
push str.MYDATA
and eax, 0xffff
mov dword [esp + 0x20], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40e323
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e355
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x2c]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40e3a5
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0041d67e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x40ead0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push eax
call fcn.00415a10
add esp, 4
lea ecx, [ebp - 0x14]
push str.updateupdate.exe
lea edx, [ebp - 0x1c]
push ecx
push edx
mov dword [ebp - 4], 0
call sub.MFC42.DLL_operator_2
lea eax, [ebp - 0x14]
push 0x42a120
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator_2
push 1
push ecx
mov bl, 3
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x42a114
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 4
push edx
call fcn.00415a10
add esp, 4
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.LogsLancher.txt
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov byte [ebp - 4], 6
call fcn.00415430
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 0xc]
call fcn.0041d7ec
lea eax, [esp + 8]
mov dword [esp + 0x30], 0
push eax
call fcn.00415a10
add esp, 4
push str.update_tempupdateMust.xml
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
pop esi
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 8]
je 0x40f3b7
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x40f3d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
xor esi, esi
push str.91HelperStd3.0TZB9EA8B_69BF_5BF1_B3FD_CDDF68100713_UPDATE912
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edi, eax
test edi, edi
je 0x40f401
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f3fa
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret
Function at 0x413610
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6c
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0x44
push ecx
push edx
push eax
push eax
push 8
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x4136bc
mov edx, dword [esp + 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov al, 1
pop esi
mov dword [ecx], edx
add esp, 0x6c
ret 8
xor al, al
add esp, 0x6c
ret 8

Function at 0x4140b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x420348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [esp + 0x44]
mov dword [esp], 0x42acd8
test eax, eax
mov dword [esp + 4], 0x42acd4
mov dword [esp + 8], 0x42acd0
mov dword [esp + 0xc], 0x42accc
mov dword [esp + 0x10], 0x42acc8
mov dword [esp + 0x14], 0x42acc4
mov dword [esp + 0x18], 0x42acc0
mov dword [esp + 0x1c], 0x42acbc
mov dword [esp + 0x20], 0x42acb8
mov dword [esp + 0x24], 0x42acb4
mov dword [esp + 0x28], 0x42acb0
mov dword [esp + 0x2c], 0x42acac
mov dword [esp + 0x30], 0x42b380
jne 0x41413d
mov eax, 0x42b380
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
xor esi, esi
lea edi, [esp + 0xc]
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0x54]
push eax
call ebx
add esp, 8
test eax, eax
je 0x414196
inc esi
add edi, 4
cmp esi, 0xd
jb 0x414156
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
lea ecx, [esp + 0x50]
inc esi
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x4142b0
Capabilities:
Create directory

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
push esi
push edi
mov edi, ebx
push 0x5c
push edi
call fcn.004146c0
mov esi, eax
add esp, 8
test esi, esi
je 0x414346
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
sub eax, ebx
cmp eax, 0xff
jbe 0x41432f
mov eax, 0xff
push eax
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x41432a
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x414339
lea edi, [esi + 1]
jmp 0x4142c9
cmp eax, 1
jge 0x4142fa
lea edi, [esi + 1]
jmp 0x4142c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret

Function at 0x414890
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4203e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
jne 0x4148cd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
push ebx
push 0x9001
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Open
mov edi, eax
cmp edi, ebx
je 0x414932
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jle 0x414932
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::SetLength
jmp 0x414932
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxTryCleanup
cmp edi, ebx
jne 0x414970
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004141c0
mov ecx, dword [eax]
mov byte [ebp - 4], 4
push ecx
push esi
push str.Create_file___s__failed.__s
push 2
call fcn.00413cd0
add esp, 0x18
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x414984
cmp eax, 0xffffffff
je 0x414984
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d67e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4149b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, 1
test esi, esi
je 0x4149e6
cmp esi, 0xffffffff
je 0x4149e6
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4149e1
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x415930
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x420648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
push 0
push 0x429538
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [esp + 0x1c]
push eax
push 0x429538
call sub.MFC42.DLL_CString::Find
test eax, eax
mov edi, 1
jle 0x4159df
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mkdir]
push esi
lea esi, [eax + 1]
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push ecx
call ebp
add esp, 4
lea ecx, [esp + 0x24]
inc edi
push esi
push 0x429538
call sub.MFC42.DLL_CString::Find
test eax, eax
jg 0x415990
pop esi
pop ebp
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x415a90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420698
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x20]
push 0x42acdc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x415ae8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
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
lea ebp, [ebx + 1]
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esp + 0x44]
mov ecx, ebp
mov edi, eax
xor eax, eax
shr ecx, 2
mov dword [edx], edi
push esi
rep stosd dword es:[edi], eax
mov ecx, ebp
push 1
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov ecx, dword [edx]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x415c20
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4206d1
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push 0x42acdc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
xor edi, edi
add esp, 8
cmp ebp, edi
jne 0x415c9c
mov esi, dword [esp + 0xb0]
cmp esi, edi
je 0x415c95
lea ecx, [esp + 0x10]
push ecx
call fcn.00416800
add esp, 4
push eax
mov ecx, esi
mov dword [esp + 0xa4], edi
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x415e04
mov eax, dword [esp + 0xb4]
cmp eax, edi
je 0x415caf
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x415cb3
mov dword [esp + 0x10], edi
xor eax, eax
mov esi, dword [esp + 0xac]
mov dword [esp + 0x21], eax
mov ecx, esi
mov dword [esp + 0x25], eax
mov byte [esp + 0x20], 0
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call sub.MFC42.DLL_CString::Empty
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push edi
push ebp
call ebx
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebp
mov edi, eax
call ebx
add esp, 0x1c
mov ebx, 1
test edi, edi
je 0x415db9
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push ebp
push ebx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, esi
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
push ecx
mov ecx, dword [esi]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.00416270
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], ebx
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x415d69
push 5
push str.UTF_8
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x415da5
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.00415e20
lea edx, [esp + 0x20]
push edx
call fcn.00416140
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0xa4], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x3c]
push str._s_d_bytes
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0xc0]
add esp, 0x10
test ecx, ecx
je 0x415de7
lea edx, [esp + 0x34]
push edx
call sub.MFC42.DLL_CString::operator_1
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0xb8]
add esp, 4
test eax, eax
je 0x415e02
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov al, bl
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x94
ret
Function at 0x416450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4207c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
mov byte [esp + 0x18], 3
call fcn.00415b70
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4