joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c6e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c2ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x4cc440
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.gdi32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.mfc42.dll_CDC::SelectObject_1
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.mfc42.dll_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.mfc42.dll_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.mfc42.dll_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.mfc42.dll_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.mfc42.dll_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.mfc42.dll_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.mfc42.dll_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.mfc42.dll_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.mfc42.dll_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.mfc42.dll_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.mfc42.dll_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.mfc42.dll_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.mfc42.dll_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.mfc42.dll_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.mfc42.dll_CDC::SelectObject_1
lea ecx, [esp + 0x10]
call sub.mfc42.dll_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x4cbe50
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.mfc42.dll_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x40d700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c3020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x4cbe28
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00408d80
mov ebx, dword [sym.imp.user32.dll_GetSysColor]
test eax, eax
je 0x40d764
push 0xf
jmp 0x40d766
push 4
call ebx
cmp dword [esp + 0x40], edi
jne 0x40d781
push 0x3fe33333
push 0x33333333
push eax
call fcn.00409bd0
add esp, 0xc
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CGdiObject::Attach
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.user32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.mfc42.dll_CGdiObject::DeleteObject
call fcn.00408d70
test eax, eax
je 0x40d7cf
mov ecx, dword [edi + 4]
push 0xf
lea eax, [esp + 0x1c]
push 2
push eax
push ecx
call dword [sym.imp.user32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x40d7f3
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
add eax, 4
push edx
push eax
push edi
mov ecx, ebp
call fcn.0040c6e0
jmp 0x40d80b
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 5
push ecx
push edx
push edi
mov ecx, ebp
call fcn.0040c5c0
mov dword [esp + 0x10], 0x4cbe50
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.mfc42.dll_CGdiObject::DeleteObject
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 0x10

Function at 0x40dcd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.mfc42.dll_AfxFindResourceHandle
mov ebp, dword [sym.imp.kernel32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40dd0d
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40dd0d
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x40dd1e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x40dd2e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.0040dc90
add esp, 4
cmp ax, 0x10
je 0x40dd44
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.mfc42.dll_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40df40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x50b6d8]
sub esp, 0x134
test eax, eax
jne 0x40e015
lea eax, [esp]
mov dword [0x50b6d8], 1
push eax
push 0x20019
push 0
push 0x4fbe7c
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e015
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e008
mov ecx, 5
mov esi, 0x4fbe64
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.kernel32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40e008
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x40e008
mov dword [0x50b6d4], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x50b6d4]
add esp, 0x134
ret

