joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ba20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b3dbb
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x94]
test eax, eax
je 0x1004bb54
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x1004bb54
push fcn.100ae920
push sub.MFC42.DLL_CString::CString
push 2
lea eax, [esp + 0x1c]
push 4
push eax
mov dword [esp + 0x1c], 0x80004005
call fcn.100af098
push edi
lea ecx, [esp + 0x14]
push str.sessionid_s
push ecx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x14]
push edx
push str.queryid_ld
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esi + 0x94]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push str.DestroyQuery
push ecx
mov byte [esp + 0x40], 1
call fcn.10056ff0
add esp, 0x20
test eax, eax
je 0x1004bb12
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push str._08X
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x1004bb12
mov eax, dword [esp + 8]
test eax, eax
jl 0x1004bb12
mov dword [esp + 8], 0x80004005
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.100ae920
push fcn.100ae920
push 2
lea ecx, [esp + 0x18]
push 4
push ecx
mov dword [esp + 0x30], 0xffffffff
call fcn.100af11a
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x18]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x10056d70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100b4fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x18]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov ecx, edi
push eax
mov byte [esp + 0x1c], 8
mov dword [esi], fcn.10094760
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x24], 0x20000000
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], 0x2ee0
mov dword [esi + 0x14], 0xc8
mov dword [esi + 0x3c], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10056e70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100b5018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], fcn.10094760
lea ecx, [esi + 0x38]
mov dword [esp + 0x10], 7
call fcn.100ae920
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call fcn.100ae920
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.100ae920
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.100ae920
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.100ae920
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 2
call fcn.100ae920
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 1
call fcn.100ae920
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 0
call fcn.100ae920
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.100ae920
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1005a110
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x100b5308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.10056d70
xor edi, edi
mov dword [esi], 0x100c976c
mov dword [esp + 0x14], edi
mov dword [esi + 0x68], edi
call fcn.1005d7d0
push str.PGISeria.DLL
mov dword [esi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [esi + 0x40], eax
je 0x1005a1fb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.c_HttpServer_Create
push eax
call edi
mov ecx, dword [esi + 0x40]
push str.c_HttpServer_ResolveAddress
push ecx
mov dword [esi + 0x44], eax
call edi
mov edx, dword [esi + 0x40]
push str.c_HttpServer_Connect
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x40]
push str.c_HttpServer_SendRequest
push eax
call edi
mov ecx, dword [esi + 0x40]
push str.c_HttpServer_GetResponse
push ecx
mov dword [esi + 0x50], eax
call edi
mov edx, dword [esi + 0x40]
push str.c_HttpServer_Close
push edx
mov dword [esi + 0x54], eax
call edi
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x40]
push str.c_HttpServer_Destroy
push eax
call edi
mov ecx, dword [esi + 0x40]
push str.c_HttpServer_GetLastError
push ecx
mov dword [esi + 0x5c], eax
call edi
mov edx, dword [esi + 0x40]
push str.c_HttpServer_GetLastErrorText
push edx
mov dword [esi + 0x60], eax
call edi
mov dword [esi + 0x64], eax
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1005d5d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b57eb
push eax
mov dword fs:[0], esp
sub esp, 0xac
lea eax, [esp + 4]
push ebx
push edi
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareOpen_Executive_4
push SysReAllocStringLen
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005d781
mov edx, dword [esp + 0xc4]
mov eax, 4
lea ecx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push str.ProxyUseInfo
push ecx
call esi
test eax, eax
jne 0x1005d771
lea edx, [esp + 0xc]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push str.ProxyUser
push edx
mov dword [esp + 0x2c], 1
mov byte [esp + 0x4c], bl
mov dword [esp + 0x24], 0x80
call esi
test eax, eax
jne 0x1005d771
lea ecx, [esp + 0x18]
call fcn.10001910
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0xc4], ebx
call fcn.10001d40
lea ecx, [esp + 0x18]
call fcn.10001980
mov ecx, dword [esp + 0xcc]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push str.ProxyPwd
push ecx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x24], 0x80
call esi
test eax, eax
jne 0x1005d75d
lea edx, [esp + 0x34]
lea ecx, [esp + 0x18]
push edx
call fcn.10001d40
lea ecx, [esp + 0x18]
call fcn.10001980
mov ecx, dword [esp + 0xd0]
push eax
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.ProxyDomain
push eax
mov byte [esp + 0x4c], bl
mov dword [esp + 0x24], 0x80
call esi
test eax, eax
jne 0x1005d75d
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10001d40
lea ecx, [esp + 0x18]
call fcn.10001980
mov ecx, dword [esp + 0xd4]
push eax
call sub.MFC42.DLL_CString::operator_1
mov edi, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0xc0], 0xffffffff
call fcn.10001950
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop esi
jne 0x1005d7ae
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
mov dword [eax], ebx
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0xcc]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0xd0]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0xb4]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x1005d7d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.SoftwareOpen_Executive_4
push SysReAllocStringLen
mov esi, 0x493e0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005d837
mov eax, 4
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WinINetTimeout
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005d82c
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x10077660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b6ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
lea eax, [esi + 0x14]
mov dword [esp + 0x14], edi
push eax
mov dword [esi], 0x100c9870
call fcn.100967a0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1008c160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b8492
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x14], 5
call fcn.1008c100
mov ecx, 9
xor eax, eax
lea edi, [esi + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1008c340
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x100b84f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1008c3bc
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1008c3bc
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x1008c3bc
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
lea ecx, [esp + 0xc]
push str._s_s
push ecx
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
add esp, 0x10
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.100ae920
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll__unlink]
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret

