joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464870
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x659680
lea ecx, [esi + 4]
mov dword [ebp - 4], ebx
call fcn.004be0ae
push 0x659680
lea ecx, [esi + 8]
call fcn.004be0ae
push 0x659680
lea ecx, [esi + 0xc]
call fcn.004be0ae
push 0x659680
lea ecx, [esi + 0x10]
call fcn.004be0ae
mov dword [esi + 0x1c], ebx
push 0x659680
lea ecx, [esi + 0x44]
mov dword [esi + 0x1c], ebx
call fcn.004be0ae
mov dword [esi + 0x34], 1
mov word [esi + 0x30], bx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov edi, dword [esi + 0x90]
cmp edi, ebx
je 0x46498f
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x464989
cmp edi, ebx
mov dword [ebp - 0x1c], edi
je 0x464989
mov edx, dword [edi + 4]
lea ebx, [edi + 4]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov byte [ebp - 4], 2
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x659680
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x464956
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004be042
mov ecx, edi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esi + 0x90], ebx
mov edi, dword [esi + 0x98]
cmp edi, ebx
je 0x464a2b
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x464a25
cmp edi, ebx
mov dword [ebp - 0x18], edi
je 0x464a25
mov edx, dword [edi + 4]
lea ebx, [edi + 4]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
mov byte [ebp - 4], 4
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x659680
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x4649f2
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004be042
mov ecx, edi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esi + 0x98], ebx
push 0x659680
lea ecx, [esi + 0xa0]
mov dword [esi + 0x9c], 2
call fcn.004be0ae
mov eax, dword [esi + 0xc0]
cmp eax, ebx
je 0x464a5e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0xc0], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4670d0
Capabilities:
Create directory
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5aa698
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
lea eax, [esp + 0x14]
mov ecx, 0x673d6c
push eax
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [0x673d6c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [0x673d6c]
push 0x22
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x46ec80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5ab6da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x46ecc1
lea ebp, [esi + 4]
jmp 0x46ecc3
xor ebp, ebp
mov esi, dword [ebp]
test esi, esi
je 0x46ed6a
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x46ed63
test esi, esi
mov dword [esp + 0xc], esi
je 0x46ed63
push ebx
push edi
mov edx, dword [esi + 4]
lea edi, [esi + 4]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov dword [esp + 0x24], 2
call dword [edx + 0x18]
mov ecx, dword [eax]
push 0x659680
push ecx
call fcn.0046ed80
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x46ed2b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.004be042
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebx
mov dword [ebp], 0
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x470ac0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5ab861
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push esi
mov esi, dword [ebx]
test esi, esi
push edi
mov dword [esp + 0x10], ebx
je 0x470b8a
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x470b84
test esi, esi
mov dword [esp + 0x18], esi
je 0x470b84
mov edx, dword [esi + 4]
lea edi, [esi + 4]
lea eax, [esp + 0x14]
mov ecx, edi
push eax
mov dword [esp + 0x28], 1
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x659680
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x470b4a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov byte [esp + 0x24], 0
call fcn.004be042
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x14]
add esp, 4
mov dword [ebx], 0
push 0x18
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x24], 2
je 0x470c11
mov eax, dword [esp + 0x2c]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::CString_1
lea esi, [edi + 4]
mov byte [esp + 0x24], 3
mov ecx, esi
call sub.MFC42.DLL_CFile::CFile_1
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x28], 4
mov dword [edi + 0x14], 1
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x659680
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x470c09
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
jmp 0x470c15
xor eax, eax
mov dword [ebx], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x470d30
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004bf010
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [edx + 8]
mov dword [esp + 0xc], 0
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.00402545
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0xc]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x470db8
lea edx, [esp + 0xc]
push edx
call fcn.00402545
mov edx, dword [eax]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x659680
push edx
call esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x1014]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4
Function at 0x470de0
Capabilities:
Access peb ldr_data
Get ntdll base address
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ab888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x30]
lea ecx, [esi + 8]
push eax
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0xc]
call fcn.00490d40
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x24], 1
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00470d30
mov ecx, dword [esp + 8]
push 0x647844
push ecx
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x470e9e
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00490d50
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
push ebp
push edi
push 0x40000
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov ecx, 0x10000
xor eax, eax
mov edi, esi
push 0x3fffc
rep stosd dword es:[edi], eax
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x3c]
test eax, eax
je 0x470f26
push str._r_n__t
push esi
call dword [sym.imp.MSVCRT.dll_strpbrk]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x470ee4
mov byte [ebp], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00490f20
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push ecx
mov edi, eax
push edx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x14
test ebp, ebp
je 0x470eaf
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 4
call fcn.00470ac0
mov eax, dword [esp + 0x20]
mov edx, dword [ebx]
push 0
push eax
mov ecx, ebx
call dword [edx + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.00490d50
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x470fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
xor edi, edi
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [eax]
mov ebx, dword [eax]
mov byte [ebp - 4], 1
cmp ebx, edi
je 0x47101f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004bf010
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [eax]
push 0x10
push 0
push edi
push eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x471120
lea edx, [ebp + 0xc]
lea ecx, [esi + 8]
push edx
call sub.MFC42.DLL_CString::operator_3
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00470d30
mov ecx, dword [ebp - 0x14]
push 0x647844
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x471114
push 0x40000
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x68]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x30]
xor ebx, ebx
mov ecx, 0x10000
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
push 0x40000
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push edx
push eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebp - 0x60]
add esp, 0x10
inc ebx
shr ecx, 0x12
cmp ebx, ecx
jbe 0x4710a2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x14]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 4]
call fcn.00470ac0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x477670
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5abf7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebp
push esi
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x148]
push eax
push ecx
mov dword [esp + 0x148], 2
call fcn.004f0000
mov ebp, eax
xor esi, esi
add esp, 8
cmp ebp, esi
je 0x477872
push ebx
push edi
lea ecx, [esp + 0x154]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x154]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x154]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x659680
push edx
call ebx
add esp, 8
test eax, eax
je 0x477782
mov eax, dword [esp + 0x154]
push 0x649a04
push eax
call ebx
add esp, 8
test eax, eax
je 0x477782
push 0x5c
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::TrimLeft_2
push 0x3a
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jg 0x477769
lea ecx, [esp + 0x154]
lea edx, [esp + 0x10]
push ecx
push 0x65a7a8
push edx
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x158]
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x154]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x154]
push ecx
jmp 0x477789
mov edx, dword [0x65a7a8]
push edx
push ebp
call fcn.004f0180
add esp, 8
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebp
call fcn.004f0040
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
mov edi, eax
jle 0x477853
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
call fcn.004f0040
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 4
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x158]
push 0x659680
push eax
call ebx
add esp, 8
test eax, eax
je 0x47782a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x158]
push ecx
push edx
call fcn.0040223e
add esp, 8
test eax, eax
je 0x477839
lea eax, [esp + 0x18]
push eax
push esi
push ebp
call fcn.004f0140
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jl 0x4777cd
push ebp
call fcn.004f0240
add esp, 4
test al, al
pop edi
pop ebx
push ebp
je 0x47786a
call fcn.004f01c0
jmp 0x47786f
call fcn.004eaf40
add esp, 4
lea ecx, [esp + 0x148]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14c]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x150]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x138]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x477c15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
rep movsb byte es:[edi], byte [esi]
bts si, sp
rol di, 6
not si
mov edi, dword [esp + 0x10]
not esi
shr si, 8
mov esi, dword [esp + 0x14]
cmc
bt cx, bx
push 0x2ca37ad8
push dword [esp + 0x1c]
popfd
pushfd
mov dword [esp], esp
pushfd
push 0x92590ffb
lea esp, [esp + 0x2c]
jmp 0x4b3f9a
pushal
xchg dword [esp + 0x1c], edi
bswap di
mov edi, eax
lea esp, [esp + 0x1c]
js 0x46e39b
pushfd
pushfd
mov word [esp + 4], bx
cld
push 0x1585b301
pushfd
jmp 0x42b8cf
std
cld
std
pushfd
cld
call fcn.00434b1e
not di
not di
lea edi, [ecx + eax - 0x40]
jmp 0x434b7d
movzx edi, cl
movzx di, cl
pushfd
pop dword [esp]
cld
push esi
push ebp
pop esi
movzx si, dl
xchg edi, esi
mov esi, edx
cld
jmp 0x46e3a5

Function at 0x4789f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ac150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x24], 2
mov word [esp + 0xc], 0
call sub.MFC42.DLL_COleVariant::operator_1
mov ecx, dword [esp + 0x30]
push 0x659680
push ecx
mov byte [esp + 0x28], 3
xor esi, esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x478a53
push esi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, dword [eax]
lea edx, [esp + 8]
lea ecx, [esp + 0x28]
push edx
push esi
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.00478910
lea eax, [esp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x478ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ac18f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x38]
push 0x659680
push eax
mov dword [esp + 0x30], 2
xor esi, esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x478b11
push esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, dword [eax]
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x12], ecx
push edx
mov dword [esp + 0x1a], ecx
push esi
mov dword [esp + 0x22], ecx
mov word [esp + 0x18], 0
mov word [esp + 0x26], cx
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.00478960
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
cmp word [esp + 0x10], 8
mov byte [esp + 0x28], 3
jne 0x478b67
mov eax, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x478e50
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov cl, byte [eax + 0x5cbdc0]
xor cl, 0x7d
mov byte [eax + 0x67ec4c], cl
inc eax
cmp eax, 0x6e0e
jb 0x478e52
mov eax, 0x67ec4c
ret
Function at 0x478ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ac1d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
lea esi, [edi + 4]
mov ecx, esi
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x28]
mov byte [esi + 0xc], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], cl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
lea ebx, [edi + 0x3c]
push 0xa
mov ecx, ebx
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CMapStringToOb::CMapStringToOb
lea ebp, [edi + 0x58]
push 0xa
mov ecx, ebp
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
mov edx, dword [esp + 0x28]
push 0x673cf0
push edx
mov ecx, esi
mov byte [esp + 0x28], 3
mov dword [edi], 0x5d2bd0
call fcn.00459b70
push 1
push 0x1000
mov ecx, ebx
call sub.MFC42.DLL_CMapStringToOb::InitHashTable
push 1
push 0x1000
mov ecx, ebp
call sub.MFC42.DLL_CMapStringToString::InitHashTable
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x659680
call sub.MFC42.DLL_CString::CString_1
push esi
mov ecx, edi
call fcn.004793b0
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 4