joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x1000c9a1
cmp byte [edi + 0x49], 0
je 0x1000c9a1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1000c98e
lea esi, [ebp - 0x2c]
call fcn.1000bec0
mov dword [ebp - 4], 0
mov ebx, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
jae 0x1000c8e2
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000c8e7
dec eax
je 0x1000c8eb
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
je 0x1000c99c
call fcn.1000a370
xor al, al
jmp 0x1000c9a3
mov eax, dword [ebp - 0x2c]
jmp 0x1000c8a5
mov byte [edi + 0x49], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ecx, ebx
jae 0x1000c8fa
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x1000c91f
mov eax, edx
cmp ecx, ebx
jae 0x1000c90a
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000c97f
cmp byte [edi + 0x49], 0
je 0x1000c992
test esi, esi
jne 0x1000c896
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, eax
cmp edx, 8
jbe 0x1000c9be
lea esi, [eax + 8]
lea eax, [ebp - 0x2c]
call fcn.1000ce10
test al, al
je 0x1000c896
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x1000c95c
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], ebx
jae 0x1000c976
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x1000c896
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000a370
xor al, al
jmp 0x1000c9a3
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.1000a370
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10011320
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 0x24
push esi
call edi
mov eax, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov dword [ebp - 4], eax
call ebx
cmp dword [ebp - 4], 0
jne 0x100113b5
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0x10011790
push 0x4000
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
mov dword [ebp - 8], eax
call edi
mov eax, dword [ebp - 8]
push esi
mov dword [esi + 0x18], eax
call ebx
push esi
call edi
mov ecx, dword [esi + 0x18]
push esi
mov dword [ebp - 8], ecx
call ebx
mov edx, dword [ebp - 8]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
mov dword [ebp + 8], eax
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push eax
mov dword [eax + 0x18], ecx
call ebx
push esi
call edi
mov edi, dword [esi + 0x18]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10012aa0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call fcn.10012e60
test al, al
jne 0x10012ad0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push 0
push esi
mov esi, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x10012af9
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10012d60
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1d
push ecx
mov dword [ebp - 4], edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10012db0
mov edx, dword [ebp - 4]
shr edx, 1
push edx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
call fcn.10004530
test al, al
jne 0x10012db8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push edi
push 0
push 0x1d
push eax
call ebx
test eax, eax
jne 0x10012de1
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.gzip
push edi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10012df8
mov byte [esi + 0x24], 1
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013240
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ea99
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10067068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x24], 0
jne 0x100132c7
mov eax, dword [edi + 0x2498]
push 0x10000000
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0x24], eax
test eax, eax
je 0x1001335d
push 0xea60
push 0xea60
push 0xea60
push 0xea60
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x1001335d
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
test eax, eax
je 0x1001335d
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x28]
call fcn.10025cb0
test al, al
je 0x1001335d
movzx eax, word [edi + 0x2478]
xor ebx, ebx
xor ecx, ecx
cmp eax, 0x50
je 0x100132f3
cmp eax, 0x1bb
je 0x100132f3
mov ecx, eax
push ebx
push ecx
lea eax, [edi + 0x6e]
push eax
mov eax, dword [edi + 0x24]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1001335d
lea ecx, [edi + 0x474]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
add edi, 0x1476
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Append_1]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
push edx
push ebx
push ebx
push ebx
push eax
push 0x100585b8
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
lea ecx, [ebp - 0x10]
cmp eax, ebx
jne 0x10013373
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100227c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004daac
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10067068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x48], vtable.CPreloadHandler.0
mov ecx, 0xf
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], eax
mov byte [esi + 0x50], al
mov dword [esi + 0x70], vtable.CSettingsHandler.0
mov dword [esi + 0x74], eax
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x88], eax
mov byte [esi + 0x78], al
mov byte [ebp - 4], 2
mov eax, 1
mov dword [esi], vtable.CTrustedAdsProtocolAPP.0
mov dword [esi + 4], vtable.CTrustedAdsProtocolAPP.1.0
mov dword [esi + 8], vtable.CTrustedAdsProtocolAPP.2.0
mov dword [esi + 0xc], vtable.CTrustedAdsProtocolAPP.3.0
mov dword [esi + 0x10], vtable.CTrustedAdsProtocolAPP.4.0
mov dword [esi + 0x14], vtable.CTrustedAdsProtocolAPP.5.0
mov dword [esi + 0x18], vtable.CTrustedAdsProtocolAPP.6.0
mov dword [esi + 0x48], vtable.CTrustedAdsProtocolAPP.7.0
mov dword [esi + 0x70], vtable.CTrustedAdsProtocolAPP.8.0
test byte [0x1006a344], al
jne 0x100228a5
or dword [0x1006a344], eax
mov byte [ebp - 4], 3
call fcn.1000eb10
push 0x10051080
call fcn.10048359
add esp, 4
mov eax, esi
mov dword [esi + 0x6c], 0x1006a2e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10024960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050a10
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10067068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
lea edi, [esi + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
mov dword [edi], ebx
mov byte [ebp - 4], 1
mov byte [edi + 4], bl
mov dword [edi + 8], 0x10057320
mov dword [edi + 0xc], 0x10057360
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.1000a190
test eax, eax
jns 0x100249c7
push edi
call fcn.10011ff0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi], vtable.ATL::CComContainedObject_class_CTrustedAdsToolbarButton_.0
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_CTrustedAdsToolbarButton_.1.0
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_CTrustedAdsToolbarButton_.2.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10024d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fcab
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x81c]
push eax
push SysReAllocString
push 0
push str.SOFTWAREAdTrustMediaPrivDogMimeFilter
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10024dd5
lea ecx, [ebp - 0x820]
push ecx
mov ecx, dword [ebp - 0x81c]
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x824]
push eax
push 0
push str.preloadJS
push ecx
mov dword [ebp - 0x820], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10024dbf
cmp dword [ebp - 0x824], 1
jne 0x10024dbf
mov edx, dword [ebp - 0x820]
shr edx, 1
mov word [ebp + edx*2 - 0x810], ax
jmp 0x10024dc8
xor ecx, ecx
mov word [ebp - 0x810], cx
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x818]
call dword [0x1005274c]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x818]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
mov ecx, dword [ebp - 0x818]
cmp dword [ecx - 0xc], 0
je 0x10024e65
lea ecx, [ebp - 0x818]
call fcn.10004270
lea ecx, [ebp - 0x818]
test al, al
jne 0x10024e30
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
jmp 0x10024e65
push 0x10057588
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::FindOneOf]
test eax, eax
setg dl
mov byte [ebp - 0x814], dl
test esi, esi
je 0x10024e65
lea eax, [esi + 0x24]
test eax, eax
je 0x10024e65
mov ecx, dword [ebp - 0x818]
test ecx, ecx
je 0x10024e65
push eax
push ecx
lea ecx, [esi + 0x28]
call fcn.100128c0
lea ecx, [ebp - 0x818]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret
Function at 0x10026d70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e683
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [edi + 0x74]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [edi + 4], 0x100599ec
mov dword [edi + 0x30], 0x100599f4
mov dword [edi + 0x38], 0x100599fc
mov dword [edi + 0x40], 0x10059a04
mov dword [edi + 0x70], vtable.CConfigLock.0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ebx
mov dword [eax + 0x10], ecx
push eax
mov dword [ebp - 0x34], edi
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x10026e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10026dfd
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x10026e05
push eax
call fcn.10001000
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x36
mov eax, str.SOFTWAREAdTrustMediaPrivDogMimeFilterSearchEngines
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.1000cf60
push ebx
mov ecx, esi
push ecx
push 5
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1002b790
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
jb 0x10026e59
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [edi + 0x30]
mov dword [edi + 0x2c], vtable.CConfigReader.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 0x30], vtable.CConfigReader.1.0
mov edx, dword [edi + 0x38]
mov dword [edi + 0x34], vtable.CConfigWriter.0
mov eax, dword [edx + 4]
mov dword [eax + edi + 0x38], vtable.CConfigWriter.1.0
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x3c], vtable.CConfigManipulation.0
mov edx, dword [ecx + 4]
mov dword [edx + edi + 0x40], vtable.CConfigManipulation.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.CSearchEngineConfig.0
mov dword [edi + 0x2c], vtable.CSearchEngineConfig.1.0
mov dword [edi + 0x34], vtable.CSearchEngineConfig.2.0
mov dword [edi + 0x3c], vtable.CSearchEngineConfig.3.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 4], vtable.CSearchEngineConfig.4.0
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
xor edx, edx
mov dword [edi + 0x68], 7
mov dword [edi + 0x64], ebx
mov word [edi + 0x54], dx
mov byte [ebp - 4], 8
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea edx, [ecx + edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov esi, edi
call fcn.1002baf0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea edx, [ecx + edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret
Function at 0x10027d00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x10067068]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x10027dac
lea eax, [esp + 0x10]
push eax
push SysReAllocString
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10027dce
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.10027df0
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10027dce
push esi
push esi
push esi
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
inc ebx
push ebx
push edi
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
test ecx, ecx
je 0x10027d49
lea eax, [ecx - 0x103]
neg eax
sbb eax, eax
and eax, ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret 4
Function at 0x10028790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push ebx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x90], ebx
call fcn.1002aaf0
test eax, eax
jne 0x10028870
cmp dword [esi + 0x68], 8
mov ecx, dword [esi + 0x64]
lea eax, [esi + 0x54]
jb 0x100287d1
mov eax, dword [eax]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.delivery_point
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10028870
mov esi, dword [esi + 0x44]
mov edx, dword [ebp - 0x88]
push edi
xor edi, edi
cmp esi, dword [edx + 0x48]
je 0x1002886d
jmp 0x10028808
mov ebx, dword [ebp - 0x90]
push edi
lea eax, [ebp - 0x84]
push 0x1005995c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0x40000000
push 0
push 0
push 0
lea edx, [ebp - 0x84]
push edx
push ebx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002886f
mov ebx, dword [ebp - 0x8c]
call fcn.10028880
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x88]
add esi, 0x70
cmp esi, dword [ecx + 0x48]
jne 0x10028802
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10048188
mov esp, ebp
pop ebp
ret
Function at 0x10028880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x100288a0
mov eax, dword [esi]
jmp 0x100288a2
mov eax, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.script_url
push ebx
call edi
test eax, eax
jne 0x10028a87
cmp dword [esi + 0x30], 8
mov ecx, dword [esi + 0x2c]
lea eax, [esi + 0x1c]
jb 0x100288d1
mov eax, dword [eax]
lea edx, [ecx + ecx + 2]
push edx
push eax
push 1
push 0
push str.hide_selectors
push ebx
call edi
test eax, eax
jne 0x10028a87
push 4
lea eax, [esi + 0x5c]
push eax
push 4
push 0
push str.max_right_ads
push ebx
call edi
test eax, eax
jne 0x10028a87
push 4
lea ecx, [esi + 0x68]
push ecx
push 4
push eax
push str.min_right_ads
push ebx
call edi
test eax, eax
jne 0x10028a87
push 4
lea edx, [esi + 0x58]
push edx
push 4
push eax
push str.max_top_ads
push ebx
call edi
test eax, eax
jne 0x10028a87
push 4
lea eax, [esi + 0x64]
push eax
push 4
push 0
push str.min_top_ads
push ebx
call edi
test eax, eax
jne 0x10028a87
push 4
lea ecx, [esi + 0x60]
push ecx
push 4
push eax
push str.max_bottom_ads
push ebx
call edi
test eax, eax
jne 0x10028a87
push 4
lea edx, [esi + 0x6c]
push edx
push 4
push eax
push str.min_bottom_ads
push ebx
call edi
test eax, eax
jne 0x10028a87
lea eax, [ebp - 0x84]
push str.type
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi + 0x38]
add esp, 8
mov dword [ebp - 0x108], 0
cmp edi, dword [esi + 0x3c]
je 0x10028a06
lea ebx, [ebx]
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x7c]
push 0x1005995c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
inc dword [ebp - 0x108]
mov eax, dword [edi + 0x10]
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x100289dc
mov ecx, dword [edi]
jmp 0x100289de
mov ecx, edi
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
lea ecx, [ebp - 0x84]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10028a87
add edi, 0x1c
cmp edi, dword [esi + 0x3c]
jne 0x100289b0
lea edx, [ebp - 0x104]
push str.page
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi + 0x48]
add esp, 8
mov dword [ebp - 0x108], 0
cmp edi, dword [esi + 0x4c]
je 0x10028a85
lea ecx, [ecx]
mov eax, dword [ebp - 0x108]
push eax
lea ecx, [ebp - 0xfc]
push 0x1005995c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
inc dword [ebp - 0x108]
mov eax, dword [edi + 0x10]
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x10028a5f
mov ecx, dword [edi]
jmp 0x10028a61
mov ecx, edi
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10028a87
add edi, 0x1c
cmp edi, dword [esi + 0x4c]
jne 0x10028a30
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10048188
mov esp, ebp
pop ebp
ret