Function at 0x1008c640
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x108]
lea ecx, [esp]
push str.OECache
push ecx
push 0x100e0be8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x114
ret
Function at 0x1008c680
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b8596
push eax
mov dword fs:[0], esp
sub esp, 0x610
push esi
mov esi, ecx
mov ecx, dword [esi + 0x40]
push edi
lea eax, [esi + 0x40]
mov edi, dword [sym.imp.MSVCRT.dll__splitpath]
mov edx, dword [ecx - 8]
test edx, edx
je 0x1008c6c6
mov esi, dword [esp + 0x628]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
jmp 0x1008c758
mov edx, dword [esi + 0x38]
mov eax, dword [edx - 8]
test eax, eax
je 0x1008c74a
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 8]
mov dword [esp + 0x620], 0
push eax
call fcn.1008c640
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x41c]
push ecx
push edx
lea ecx, [esp + 0x224]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call edi
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x640]
add esp, 0x18
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push str._s_s_s
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 8]
mov dword [esp + 0x620], 0xffffffff
call fcn.100ae920
jmp 0x1008c758
mov esi, dword [esp + 0x628]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x62c]
test eax, eax
je 0x1008c7e7
mov esi, dword [esi]
mov eax, dword [esi - 8]
test eax, eax
je 0x1008c7e7
lea eax, [esp + 0x318]
lea ecx, [esp + 0x518]
push eax
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push esi
call edi
add esp, 0x14
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x118]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x100e0be8
push eax
mov dword [esp + 0x630], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x620], 0xffffffff
call fcn.100ae920
mov ecx, dword [esp + 0x618]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x61c
ret 8
Function at 0x1008cb00
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b85c8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x1008cc91
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1008cc91
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1008cb93
mov dword [esp + 0x20], 0xffffffff
jmp 0x1008cc58
mov edx, dword [esi + 0x30]
or ebp, 0xffffffff
mov edi, edx
mov ecx, ebp
xor eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
push 0x100ecd60
push ecx
call ebx
test eax, eax
jne 0x1008cc54
mov edx, dword [esi + 0x34]
mov ecx, ebp
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push eax
push str.URL2
push edx
call ebx
test eax, eax
jne 0x1008cc54
mov edx, dword [esi + 0x38]
mov ecx, ebp
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x24]
push str.Server_File
push eax
call ebx
test eax, eax
jne 0x1008cc54
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x3c]
push 4
push ecx
push 4
push eax
push str.Server_LastModified
push edx
call ebx
test eax, eax
jne 0x1008cc54
mov edx, dword [esi + 0x40]
mov ecx, ebp
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x24]
push str.Local_File
push eax
call ebx
test eax, eax
jne 0x1008cc54
mov ecx, dword [esp + 0x14]
add esi, 0x44
push 4
push esi
push 4
push eax
push str.Local_LastDownloaded
push ecx
call ebx
test eax, eax
je 0x1008cc79
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x10]
call fcn.100ae920
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebp
call fcn.100ae920
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1008cec0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b863e
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
mov ebx, ecx
push ebp
push edi
mov eax, dword [ebx]
call dword [eax + 0x14]
mov edi, dword [esp + 0x134]
test edi, edi
je 0x1008d005
mov ebp, dword [esp + 0x138]
test ebp, ebp
je 0x1008d005
push ebp
lea ecx, [ebx + 0x18]
mov dword [ebx + 0x14], edi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1008cf31
mov eax, 0x80004005
jmp 0x1008d007
push esi
mov dword [esp + 0x10], 0
lea edx, [esp + 0x20]
xor esi, esi
push edx
mov edx, dword [esp + 0x14]
push esi
push esi
lea eax, [esp + 0x24]
push esi
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x38], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x1008cff5
push 0x48
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, esi
mov dword [esp + 0x130], esi
je 0x1008cf90
mov ecx, eax
call fcn.1008c160
mov esi, eax
push ebp
lea ecx, [esp + 0x2c]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x13c], 0xffffffff
call fcn.1008c800
test eax, eax
jl 0x1008cfd8
mov edi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea edx, [edi + 1]
push edx
call fcn.1008da00
mov eax, dword [ebx + 4]
mov dword [eax + edi*4], esi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x138]
inc eax
mov dword [esp + 0x10], eax
jmp 0x1008cf3a
test esi, esi
je 0x1008cfec
mov ecx, esi
call fcn.1008c200
push esi
call fcn.100ae914
add esp, 4
inc dword [esp + 0x10]
jmp 0x1008cf3a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
jmp 0x1008d007
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8
Function at 0x1008d6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b86e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.1008ccb0
push str.SoftwareOpen_Executive_4Cache
push SysReAllocStringLen
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.1008cdb0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
or al, 8
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.1008d030
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.1008cd30
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x1008dd90
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x100b8760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x20]
lea ecx, [esp + 8]
push 1
push ecx
push eax
mov dword [esp + 0x28], 0
call fcn.10037cc0
add esp, 0xc
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x2c]
push 1
push edx
push eax
mov byte [esp + 0x28], 1
call fcn.10037cc0
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x10]
push 1
push ecx
push eax
mov byte [esp + 0x28], 2
call fcn.10037cc0
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push 1
push edx
push esi
mov byte [esp + 0x28], 3
call fcn.10037cc0
mov al, byte [esp + 0x34]
add esp, 0xc
test al, 1
je 0x1008de6a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push str.SELECT__s_FROM__s_WHERE__s_s
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x18
jmp 0x1008dedb
test al, 2
je 0x1008de92
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
push str.SELECT__s_FROM__s_WHERE__s_s
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x18
jmp 0x1008dedb
test al, 4
je 0x1008deba
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
push str.SELECT__s__s__s_FROM__s
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x18
jmp 0x1008dedb
test al, 8
je 0x1008dedb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
push str.DELETE_FROM__s_WHERE__s_s
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.100ae920
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.100ae920
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.100ae920
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.100ae920
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc