joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002076
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100048c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ecx + edx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
jmp 0x10001fcf
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jge 0x100021b9
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
and eax, 0x20000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x24]
and edx, 0x40000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
and eax, 0x2000000
test eax, eax
je 0x10002082
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x10002055
mov dword [ebp - 0x34], 0x4b
push 0x100054e4
lea edx, [ebp - 0x34]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x10002076
mov dword [ebp - 4], 0xffffffff
jmp 0x10001fbd
mov dword [ebp - 4], 2
mov ecx, 1
test ecx, ecx
je 0x100020a7
mov dword [ebp - 0x38], 0x36
push 0x100054e4
lea edx, [ebp - 0x38]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x100020c8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x100020e7
mov ecx, dword [ebp - 0x28]
or ch, 2
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10002157
mov dword [ebp - 4], 4
mov ecx, 1
test ecx, ecx
je 0x1000211b
mov dword [ebp - 0x3c], 0x10
push 0x100054e4
lea edx, [ebp - 0x3c]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x10002157
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
jbe 0x100021ad
mov dword [ebp - 4], 6
mov ecx, 1
test ecx, ecx
je 0x10002189
mov dword [ebp - 0x40], 0xf
push 0x100054e4
lea edx, [ebp - 0x40]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x100021ad
mov dword [ebp - 4], 0xffffffff
jmp 0x10001fbd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000275e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100048ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x100027a5
mov dword [ebp - 0x1c], 0x4c
push 0x100054e4
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x100027c4
mov dword [ebp - 4], 0xffffffff
push 0x10009050
call fcn.10001802
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100027e3
jmp 0x10002842
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.100015dd
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000280a
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100013c1
add esp, 4
jmp 0x10002842
sub esp, 0x848
mov ecx, 0x212
mov esi, str.38.46.8.34
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x1000283a
mov edx, dword [ebp - 0x18]
push edx
call fcn.100013c1
add esp, 4
mov dword [ebp - 0x18], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100027c4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100048ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x100027a5
mov dword [ebp - 0x1c], 0x4c
push 0x100054e4
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x100027c4
mov dword [ebp - 4], 0xffffffff
push 0x10009050
call fcn.10001802
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100027e3
jmp 0x10002842
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.100015dd
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000280a
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100013c1
add esp, 4
jmp 0x10002842
sub esp, 0x848
mov ecx, 0x212
mov esi, str.38.46.8.34
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x1000283a
mov edx, dword [ebp - 0x18]
push edx
call fcn.100013c1
add esp, 4
mov dword [ebp - 0x18], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003fbe
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov ecx, dword [ebp - 4]
call fcn.10004314
mov eax, dword [ebp - 4]
mov dword [eax], 0x10005228
push 1
push 0x3e8
push 0
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404f6d
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41713e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x58
call fcn.00416550
mov dword [ebp - 0x64], ecx
push 0x4218dc
mov eax, dword [ebp - 0x64]
add eax, 0xa4
push eax
call fcn.004045e0
and eax, 0xff
test eax, eax
je 0x404fb5
xor eax, eax
jmp 0x405170
mov ecx, dword [ebp - 0x64]
add ecx, 0x60
call fcn.004054d0
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x64]
add ecx, 0xa4
push ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404530
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x54], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov dword [ebp - 0x58], 0x4000
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
push 1
push 2
call sub.MPR.dll_WNetOpenEnumA
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x405097
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00415d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00415d00
mov eax, dword [ebp - 0x5c]
jmp 0x405170
mov eax, dword [ebp - 0x58]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call sub.MPR.dll_WNetEnumResourceA
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x405138
mov dword [ebp - 0x40], 0
jmp 0x4050d6
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x14]
jae 0x405138
mov ecx, dword [ebp - 0x40]
shl ecx, 5
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0x14]
push eax
lea ecx, [ebp - 0x50]
call fcn.00415d18
mov ecx, dword [ebp - 0x40]
shl ecx, 5
mov edx, dword [ebp - 0x18]
cmp dword [edx + ecx + 8], 3
jne 0x405136
push 0xffff0002
mov eax, dword [ebp - 0x48]
push eax
push 0xd
push 0xd
lea ecx, [ebp - 0x50]
call fcn.00404570
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x60
call fcn.004053f0
push 2
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x64]
add ecx, 0x60
call fcn.00405430
jmp 0x4050cd
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x44]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00415d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00415d00
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40588f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4171db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x3c
call fcn.00416550
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x60], 0
jne 0x4058db
push 0x42037c
lea ecx, [ebp - 0x20]
call fcn.00415d18
jmp 0x4058e8
push 0x420380
lea ecx, [ebp - 0x20]
call fcn.00415d18
push str.LICENSESWWSUITE.LIC
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
call fcn.00404530
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
push 0x42039c
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404570
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4059cf
mov dword [ebp - 0x30], 0x4203b8
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4059c4
push 0x30
push 0x4203cc
lea eax, [ebp - 0x1c]
push eax
push str.Failed_to_create_registry_entry_LicenseFloppyPath_in
lea ecx, [ebp - 0x38]
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
call fcn.00404570
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00415d00
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov dword [ebp - 0x3c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00415d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00415d00
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405a0c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417209
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x434
call fcn.00416550
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x420], 0x400
push 0x420414
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea eax, [ebp - 0x414]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x418]
call fcn.00404570
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x405ba3
push 0x420430
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
lea ecx, [ebp - 0x424]
call fcn.00404570
push eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x405b89
lea ecx, [ebp - 0x424]
call fcn.00404530
push eax
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x428], eax
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
je 0x405b7c
push 0x30
push 0x420444
lea ecx, [ebp - 0x418]
push ecx
push str.Failed_to_delete_registry_entry_LicenseFloppyPath_in
lea edx, [ebp - 0x430]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x440], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x440]
call fcn.00404570
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.00415d00
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.00415d00
mov dword [ebp - 0x434], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x418]
call fcn.00415d00
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405bd3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41722b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x424
call fcn.00416550
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x420], 0x400
push 0x42048c
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea eax, [ebp - 0x414]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x418]
call fcn.00404570
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x405d41
push str.LicenseFloppyPath
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
lea ecx, [ebp - 0x424]
call fcn.00404570
push eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x405d18
lea ecx, [ebp - 0x424]
call fcn.00404530
push eax
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x41c], 0
jne 0x405cfc
mov edx, dword [ebp - 0x40c]
and edx, 0xff
cmp edx, 0x41
jne 0x405ced
mov eax, dword [ebp - 0x430]
mov dword [eax + 0x60], 0
jmp 0x405cfa
mov ecx, dword [ebp - 0x430]
mov dword [ecx + 0x60], 1
jmp 0x405d09
mov edx, dword [ebp - 0x430]
mov dword [edx + 0x60], 2
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::ReleaseBuffer
jmp 0x405d25
mov eax, dword [ebp - 0x430]
mov dword [eax + 0x60], 2
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.00415d00
jmp 0x405d4e
mov ecx, dword [ebp - 0x430]
mov dword [ecx + 0x60], 2
mov dword [ebp - 0x42c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x418]
call fcn.00415d00
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4064e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41733b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x428
call fcn.00416550
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x428], 0x400
push 0x420570
lea ecx, [ebp - 0x41c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
push str.SystemCurrentControlSetServicesVxDVNETSUP
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x414]
push eax
push 1
push 0
lea ecx, [ebp - 0x424]
call fcn.00404570
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x406610
mov dword [ebp - 0x418], 1
push str.Workgroup
lea ecx, [ebp - 0x42c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
lea ecx, [ebp - 0x42c]
call fcn.00404570
push eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x4065f6
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406f40
mov dword [ebp - 0x418], 1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x42c]
call fcn.00415d00
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.00415d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x41c]
call fcn.00415d00
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x406653
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417369
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x428
call fcn.00416550
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x428], 0x400
push 0x4205b0
lea ecx, [ebp - 0x41c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinLogon
lea ecx, [ebp - 0x424]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x414]
push eax
push 1
push 0
lea ecx, [ebp - 0x424]
call fcn.00404570
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x406782
push str.CachePrimaryDomain
lea ecx, [ebp - 0x42c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
lea ecx, [ebp - 0x42c]
call fcn.00404570
push eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x420], eax
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x420], 0
jne 0x406768
lea eax, [ebp - 0x40c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406f40
mov dword [ebp - 0x418], 1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x42c]
call fcn.00415d00
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x430], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.00415d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x41c]
call fcn.00415d00
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x415a8d
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 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415ae5
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x41bd94
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415ad8
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x415ae7
xor eax, eax
pop esi
leave
ret 4
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, reloc.opengl32.dll_glShadeModel
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4012c0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x28158
call fcn.00405b40
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x28170]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x11c]
mov ecx, ebp
push edx
call fcn.00401260
mov esi, dword [esp + 0x28174]
lea ecx, [esp + 0x10]
push esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [eax]
push 0x409480
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401346
mov dword [esp + 0x134], esi
mov esi, dword [esp + 0x2816c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
not ecx
push ecx
call ebx
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x164], edx
mov edi, edx
mov edx, ecx
push 0x105
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x164], 1
call ebx
mov edi, eax
mov ecx, 0x41
xor eax, eax
mov dword [esp + 0x170], edi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x409060
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x11c]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x168]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [ebp + 0x14]
lea ecx, [esp + 0x11c]
push ecx
mov ecx, ebp
call fcn.00401220
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28158
ret 0xc