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

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push 0x61ea4c
push 0x80000001
mov esi, 3
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ba494
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0x61ea28
push ecx
mov dword [esp + 0x20], 0x100
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ba489
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x4bb020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d26ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x5ee14c
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4bb0b0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4bb077
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4bb0a1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.mfc42u.dll_CDC::SelectGdiObject
jmp 0x4bb0b6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.mfc42u.dll_CDC::SelectGdiObject
jmp 0x4bb0b6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x5e3df4
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x5e262c
mov dword [esp + 0x1c], 0xffffffff
call fcn.005c100a
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4c9740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d2f1b
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
xor edi, edi
mov dword [esp + 0x1c], edi
call sub.mfc42u.dll_CWnd::CWnd
mov dword [esi], 0x5e3208
lea ebx, [esi + 0x48]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.mfc42u.dll_CString::CString_3
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
mov byte [esp + 0x20], 2
mov dword [esi], 0x5eeb08
call sub.mfc42u.dll_CString::operator_2
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
cmp ebp, 1
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x44], edx
setne al
mov dword [esi + 0x50], eax
mov eax, ecx
mov dword [esi + 0x4c], edi
lea edx, [esi + 0x54]
mov edi, dword [eax]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov edi, dword [eax + 8]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50800080
push edi
push ecx
push eax
mov ecx, esi
call sub.mfc42u.dll_CEdit::Create
test eax, eax
je 0x4c98db
mov eax, dword [edi + 0x20]
mov edi, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 0
push 0x31
push eax
call edi
push eax
call sub.mfc42u.dll_CGdiObject::FromHandle
test eax, eax
je 0x4c9819
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x20]
push 1
push eax
push 0x30
push ecx
call edi
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call sub.mfc42u.dll_CWnd::SetWindowTextW
mov ecx, esi
call sub.mfc42u.dll_CWnd::SetFocus
lea eax, [ebp - 1]
cmp eax, 0x27
ja case.0x4c9847.4
xor ecx, ecx
mov cl, byte [eax + 0x4c9914]
jmp dword [ecx*4 + 0x4c9904]
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
jmp 0x4c98d9
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, dword [esi + 0x20]
add esp, 4
push 0xffffffffffffffff
push eax
push 0xb1
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push edx
jmp 0x4c98cb
mov eax, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call edi
push 0
push 0
push 0xb7
jmp 0x4c98d5
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call edi
push 0
push ebp
push 0x102
mov ecx, dword [esi + 0x20]
push ecx
call edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call sub.mfc42u.dll_CString::CString
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 0x20
Function at 0x4cb030
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d30f8
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 fcn.004cb890
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call sub.mfc42u.dll_CString::CString_3
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi], 0x5eef70
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4cd0e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d32a8
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 fcn.004cd860
lea edi, [esi + 0x48]
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, esi
mov dword [edi], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004cd900
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, edi
call fcn.004ce140
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x60], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x68], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], edx
mov dword [esi + 0x74], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x4cd460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d330d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push esi
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x20], 0
call fcn.004cd860
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
lea eax, [esp + 0xac]
push edi
push eax
mov dword [esp + 0x104], 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.004cde90
add esp, 0xc
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc], 2
call fcn.004cd900
lea ecx, [esp + 0xa8]
mov byte [esp + 0xf8], 1
call fcn.0042bd50
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
lea eax, [esp + 0x24]
mov dword [esp + 0xc], ecx
push 0
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
lea ebx, [edi + 0x48]
call fcn.004cd980
push eax
push ebx
call fcn.004ce790
fld qword [esp + 0x14]
fmul qword [edi + 0x60]
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
add esp, 8
lea eax, [esp + 0x24]
faddp st(1)
mov dword [esp + 0xc], ecx
push 1
push eax
mov ecx, esi
fstp qword [esp + 0x44]
mov dword [esp + 0x18], edx
call fcn.004cd980
push eax
push ebx
call fcn.004ce790
fld qword [esp + 0x14]
fmul qword [edi + 0x60]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
add esp, 8
lea eax, [esp + 0x24]
faddp st(1)
mov dword [esp + 0xc], ecx
push 2
push eax
mov ecx, esi
fstp qword [esp + 0x1c]
mov dword [esp + 0x18], edx
call fcn.004cd980
push eax
push ebx
call fcn.004ce790
fld qword [esp + 0x14]
fmul qword [edi + 0x60]
add esp, 8
faddp st(1)
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
fstp qword [esp + 0x34]
lea edx, [esp + 0x24]
mov dword [esp + 0x30], ecx
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x30], eax
call fcn.004ce140
fld qword [esi + 0x60]
fmul qword [edi + 0x60]
mov esi, dword [ebp + 8]
push 0
push 0
push 0
lea edx, [esp + 0x54]
fstp qword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x74]
push edx
push eax
mov ecx, esi
call fcn.004cd0e0
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xf8], 0
call fcn.0042bd50
mov ecx, dword [esp + 0xf0]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d0130
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5d33f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
mov eax, dword [esp + 0x238]
xor ebx, ebx
push eax
mov dword [esp + 0x234], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d0182
lea ecx, [esp + 0x238]
mov dword [esp + 0x230], eax
call sub.mfc42u.dll_CString::CString
xor eax, eax
jmp 0x4d0255
mov eax, dword [esp + 0x238]
mov ecx, dword [eax - 8]
mov cx, word [eax + ecx*2 - 2]
cmp cx, 0x5c
jne 0x4d01d9
mov eax, dword [eax - 8]
lea ecx, [esp + 4]
dec eax
push eax
push ecx
lea ecx, [esp + 0x240]
call sub.mfc42u.dll_CString::Left
push eax
lea ecx, [esp + 0x23c]
mov byte [esp + 0x234], 1
call sub.mfc42u.dll_CString::operator_2
lea ecx, [esp + 4]
mov byte [esp + 0x230], bl
call sub.mfc42u.dll_CString::CString
mov eax, dword [esp + 0x238]
lea edx, [esp + 0x28]
push eax
push edx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [esp + 0x240]
add esp, 8
mov ecx, dword [eax - 8]
mov word [esp + ecx*2 + 0x2a], bx
mov eax, dword [eax - 8]
lea ecx, [esp + 8]
mov dword [esp + 0xc], 3
mov word [esp + eax*2 + 0x2c], bx
lea eax, [esp + 0x28]
push ecx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0xc], ebx
mov word [esp + 0x1c], 0x14
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], 0x626560
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.shell32.dll_SHFileOperationW]
lea ecx, [esp + 0x238]
mov dword [esp + 0x230], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x228]
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 4