Function at 0x40e470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push 0xf1
push ebx
mov edi, ecx
call sub.mfc42.dll_AfxFindResourceHandle
mov ebp, dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
push 0xf1
push ebx
push esi
call ebp
test eax, eax
jne 0x40e4b0
xor esi, esi
push 0xf1
push ebx
push esi
call ebp
test eax, eax
jne 0x40e4b0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x40e4c3
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40e56d
mov ax, word [esi + 6]
shl eax, 2
push eax
call sub.mfc42.dll_operatornew
mov ebx, eax
xor eax, eax
add esp, 4
cmp word [esi + 6], ax
jbe 0x40e50a
lea ecx, [esi + 8]
xor edx, edx
inc eax
mov dx, word [ecx]
add ecx, 2
mov dword [ebx + eax*4 - 4], edx
xor edx, edx
mov dx, word [esi + 6]
cmp eax, edx
jl 0x40e4f3
xor eax, eax
mov ecx, edi
mov ax, word [esi + 6]
push eax
push ebx
call sub.mfc42.dll_CToolBar::SetButtons
push ebx
mov ebp, eax
call sub.mfc42.dll_operatordelete
add esp, 4
test ebp, ebp
je 0x40e56b
xor ecx, ecx
xor eax, eax
mov cx, word [esi + 4]
mov ax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 7]
lea edx, [eax + 7]
push ebx
push edx
mov ecx, edi
call sub.mfc42.dll_CToolBar::SetSizes
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [esi + 2]
xor edx, edx
mov dword [edi + 0xa0], ecx
mov dx, word [esi + 4]
push eax
mov ecx, edi
mov dword [edi + 0xa4], edx
call fcn.0040e580
mov ebp, eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x418290
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c4568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x50b788]
test eax, eax
jne 0x41833b
push esi
lea ecx, [esp + 4]
call sub.mfc42.dll_CString::CString_4
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.mfc42.dll_CString::GetBuffer
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.mfc42.dll_CString::ReleaseBuffer
push 0x4fc254
lea ecx, [esp + 8]
call sub.mfc42.dll_CString::operator_2
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x418322
push 0x6a
push esi
call dword [sym.imp.user32.dll_LoadCursorA]
test eax, eax
je 0x418322
push eax
call dword [sym.imp.user32.dll_CopyIcon]
mov dword [0x50b788], eax
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.mfc42.dll_CString::CString
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x418350
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4183b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x4185c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push 0x4fb3f8
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4186ab
lea eax, [esp + 0x10]
push eax
push 0x4fc588
push 0x80000000
call fcn.00418350
add esp, 0xc
test eax, eax
jne 0x4186ab
mov edi, dword [sym.imp.kernel32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push 0x4fc574
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00418350
add esp, 0xc
test eax, eax
jne 0x4186ab
lea ecx, [esp + 0x10]
push 0x4fc56c
push ecx
call dword [sym.imp.msvcrt.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x418685
lea edx, [esp + 0x10]
push 0x4fc568
push edx
call dword [sym.imp.msvcrt.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x418685
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x418688
mov byte [esi], 0
push 0x4fbe60
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.kernel32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4211f0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c58a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebp
push esi
push edi
mov ebp, ecx
mov ax, word [0x50b630]
mov ecx, 0x40
mov word [esp + 0x78], ax
xor eax, eax
lea edi, [esp + 0x7a]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x290], 1
push ecx
stosw word es:[edi], ax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov word [esp + 0x54], ax
mov eax, dword [esp + 0x29c]
test eax, eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
jne 0x421279
mov esi, 1
jmp 0x4212aa
cmp eax, 1
jne 0x421285
mov esi, 3
jmp 0x4212aa
cmp eax, 2
jne 0x421291
mov esi, 5
jmp 0x4212aa
cmp eax, 3
jne 0x42129d
mov esi, 7
jmp 0x4212aa
xor edx, edx
cmp eax, 4
setne dl
add edx, 9
mov esi, edx
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CString::CString_4
mov eax, dword [esp + 0x2a4]
mov ecx, dword [esp + 0x298]
push eax
push ecx
push esi
lea edx, [esp + 0x18]
push 0x4fcd48
push edx
mov byte [esp + 0x2a0], 2
call sub.mfc42.dll_CString::Format
add esp, 0x14
lea eax, [esp + 0x78]
lea ecx, [esp + 0x1c]
push eax
call sub.mfc42.dll_CString::CString_3
push 0x4fcd38
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x298], 3
call sub.mfc42.dll_operator_1
lea edx, [esp + 0xc]
mov byte [esp + 0x28c], 4
push edx
push eax
lea eax, [esp + 0x28]
push eax
call sub.mfc42.dll_operator_2
push 0x4fbe60
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x298], 5
call sub.mfc42.dll_operator_1
lea edx, [esp + 0x294]
mov byte [esp + 0x28c], 6
push edx
push eax
lea eax, [esp + 0x18]
push eax
call sub.mfc42.dll_operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c], 0xb
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x28c], 0xa
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 9
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28c], 8
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x17c]
push ecx
push 0x4fb288
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x298]
mov ecx, 0x50f9ac
push eax
call sub.mfc42.dll_CString::operator_1
lea ecx, [esp + 0x68]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push 0x20
push 1
push 0
lea eax, [esp + 0x198]
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
mov ecx, dword [ebp + 0x20]
push 0
push 0x7d0
push 0x14d
push ecx
call dword [sym.imp.user32.dll_SetTimer]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28c], 2
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28c], 1
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x294]
mov byte [esp + 0x28c], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x298]
mov dword [esp + 0x28c], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x284
ret 0x14
Function at 0x4215a0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c590d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push esi
push edi
mov esi, ecx
mov ax, word [0x50b630]
mov ecx, 0x40
mov word [esp + 0x78], ax
xor eax, eax
lea edi, [esp + 0x7a]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x290], 1
push ecx
stosw word es:[edi], ax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
push 0x4fcda0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 1
mov word [esp + 0x58], ax
call sub.mfc42.dll_CString::CString_3
mov eax, dword [esp + 0x29c]
mov byte [esp + 0x28c], 2
test eax, eax
jne 0x42163e
push 0x4fcd98
jmp 0x42165b
cmp eax, 1
jne 0x42164a
push 0x4fcda0
jmp 0x42165b
cmp eax, 2
jne 0x421656
push 0x4fcd90
jmp 0x42165b
push 0x4fcd88
lea ecx, [esp + 0xc]
call sub.mfc42.dll_CString::operator
lea edx, [esp + 0x78]
lea ecx, [esp + 0x14]
push edx
call sub.mfc42.dll_CString::CString_3
push 0x4fcd7c
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x294], 3
push eax
call sub.mfc42.dll_operator_1
lea ecx, [esp + 0x294]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x298], 4
call sub.mfc42.dll_operator_2
push 0x4fbe60
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x294], 5
push eax
call sub.mfc42.dll_operator_1
lea ecx, [esp + 0x298]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x298], 6
call sub.mfc42.dll_operator_2
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x298], 7
call sub.mfc42.dll_operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c], 0xd
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28c], 0xc
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x28c], 0xb
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28c], 0xa
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 9
call sub.mfc42.dll_CString::CString
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x17c]
push eax
push 0x4fb288
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x298]
mov ecx, 0x50f9ac
push edx
call sub.mfc42.dll_CString::operator_1
lea eax, [esp + 0x68]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0x20
push 1
push 0
lea edx, [esp + 0x198]
push 0
push edx
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
mov eax, dword [esi + 0x20]
push 0
push 0x7d0
push 0x14d
push eax
call dword [sym.imp.user32.dll_SetTimer]
lea ecx, [esp + 0xc]
mov byte [esp + 0x28c], 2
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x28c], 1
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x294]
mov byte [esp + 0x28c], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x298]
mov dword [esp + 0x28c], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x284]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x288
ret 0xc
Function at 0x422a40
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x50
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x254]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x422a72
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x422aa6
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x4fbd78]
mov word [edi - 1], ax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
mov cx, word [0x4fceec]
lea eax, [esp + 0x10]
push edx
push eax
mov word [edi - 1], cx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebp, dword [sym.imp.kernel32.dll_FindNextFileA]
mov ebx, eax
lea ecx, [esp + 0x110]
push ecx
push ebx
call ebp
test eax, eax
je 0x422b36
mov edi, 0x4fcee8
lea esi, [esp + 0x13c]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x422ad7
mov edi, 0x4fcee4
lea esi, [esp + 0x13c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x422ad7
mov edx, dword [0x50b9ac]
lea ecx, [esp + 0x13c]
push ecx
lea ecx, [edx*4 + 0x50b9b0]
call sub.mfc42.dll_CString::operator
inc dword [0x50b9ac]
jmp 0x422ad7
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240
ret 4
Function at 0x424058
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c606f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.mfc42.dll_CString::CString_4
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x4fcfe0
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.mfc42.dll_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.mfc42.dll_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x425570
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4256ca
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42558c
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jl 0x4256ca
mov al, byte [esp + 0x10]
cmp al, 0x41
jl 0x4255b9
cmp al, 0x5a
jle 0x4255c9
cmp al, 0x61
jl 0x4256ca
cmp al, 0x7a
jg 0x4256ca
cmp byte [esp + 0x11], 0x3a
jne 0x4256ca
cmp byte [esp + 0x12], 0x5c
jne 0x4256ca
cmp ecx, 3
jne 0x425620
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x425613
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.msvcrt.dll__access]
add esp, 8
test eax, eax
je 0x425613
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov al, byte [esp + 0x13]
mov esi, 3
test al, al
mov edi, 1
je 0x4256b8
mov ebx, dword [sym.imp.msvcrt.dll__access]
mov ebp, dword [sym.imp.kernel32.dll_CreateDirectoryA]
lea eax, [esp + 0x13]
mov ecx, eax
mov al, byte [eax]
test al, al
je 0x42565b
cmp al, 0x5c
je 0x42565b
mov al, byte [esp + esi + 0x11]
inc esi
test al, al
jne 0x42564e
mov al, byte [esp + esi + 0x10]
xor edx, edx
test al, al
sete dl
push ecx
mov edi, edx
mov byte [esp + esi + 0x14], 0
call fcn.00425320
add esp, 4
test eax, eax
je 0x4256ca
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x4256a2
lea eax, [esp + 0x10]
push 0
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x425603
test edi, edi
jne 0x4256b8
mov byte [esp + esi + 0x10], 0x5c
inc esi
mov cl, byte [esp + esi + 0x10]
lea eax, [esp + esi + 0x10]
test cl, cl
jne 0x425646
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x104
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret