joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082d0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
je 0x40831b
cmp byte [eax], 0
je 0x40831b
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 0x40831b
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 0x40831f
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 0x409e90
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x41d734]
sub esp, 0x60
cmp eax, 2
push esi
je 0x409ea7
cmp eax, 3
jne 0x409fbf
push edi
mov ecx, 0xc
mov esi, str.SYSTEMCurrentControlSetServicesTcpipParameters
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 8]
lea ecx, [esp + 0x34]
movsw word es:[edi], word [esi]
push eax
push 0xf003f
push 0
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x409fbf
mov eax, dword [0x419a54]
mov edx, dword [str.Tcp1323Opts]
mov ecx, dword [0x419a58]
mov dword [esp + 0x18], eax
mov eax, dword [0x419a44]
mov dword [esp + 0x14], edx
mov edx, dword [str.TcpWindowSize]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x419a48]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dx, word [0x419a4c]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
mov word [esp + 0x30], dx
push ecx
push 0
lea edx, [esp + 0x20]
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409f70
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x60
ret
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 8]
push 4
push edx
push 4
lea eax, [esp + 0x20]
push 0
push eax
push ecx
mov dword [esp + 0x20], 3
mov dword [esp + 0x28], 0x3ebc0
call esi
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push 4
push edx
push 4
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x60
ret
Function at 0x409fd0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x41233b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [0x41d6f0]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0x12
call fcn.004049b0
lea ecx, [esp]
push 4
push ecx
push 7
lea ecx, [esp + 0x10]
mov dword [esp + 0x9c], 0
mov dword [esp + 0xc], 0x11
call fcn.00405090
push str._StartVpnService__Begin_Start_Total_Service_n
call fcn.00402970
add esp, 4
call fcn.00409a90
test eax, eax
jne 0x40a053
lea edx, [esp]
push 4
mov dword [esp + 4], 0x13
push edx
jmp 0x40a13f
call fcn.00409ad0
test eax, eax
jne 0x40a094
push str._StartVpnService__GetVpnAddress_Failed
call fcn.00402970
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x90], 0xffffffff
call fcn.00404a00
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
add esp, 0x94
ret
call fcn.00409c40
call fcn.00406170
test eax, eax
jne 0x40a0af
push str._StartVpnService__StartNspService_Failed
call fcn.00402970
add esp, 4
push 1
call fcn.00406560
add esp, 4
test eax, eax
jne 0x40a0ca
push str._StartVpnService__StartTcpService_Failed
call fcn.00402970
add esp, 4
push 1
call fcn.00405e70
add esp, 4
test eax, eax
jne 0x40a0e5
push str._StartVpnService__StartL3VpnService_Failed
call fcn.00402970
add esp, 4
push 1
call fcn.00406b40
add esp, 4
test eax, eax
jne 0x40a100
push str._StartVpnService__StartRemoteAppService_Failed
call fcn.00402970
add esp, 4
mov eax, dword [0x41d734]
cmp eax, 2
je 0x40a10f
cmp eax, 3
jne 0x40a114
call fcn.0040c480
push 0
push 0
push 0
push 0x409c90
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x40a175
lea eax, [esp]
push 4
mov dword [esp + 4], 0x13
push eax
push 7
lea ecx, [esp + 0x10]
call fcn.00405090
lea ecx, [esp + 4]
mov dword [esp + 0x90], 0xffffffff
call fcn.00404a00
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
add esp, 0x94
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x41d734], 3
je 0x40a18a
call fcn.0040bd20
lea ecx, [esp]
push 4
push ecx
push 7
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0x12
call fcn.00405090
call fcn.00409e90
push str._StartVpnService__Finish_Start_Total_Service_n
call fcn.00402970
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x90], 0xffffffff
call fcn.00404a00
mov ecx, dword [esp + 0x88]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x94
ret
Function at 0x40a3a0
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, 0x41d740
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 0x40a3ed
add esp, 0x110
ret
push 0x41d740
push str.SoftWareSangforSZGSSCache_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 0x40a433
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 0x40a469
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.00402970
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 0x40a6a0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x40a4a0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x40a6d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._StartSCache__create_thread_StartSCacheThread_failed__errno_d
call fcn.00402970
add esp, 8
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x40acc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x4c
mov ecx, dword [0x41a228]
push ebx
mov dword [esp + 0x18], ecx
mov cl, byte [0x41a234]
push ebp
push esi
push edi
mov eax, dword [str.UserEnableWebOpt]
mov byte [esp + 0x30], cl
mov ecx, 9
mov esi, str.SOFTWARESangforSZGSSangforCSClient
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x41a22c]
mov dword [esp + 0x20], eax
mov eax, dword [0x41a230]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [0x41cd14]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], edx
movsw word es:[edi], word [esi]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jne 0x40ad40
push str._StartAutoWebOpt_WebOpt_Is_Not_Enable_n
call fcn.00402970
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push str.enter_StartAutoWebOpt
call fcn.00402970
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 0x40ad8b
push str._StartAutoWebOpt_RegOpenKeyExA_Failed_n
call fcn.00402970
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 0x40adbe
push str._StartAutoWebOpt_RegQueryValueExA_Failed_n
call fcn.00402970
add esp, 4
jmp 0x40add0
cmp dword [esp + 0x18], ebx
je 0x40add0
push 1
call fcn.0040ae00
add esp, 4
mov ebp, eax
push str.leave_StartAutoWebOpt
call fcn.00402970
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x40adec
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 0x40b270
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 0x40b2af
push eax
push str._GetDefaultBrowserPath_RegOpenKeyEx_failed__errno___d
call fcn.00402970
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 0x40b2f2
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x40b2f2
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.00402970
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 0x40b320
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 0x40b4d6
cmp dword [esp + 0x234], ebx
je 0x40b4d6
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 0x40b4a2
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 0x40b4aa
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 0x40b493
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 0x41a5f4
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 0x40b4a2
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 0x40b4aa
cmp dword [esp + 0x14], ebx
je 0x40b4aa
mov dword [esp + 0x18], 1
jmp 0x40b4b8
push str._GetWin7DefaultBrowserPath_path_is_too_long
call fcn.00402970
add esp, 4
jmp 0x40b4b8
push eax
push str._GetWin7DefaultBrowserPath_RegOpenKeyEx_failed__errno___d
jmp 0x40b4b0
push eax
push str._GetWin7DefaultBrowserPath_RegQueryValueEx_failed__errno___d
call fcn.00402970
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
cmp eax, ebx
pop ebp
je 0x40b4ca
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
Function at 0x40b620
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x40b781
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x40b781
push edi
push edi
push 3
push edi
push 1
push closesocket
push eax
mov dword [ecx], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b67b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__CreateFile_errorCode___d
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop ebx
add esp, 8
ret
push ebp
lea eax, [esp + 0x18]
push esi
push eax
push ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b75a
cmp dword [esp + 0x1c], edi
jne 0x40b75a
mov ecx, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push ecx
push esi
call fcn.00411c6d
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x40b710
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b73d
cmp word [ebp], 0x5a4d
jne 0x40b753
mov ecx, dword [ebp + 0x3c]
cmp word [ecx + ebp + 4], 0x8664
jne 0x40b706
mov edx, dword [esp + 0x20]
mov dword [edx], 1
mov dword [esp + 0x10], 1
jmp 0x40b71d
push str._IsPE64Format__new_buffer__NULL
call fcn.00402970
add esp, 4
test ebp, ebp
je 0x40b72a
push ebp
call fcn.00411c62
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__ReadFile_errorCode___d
call fcn.00402970
add esp, 8
jmp 0x40b71d
push str._IsPE64Format__not_a_PE_file
jmp 0x40b715
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__GetFileSize_errorCode___d
call fcn.00402970
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
push str._IsPE64Format__FileName__NULL__bIsPE64__NULL
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 8
ret
Function at 0x40b7a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x19c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x110], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40b7f8
mov dword [esp + 0x114], 5
jmp 0x40b818
cmp dword [esp + 0x114], 6
jb 0x40b818
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040b320
add esp, 8
cmp eax, ebx
jne 0x40b846
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040b270
add esp, 8
cmp eax, ebx
jne 0x40b846
push str._GetDefaultBrowserType_GetBrowserPath_failed
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 0x19c
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40b86e
push str._GetDefaultBrowserType_strlen_szBrwPath___0
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 0x19c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0040b4e0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x14], ebx
call fcn.0040b620
add esp, 0xc
test eax, eax
jne 0x40b89b
pop edi
pop ebx
add esp, 0x19c
ret
cmp dword [esp + 8], ebx
je 0x40b8af
pop edi
mov eax, 5
pop ebx
add esp, 0x19c
ret
push esi
mov esi, dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [esp + 0x10]
push str.iexplore
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40b8e6
mov ebx, 5
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea ecx, [esp + 0x10]
push str.opera
push ecx
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40b910
mov ebx, 3
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea edx, [esp + 0x10]
push str.safari
push edx
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40b93a
mov ebx, 4
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea eax, [esp + 0x10]
push str.firefox
push eax
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40b964
mov ebx, 1
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
lea ecx, [esp + 0x10]
push str.chrome
push ecx
call esi
add esp, 4
push eax
call edi
add esp, 8
test eax, eax
je 0x40b982
mov ebx, 2
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
Function at 0x40bf40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
xor ebx, ebx
cmp esi, ebx
jne 0x40bf60
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov dword [esi], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer_
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
pop edi
je 0x40bfb9
push eax
push str.RegQueryValue_errorCode___d
call fcn.00402970
add esp, 8
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push ebx
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40bffd
push eax
push str.RegQueryValue_errorCode___d
call fcn.00402970
mov ecx, dword [esp + 0x10]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 6
jl 0x40c01e
cmp eax, 9
jg 0x40c01e
mov dword [esi], eax
mov ebx, 1
jmp 0x40c02d
push str.Unknown_IE_Version
call fcn.00402970
add esp, 4
mov dword [esi], ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x40c270
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
jne 0x40c290
push str._CreateExeFile__strFilePath__NULL
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x41aed8
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40c2b9
push str._CreateExeFile__hResouce__NULL
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c2da
push str._CreateExeFile__hGresouce__NULL
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x40c2fb
push str._CreateExeFile__pResource__NULL
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40c31e
push str._CreateExeFile__dwResuorceSize__0
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c356
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CreateExeFile__CreateFile_errorCode___d
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
xor esi, esi
test edi, edi
mov dword [esp + 0x14], esi
jbe 0x40c3b0
mov ecx, edi
lea eax, [esp + 0x14]
push 0
sub ecx, esi
push eax
lea edx, [esi + ebp]
push ecx
push edx
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c39c
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x40c360
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CreateExeFile__WriteFile_errorCode___d
call fcn.00402970
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x40c3d0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x40c3ee
push str._RunClearCache__strFilePath__NULL
call fcn.00402970
add esp, 4
xor eax, eax
add esp, 0x54
ret
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40c457
mov ecx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._RunClearCache__CreateProcess_errorCode___d
call fcn.00402970
add esp, 8
xor eax, eax
add esp, 0x54
ret