Function at 0x4d0810
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
mov ecx, 0x627b18
call fcn.005c0e66
mov eax, dword [0x627b18]
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
call esi
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x4d0845
mov ecx, dword [0x627b18]
push 0
push ecx
call edi
push 0x627b18
mov ecx, 0x627b00
call sub.mfc42u.dll_CString::operator_2
push 0x61947c
mov ecx, 0x627b00
call fcn.005c0e5a
mov eax, dword [0x627b00]
push eax
call esi
cmp eax, 0xffffffff
jne 0x4d087b
mov edx, dword [0x627b00]
push 0
push edx
call edi
push 0x627b00
mov ecx, 0x627ae0
call sub.mfc42u.dll_CString::operator_2
push 0x61ee04
mov ecx, 0x627ae0
call fcn.005c0e5a
push 0x627b00
mov ecx, 0x627adc
call sub.mfc42u.dll_CString::operator_2
push 0x61edf4
mov ecx, 0x627adc
call fcn.005c0e5a
pop edi
pop esi
ret
Function at 0x4d08c0
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get file attributes
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d34b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x61ee64
lea eax, [esp + 0x14]
push 0x627b18
mov esi, ecx
push eax
call sub.mfc42u.dll_operator
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push ecx
mov dword [esp + 0x28], 0
call ebx
cmp eax, 0xffffffff
jne 0x4d0919
mov edx, dword [esp + 0x10]
push 0
push edx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call sub.mfc42u.dll_CString::CString_3
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
push 0x61edd8
push ecx
mov byte [esp + 0x34], 2
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
lea ecx, [esp + 0x14]
push 0x2d
push 0x5c
call sub.mfc42u.dll_CString::Replace_1
push 0x2d
push 0x3a
lea ecx, [esp + 0x1c]
call sub.mfc42u.dll_CString::Replace_1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push edx
push ebp
push eax
push 0x61ee54
push esi
call sub.mfc42u.dll_CString::Format_1
mov eax, dword [esi]
add esp, 0x14
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4d0999
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
mov ecx, dword [esi]
push 0x61ee48
lea edi, [esi + 0x10]
push ecx
push 0x61edd8
push edi
call sub.mfc42u.dll_CString::Format_1
mov eax, dword [edi]
add esp, 0x10
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4d09d2
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
push ebp
lea ecx, [esi + 4]
call fcn.005c0e66
mov edx, dword [esp + 0x30]
lea eax, [esi + 8]
push edx
push 0x61ee40
push eax
call sub.mfc42u.dll_CString::Format_1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
add esp, 0xc
lea edi, [esi + 0xc]
push ecx
push ebp
push edx
push 0x61ee30
push edi
call sub.mfc42u.dll_CString::Format_1
add esp, 0x14
lea ebp, [esi + 0x14]
mov ecx, ebp
push esi
call sub.mfc42u.dll_CString::operator_2
push 0x61ee18
mov ecx, ebp
call fcn.005c0e5a
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
mov edi, dword [edi]
push edi
call ebx
cmp eax, 0xffffffff
lea ecx, [esp + 0x18]
setne al
and eax, 0xff
mov byte [esp + 0x24], 1
mov esi, eax
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x4d0a90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d34d8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
push eax
call ebp
cmp eax, 0xffffffff
je 0x4d0b05
lea ecx, [esp + 0x14]
call fcn.004d0030
push ecx
mov dword [esp + 0x34], 0
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call sub.mfc42u.dll_CString::CString_1
lea ecx, [esp + 0x18]
call fcn.004d0130
mov eax, dword [esi]
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryW]
push 0
push eax
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004d00c0
jmp 0x4d0b12
mov eax, dword [esi]
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryW]
push 0
push eax
call ebx
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
mov ecx, dword [esi]
push 0x61ee48
lea edi, [esi + 0x10]
push ecx
push 0x61edd8
push edi
call sub.mfc42u.dll_CString::Format_1
mov eax, dword [edi]
add esp, 0x10
push eax
call ebp
cmp eax, 0xffffffff
jne 0x4d0b47
mov edx, dword [edi]
push 0
push edx
call ebx
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret

Function at 0x4d12f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
test ebx, ebx
jbe 0x4d139c
mov eax, dword [esi + 0xc]
push ebp
push edi
push 0
push 0x100
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d1332
mov eax, dword [esi + 0xc]
push eax
push edi
push 6
call sub.mfc42u.dll_AfxThrowFileException
mov ecx, dword [esi + 0x1c]
push 0
push 0
push ecx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
cmp eax, 0xffffffff
jne 0x4d135c
push edi
call ebp
mov edx, dword [esi + 0xc]
push edx
push 0xffffffffffffffff
push 9
call sub.mfc42u.dll_AfxThrowFileException
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, ebx
push 0
mov dword [esi + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
mov ebx, eax
call ebp
pop edi
pop ebp
test ebx, ebx
je 0x4d138f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, edx
je 0x4d139c
mov eax, dword [esi + 0xc]
push eax
push 0xffffffffffffffff
push 1
call sub.mfc42u.dll_AfxThrowFileException
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4d17b0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d35c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x224]
push esi
mov esi, ecx
push edi
push ebx
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.005c0e66
push 0x61ef74
mov ecx, edi
call fcn.005c0e5a
lea edi, [esi + 0x10]
push ebx
mov ecx, edi
call fcn.005c0e66
push 0x61ef60
mov ecx, edi
call fcn.005c0e5a
lea edi, [esi + 0x14]
push ebx
mov ecx, edi
call fcn.005c0e66
push 0x61ef4c
mov ecx, edi
call fcn.005c0e5a
add esi, 8
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esi], ebx
call sub.mfc42u.dll_CString::CString_3
lea ecx, [esp + 0x18]
mov dword [esp + 0x224], ebx
call sub.mfc42u.dll_CString::CString_3
mov eax, 0x61ee90
mov byte [esp + 0x224], 1
test eax, eax
mov dword [esp + 0x10], 0x5e2a70
jne 0x4d185d
call fcn.004328a0
push eax
jmp 0x4d1862
push 0x61ee90
lea ecx, [esp + 0x1c]
call fcn.005c0e66
call fcn.00432890
push eax
lea ecx, [esp + 0x18]
call fcn.005c0e66
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 2
push ecx
push 0x61ee84
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.004b57f0
cmp dword [esp + 0xc], ebx
je 0x4d18d2
mov eax, dword [edi]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d18b9
mov edi, dword [edi]
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call fcn.004b5690
or eax, 0xffffffff
jmp 0x4d1912
push esi
push 0x61ef3c
lea ecx, [esp + 0x18]
call fcn.004b57f0
cmp dword [esi], ebx
jne 0x4d192c
mov eax, dword [edi]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d18fc
mov edi, dword [edi]
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call fcn.004b5690
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
mov edi, dword [edi]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d18fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], eax
call fcn.004b5690
mov eax, 1
jmp 0x4d1912
Function at 0x4d1960
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d35f1
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
sub esp, 0x20c
push esi
mov esi, ecx
cmp dword [esi + 8], eax
je 0x4d1a3a
lea ecx, [esp + 8]
mov dword [esi + 8], eax
call sub.mfc42u.dll_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x218], 0
call sub.mfc42u.dll_CString::CString_3
mov eax, 0x61ee90
mov byte [esp + 0x218], 1
test eax, eax
mov dword [esp + 4], 0x5e2a70
jne 0x4d19cc
call fcn.004328a0
push eax
jmp 0x4d19d1
push 0x61ee90
lea ecx, [esp + 0x10]
call fcn.005c0e66
call fcn.00432890
push eax
lea ecx, [esp + 0xc]
call fcn.005c0e66
mov ecx, dword [esi + 8]
mov dword [esp + 0x218], 2
push ecx
push 0x61ef3c
lea ecx, [esp + 0xc]
call fcn.004b5820
mov eax, dword [esi + 8]
test eax, eax
jne 0x4d1a54
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d1a26
mov esi, dword [esi + 0x14]
push esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea ecx, [esp + 4]
mov dword [esp + 0x218], 0xffffffff
call fcn.004b5690
xor eax, eax
mov ecx, dword [esp + 0x210]
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
mov esi, dword [esi + 0x14]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d1a26
lea ecx, [esp + 4]
mov dword [esp + 0x218], eax
call fcn.004b5690
mov eax, 1
jmp 0x4d1a3c

Function at 0x4d1bf0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x5ef13c]
push esi
push 0
push 0x100
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d1cca
mov eax, dword [0x628278]
push ebx
push ebp
inc eax
push edi
push eax
push 0x61efe4
push 0x628260
mov dword [0x628278], eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 2
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edx, dword [0x628280]
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push 0x627c78
push esi
mov ebp, eax
call edi
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x4d1c8a
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push ebx
push esi
call edi
lea edx, [esp + 0x10]
push 0
push edx
push 0x628260
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
push eax
push 0x628260
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x5ef138
push esi
call edi
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4d68a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d39a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x5e262c
lea ebx, [esi + 8]
mov dword [esp + 0x48], 0
mov ecx, ebx
call fcn.004cccd0
lea ecx, [esi + 0x20]
call fcn.004cccd0
lea edx, [esi + 0x38]
mov ecx, 0x20
xor eax, eax
mov edi, edx
mov dword [esi], 0x5ef8b4
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, 0x3ff00000
push edi
push edi
push edi
push edi
push edi
mov dword [edx], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0xb0], edi
push edi
lea ecx, [esp + 0x28]
mov dword [edx + 4], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0xb4], eax
call fcn.004cccf0
mov ecx, dword [eax]
push edi
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov ecx, dword [eax + 0x10]
push edi
push edi
mov dword [ebx + 0x10], ecx
mov edx, dword [eax + 0x14]
push edi
push edi
push edi
lea ecx, [esp + 0x40]
mov dword [ebx + 0x14], edx
call fcn.004cccf0
mov ecx, dword [eax]
pop edi
mov dword [esi + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x2c], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 0x14]
mov al, byte [ebp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x34], edx
mov byte [esi + 0xb8], al
mov dword [esi], 0x5ef898
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4