joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43528c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4352a8
cmp dword [esi + 4], 0
je 0x4352d5
test byte [ebx + 0x55], 1
jne 0x4352c7
mov eax, ebx
call fcn.00433e98
test eax, eax
jne 0x4352c7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4353e5
mov edx, esi
mov eax, ebx
call fcn.00434db0
jmp 0x4353e5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4353de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437124
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00431b20
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043528c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437124
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4353e5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b9b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45c274]
cmp byte [eax + 0xc], 0
je 0x43bb21
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43bb1a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45daf8], 0
jne 0x43ba08
push 0x43bb28
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43bb30
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45daf8], eax
cmp dword [0x45bb34], 0
jne 0x43bb03
push 0x43bb40
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45bb34], eax
cmp dword [0x45bb34], 0
je 0x43bb03
push 0x43bb4c
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dafc], eax
push 0x43bb5c
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db00], eax
push 0x43bb70
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db04], eax
push 0x43bb88
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db08], eax
push 0x43bba0
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db0c], eax
push 0x43bbb4
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db10], eax
push 0x43bbcc
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db14], eax
push 0x43bbe4
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db18], eax
push 0x43bc00
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db1c], eax
push 0x43bc0c
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bb21
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43f9d4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404404
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fa23
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404674
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4471cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44721c]
test si, 4
je 0x4471e0
or bl, 1
test si, 8
je 0x4471ea
or bl, 4
test si, 1
je 0x4471f4
or bl, 8
test si, 2
je 0x4471fe
or bl, 0x10
test si, 0x10
je 0x447208
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447217
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447220
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447258]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447239
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447248
or bl, 4
test esi, 0x20000000
je 0x447253
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d934
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44d946
add esp, 0xfffffff0
call fcn.004039b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a5c8
mov eax, dword [0x45bf28]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dcd8
mov eax, dword [0x45bf34]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dce4
mov eax, ebx
call fcn.0044dcf0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41274c]
call fcn.00403648
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41274c]
call fcn.00403648
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41274c]
call fcn.00403648
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41274c]
call fcn.00403648
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41274c]
call fcn.00403648
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44a108
push eax
push 0
push 0
mov eax, dword [0x45c08c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c068]
call fcn.0041d800
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c068]
call fcn.0041d800
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c068]
call fcn.0041d800
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e218
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e098
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e098
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e098
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44da83
call fcn.00403a08
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44de58
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e028
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e009
mov dl, 1
mov eax, dword [0x412b68]
call fcn.00403648
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404404
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x44dff8
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043bd14
test al, al
jne 0x44def5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44dfeb
xor edx, edx
push ebp
push 0x44dfe4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44df15
mov ebx, dword [ebp - 0x10]
jmp 0x44df17
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x44e038
lea eax, [ebp - 0x258]
call fcn.004092ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44dfcd
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x44e070
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44dfcd
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404674
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44dfcd
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dfeb
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x44ded6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004166cc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e02f
lea eax, [ebp - 0x264]
call fcn.00404404
ret
Function at 0x44e9b8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45db44]
cmp byte [eax + 0xa5], 0
jne 0x44ea29
cmp dword [0x45db5c], 0
jne 0x44e9ea
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e974
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45db5c], eax
cmp dword [0x45db58], 0
jne 0x44ea05
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45db58], eax
cmp dword [0x45db60], 0
jne 0x44ea29
push esp
push 0
push 0
push 0x44e918
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45db60], eax
pop edx
ret

Function at 0x44f0bc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45db44]
cmp dword [eax + 0x30], 0
je 0x44f166
cmp dword [ebx + 0x94], 0
jne 0x44f160
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f04c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f160
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f126
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f160
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414ac8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f135
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fcc4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44fcf9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044f4
jmp 0x44fd06
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404458
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450e28
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450e69
mov eax, esi
call fcn.00437384
test al, al
je 0x450e69
mov eax, dword [ebx + 0x84]
call fcn.00437124
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450e69
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437124
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x452d74
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00452998
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004048c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x452dd2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c098]
mov dl, 1
mov eax, dword [0x452824]
call fcn.0040be88
call fcn.00403e18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x452ddc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004048c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x452e34
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c280]
mov dl, 1
mov eax, dword [0x452824]
call fcn.0040be88
call fcn.00403e18
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004529c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x459b28
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x459baa
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [0x45c10c]
mov eax, dword [eax]
call fcn.004507d8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00408a9c
mov eax, dword [ebp - 4]
call fcn.00408c60
push 1
push dword [0x45dbbc]
push 0x459bc0
push dword [0x45dbc0]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404784
mov eax, dword [ebp - 0xc]
call fcn.004048c4
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bb1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404428
ret
Function at 0x401310
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x453af4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
mov bl, 2
push 3
push eax
lea ecx, [esp + 0x17c]
mov byte [esp + 0x174], bl
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 3
call fcn.004149b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.004149b6
push 0x465174
lea ecx, [esp + 0x178]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x174]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40140e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x174]
mov dword [esp + 0x16c], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4014f0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x50]
push 0x465170
push ecx
call ebp
test eax, eax
je 0x401496
lea edx, [esp + 0x50]
push 0x46516c
push edx
call ebp
test eax, eax
je 0x401496
lea eax, [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x465160
call fcn.004149aa
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x178], 4
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x174], bl
call fcn.00412780
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.004149b6
lea ecx, [esp + 0x24]
push ecx
jmp 0x40149b
lea edx, [esp + 0x24]
push edx
push esi
call edi
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x40141a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x174]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x160
ret 4
Function at 0x403c20
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x454108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push eax
call fcn.004149aa
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.004149aa
push 0x465418
push 0x465414
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::Replace
push 0x465418
push 0x465414
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x1c], 1
call fcn.00412d30
add esp, 0xc
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x405760
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4543f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0x4655ac
lea eax, [esp + 0xc]
xor ebx, ebx
push 0x4692a4
push eax
mov dword [esp + 0x78], ebx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x70], 1
call fcn.004149b6
lea ecx, [esp + 8]
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4057f7
push ebx
push ebx
push 0x4656d4
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 4]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push str.djp2006.mem
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov edx, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov ecx, dword [esp + 4]
push 1
mov eax, dword [edx]
push eax
push 0x40
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::constructor_char_const___int__int_]
mov edx, dword [esp + 0xc]
mov byte [esp + 0x6c], 2
mov eax, dword [edx + 4]
test byte [esp + eax + 0x14], 6
je 0x405879
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 4]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov ecx, dword [0x4690a8]
push esi
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___unsigned_long_int_]
push edi
push 0x465648
push ecx
lea ecx, [esp + 0x1c]
call esi
mov edi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
mov ecx, eax
call edi
mov edx, dword [0x4690ac]
push 0x465648
push edx
lea ecx, [esp + 0x1c]
call esi
mov ecx, eax
call edi
mov eax, dword [0x4690b0]
push 0x465648
push eax
lea ecx, [esp + 0x1c]
call esi
mov ecx, eax
call edi
mov ecx, dword [0x4690b4]
push 0x465648
push ecx
lea ecx, [esp + 0x1c]
call esi
mov ecx, eax
call edi
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_ofstream::close_void_]
mov edx, dword [esp + 0xc]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], bl
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ofstream::destructor_void_]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
lea ecx, [esp + 0xc]
mov dword [esp + 0x74], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret