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

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

Disassembly:
mov eax, dword [0x41d784]
sub esp, 0x60
cmp eax, 2
push esi
je 0x40a127
cmp eax, 3
jne 0x40a23f
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 0x40a23f
mov eax, dword [0x419acc]
mov edx, dword [str.Tcp1323Opts]
mov ecx, dword [0x419ad0]
mov dword [esp + 0x18], eax
mov eax, dword [0x419abc]
mov dword [esp + 0x14], edx
mov edx, dword [str.TcpWindowSize]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x419ac0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dx, word [0x419ac4]
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 0x40a1f0
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 0x40a250
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x41262b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [0x41d740]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0x12
call fcn.00404aa0
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.00405180
push str._StartVpnService__Begin_Start_Total_Service_n
call fcn.00402a60
add esp, 4
call fcn.00409d20
test eax, eax
jne 0x40a2d3
lea edx, [esp]
push 4
mov dword [esp + 4], 0x13
push edx
jmp 0x40a3bf
call fcn.00409d60
test eax, eax
jne 0x40a314
push str._StartVpnService__GetVpnAddress_Failed
call fcn.00402a60
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x90], 0xffffffff
call fcn.00404af0
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
add esp, 0x94
ret
call fcn.00409ed0
call fcn.00406260
test eax, eax
jne 0x40a32f
push str._StartVpnService__StartNspService_Failed
call fcn.00402a60
add esp, 4
push 1
call fcn.00406650
add esp, 4
test eax, eax
jne 0x40a34a
push str._StartVpnService__StartTcpService_Failed
call fcn.00402a60
add esp, 4
push 1
call fcn.00405f60
add esp, 4
test eax, eax
jne 0x40a365
push str._StartVpnService__StartL3VpnService_Failed
call fcn.00402a60
add esp, 4
push 1
call fcn.00406c00
add esp, 4
test eax, eax
jne 0x40a380
push str._StartVpnService__StartRemoteAppService_Failed
call fcn.00402a60
add esp, 4
mov eax, dword [0x41d784]
cmp eax, 2
je 0x40a38f
cmp eax, 3
jne 0x40a394
call fcn.0040c750
push 0
push 0
push 0
push 0x409f20
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x40a3f5
lea eax, [esp]
push 4
mov dword [esp + 4], 0x13
push eax
push 7
lea ecx, [esp + 0x10]
call fcn.00405180
lea ecx, [esp + 4]
mov dword [esp + 0x90], 0xffffffff
call fcn.00404af0
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 [0x41d784], 3
je 0x40a40a
call fcn.0040bfc0
lea ecx, [esp]
push 4
push ecx
push 7
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0x12
call fcn.00405180
call fcn.0040a110
push str._StartVpnService__Finish_Start_Total_Service_n
call fcn.00402a60
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x90], 0xffffffff
call fcn.00404af0
mov ecx, dword [esp + 0x88]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x94
ret
Function at 0x40a620
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, 0x41d790
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 0x40a66d
add esp, 0x110
ret
push 0x41d790
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 0x40a6b3
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 0x40a6e9
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.00402a60
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 0x40a920
Capabilities:
Create thread

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

Disassembly:
sub esp, 0x4c
mov ecx, dword [0x41a2a0]
push ebx
mov dword [esp + 0x18], ecx
mov cl, byte [0x41a2ac]
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 [0x41a2a4]
mov dword [esp + 0x20], eax
mov eax, dword [0x41a2a8]
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [0x41cd64]
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 0x40afbf
push str._StartAutoWebOpt_WebOpt_Is_Not_Enable_n
call fcn.00402a60
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push str.enter_StartAutoWebOpt
call fcn.00402a60
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 0x40b00a
push str._StartAutoWebOpt_RegOpenKeyExA_Failed_n
call fcn.00402a60
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 0x40b03d
push str._StartAutoWebOpt_RegQueryValueExA_Failed_n
call fcn.00402a60
add esp, 4
jmp 0x40b04f
cmp dword [esp + 0x18], ebx
je 0x40b04f
push 1
call fcn.0040b080
add esp, 4
mov ebp, eax
push str.leave_StartAutoWebOpt
call fcn.00402a60
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x40b06b
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 0x40b4f0
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 0x40b52f
push eax
push str._GetDefaultBrowserPath_RegOpenKeyEx_failed__errno___d
call fcn.00402a60
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 0x40b572
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x40b572
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.00402a60
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 0x40b5a0
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 0x40b756
cmp dword [esp + 0x234], ebx
je 0x40b756
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 0x40b722
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 0x40b72a
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 0x40b713
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 0x41a66c
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 0x40b722
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 0x40b72a
cmp dword [esp + 0x14], ebx
je 0x40b72a
mov dword [esp + 0x18], 1
jmp 0x40b738
push str._GetWin7DefaultBrowserPath_path_is_too_long
call fcn.00402a60
add esp, 4
jmp 0x40b738
push eax
push str._GetWin7DefaultBrowserPath_RegOpenKeyEx_failed__errno___d
jmp 0x40b730
push eax
push str._GetWin7DefaultBrowserPath_RegQueryValueEx_failed__errno___d
call fcn.00402a60
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
cmp eax, ebx
pop ebp
je 0x40b74a
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 0x40b8a0
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 0x40ba01
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x40ba01
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 0x40b8fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__CreateFile_errorCode___d
call fcn.00402a60
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 0x40b9da
cmp dword [esp + 0x1c], edi
jne 0x40b9da
mov ecx, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push ecx
push esi
call fcn.00411f4d
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x40b990
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 0x40b9bd
cmp word [ebp], 0x5a4d
jne 0x40b9d3
mov ecx, dword [ebp + 0x3c]
cmp word [ecx + ebp + 4], 0x8664
jne 0x40b986
mov edx, dword [esp + 0x20]
mov dword [edx], 1
mov dword [esp + 0x10], 1
jmp 0x40b99d
push str._IsPE64Format__new_buffer__NULL
call fcn.00402a60
add esp, 4
test ebp, ebp
je 0x40b9aa
push ebp
call fcn.00411f42
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.00402a60
add esp, 8
jmp 0x40b99d
push str._IsPE64Format__not_a_PE_file
jmp 0x40b995
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsPE64Format__GetFileSize_errorCode___d
call fcn.00402a60
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.00402a60
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 8
ret
Function at 0x40ba20
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 0x40ba78
mov dword [esp + 0x114], 5
jmp 0x40ba98
cmp dword [esp + 0x114], 6
jb 0x40ba98
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040b5a0
add esp, 8
cmp eax, ebx
jne 0x40bac6
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040b4f0
add esp, 8
cmp eax, ebx
jne 0x40bac6
push str._GetDefaultBrowserType_GetBrowserPath_failed
call fcn.00402a60
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 0x40baee
push str._GetDefaultBrowserType_strlen_szBrwPath___0
call fcn.00402a60
add esp, 4
xor eax, eax
pop edi
pop ebx
add esp, 0x19c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0040b760
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x14], ebx
call fcn.0040b8a0
add esp, 0xc
test eax, eax
jne 0x40bb1b
pop edi
pop ebx
add esp, 0x19c
ret
cmp dword [esp + 8], ebx
je 0x40bb2f
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 0x40bb66
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 0x40bb90
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 0x40bbba
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 0x40bbe4
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 0x40bc02
mov ebx, 2
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x19c
ret
Function at 0x40c1d0
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
push edi
jne 0x40c1f2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esi], ebx
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer_
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40c24a
push eax
push str.RegQueryValue_errorCode___d
call fcn.00402a60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40c28f
push eax
push str.RegQueryValue_errorCode___d
call fcn.00402a60
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
lea edx, [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
push edx
call ebp
add esp, 4
cmp eax, 6
jl 0x40c2f0
cmp eax, 8
jle 0x40c2e7
cmp eax, 9
jne 0x40c2f0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x40c2da
lea eax, [esp + 0x1a]
push eax
call ebp
add esp, 4
cmp eax, 0xa
jne 0x40c2da
mov dword [esi], eax
mov ebx, 1
jmp 0x40c2ff
mov dword [esi], 9
mov ebx, 1
jmp 0x40c2ff
mov dword [esi], eax
mov ebx, 1
jmp 0x40c2ff
push str.Unknown_IE_Version
call fcn.00402a60
add esp, 4
mov dword [esi], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x40c540
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 0x40c560
push str._CreateExeFile__strFilePath__NULL
call fcn.00402a60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x41af34
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40c589
push str._CreateExeFile__hResouce__NULL
call fcn.00402a60
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 0x40c5aa
push str._CreateExeFile__hGresouce__NULL
call fcn.00402a60
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 0x40c5cb
push str._CreateExeFile__pResource__NULL
call fcn.00402a60
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 0x40c5ee
push str._CreateExeFile__dwResuorceSize__0
call fcn.00402a60
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 0x40c626
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CreateExeFile__CreateFile_errorCode___d
call fcn.00402a60
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 0x40c680
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 0x40c66c
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x40c630
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.00402a60
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 0x40c6a0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x40c6be
push str._RunClearCache__strFilePath__NULL
call fcn.00402a60
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 0x40c727
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.00402a60
add esp, 8
xor eax, eax
add esp, 0x54
ret