joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x45e3d1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x45e3b5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x45e307
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x45e2e5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x45ee19
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45ee70
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x45ee70
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x45ee70
xor eax, eax
inc eax
jmp 0x45ee72
xor eax, eax
leave
ret 0x10
Function at 0x45ee9b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x45ef09
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x57d30c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45ef00
cmp dword [ebp - 0xc], 4
jne 0x45ef00
cmp dword [ebp - 0x10], edi
je 0x45ef00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a18d0], edi
xor eax, eax
jmp 0x45ef48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5a18d0], edi
jge 0x45ef43
lea eax, [ebp - 0x34]
push eax
mov dword [0x5a18d0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x45ef43
cmp word [ebp - 0x14], 5
jb 0x45ef43
call fcn.0045ee76
test eax, eax
je 0x45ef43
emms
mov dword [0x5a18d0], 1
mov eax, dword [0x5a18d0]
pop edi
leave
ret

Function at 0x487b3d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x487b75
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00485bf1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00485bc9
jmp 0x487b81
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48922b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48926d
call fcn.0048ef1b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48926d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x489264
xor eax, eax
jmp 0x489275
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048927b
pop edi
pop esi
pop ebx
ret 4

Function at 0x48f44b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48f479
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f497
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048f3b1
jmp 0x48f497
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48f497
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048f3b1
test edi, edi
mov eax, edi
jne 0x48f481
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401764
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
push 0x4017f8
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
and al, 0x85
jnp 0x401762
cwde
cwde
loopne 0x4017d1
sbb byte [ebx + 0x455af327], 0x79
sti
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
dec esi
push eax
dec ebp
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], al
add byte [eax], al
add ah, bl
jg 0x4017f3
add byte [edi], al
add byte [eax], al
add byte [ebx*2 + 0x10040], cl
add dword [eax], eax
test byte [esi + 0x40], dl
add byte [eax], al
add byte [eax], al
add bh, bh
add byte [eax], al
add byte [eax], cl
push edi
inc eax
add byte [eax + eax*2], bl
inc edx
add byte [ecx], al
add byte [eax], al
add ah, dh
pop ss
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add ah, dh
pop ss
inc eax
add byte [eax + 0x5603eab4], dl
inc edx
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax - 0x7fffbdf4], dl
sbb dword [eax], eax
mov edi, 0xbff1
invalid
Function at 0x4047d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e407
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x14], 0
mov ebx, 1
lea ecx, [esp + 8]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x20], 2
test eax, eax
jne 0x404816
mov eax, 0x42b380
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x20], 4
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x404863
mov esi, dword [esp + 0x28]
push 0x42b380
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
jmp 0x40490e
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
add ecx, eax
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
push 0x4294a4
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jge 0x4048bc
mov esi, dword [esp + 0x28]
push 0x42b380
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
jmp 0x40490a
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimRight
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
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 0xc
Function at 0x404d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e4e7
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.0041d666
mov dword [edi], 0x421e90
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], 0x421e8c
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 0x405040
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e560
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 0x4051f4
or ebp, 0xffffffff
cmp eax, ebp
je 0x4051f4
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x4051f4
mov edi, edx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x4051f4
push edx
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x4050ac
mov eax, 0x42b380
push eax
lea ecx, [esi + 0x3c]
call sub.MFC42.DLL_CString::operator_1
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.004075f0
add esp, 0x14
test eax, eax
push edi
jne 0x405114
push str.Download_URL___s__invalid
push 3
call fcn.00413cd0
add esp, 0xc
jmp 0x4051da
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator_1
push 1
mov ecx, esi
call fcn.00405210
cmp eax, ebx
mov dword [esi + 0x50], eax
jne 0x405167
push str.Create_download_object_failed
push 3
call fcn.00413cd0
add esp, 8
mov ecx, esi
push 1
call fcn.00405da0
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 0x4051f6
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push ecx
mov ecx, eax
call fcn.00406cf0
mov edx, dword [esi + 0x50]
push edi
mov dword [edx + 0xc], esi
mov ecx, dword [esi + 0x50]
call fcn.00406f90
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push ebx
push esi
push 0x404fd0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x4051cb
cmp eax, ebp
je 0x4051cb
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 0x4051f6
push str.Create_download_thread_failed
push 2
call fcn.00413cd0
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 0x4055f0
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41e5d6
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.00407be0
mov ecx, dword [esi + 0x50]
add esp, 0x10
call fcn.00407320
test eax, eax
je 0x4057db
mov ecx, esi
call fcn.00406470
mov eax, dword [esi + 0x2c]
test eax, eax
mov eax, dword [esi + 0x40]
je 0x4056d1
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405800
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 0x40574a
mov edx, dword [esi + 0x50]
mov eax, dword [edx + 0x58]
test eax, eax
je 0x40574a
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405800
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 0x405725
mov edx, dword [esi + 0x50]
mov ecx, esi
mov edi, dword [edx + 0x60]
call fcn.004063a0
mov edx, dword [esp + 0x20]
add eax, edi
cmp edx, eax
sete al
test al, al
je 0x405725
mov bl, 1
jmp 0x405727
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x405670
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 0x405670
sub eax, edx
cmp eax, 2
jg 0x405670
mov ecx, dword [ecx + 0x60]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x405670
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40574a
mov eax, 2
jmp 0x4057db
xor bl, bl
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40574a
mov ecx, esi
call fcn.00405a60
test eax, eax
jne 0x4057af
mov eax, dword [esi + 0x50]
mov ecx, esi
mov ebx, dword [eax + 0x60]
call fcn.004063a0
mov edi, eax
add edi, ebx
test ebx, ebx
jl 0x405769
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x40576b
xor edi, edi
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00405800
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x13c], 1
call fcn.00414890
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 0x4057af
xor eax, eax
jmp 0x4057db
mov ecx, esi
call fcn.004058a0
test eax, eax
jne 0x4057cd
push str.Assign_task_failed
push 2
call fcn.00413cd0
add esp, 8
xor eax, eax
jmp 0x4057db
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 0x405800
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e5ff
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 0x407c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e9cf
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.004144e0
add esp, 0x10
test eax, eax
jne 0x407cba
mov esi, dword [esp + 0x28]
push 0x42b380
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
jmp 0x407d07
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x407ccc
lea eax, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x407cf3
push 0x429350
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.0041d60c
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 0x4085d0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x41eb3f
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 0x4086aa
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 0x4086aa
test dword [esp + 0x70], 0xfffffffc
jbe 0x4086aa
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 0x4086aa
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
cmp esi, ebx
je 0x4086b8
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 0x408700
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 0x408725
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 0x40875a
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 0x409590
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 0x4095d6
cmp dword [esp + 0x14], 2
jne 0x4095d6
cmp dword [esp + 8], 6
jb 0x4095d6
push str.VistaAndLater
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
pop esi
add esp, 0x94
ret 4

Function at 0x4097c0
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], 0x429538
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