joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ed07c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4ed0aa
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4ed0b1
cmp ebx, dword [eax + 4]
jae 0x4ed0b1
xor eax, eax
jmp 0x4ed2a1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4ed0c2
xor eax, eax
inc eax
jmp 0x4ed2a0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4ed0d8
cmp ecx, edx
jae 0x4ed21d
cmp dword [eax + 4], 0
je 0x4ed0e1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4ed0c9
cmp dword [ebp + 8], 0
je 0x4ed103
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4ed21d
cmp eax, esi
jae 0x4ed21d
mov eax, dword [0x525e30]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4ed128
cmp dword [esi*4 + 0x525e38], edi
je 0x4ed221
inc esi
cmp esi, eax
jl 0x4ed116
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4ee274]
test eax, eax
je 0x4ed29d
cmp dword [ebp - 8], 0x1000000
jne 0x4ed29d
test byte [ebp - 0xc], 0xcc
je 0x4ed1a6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4ed29d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ed29d
cmp word [eax + 0x18], 0x10b
jne 0x4ed29d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4ed29d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4ed1a6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4ed1a6
test byte [ecx + 0x27], 0x80
jne 0x4ed21d
push 1
push 0x525e78
call dword [0x4ee40c]
test eax, eax
jne 0x4ed0ba
mov ecx, dword [0x525e30]
test ecx, ecx
mov edx, ecx
jle 0x4ed1da
lea eax, [ecx*4 + 0x525e34]
cmp dword [eax], edi
je 0x4ed1da
dec edx
sub eax, 4
test edx, edx
jg 0x4ed1ce
test edx, edx
jne 0x4ed20b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4ed1e7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4ed1ff
lea eax, [edx*4 + 0x525e38]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4ed1ed
cmp ecx, 0x10
jge 0x4ed20b
inc ecx
mov dword [0x525e30], ecx
push 0
push 0x525e78
call dword [0x4ee40c]
jmp 0x4ed0ba
xor eax, eax
jmp 0x4ed2a0
test esi, esi
jle 0x4ed0ba
mov ebx, dword [0x4ee40c]
push 1
push 0x525e78
call ebx
test eax, eax
jne 0x4ed0ba
cmp dword [esi*4 + 0x525e38], edi
je 0x4ed277
mov eax, dword [0x525e30]
lea esi, [eax - 1]
test esi, esi
jl 0x4ed265
cmp dword [esi*4 + 0x525e38], edi
je 0x4ed261
dec esi
jns 0x4ed255
test esi, esi
jge 0x4ed275
cmp eax, 0x10
jge 0x4ed270
inc eax
mov dword [0x525e30], eax
lea esi, [eax - 1]
jmp 0x4ed277
je 0x4ed28f
xor ecx, ecx
test esi, esi
jl 0x4ed28f
lea eax, [ecx*4 + 0x525e38]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4ed27d
push 0
push 0x525e78
call ebx
jmp 0x4ed0ba
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5259c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e87ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4f952c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.004de1a0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.004dedf0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x5c], 0x2e
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.004e9336
call fcn.00537ce0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401150
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 1
test esi, esi
jne 0x401164
pop esi
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetUrlWarrentEnable
push esi
call edi
push str.SetUrlWarrentFilter
push esi
mov dword [0x417a48], eax
call edi
push str.AddUrlWarrentRule
push esi
mov dword [0x417a4c], eax
call edi
push str.AddDnsRule
push esi
mov dword [0x417a50], eax
call edi
push str.AddResourceRule
push esi
mov dword [0x417a54], eax
call edi
push str.UpdateUrlWarrent
push esi
mov dword [0x417a58], eax
call edi
push str.ShutDownUrlWarrent
push esi
mov dword [0x417a5c], eax
call edi
mov ecx, dword [0x417a48]
mov dword [0x417a60], eax
test ecx, ecx
pop edi
je 0x401207
mov ecx, dword [0x417a4c]
test ecx, ecx
je 0x401207
mov ecx, dword [0x417a50]
test ecx, ecx
je 0x401207
mov ecx, dword [0x417a54]
test ecx, ecx
je 0x401207
mov ecx, dword [0x417a58]
test ecx, ecx
je 0x401207
mov ecx, dword [0x417a5c]
test ecx, ecx
je 0x401207
test eax, eax
jne 0x401209
xor ebx, ebx
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x401fc0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.0040e780
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
mov edx, dword [esp + 0x1008]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test edx, edx
stosb byte es:[edi], al
je 0x40204d
mov edi, str._SangforServiceClient_
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea ebx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea eax, [esp + 0x1014]
not ecx
push eax
push edx
dec ecx
mov edx, 0xfff
sub edx, ecx
lea eax, [esp + ecx + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
pop edi
add esp, 0x1000
ret
Function at 0x402060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x12c]
xor esi, esi
stosw word es:[edi], ax
cmp ebp, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
stosb byte es:[edi], al
je 0x402176
cmp dword [esp + 0x130], 0x104
jb 0x402176
mov edx, dword [esp + 0x124]
cmp edx, esi
je 0x402176
mov ebx, dword [esp + 0x128]
cmp ebx, esi
je 0x402176
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.SOFTWARESangforSSL_
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
cmp esi, 0x104
jge 0x402176
mov edi, str.SOFTWARESangforSSL_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x1c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x1c]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push eax
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402183
push eax
push str._GetModulePath__RegOpenKeyEx_Failed__Return_d_n
call fcn.00401fc0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x130]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x130]
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x110
ret
Function at 0x402310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [str.CLSID_]
mov cx, word [0x41173c]
mov dl, byte [0x41173e]
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1f]
mov byte [esp + 0x1e], dl
mov edx, dword [esp + 0x120]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
test edx, edx
stosb byte es:[edi], al
mov dword [esp + 0x14], 0
je 0x402421
mov ebp, dword [esp + 0x124]
test ebp, ebp
je 0x402421
cmp dword [esp + 0x128], 0x104
jb 0x402421
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x26
jne 0x402421
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x18]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.InprocServer32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x20]
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40242d
push eax
push str._GetPathByClsId_RegOpenKeyEx_Failed__Return_d_n
call fcn.00401fc0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x110
ret
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x18]
push ebp
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0xc], 0
je 0x40247d
push esi
push str._GetPathByClsId_RegQueryValueEx_Failed__Return_d_n
call fcn.00401fc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x110
ret
Function at 0x402900
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.dbghelp.dll_SymGetModuleBase]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40292b
mov eax, dword [ebp - 0x20]
jmp 0x4029fb
push 0x1c
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4029f8
push 0x104
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [ebp - 0x128]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x4118c0
lea edx, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x24]
neg edx
sbb edx, edx
lea eax, [ebp - 0x330]
and edx, eax
push edx
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.dbghelp.dll_SymLoadModule]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push edi
mov byte [ebp - 0x508], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x60c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x60b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x508]
mov dword [ebp - 0x618], eax
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x610], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x610]
push ecx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea edx, [ebp - 0x610]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
push edx
push str.C:SangforServiceClient__d_d_d.log
push 0x103
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
push 0x41193c
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0
je 0x403377
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_asctime]
add esp, 4
push eax
push str._n_n_s_n
push 0x3ff
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov ecx, dword [ebp - 0x614]
push ecx
push 1
lea edi, [ebp - 0x404]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x40338b
mov eax, dword [ebp - 0x618]
push eax
push str._OpenCrashLogFile__open_file__s_failed_
call fcn.00401fc0
add esp, 8
mov eax, dword [ebp - 0x614]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x403cec
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CloseConfigFile
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.GetChildNodeByName
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetFirstChildNode
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 8]
push str.GetNextSiblingNode
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
push str.GetRootNode
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetSiblingNodeByName
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 8]
push str.LoadConfigMem
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push str.ReadNodeAttrConfig
push eax
call edi
mov ecx, dword [esi + 8]
push str.ReleasePtr
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 8]
push str.GetMapConfigSize
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 8]
push str.GetCurrentLine
push eax
call edi
mov ecx, dword [esi + 8]
push str.SetSvpnStatus
push ecx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_SendMessageToWnd
push edx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 8]
push str.RunByHighPower
push eax
call edi
mov ecx, dword [esi + 8]
push str.SetCertInputOff
push ecx
mov dword [esi + 0x48], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_GetSCacheStatus
push edx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 8]
push str.CSCM_SetSCacheInfo
push eax
call edi
mov ecx, dword [esi + 8]
push str.MakeSCacheConfigOK
push ecx
mov dword [esi + 0x54], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_GetSecurityInfo
push edx
mov dword [esi + 0x58], eax
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 8]
push str.FreePSA
push eax
call edi
mov ecx, dword [esi + 8]
push str.DoFileLog
push ecx
mov dword [esi + 0x60], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_PutTypeRegValueOf
push edx
mov dword [esi + 0x64], eax
call edi
mov dword [esi + 0x68], eax
mov eax, dword [esi + 8]
push str.WriteFileLog
push eax
call edi
mov ecx, dword [esi + 8]
push str.RequestWebOption
push ecx
mov dword [esi + 0x6c], eax
call edi
mov edx, dword [esi + 8]
push str.GetSvpnDomain
push edx
mov dword [esi + 0x70], eax
call edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 8]
push str.CSCM_ShowTipInfo
push eax
call edi
mov ecx, dword [esi + 8]
push str.CSCM_PostMessageToWnd
push ecx
mov dword [esi + 0x78], eax
call edi
mov edx, dword [esi + 8]
push str.SetEnableCDC
push edx
mov dword [esi + 0x7c], eax
call edi
mov dword [esi + 0x80], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x404950
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x40495c
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TcpStartSCacheManager
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.TcpQuerySCacheState
push eax
call edi
mov ecx, dword [esi + 4]
push str.TcpCleanSCache
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.TcpStartSCache
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.TcpStartCleanExpiredCache
push eax
call edi
mov ecx, dword [esi + 4]
push str.TcpStopSCache
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 4]
push str.TcpCleanAllCache
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push str.TcpSetWebOptState
push eax
call edi
mov dword [esi + 0x28], eax
pop edi
mov eax, 1
pop esi
ret

