joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405470
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [esp + 0x12c]
xor ebx, ebx
cmp edi, ebx
je 0x40563c
mov ecx, dword [esp + 0x130]
cmp ecx, ebx
je 0x40563c
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x24], bl
and ecx, 3
mov dword [esp + 0x1c], ebx
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov dword [esp + 0x20], 0x102
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40563c
lea edx, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x34]
push ebx
push edx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], 1
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 1
je 0x40563c
cmp eax, 0x7a
jne 0x40563c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40563c
cmp dword [esp + 0xc], ebx
je 0x40563c
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push ebp
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call edi
add esp, 8
mov ebx, eax
test ebp, ebp
je 0x405610
test ebx, ebx
je 0x405606
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0x38]
push ebp
push eax
push 0
call esi
test eax, eax
je 0x405606
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
je 0x405606
mov edx, dword [esp + 0x18]
test edx, edx
je 0x405606
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x134]
not ecx
dec ecx
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x405606
mov edi, dword [esp + 0x130]
mov esi, edx
mov edx, ecx
mov dword [esp + 0x20], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test ebx, ebx
pop ebp
je 0x40561f
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40562e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 0x11c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret
Function at 0x405a70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x405800
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x405aa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._StartL3VpnService__create_thread_StartL3VpnThread_failed__errno_d
call fcn.00401fc0
add esp, 8
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x406600
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40eae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
lea eax, [esp + 8]
mov dword [esp + 0x20], edi
push eax
push 0x20019
push edi
push str.SOFTWARESangforSSLHTPINFO
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4066b0
mov esi, dword [esp + 8]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
push str.EnableHTP
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406692
cmp dword [esp + 0xc], edi
jne 0x4066d6
push str._IsAutoStartHtp__User_Disable_HTP_n
call fcn.00401fc0
add esp, 4
cmp esi, edi
je 0x40669d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push eax
push str.SOFTWARESangforSSLHTPINFO
push str._IsAutoStartHtp__Open_Reg_faile___s__err_d_n
call fcn.00401fc0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp esi, edi
je 0x4066e1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x406700
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40eb0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e0
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe5]
mov byte [esp + 0xe4], bl
mov dword [esp + 0x1c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [0x418460]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
call fcn.00403c70
push str._StartHtpService__Enter..._n
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0xc], 0x13
call fcn.00401fc0
mov eax, dword [0x4184a4]
add esp, 4
cmp eax, 3
je 0x4068e1
cmp dword [0x417a7c], ebx
je 0x4068d4
cmp dword [0x417a70], ebx
je 0x4068d4
cmp dword [0x417a68], 1
jne 0x4067c0
push str._StartHtpService__Htp_is_not_enable_In_IE_Proxy_Mode_n
jmp 0x4068d9
cmp dword [0x417a78], ebx
jne 0x4067db
call fcn.00406600
cmp eax, ebx
jne 0x4067db
push str._StartHtpService__Not_Auto_Start_Htp_n
jmp 0x4068d9
push esi
call fcn.00406240
mov esi, eax
cmp esi, 1
jne 0x4067f5
mov dword [esp + 0xc], 0x14
jmp 0x40688a
lea edx, [esp + 0xe8]
push 0x104
push edx
call fcn.004021e0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40688a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x108]
push ebx
push edx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, ebx
jne 0x406859
push str._StartHtpService__CreateProcess_Failed_n
call fcn.00401fc0
add esp, 4
jmp 0x40688a
push str._StartHtpService__CreateProcess_Success_n
call fcn.00401fc0
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x12
cmp dword [esp + 0x1fc], 1
jne 0x4068a6
lea edx, [esp + 0xc]
push 4
push edx
push 6
lea ecx, [esp + 0x70]
call fcn.00404290
lea ecx, [esp + 0x64]
mov dword [esp + 0x1f4], 0xffffffff
call fcn.00403cc0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
add esp, 0x1ec
ret
push str._StartHtpService__Htp_is_not_enable_n
call fcn.00401fc0
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00403cc0
mov ecx, dword [esp + 0x1e8]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ec
ret
Function at 0x406b10
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x406b5a
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x406b5a
pop edi
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, 5
mov edx, 1
jne 0x406b7b
cmp ecx, edx
je 0x406b7b
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
push ebx
mov bl, byte [esp + 0xa6]
cmp bl, dl
pop ebx
je 0x406b93
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
cmp eax, 6
jne 0x406bb1
test ecx, ecx
jne 0x406bb1
cmp dword [esp + 0x14], 0x1771
jae 0x406bb1
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
cmp dword [0x4184a4], edx
jne 0x406bc9
cmp eax, 6
jae 0x406bc9
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
call fcn.00406a90
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x406c80
Capabilities:
Check os version
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x1f8
push ebx
push esi
push edi
xor bl, bl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x101]
mov byte [esp + 0x100], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x10
mov word [esp + 0xd], ax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edi, [esp + 0x68]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x64]
mov dword [esp + 0x18], ecx
push edx
mov dword [esp + 0x20], ecx
mov ecx, 0x26
rep stosd dword es:[edi], eax
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x68], 0x9c
call esi
test eax, eax
jne 0x406d08
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x94
push eax
call esi
lea ecx, [esp + 0x100]
push 0x104
push ecx
call fcn.00402270
add esp, 8
test eax, eax
jne 0x406d3a
push str._CreateSdProcess__GetSangforSduiPath_Failed_n
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1f8
ret
cmp dword [esp + 0x208], 1
jne 0x406d46
mov bl, 0x10
mov eax, dword [esp + 0x68]
add bl, 0x40
cmp eax, 6
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], bl
jb 0x406da3
push 1
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x108]
push edx
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x406e41
lea ecx, [esp + 0x100]
push ecx
push str._CreateSdProcess__ShellExecute_Failed__Cmd_s_n
call fcn.00401fc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1f8
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x100]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 0x44
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
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x104]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406e2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x104]
push eax
push str._CreateSdProcess__CreateProcess_Failed__Cmd_s__err_d_n
call fcn.00401fc0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1f8
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1f8
ret
Function at 0x407220
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
je 0x40726b
cmp byte [eax], 0
je 0x40726b
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, dword [esp + 8]
test eax, eax
mov dword [esi], eax
je 0x40726b
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0xc]
test eax, eax
mov dword [ecx], eax
jne 0x40726f
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x408f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4184b0
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 8], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 4
pop edi
jne 0x408f7d
add esp, 0x110
ret
push 0x4184b0
push str.SoftWareSangforSSLSCache_s
lea eax, [esp + 0x14]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408fc3
xor eax, eax
add esp, 0x110
ret
mov edx, dword [esp]
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.EnableCache
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408ff9
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x110
ret
mov ecx, dword [esp + 4]
push ecx
push str.IsSCacheUserEnabled:__d
call fcn.00401fc0
mov edx, dword [esp + 8]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 1
sete al
add esp, 0x110
ret

