joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4211d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esp + 0xc], esi
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
call fcn.004203fc
mov dword [edi], 0x424ec8
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x48]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString_4
push ebx
lea eax, [esi + 0x58]
push ebx
push 1
mov dword [esi + 0x4c], 4
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi], 0x424ec4
push ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x34], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404dc0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x421250
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x404f74
or ebp, 0xffffffff
cmp eax, ebp
je 0x404f74
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x404f74
mov edi, edx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x404f74
push edx
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x404e2c
mov eax, 0x42e820
push eax
lea ecx, [esi + 0x3c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x10]
mov dword [esi + 0x2c], eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_4
mov edi, dword [esp + 0x2c]
lea ecx, [esi + 0x48]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
mov byte [esp + 0x38], 1
mov dword [esp + 0x28], ebx
call fcn.00407370
add esp, 0x14
test eax, eax
push edi
jne 0x404e94
push str.Download_URL___s__invalid
push 3
call fcn.004135f0
add esp, 0xc
jmp 0x404f5a
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator
push 1
mov ecx, esi
call fcn.00404f90
cmp eax, ebx
mov dword [esi + 0x50], eax
jne 0x404ee7
push str.Create_download_object_failed
push 3
call fcn.004135f0
add esp, 8
mov ecx, esi
push 1
call fcn.00405b20
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x404f76
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push ecx
mov ecx, eax
call fcn.00406a70
mov edx, dword [esi + 0x50]
push edi
mov dword [edx + 0xc], esi
mov ecx, dword [esi + 0x50]
call fcn.00406d10
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push ebx
push esi
push 0x404d50
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x404f4b
cmp eax, ebp
je 0x404f4b
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x404f76
push str.Create_download_thread_failed
push 2
call fcn.004135f0
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
Function at 0x405370
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4212c6
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 0
push 2
push 0xffffffffffffffff
mov dword [esi + 0x34], eax
call fcn.00407960
mov ecx, dword [esi + 0x50]
add esp, 0x10
call fcn.004070a0
test eax, eax
je 0x40555b
mov ecx, esi
call fcn.004061f0
mov eax, dword [esi + 0x2c]
test eax, eax
mov eax, dword [esi + 0x40]
je 0x405451
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405580
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4054ca
mov edx, dword [esi + 0x50]
mov eax, dword [edx + 0x58]
test eax, eax
je 0x4054ca
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405580
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x13c], 0
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x4054a5
mov edx, dword [esi + 0x50]
mov ecx, esi
mov edi, dword [edx + 0x60]
call fcn.00406120
mov edx, dword [esp + 0x20]
add eax, edi
cmp edx, eax
sete al
test al, al
je 0x4054a5
mov bl, 1
jmp 0x4054a7
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x4053f0
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
mov edi, edx
mov eax, dword [ecx + 0xd4]
sub edi, eax
cmp edi, 2
jg 0x4053f0
sub eax, edx
cmp eax, 2
jg 0x4053f0
mov ecx, dword [ecx + 0x60]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x4053f0
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4054ca
mov eax, 2
jmp 0x40555b
xor bl, bl
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4054ca
mov ecx, esi
call fcn.004057e0
test eax, eax
jne 0x40552f
mov eax, dword [esi + 0x50]
mov ecx, esi
mov ebx, dword [eax + 0x60]
call fcn.00406120
mov edi, eax
add edi, ebx
test ebx, ebx
jl 0x4054e9
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x4054eb
xor edi, edi
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00405580
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x13c], 1
call fcn.004141b0
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40552f
xor eax, eax
jmp 0x40555b
mov ecx, esi
call fcn.00405620
test eax, eax
jne 0x40554d
push str.Assign_task_failed
push 2
call fcn.004135f0
add esp, 8
xor eax, eax
jmp 0x40555b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x405580
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4212ef
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
mov eax, dword [esi + 0x40]
lea ecx, [esp + 4]
push eax
push str._s.xhw
push ecx
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
add esp, 0xc
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
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 4
Function at 0x4079b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4216bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov ebx, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esi + 0xf4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push esi
mov byte [esp + 0x30], 3
call fcn.00413e00
add esp, 0x10
test eax, eax
jne 0x407a3a
mov esi, dword [esp + 0x28]
push 0x42e820
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
jmp 0x407a87
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x407a4c
lea eax, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x407a73
push 0x42c0c0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.004203a2
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x407e10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x421746
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
lea eax, [esp + 0x10]
push 0x104
xor ebx, ebx
push eax
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], bl
call sub.MFC42.DLL_CString::CString
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp ax, 0x804
jne 0x407ea8
mov byte [esi + 7], bl
jmp 0x407eb0
cmp ax, 0x404
mov byte [esi + 7], 1
call fcn.0041e5d0
mov eax, dword [eax + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407edb
mov dword [esi + 0xc], 5
call fcn.0041e5d0
add eax, 0x48
lea ecx, [esi + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0xc]
pop esi
cmp eax, ebx
pop ebx
mov dword [esp + 0x114], 0xffffffff
lea ecx, [esp]
jne 0x407f0f
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10c]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x407f30
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42176f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_4
mov ebp, dword [esp + 0x70]
lea eax, [esp + 0x24]
push eax
push ebp
mov dword [esp + 0x6c], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40800a
lea ecx, [esp + 0x70]
lea edx, [esp + 0x18]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x80], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40800a
test dword [esp + 0x70], 0xfffffffc
jbe 0x40800a
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov cx, word [eax + 2]
xor edx, edx
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40800a
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
cmp esi, ebx
je 0x408018
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [esp + 0x6c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8

Function at 0x408060
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408085
xor al, al
ret 0x18
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4080ba
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
ret 0x18
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret 0x18

Function at 0x408710
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [esp + 0x9c]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x408756
cmp dword [esp + 0x14], 2
jne 0x408756
cmp dword [esp + 8], 6
jb 0x408756
push str.VistaAndLater
mov ecx, esi
call sub.MFC42.DLL_CString::operator
pop esi
add esp, 0x94
ret 4
Function at 0x408760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov edx, dword [esp + 0x44]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 4]
mov dword [esp + 4], 0x3c
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.Open
mov dword [esp + 0x20], 0x42c28c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret 0xc
Function at 0x4094c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4218c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 8], 0x424f18
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], 0x424f04
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
mov byte [esp + 0x1c], 4
mov dword [esi], 0x424f00
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x409b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421a07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.00409f30
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov edi, eax
call sub.MFC42.DLL_CString::CString_3
push edi
mov ecx, esi
call fcn.00409fd0
cmp edi, 0xffffffff
jne 0x409bfb
push str.Unable_to_locate_specified_key.
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x24]
push 0x42e820
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, 1
mov dword [esp + 0xc], eax
jmp 0x409c41
cmp eax, 0xffffffff
jne 0x409c1f
push str.Unable_to_locate_specified_value.
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x24]
push 0x42e820
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
jmp 0x409c38
mov edx, dword [esi + 0xc]
mov esi, dword [esp + 0x24]
lea ecx, [edi + edi*4]
mov ecx, dword [edx + ecx*8 + 4]
lea edx, [ecx + eax*4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, 1
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0xc
Function at 0x40ade0
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [esp + 0x21c]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x40ae02
mov eax, dword [ecx + 0x30]
test eax, eax
jg 0x40af21
jmp 0x40ae0e
push 0xffffffffffffffff
push 0
add ecx, 0x28
call sub.MFC42.DLL_CStringArray::SetSize
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40af21
push ebx
push esi
mov eax, dword [esp + 8]
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x34]
push ecx
push edx
mov ebx, 0x100
push esi
push eax
mov dword [esp + 0x30], ebx
call edi
cmp eax, 0x103
je 0x40af13
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40aee8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aeed
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
jne 0x40aedd
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40aedd
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea ecx, [eax + 0x28]
mov eax, dword [eax + 0x30]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push esi
push ecx
call edi
cmp eax, 0x103
jne 0x40ae6e
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x40d480
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x422498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 8]
mov dword [esp + 0x40], 0
push eax
call fcn.004156d0
add esp, 4
push 0x42d464
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_operator_2
mov bl, 3
lea ecx, [esp + 8]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
call fcn.0041e5d0
push ecx
add eax, 0x50
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_3
call fcn.004155f0
mov edx, dword [esp + 8]
add esp, 4
lea ecx, [esp + 0x1c]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40d611
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::Close
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x42d44c
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
mov byte [esp + 0x48], 4
push eax
call fcn.004156d0
mov ecx, esp
mov dword [esp + 0x20], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x4c], 6
call fcn.00414ee0
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
call fcn.0041e5d0
mov eax, dword [eax + 0x50]
mov edx, dword [esp + 4]
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40d611
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x42d440
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
mov byte [esp + 0x48], 7
push eax
call fcn.004156d0
mov ecx, esp
mov dword [esp + 0x24], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0x58], 8
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x4c], 9
call fcn.00414ee0
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.004204e0
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x42d430
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x18]
mov byte [esp + 0x48], 0xa
push edx
call fcn.004156d0
mov ecx, esp
mov dword [esp + 0x20], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0x58], 0xb
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x4c], 0xc
call fcn.00414ee0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.004204e0
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret