joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Check if file exists
Create thread
Get file attributes
Inject dll
Inject thread

Disassembly:
sub esp, 0x210
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
push 0x104
call fcn.00401000
mov edi, str.secdrvemu_v1.1.dll
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
and ecx, 3
push str.This_is_szSecDrvEmuDLLPath_
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x40c098]
test eax, eax
jne 0x4011c6
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401217
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x65
call fcn.004010f0
lea ecx, [esp + 0x24]
push 0x40b260
push ecx
call fcn.00403007
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4011fc
push str.Could_not_write_SecDrvEmu.dll_n
call fcn.004010b0
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push esi
push edx
push 1
push eax
call fcn.00402edd
push esi
call fcn.00402e87
add esp, 0x14
mov ecx, dword [esp + 0x224]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40123f
push 0x40b218
call fcn.004010b0
add esp, 4
push 0x40b208
push 0x40b1f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x11c]
mov ebp, eax
push 0
push edx
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
push 0x3000
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x4012a5
push 0x40b1c0
call fcn.004010b0
add esp, 4
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x124]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4012d9
push 0x40b180
call fcn.004010b0
add esp, 4
push 0
push 0
push ebx
push ebp
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x4012fd
push 0x40b14c
call fcn.004010b0
add esp, 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x401320
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x54
test al, al
je 0x40134b
push 0x23
push 0x40b11c
push str.This_does_not_appear_to_be_a_SafeDisc_2.7_or_higher_executable__r_n_r_nInject_SecDrvEmu.dll_Emulation_and_hope_for_the_best_anyway_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40134b
push 0xffffffffffffffff
call fcn.00402d61
push esi
mov esi, dword [esp + 0x5c]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push esi
push str.lpApplicationName:__s_n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x44
call fcn.004024e0
add esp, 8
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 4
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4013bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_CreateProcess:__s_r_n_ErrCode:__d__n
call fcn.004010b0
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
call fcn.00401150
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.00401050
push 0
call fcn.00402d61
pop edi
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4013f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [0x40bf84]
mov dl, byte [esp + 0x18]
push esi
push edi
mov ecx, dword [eax + 0x3c]
mov byte [ecx + eax - 3], dl
mov dl, byte [esp + 0x14]
mov byte [ecx + eax - 8], 0xcc
lea esi, [ecx + eax - 8]
mov al, byte [esp + 0x1c]
mov cl, byte [esp + 0x18]
mov byte [esi + 4], al
mov al, byte [esp + 0x10]
mov byte [esi + 3], cl
mov byte [esi + 2], dl
mov byte [esi + 1], al
mov edi, dword [0x40bf88]
mov ecx, dword [0x40bf84]
mov edx, dword [0x40bf80]
sub edi, ecx
lea ecx, [esp + 0x20]
push ecx
add edi, esi
push 0x40
push 8
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [0x40bf80]
lea eax, [esp + 8]
push eax
push 8
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
pop ecx
ret
Function at 0x401470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10c
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
push 0x104
call fcn.00401000
mov edi, 0x40b378
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x40c098]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x4014d2
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401523
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x66
call fcn.004010f0
lea eax, [esp + 0x20]
push 0x40b260
push eax
call fcn.00403007
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x401508
push str.Could_not_write_SDLoader.dll_n
call fcn.004010b0
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push ecx
push 1
push edx
call fcn.00402edd
push esi
call fcn.00402e87
add esp, 0x14
mov ecx, dword [0x40bf8c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x401590
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call fcn.00401550
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00403047
add esp, 4
pop esi
ret
Function at 0x402700
Capabilities:
Check if file exists
Create thread
Get file attributes
Inject dll
Inject thread

Disassembly:
sub esp, 0x104
push 0x40b638
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4027cd
mov eax, dword [esp + 0x108]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x40b208
push 0x40b1f8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x104
push 0x40b638
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
push 0x3000
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push 0
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push ebx
push ebp
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x4073cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b9d8
cmp edx, dword [eax]
je 0x4073ef
add eax, 8
inc ecx
cmp eax, 0x40ba68
jl 0x4073e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b9d8]
jne 0x40751d
mov eax, dword [0x40c0f4]
cmp eax, 1
je 0x4074f7
test eax, eax
jne 0x407420
cmp dword [0x40b6d4], 1
je 0x4074f7
cmp edx, 0xfc
je 0x40751d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407457
lea eax, [ebp - 0x1a4]
push 0x4095e8
push eax
call fcn.00407520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403a60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40749a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403a60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4095e4
push edi
call fcn.004087e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4095c8
push eax
call fcn.00407520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407530
lea eax, [ebp - 0xa0]
push 0x4095c4
push eax
call fcn.00407530
push dword [esi + 0x40b9dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407530
push 0x12010
lea eax, [ebp - 0xa0]
push 0x40959c
push eax
call fcn.00408752
add esp, 0x2c
pop edi
jmp 0x40751d
lea eax, [ebp + 8]
lea esi, [esi + 0x40b9dc]
push 0
push eax
push dword [esi]
call fcn.00403a60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001320
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
lea eax, [esp + 0xc]
push ebx
push eax
xor ebx, ebx
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
dec eax
je 0x1000137f
dec eax
jne 0x100013be
mov eax, dword [esp + 0x14]
mov ebx, 0x100
cmp eax, 4
ja 0x10001359
mov ebx, 0x300
cmp eax, 5
jne 0x100013be
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1000136b
or bh, 4
jmp 0x100013be
cmp eax, 1
jne 0x10001375
or bh, 8
jmp 0x100013be
cmp eax, 2
jne 0x100013be
or bh, 0x10
jmp 0x100013be
mov eax, dword [esp + 0x14]
mov ebx, 1
cmp eax, 4
jne 0x100013be
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1000139c
mov ebx, 3
jmp 0x100013be
cmp eax, 0xa
jne 0x100013b4
mov bl, byte [esp + 0x25]
sub bl, 0x41
neg bl
sbb ebx, ebx
and ebx, 0xfffffffc
add ebx, 9
jmp 0x100013be
cmp eax, 0x5a
jne 0x100013be
mov ebx, 0x11
test bl, 0xc
je 0x10001409
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call sym.SiSWBase.dll_public:_static_int___cdecl_CSiSBaseTool::GetOSVersionNumFromReg_int___int___int__
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, 4
jne 0x10001409
mov eax, dword [esp + 4]
cmp eax, 0x5a
mov eax, 0x11
je 0x1000140b
mov eax, ebx
pop ebx
add esp, 0xa0
ret

Function at 0x10001420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x308
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x18]
push str.SoftwareMicrosoftWindowsCurrentVersion
push eax
mov dword [esp + 0x1c], 0x100
call edi
add esp, 8
lea ecx, [esp + 0x10]
xor ebp, ebp
lea edx, [esp + 0x18]
push ecx
push 0x20019
push ebp
push edx
push 0x80000002
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x1000153d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push str.VersionNumber
push esi
mov ebx, esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001532
cmp esi, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100014b0
push esi
call ebp
xor ebx, ebx
lea eax, [esp + 0x118]
lea ecx, [esp + 0x218]
push eax
push 0x10009028
push ecx
call edi
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
lea edx, [esp + 0x224]
push 0x10009024
push edx
call esi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call edi
mov ecx, dword [esp + 0x334]
push 0x10009024
push 0
mov dword [ecx], eax
call esi
push eax
call edi
mov edx, dword [esp + 0x344]
push 0x10009024
push 0
mov dword [edx], eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x354]
add esp, 0x30
test ebx, ebx
mov dword [ecx], eax
je 0x10001522
push ebx
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x308
ret
cmp esi, ebp
je 0x1000153d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x308
ret
Function at 0x10001550
Capabilities:
Get common file path
Get file attributes
Set current directory

Disassembly:
sub esp, 0x144
lea ecx, [esp]
push ebx
push esi
push edi
push 0x104
push 0x20
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xc]
xor edi, edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x158]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
call ebx
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100015c1
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x100015ba
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0xc]
push edx
call ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x144
ret

Function at 0x100015e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
lea eax, [esp + 4]
push esi
push eax
xor ebx, ebx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
dec eax
je 0x1000161c
dec eax
jne 0x1000166b
cmp dword [esp + 0xc], 5
jb 0x1000166b
pop esi
mov eax, 1
pop ebx
add esp, 0x94
ret
push edi
push str.USER32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
xor edi, edi
test esi, esi
jne 0x1000164a
push str.USER32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor ecx, ecx
test esi, esi
setne cl
test esi, esi
mov edi, ecx
je 0x1000165f
push str.ChangeDisplaySettingsExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000165f
mov ebx, 1
test edi, edi
pop edi
je 0x1000166b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop esi
pop ebx
add esp, 0x94
ret
Function at 0x100017f0
Capabilities:
Rebuild import table

Disassembly:
push 0xffffffffffffffff
push 0x100059f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 8]
mov dword [esp + 0x1c], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0xc]
push 0xa
mov ecx, ebp
mov byte [esp + 0x20], 1
call fcn.10005526
lea ecx, [esi + 0x28]
push 0xa
mov byte [esp + 0x20], 2
call fcn.10005526
push 0xa
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 3
call fcn.10005526
lea ecx, [esi + 0x64]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x68]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
mov byte [esp + 0x1c], 7
mov dword [esi], sym.SiSWBase.dll_const_CSiSDevice::vftable
call sub.MFC42.DLL_CString::Empty
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov ecx, ebp
call sub.MFC42.DLL_CStringList::RemoveAll
call sym.SiSWBase.dll_public:_static_unsigned_long_int___cdecl_CSiSBaseTool::GetCurrentOS_void_
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
push str.InstFunc.dll
mov dword [esi + 0x80], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [esi + 0x70], eax
je 0x100018dd
push str.IsExistedDevice
push eax
call ebp
mov dword [esi + 0x78], eax
cmp dword [esi + 0x6c], edi
jne 0x100018ec
push str.SiSParse.dll
call ebx
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x100018fe
push str.GetINFData
push eax
call ebp
mov dword [esi + 0x74], eax
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CStringList::RemoveAll
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10001f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10001bbd
push eax
push esi
push dword [ebp + 8]
call fcn.10001b72
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10001bbd
push eax
push esi
push dword [ebp + 8]
call fcn.10001b72
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10001bad
fsubr qword [edx - 0x6277c65d]
jl 0x10002032
invalid
invalid
Function at 0x100022c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10002284
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100022a2
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10002300
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100022e7
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100022f0
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100022fa
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100022dc
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10002266
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
add bl, byte [ecx + 0xf]
mov dh, 4
pop es
sub eax, ecx
je 0x1000234d
dec eax
je 0x10002344
sub eax, 3
je 0x1000233b
mov dword [ebp - 4], 0x40
jmp 0x1000236a
mov dword [ebp - 4], 4
jmp 0x10002350
mov dword [ebp - 4], 0x20
jmp 0x10002350
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000239c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000231c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10001bad
and edi, ebx
and edi, dword [eax - 1]
jne 0x100023a7
push 1
push esi
call edi
mov eax, esi
jmp 0x100023a8
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004690
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10006161
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x1c], 0x100
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20]
mov esi, dword [esp + 0x140]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
mov edi, dword [esp + 0x134]
mov edx, ecx
mov dword [esp + 0x128], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
cmp esi, ebx
rep stosb byte es:[edi], al
jne 0x100046ff
mov esi, 0x80000002
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x128], 1
mov edi, dword [ecx - 8]
cmp edi, ebx
jle 0x10004771
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
dec edi
cmp eax, edi
jne 0x10004771
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call sub.MFC42.DLL_CString::CString
push 0x100
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push 0x20019
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x10004843
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
push ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp ebp, ebx
mov esi, eax
je 0x100047dc
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp esi, ebx
jne 0x10004843
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x10004843
cmp ecx, dword [esp + 0x138]
jg 0x10004843
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x128], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x134]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x1000483c
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1000486b
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call sub.MFC42.DLL_CString::CString
cmp ebp, ebx
je 0x10004869
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret