joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411031
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x451c40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x451c44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x451c48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x451c4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x451c50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCompareTokens
push dword [ebp + 8]
mov dword [0x451c54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [ebp + 8]
mov dword [0x451c58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [ebp + 8]
mov dword [0x451c5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [ebp + 8]
mov dword [0x451c60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x451c64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push dword [ebp + 8]
mov dword [0x451c68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x451c6c], eax
mov eax, 0x451c40
pop ebp
ret 4

Function at 0x411904
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0x33323130
mov ecx, dword [edx]
mov dword [ebp - 0x24], 0x37363534
mov dword [ebp - 0x20], 0x42413938
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
movzx eax, byte [eax]
shr eax, 4
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov eax, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x28], 0x33323130
mov dword [ebp - 0x24], 0x37363534
movzx eax, byte [eax]
and eax, 0xf
mov dword [ebp - 0x20], 0x42413938
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov ecx, dword [ebp - 4]
inc dword [esi]
xor ecx, ebp
pop esi
call fcn.0041e57b
leave
ret
Function at 0x411b11
Capabilities:
Parse pe header

Disassembly:
push 0x74
mov eax, 0x43952a
call fcn.0041ef0f
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
push edx
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x411b4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0041492a
jmp 0x411caa
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
and dword [edi + 0x44], 0
mov ebx, 0x104
push edi
push ebx
mov edx, eax
mov dword [ebp - 0x40], eax
mov dword [edi + 0x40], eax
call fcn.0041150f
pop ecx
pop ecx
jmp 0x411b7e
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
add ebx, ebx
push edi
push ebx
call fcn.0041150f
pop ecx
pop ecx
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.0041492a
or dword [ebp - 4], 0xffffffff
cmp eax, 0x7a
je 0x411b6d
test esi, esi
je 0x411b99
mov ecx, esi
jmp 0x411b41
mov edx, dword [ebp - 0x34]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x411ca5
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x411ca5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411ca5
mov eax, dword [ecx + 0x50]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
cmp dword [ecx + 0x74], 6
jbe 0x411c9a
cmp dword [ecx + 0xac], 0x1c
jb 0x411c9e
mov eax, dword [ecx + 0xa8]
cmp dword [eax + edx + 0x10], 0x1c
jb 0x411c9e
mov ebx, dword [eax + edx + 0x14]
add ebx, edx
cmp dword [ebx], 0x53445352
jne 0x411ca5
and dword [ebp - 0x54], 0
lea eax, [edi + 0x20]
or dword [ebp - 0x4c], 0xffffffff
lea esi, [ebp - 0x58]
push 7
pop ecx
mov dword [ebp - 0x58], eax
lea edi, [ebp - 0x30]
mov dword [ebp - 0x50], 0xa
lea edx, [ebx + 4]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0x20
mov byte [ebp - 0x40], 0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x4c]
call fcn.00411a9a
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.004119c8
push 0x24
pop edx
movzx ecx, byte [eax + 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
js 0x411c6b
cmp edx, ecx
jb 0x411c6b
mov edx, ecx
mov ecx, dword [ebp - 0x30]
push 0
push 0
push edx
push eax
lea edx, [ebp - 0x2c]
call fcn.00411847
lea ecx, [ebp - 0x30]
call fcn.00411640
add esp, 8
mov ecx, dword [eax]
lea edx, [eax + 4]
push dword [edx + 4]
push dword [ebx + 0x14]
call fcn.004115a7
add esp, 0x10
xor eax, eax
jmp 0x411caa
mov eax, 0x8000005c
jmp 0x411caa
mov eax, 0x8000005a
call fcn.0041eebe
ret
Function at 0x412814
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43964d
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x44d0e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov byte [edx + 0xb], 0xb
lea ecx, [edx + 0x4c]
xor ebx, ebx
mov edi, ecx
mov byte [edx], bl
xor eax, eax
mov dword [edx + 0x18], ebx
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], ebx
mov dword [edx + 0x28], ebx
mov dword [edx + 0x1c], ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov dword [edx + 0x38], ebx
mov dword [edx + 0x2c], ebx
mov dword [edx + 0x30], ebx
mov dword [edx + 0x34], ebx
mov dword [edx + 0x48], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, edx
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x40], ebx
mov dword [edx + 0x44], 0xf
mov byte [ecx], bl
mov dword [edx + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x414b25
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [ecx]
mov esi, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x414b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0041492a
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x417621
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x417680
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x417654
mov eax, esi
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x417691
test ecx, ecx
je 0x417680
mov ecx, dword [ebp - 0xc]
test esi, esi
jne 0x417645
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e57b
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417682

Function at 0x41777c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x417784
mov dword [ecx*4 + 0x44f770], edx
inc ecx
cmp ecx, 0x100
jb 0x41777f
mov edx, 0x400
pop esi
mov ecx, dword [edx + 0x44f370]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x44f770]
mov dword [edx + 0x44f770], ecx
add edx, 4
cmp edx, 0x2000
jb 0x4177af
mov dword [0x451770], 0x4189a0
call fcn.00418bf8
test eax, eax
jne 0x4177f0
mov dword [0x451770], 0x418a40
ret
Function at 0x41b456
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41b4c8
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x41b465
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x41b465
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41b577
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41b599
xor eax, eax
jmp UuidCreateSequential
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x41b5b9
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41b5b6
inc edi
cmp edi, edx
jb 0x41b5a9
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x41b685
cmp ecx, 2
jbe 0x41b644
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x41b674
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41b624
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x41b622
mov eax, pe_nt_image_headers32
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x41b67a
shr esi, cl
test esi, esi
je 0x41b5d2
cmp esi, 4
ja 0x41b669
cmp esi, 3
je 0x41b669
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x41b5d2
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x41b5a2
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x41b5a2
push 2
shr esi, cl
pop eax
cmp eax, ecx
mov eax, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x408990
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
and eax, 0xffff
push str.BARTEND.INI
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret

Function at 0x409ef0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x42a6c8]
mov dword [ebp - 0x10], esp
xor esi, esi
mov ebx, 2
test edi, edi
je 0x40a0d1
mov eax, edi
mov edi, dword [edi]
lea ecx, [ebp - 0x18]
lea esi, [eax + 8]
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_CString::CString_2
push 0x42a6e0
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 4], 0
call fcn.00409e00
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x42a6e4]
mov byte [ebp - 4], bl
mov eax, dword [ecx - 8]
test eax, eax
je 0x409f82
mov eax, 0x42a6c4
cmp dword [eax + 0xc], 1
jne 0x409f82
push 0x42a6e4
jmp 0x40a056
mov eax, dword [esi]
push 0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0041ab36
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFile::CFile
lea edx, [ebp - 0x20]
push 1
push edx
mov dword [ebp - 4], ebx
call fcn.00411fb0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40a055
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
push edx
push eax
lea ecx, [ebp - 0x20]
push 0xbca
push ecx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::FormatMessageA
mov edx, dword [ebp - 0x20]
push 0
push 1
push edx
call fcn.0040a340
add esp, 0x1c
call fcn.0040a440
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [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 - 0x18]
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
push esi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push esi
call fcn.0040a0f0
add esp, 0x10
lea ecx, [ebp - 0x14]
mov esi, eax
mov byte [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 - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x409f1e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a0f0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41b848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040b190
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ebp
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0
call fcn.0040b2b0
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x2c], ebx
call fcn.0040b240
test si, si
jne 0x40a266
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40a1ba
mov edi, dword [esp + 0x40]
push 0
mov ecx, dword [edi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40a1fc
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [edi]
lea edx, [esp + 0x3c]
push ecx
push 0xbc8
push edx
mov dword [esp + 0x38], 1
call sub.MFC42.DLL_CString::FormatMessageA
mov eax, dword [esp + 0x48]
push 0
push 1
push eax
call fcn.0040a340
add esp, 0x18
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp]
lea eax, [esp + 0x38]
push edx
push 0xbc9
push eax
mov dword [esp + 0x38], 3
call sub.MFC42.DLL_CString::FormatMessageA
mov ecx, dword [esp + 0x44]
push 0
push 1
push ecx
call fcn.0040a340
add esp, 0x18
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x38]
jmp 0x40a2dc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [edi]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x44]
push 0xbcc
push eax
mov dword [esp + 0x3c], 2
call sub.MFC42.DLL_CString::FormatMessageA
mov ecx, dword [esp + 0x4c]
push 0
push 1
push ecx
call fcn.0040a340
add esp, 0x1c
call fcn.0040a440
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x34]
mov ecx, 0x42a6a0
push eax
call fcn.0040a300
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], 4
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a2aa
cmp si, 0xbcb
je 0x40a2d4
cmp si, 0x119a
je 0x40a2d4
cmp si, 0x119b
je 0x40a2d4
call fcn.0040a440
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40d010
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41bca8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
push edi
push 0
push 0x428848
push 0x428828
push 0
push eax
call sub.MSVCRT.dll___RTDynamicCast
add esp, 0x14
mov esi, eax
call sub.MFC42.DLL_AfxGetEmptyString
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
lea edx, [edi + 0x2f]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x18]
lea ecx, [esi + 0x24]
push eax
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetEmptyString
mov ecx, dword [eax]
lea edx, [edi + 0x44]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x18]
lea ecx, [esi + 0x28]
push eax
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetEmptyString
mov ecx, dword [eax]
lea edx, [edi + 0x59]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x2c]
push eax
mov dword [esp + 0x14], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor ecx, ecx
xor edx, edx
mov cx, word [edi + 0xa]
xor eax, eax
mov dword [esi + 0x30], ecx
mov dx, word [edi + 0xe]
mov dword [esi + 0x34], edx
mov ax, word [edi + 0x10]
mov dword [esi + 0x38], eax
movsx ecx, word [edi + 0xc]
mov dword [esi + 0x3c], ecx
movsx edx, word [edi + 0x12]
mov dword [esi + 0x40], edx
movsx eax, word [edi + 0x14]
mov dword [esi + 0x44], eax
movsx ecx, word [edi + 0x16]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 8]
movsx edx, word [edi + 0x18]
mov dword [esi + 0x4c], edx
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x411130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41c43f
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
call fcn.00418490
lea ebp, [esi + 0xc]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x10]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x1c], 5
mov dword [esi], vtable.InputDataFileSetupData.0
mov dword [esi + 8], edi
call sub.MFC42.DLL_CString::Empty
push str.DEFAULT.DAT
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::Empty
mov ebx, 1
lea ecx, [esi + 0x30]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x40]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x44], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x411230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41c484
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], vtable.InputDataFileSetupData.0
lea ecx, [esi + 0x40]
mov dword [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov dword [esi], vtable.CObject.0
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x411fb0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0x108]
mov dword [esp], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x411feb
lea ecx, [esp + 4]
lea edx, [esp + 0x108]
push ecx
push 0
push 0x428c60
push edx
jmp 0x411ffc
lea eax, [esp + 4]
push eax
push 0
push 0x428c60
push 0x428490
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test ax, ax
push esi
je 0x412025
mov eax, dword [esp + 0x218]
test eax, eax
je 0x41201e
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 8]
push edx
jmp 0x41202a
push str.BTWTEMP.TMP
mov esi, dword [esp + 0x218]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop esi
add esp, 0x20c
ret