joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9370
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x30]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 4], 0
mov edi, dword [ebx + 4]
mov ebp, dword [ebx]
lea eax, [edi + 1]
push eax
push esi
call fcn.004ea1e0
add esp, 8
test eax, eax
je 0x4e93c2
test edi, edi
je 0x4e93b4
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0
jmp 0x4e93d1
push str.Out_of_memory
push 1
call fcn.004e8a10
add esp, 8
mov dword [esi + 0x10], 0
lea edi, [esi + 0xc]
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
inc eax
add eax, ebp
push eax
push edi
call fcn.004ea1e0
add esp, 8
test eax, eax
je 0x4e941f
test ebp, ebp
je 0x4e9411
mov eax, dword [edi + 4]
add eax, dword [edi]
push ebp
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [edi + 4], ebp
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [ecx + eax], 0
jmp 0x4e942e
push str.Out_of_memory
push 1
call fcn.004e8a10
add esp, 8
mov dword [esi + 0x1c], 0
add esi, 0x18
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [esi + 4]
inc eax
add eax, edi
add eax, eax
push eax
push esi
call fcn.004ea1e0
add esp, 8
test eax, eax
je 0x4e9482
test edi, edi
je 0x4e946f
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
push ebx
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
xor edx, edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax + ecx*2], dx
pop ebx
ret
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], str.Out_of_memory
mov dword [esp + 4], 1
jmp fcn.004e8a10
Function at 0x4f0450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__errno]
test eax, 0xffff7fff
jne 0x4f0534
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f04cd
call ebx
cmp eax, 3
jne 0x4f04b3
push ebp
call fcn.004f06f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f04a7
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f04cd
call ebx
push eax
call fcn.004f0390
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4f0528
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x4f04ed
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x4f04f4
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp edi, 0xffffffff
jne 0x4f0517
call ebx
push eax
call fcn.004f0390
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call dword [sym.imp.MSVCRT.dll__open_osfhandle]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x4f05cb
mov eax, dword [esp + 0x18]
push dword [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4f0659
call edi
cmp dword [eax], 0xd
jne 0x4f05a1
test dword [esp + 0x18], 0x100
je 0x4f05a1
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f057d
call ebx
push eax
call fcn.004f0390
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4f0591
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call edi
cmp dword [eax], 2
jne 0x4f0659
push ebp
call fcn.004f06f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f05cb
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wopen]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jns 0x4f0646
call edi
cmp dword [eax], 0xd
jne 0x4f0646
test ebp, 0x100
je 0x4f0646
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f061f
call ebx
push eax
call fcn.004f0390
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4f063e
call edi
push esi
mov dword [eax], 0x15
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
call edi
mov dword [eax], 0xd
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4f0660
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4f0678
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
jne 0x4f0682
xor eax, eax
ret
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4f06ea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xe8
jne 0x4f06c3
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x4f067f
cmp eax, 5
jne 0x4f06dd
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004f0390
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x4f0920
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4f0938
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4f0984
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x4f0977
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004f0390
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x4fef50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x4fef8b
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
lea ebx, [ebx]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x11748b0]
mov dword [eax + 0x260], edx
dec esi
jne 0x4fef70
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
dec ecx
je 0x4ff012
dec ecx
je 0x4feff7
dec ecx
je 0x4fefeb
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x50eb30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x50eb50
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x50eb50
mov eax, dword [eax + 0x44]
test eax, eax
je 0x50eb50
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x51f6ce
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x11f1840], 0
push ebx
push esi
mov esi, 0x11f1848
jne 0x51f6fa
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
push esi
mov dword [0x11f1860], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x11f1840], 1
push dword [0x11f1860]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x51f797
push 0x14
push 8
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x51f7c1
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x11f1844]
test eax, eax
je 0x51f73c
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x11f1844], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x51f7c6
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
push ebx
push dword [0x11f1860]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x51f7c1
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x51fe69
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x1177d64]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
push esi
push dword [0x11f1cf0]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
push dword [esp + 8]
mov dword [0x11f1cf4], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00522a79
mov dword [esi + 0x58], 0x520a7c
mov eax, esi
mov dword [esi + 0x5c], 0x520ac8
mov dword [esi + 0x10], fcn.0052061d
mov dword [esi + 0x30], 0x52050f
mov dword [esi + 0x64], 0x520b52
mov dword [esi + 0x60], 0x520b0a
mov dword [esi + 0x34], 0x5201bf
mov dword [esi + 0x24], 0x520196
mov dword [esi + 0x28], 0x52016b
mov dword [esi + 0x2c], 0x5200bd
mov dword [esi + 0x44], 0x520882
pop esi
ret 4
Function at 0x525d43
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x525df9
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x525dd9
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x525db4
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x525dee
add edi, dword [esp + 0x14]
jmp 0x525df2
add edi, dword [esp + 0x24]
test edx, edx
jne 0x525d92
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x526104
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x5261de
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x5261b4
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x52617c
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x5261cb
add edi, ecx
jmp 0x5261cf
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x526152
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5267fe
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x5268b3
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x526894
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x52686f
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x5268a9
add edx, dword [esp + 0x14]
jmp 0x5268ad
add edx, dword [esp + 0x24]
test esi, esi
jne 0x52684d
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0xc4000
push 0
call sub.kernel32.dll_GetUserDefaultLCID
call sub.kernel32.dll_VirtualAlloc
call fcn.004a1608
ret
Function at 0x4012d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42b0e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call dword [sym.imp.Zbf.dll_public:_void___thiscall_CBase::constructor_void_]
push 8
mov dword [esp + 0x14], 0
mov dword [esi], 0x431a24
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x40131e
mov dword [eax + 4], 0
mov dword [eax], 0x431a10
jmp 0x401320
xor eax, eax
push 0
push 0x43b078
push 0x64
mov ecx, eax
mov dword [esi + 0x24], eax
call sub.MFC42.DLL_CFont::CreatePointFont
test eax, eax
jne 0x401343
push eax
push eax
push 0x43b068
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esp + 8]
or eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406590
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42bc01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ebp, dword [edi + 8]
sub esp, 0x20
mov dword [esp + 0x38], 0
mov esi, esp
mov dword [esp + 0x2c], esp
mov dword [esp + 0x2c], esi
mov dword [esi], eax
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x4c]
lea ecx, [esi + 0xc]
push eax
mov dword [esi + 8], edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x50]
mov byte [esp + 0x38], 1
push ecx
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x3c], 2
mov dword [esi + 0x14], edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x38], 3
push ecx
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::CString_2
push ebp
mov ecx, edi
mov byte [esp + 0x3c], 0
call fcn.004069b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 6
call fcn.0042a4f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x18], 5
call fcn.0042a4f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x18], 4
call fcn.0042a4f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0xffffffff
call fcn.0042a4f0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x10
ret 0x20
Function at 0x406df0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42bdef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x40]
mov dword [esp + 0x10], 0xc
call fcn.0042a4f0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 0xb
call fcn.0042a4f0
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 0xa
call fcn.0042a4f0
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 9
call fcn.0042a4f0
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 8
call fcn.0042a4f0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 7
call fcn.0042a4f0
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call fcn.0042a4f0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call fcn.0042a4f0
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call fcn.0042a4f0
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call fcn.0042a4f0
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call fcn.0042a4f0
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.0042a4f0
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.0042a4f0
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042a4f0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42bef5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0x1c]
push edi
shl ecx, 4
add ecx, edx
xor eax, eax
shl ecx, 3
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x4071c4
inc edx
push ebp
mov dword [esp + 0x28], edx
xor edi, edi
mov dword [esp + 0x10], esi
cmp esi, edi
mov dword [esp + 0x1c], edi
je 0x4071a3
lea ebp, [esi + 4]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
lea ebx, [esi + 8]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x1c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x68]
mov byte [esp + 0x1c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 0xb
call sub.MFC42.DLL_CString::CString
push 0x43caf4
mov ecx, ebp
mov byte [esp + 0x20], 0xc
mov dword [esi], edi
call fcn.0042a502
push 0x43caf4
mov ecx, ebx
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x10]
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x14]
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0xc]
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], edi
call fcn.0042a502
or ebx, 0xffffffff
push 0x43caf4
lea ecx, [esi + 0x38]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x3c]
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x44]
mov dword [esi + 0x40], edi
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x48]
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x68]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
call fcn.0042a502
push 0x43caf4
lea ecx, [esi + 0x70]
call fcn.0042a502
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jmp 0x4071a6
or ebx, 0xffffffff
mov eax, dword [esp + 0x28]
add esi, 0x88
dec eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x407010
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8