Function at 0x409240
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x409030
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x409276
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._StartSCache__create_thread_StartSCacheThread_failed__errno_d
call fcn.00401fc0
add esp, 8
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x4094d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ec86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
mov eax, dword [0x414e58]
mov ecx, dword [0x414e5c]
mov edx, dword [0x414e60]
mov dword [esp + 4], eax
mov ax, word [0x414e64]
mov dword [esp + 8], ecx
mov cl, byte [0x414e66]
mov word [esp + 0x10], ax
mov eax, dword [0x414e4c]
mov dword [esp + 0xc], edx
mov edx, dword [0x414e48]
push ebx
mov byte [esp + 0x16], cl
mov ecx, dword [0x414e50]
push esi
mov dword [esp + 0x20], eax
mov eax, dword [0x418460]
xor ebx, ebx
push edi
mov dword [esp + 0x20], edx
mov dl, byte [0x414e54]
mov dword [esp + 0x28], ecx
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x34], dl
call fcn.00403c70
mov ecx, dword [0x41845c]
push ebx
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0xf0], ebx
call fcn.004048d0
push str._CheckScache__Enter..._n
mov byte [esp + 0xec], 1
mov dword [esp + 0x10], ebx
call fcn.00401fc0
add esp, 4
lea ecx, [esp + 0x30]
push 0x4184b0
call fcn.00404a30
mov esi, eax
cmp esi, 1
jne 0x4095a9
push str._CheckScache__SCACHE_INITING..._n
jmp 0x4096d4
mov edx, dword [0x41849c]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push 2
push edx
call edi
cmp esi, 2
jne 0x40965b
push str._CheckScache__Start_SCache_Success..._n
call fcn.00401fc0
mov eax, dword [0x41849c]
add esp, 4
push 1
push eax
call edi
lea ecx, [esp + 0xc]
push 4
push ecx
push 9
lea ecx, [esp + 0x68]
mov dword [0x418434], 1
mov dword [0x4184ac], ebx
mov dword [esp + 0x18], 0x12
call fcn.00404290
push ebx
lea ecx, [esp + 0x34]
call fcn.00404b50
call fcn.00408f30
test eax, eax
je 0x409639
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x64]
call fcn.004047b0
jmp 0x4096dc
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.004047b0
jmp 0x4096dc
push esi
push str._CheckScache__Error_State_d_n
call fcn.00401fc0
mov eax, dword [0x4184a8]
add esp, 8
inc eax
cmp eax, 3
mov dword [0x4184a8], eax
jbe 0x4096a6
lea ecx, [esp + 0xc]
push 4
push ecx
push 9
lea ecx, [esp + 0x68]
mov dword [0x4184ac], ebx
mov dword [0x418434], ebx
mov dword [esp + 0x18], 0x13
call fcn.00404290
push str._CheckScache__Try_3_Times_Failed_n
jmp 0x4096d4
lea ecx, [esp + 0x30]
call fcn.00404a00
cmp eax, ebx
jne 0x4096ba
push str._CheckScache__StartSCacheManager_Failed_n
jmp 0x4096d4
mov edx, dword [0x41849c]
push ebx
push 0xbb8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
push str._CheckScache__Try_Again_n
call fcn.00401fc0
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0xe8], bl
call fcn.00404930
lea ecx, [esp + 0x5c]
mov dword [esp + 0xe8], 0xffffffff
call fcn.00403cc0
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret
Function at 0x4098a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x4c
mov ecx, dword [0x414fcc]
push ebx
mov dword [esp + 0x18], ecx
mov cl, byte [0x414fd8]
push ebp
push esi
push edi
mov eax, dword [str.UserEnableWebOpt]
mov byte [esp + 0x30], cl
mov ecx, 9
mov esi, str.SOFTWARESangforSSLSangforCSClient
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x414fd0]
mov dword [esp + 0x20], eax
mov eax, dword [0x414fd4]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [0x417a84]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], edx
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jne 0x40991f
push str._StartAutoWebOpt_WebOpt_Is_Not_Enable_n
call fcn.00401fc0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push str.enter_StartAutoWebOpt
call fcn.00401fc0
add esp, 4
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
mov dword [esp + 0x14], 4
push edx
push 0x20019
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40996a
push str._StartAutoWebOpt_RegOpenKeyExA_Failed_n
call fcn.00401fc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40999d
push str._StartAutoWebOpt_RegQueryValueExA_Failed_n
call fcn.00401fc0
add esp, 4
jmp 0x4099af
cmp dword [esp + 0x18], ebx
je 0x4099af
push 1
call fcn.004099e0
add esp, 4
mov ebp, eax
push str.leave_StartAutoWebOpt
call fcn.00401fc0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x4099cb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret

Function at 0x409e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20019
push 0
push str.HTTP_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409ecf
push eax
push str._GetDefaultBrowserPath_RegOpenKeyEx_failed__errno___d
call fcn.00401fc0
add esp, 8
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
mov dword [esp + 4], ecx
mov ecx, dword [esp]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409f12
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x409f12
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
push eax
push str._GetDefaultBrowserPath_RegQueryValueEx_failed__errno___d
call fcn.00401fc0
mov eax, dword [esp + 8]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
Function at 0x409f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x228
mov eax, dword [esp + 0x22c]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x40a0f6
cmp dword [esp + 0x234], ebx
je 0x40a0f6
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov esi, 0x104
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push closesocket
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
call ebp
cmp eax, ebx
jne 0x40a0c2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push ebx
push str.Progid
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40a0ca
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 5
mov esi, str._shellopencommand
lea edi, [esp + 0x1c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x30]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebx
add edx, ecx
cmp edx, 0x104
jae 0x40a0b3
mov ecx, 0x40
lea edi, [esp + 0x135]
mov byte [esp + 0x134], bl
lea edx, [esp + 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
push ecx
push str._s_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x134]
push eax
push 0x20019
push ebx
push ecx
push closesocket
call ebp
cmp eax, ebx
jne 0x40a0c2
mov ecx, dword [esp + 0x23c]
mov edx, dword [esp + 0x240]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40a0ca
cmp dword [esp + 0x14], ebx
je 0x40a0ca
mov dword [esp + 0x18], 1
jmp 0x40a0d8
push str._GetWin7DefaultBrowserPath_path_is_too_long
call fcn.00401fc0
add esp, 4
jmp 0x40a0d8
push eax
push str._GetWin7DefaultBrowserPath_RegOpenKeyEx_failed__errno___d
jmp 0x40a0d0
push eax
push str._GetWin7DefaultBrowserPath_RegQueryValueEx_failed__errno___d
call fcn.00401fc0
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
cmp eax, ebx
pop ebp
je 0x40a0ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0x228
ret
xor eax, eax
pop ebx
add esp, 0x228
ret