joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8e8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CWnd::CWnd
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x44]
mov byte [esp + 0x30], 1
mov ecx, edi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 4]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0xf]
mov cl, byte [esp + 0xf]
mov byte [edi + 0xc], al
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], cl
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x34], ebx
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x7c], 0x4b86b4
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 0x4b86a0
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], eax
mov byte [esp + 0x30], 5
mov dword [esi], 0x4b85e0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x20]
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40a1b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x52e6f8]
sub esp, 0x134
test eax, eax
jne 0x40a285
lea eax, [esp]
mov dword [0x52e6f8], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a285
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a278
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40a278
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a278
mov dword [0x52e6f4], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x52e6f4]
add esp, 0x134
ret

Function at 0x40adc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a9bdb
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], 0x4b8c40
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x40ae50
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 0x40ae17
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 0x40ae41
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40ae56
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40ae56
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4b8bd4
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4b86c8
mov dword [esp + 0x1c], 0xffffffff
call fcn.004607c2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40e800
Capabilities:
Persist via run registry key
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4aa5b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040ed20
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x190]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [eax + 0x94]
push eax
push ecx
push str.HotkeyMode
push str.Setup
call edi
mov dword [esi + 0x190], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x94]
mov eax, dword [esi + 0x194]
push edx
push eax
push str.ProcessPriority
push str.Setup
call edi
mov dword [esi + 0x194], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x198]
mov ecx, dword [eax + 0x94]
push ecx
push edx
push str.Beep
push str.Setup
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
lea ecx, [esp + 0x10]
mov dword [esi + 0x198], eax
call sub.MFC42.DLL_CString::CString_1
push 0x52f78c
lea eax, [esp + 0x14]
xor ebx, ebx
push str.MyMacro_
push eax
mov dword [esp + 0x50], ebx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x52e670
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.004618b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x48], 3
call fcn.00461c20
mov byte [esp + 0x44], 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x52e670
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40e971
mov dword [esi + 0x19c], ebx
jmp 0x40e97b
mov dword [esi + 0x19c], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], bl
call fcn.00461a30
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret
Function at 0x424bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad68b
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], 0x4bb8c0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x424c80
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 0x424c47
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 0x424c71
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x424c86
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x424c86
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4b8bd4
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4b86c8
mov dword [esp + 0x1c], 0xffffffff
call fcn.004607c2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x426bb9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426c11
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x52e670
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426c04
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x426c13
xor eax, eax
pop esi
leave
ret 4
Function at 0x45b230
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4b1e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
xor ebx, ebx
mov byte [eax + 0x14], bl
call sub.MFC42.DLL_COleObjectFactory::RegisterAll
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
push SysReAllocStringLen
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x52e670
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x80], ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.CLSIDEBEB87A6_E151_4054_AB45_A6E094C5334BLocalServer32_
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call fcn.004618b0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x4c]
mov dword [esp + 0x70], 1
push eax
push 0x20006
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea edx, [esp + 0x28]
push edx
push str.QMDispatch.QMLibrary
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push 0x547e64
push 0x4d51c0
push 1
lea eax, [esp + 0x34]
push ebx
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x45b3df
mov eax, dword [0x547e64]
mov dword [esp + 0xc], ebx
cmp eax, ebx
je 0x45b325
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x4d5190
push eax
call dword [ecx]
lea eax, [esp + 0x18]
mov byte [esp + 0x70], 2
push eax
call sub.MFC42.DLL_AfxVariantInit
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
mov byte [esp + 0x70], 3
je 0x45b3bd
push 3
push 0x45b0c0
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_COleVariant::COleVariant
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x400
lea edx, [esp + 0x18]
push 1
mov dword [esp + 0x1c], str.Initialize
mov ecx, dword [eax]
push edx
push 0x4d51b0
push eax
mov byte [esp + 0x88], 4
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x45b3a1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0042d670
lea edx, [esp + 0x38]
mov esi, eax
push edx
mov byte [esp + 0x74], 3
call edi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x45b3bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x18]
mov dword [esp + 0xc], ebx
push edx
call edi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x70], 1
cmp eax, ebx
je 0x45b3db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x45b412
push ebx
push ebx
lea edx, [esp + 0x1c]
push str.CoreLibLogQMDispatchError
push edx
call fcn.0041f4c0
add esp, 0x10
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x78], 5
call fcn.00465b60
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 0xffffffff
call fcn.00461a30
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret
Function at 0x46c760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x46c854
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocStringLen
mov ecx, edi
call fcn.0046c6f0
test eax, eax
jne 0x46c854
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocStringLen
mov ecx, edi
call fcn.0046c6f0
test eax, eax
jne 0x46c854
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x46c825
lea eax, [esp + 0x10]
push 0x5238a8
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x46c825
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x46c828
mov byte [esi], 0
push 0x5233d8
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x46d4e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
push 0x2003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46d51d
xor eax, eax
pop esi
add esp, 0xc
ret 4
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push 0x527384
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x46d567
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x18]
call fcn.004604ce
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret 4

Function at 0x46ed90
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push edi
push 0x14
call sub.MFC42.DLL_operatornew
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x46edb8
mov dword [eax], 0x4fb934
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x46edba
xor edi, edi
push edi
push 0x46ee20
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x46ee0f
cmp dword [edi + 8], ebx
jle 0x46ee02
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax + ebx*4]
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], ebp
jne 0x46edf6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x46edd5
pop esi
xor ebx, ebx
pop ebp
cmp edi, ebx
je 0x46ee0f
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
pop edi
pop ebx
ret 4
Function at 0x487630
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b4a21
push eax
mov eax, 0x1090
mov dword fs:[0], esp
call fcn.004611d0
push ebx
push esi
xor esi, esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x10b0]
lea ecx, [esp + 0xc]
push eax
mov ebx, 1
push 0x5231cc
push ecx
mov dword [esp + 0x10b0], ebx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
push reloc.OLEAUT32.dll_SysReAllocString
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x52e670
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x1c]
mov edi, esp
mov dword [esp + 0x2c], esp
push ecx
mov byte [esp + 0x10b8], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push edi
call fcn.00487290
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x10b4], bl
call fcn.004618b0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x10a8], 3
call fcn.00461c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x10a4], 4
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x10a4], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0x52e670
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x487744
mov esi, dword [esp + 0x10ac]
push 0x52e670
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], ebx
jmp 0x487796
mov eax, dword [0x56f3c4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
push ecx
push eax
push esi
mov ecx, 0x56f3c4
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x50]
call fcn.0046f120
push esi
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x10b4]
lea ecx, [esp + 0x4c]
push esi
call fcn.00470440
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x10a4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x10a4], bl
call fcn.00461a30
lea ecx, [esp + 0xc]
mov byte [esp + 0x10a4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x109c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x109c
ret
Function at 0x4a6600
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 8], edi
jmp 0x4a6622
mov eax, dword [ebp + 8]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a66da
lea ecx, [ebp - 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a66c5
mov eax, dword [ebp - 0xc]
test eax, eax
mov eax, dword [ebp - 0x10]
jg 0x4a66c5
jl 0x4a6669
cmp eax, 0x6400000
ja 0x4a66c5
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4a66c5
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
push 0
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a66c5
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x4a66a9
mov cl, byte [edi + esi]
dec cl
xor cl, 0x55
mov byte [edi + esi], cl
mov eax, dword [ebp - 4]
inc edi
cmp edi, eax
jb 0x4a6696
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call fcn.004a6560
add esp, 0xc
test eax, eax
je 0x4a66c5
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a66da
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x4a66ea
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a6ad0
Capabilities:
Decompress data using quicklz

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
call fcn.004a6a20
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
push ebp
add esi, ebp
mov edi, 1
lea ecx, [ebx + eax - 1]
mov dword [esp + 0x20], ecx
call fcn.004a69d0
add esp, 8
cmp edi, 1
jne 0x4a6b0a
mov edi, dword [esi]
add esi, 4
mov eax, dword [esi]
mov edx, edi
and edx, 1
cmp dl, 1
jne 0x4a6bbf
shr edi, 1
test al, 3
mov dword [esp + 0x14], edi
jne 0x4a6b34
shr eax, 2
and eax, 0x3f
inc esi
mov ecx, eax
mov eax, 3
jmp 0x4a6b9b
test al, 2
jne 0x4a6b4c
shr eax, 2
and eax, 0x3fff
add esi, 2
mov ecx, eax
mov eax, 3
jmp 0x4a6b9b
test al, 1
mov ecx, eax
jne 0x4a6b69
shr eax, 2
shr ecx, 6
and eax, 0xf
and ecx, 0x3ff
add eax, 3
add esi, 2
jmp 0x4a6b9b
and ecx, 0x7f
cmp cl, 3
mov ecx, eax
je 0x4a6b8a
shr eax, 2
shr ecx, 7
and eax, 0x1f
and ecx, 0x1ffff
add eax, 2
add esi, 3
jmp 0x4a6b9b
shr eax, 7
and eax, 0xff
shr ecx, 0xf
add eax, 3
add esi, 4
mov edx, ebx
xor edi, edi
sub edx, ecx
mov ecx, ebx
sub edx, ebx
mov ebp, dword [edx + ecx]
add edi, 3
mov dword [ecx], ebp
add ecx, 3
cmp edi, eax
jb 0x4a6ba5
mov edi, dword [esp + 0x14]
add ebx, eax
jmp 0x4a6b00
mov edx, dword [esp + 0x18]
lea ecx, [edx - 0xa]
cmp ebx, ecx
jae 0x4a6be3
mov edx, edi
and edx, 0xf
mov ecx, dword [edx*4 + 0x50d3e4]
mov dword [ebx], eax
shr edi, cl
add ebx, ecx
add esi, ecx
jmp 0x4a6b00
cmp ebx, edx
ja 0x4a6c00
cmp edi, 1
jne 0x4a6bf4
add esi, 4
mov edi, SysReAllocStringLen
mov al, byte [esi]
mov byte [ebx], al
inc ebx
inc esi
shr edi, 1
cmp ebx, edx
jbe 0x4a6be7
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4094ad
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414acc
push 0x414ac4
push str.FlsAlloc
push 0x1e
call fcn.004093ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4094e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x413144]
call esi
jmp 0x4094e7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40952b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414adc
push 0x414ad4
push str.FlsGetValue
push 0x20
call fcn.004093ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409562
push dword [ebp + 8]
mov ecx, esi
call dword [0x413144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409e2f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x409e7a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040a050
test al, al
jne 0x409e74
sub edx, 2
cmp edx, edi
jne 0x409e5a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x409e9c
lea eax, [edi + 2]
cmp edx, eax
je 0x409e9c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00409d7b
add esp, 0x10
jmp 0x409f96
push esi
lea ecx, [ebp - 0x255]
call fcn.0040a050
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409edf
push dword [ebp - 0x25c]
jmp 0x409e8c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x409f1c
cmp word [ebp - 0x226], 0
je 0x409f3d
cmp word [ebp - 0x226], ax
jne 0x409f1c
cmp word [ebp - 0x224], 0
je 0x409f3d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00409d7b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x409f89
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x409ef6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x409f71
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x409f96
push 0x409bab
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040ede0
add esp, 0x10
jmp 0x409f66
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040138a
leave
ret