Function at 0x405100
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
xor eax, eax
push ebx
mov dword [esp + 5], eax
push ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
xor ebx, ebx
mov dword [esp + 0x15], eax
cmp ebp, ebx
mov dword [esp + 0x19], eax
mov byte [esp + 8], bl
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
je 0x405242
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x405242
push esi
push edi
lea ecx, [esp + 0x10]
push 0x18
push ecx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
xor edi, edi
call fcn.00405050
add esp, 0xc
test eax, eax
jne 0x405174
push str._CreateAdvBhoKey__GetBhoData_failed_n
call fcn.00401fc0
add esp, 4
jmp 0x405217
push str.SE_SECURITY_NAME
call fcn.00404c70
lea edx, [esp + 0x34]
push edx
push str.SoftwareMicrosoftInternet_ExplorerApproved_Extensions
call fcn.00404e30
add esp, 0xc
test eax, eax
jne 0x4051a5
push str._CreateAdvBhoKey__RemoveDenyAccess_failed_n
call fcn.00401fc0
add esp, 4
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x2c]
push ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerApproved_Extensions
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
push esi
push str._CreateAdvBhoKey__RegCreateKeyEx_ret_d_n
call fcn.00401fc0
add esp, 8
cmp esi, 5
je 0x405217
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push 0x18
push ecx
push 3
push ebx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push esi
push str._CreateAdvBhoKey__RegSetValueEx_ret_d_n
call fcn.00401fc0
mov eax, dword [esp + 0x34]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov dword [esp + 0x2c], ebx
jne 0x405217
mov edi, 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x405238
push eax
push str.SoftwareMicrosoftInternet_ExplorerApproved_Extensions
call fcn.00404fe0
mov ecx, dword [esp + 0x38]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4052b0
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x52c
push ebx
xor ebx, ebx
push ebp
cmp edx, ebx
push edi
jne 0x4052cf
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x52c
ret
xor eax, eax
mov ecx, 0x103
mov dword [esp + 0x18], eax
lea edi, [esp + 0x129]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x128], bl
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push edx
stosb byte es:[edi], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
je 0x405333
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x52c
ret
lea edx, [esp + 0x24]
push esi
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00405250
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x30]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExt
lea edx, [esp + 0x13c]
push str._sSettings_s
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x12c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x12c]
push ecx
push eax
push str._EnableControl__RegDeleteKey_Ret_d_Reg_s_n
call fcn.00401fc0
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x138]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExt
lea eax, [esp + 0x140]
push str._sStats_siexplore
push eax
call esi
add esp, 0x1c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x12c]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
lea eax, [esp + 0x12c]
push eax
push esi
push str._EnableControl__RegCreateKeyEx_Ret_d_Reg_s_n
call fcn.00401fc0
add esp, 0xc
cmp esi, ebx
jne 0x405430
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push ebx
push 0x438d5c
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push esi
push str._EnableControl__RegSetValueEx_Ret_d_n
call fcn.00401fc0
add esp, 8
cmp esi, ebx
jne 0x405430
mov ebp, 1
mov eax, dword [esp + 0x10]
pop esi
cmp eax, ebx
je 0x405444
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00405100
add esp, 8
and eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x52c
ret