joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401407
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401407
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4013f7
cmp esi, ecx
jae 0x401407
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4013e5
cmp esi, ecx
jae 0x401407
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x401409
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40172d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x106
lea eax, [ebp - 0x10c]
mov edi, edx
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4017c3
mov eax, dword [0x413704]
test eax, eax
jne 0x4017b3
push str.ChromeReprompt.txt
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x40b4f0
lea eax, [ebp - 0x10c]
push eax
push 0x413704
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [0x413704]
add esp, 0x18
test eax, eax
je 0x4017c3
push edi
push esi
push str._s_____s_n
push eax
call fcn.00401036
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00409058
leave
ret
Function at 0x401871
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
mov ebx, edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
add esp, 0x20
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018e5
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4018fc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401903
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401a0a
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401926
test esi, esi
je 0x4018fc
push esi
jmp 0x4018f6
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
push dword [ebp - 0x640]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x64c], eax
test eax, eax
je 0x401973
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push edi
push eax
call ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0x10
test eax, eax
jne 0x4019d0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x4019c3
mov dword [ebp - 0x418], edi
call fcn.004017fc
cmp eax, dword [ebp - 0x418]
je 0x4019e8
lea eax, [ebp - 0x648]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401926
jmp 0x4019ee
mov edi, dword [ebp - 0x640]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4019fb
push esi
call ebx
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x401a08
push eax
call ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409058
leave
ret
Function at 0x401a19
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x40a03b
call fcn.00409e70
mov dword [ebp - 0x240], ecx
xor eax, eax
lea edi, [ebp - 0x230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x401bdf
push 0x40b540
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x401bdf
lea ecx, [ebp - 0x218]
call fcn.00401871
test eax, eax
je 0x401bdf
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401bdf
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], edi
push eax
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401bd4
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x234]
push eax
push edi
push edi
push 1
push dword [ebp - 0x238]
mov dword [ebp - 0x234], edi
call esi
test eax, eax
jne 0x401bc4
push dword [ebp - 0x234]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x401bc0
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
push edi
push 1
push dword [ebp - 0x238]
call esi
test eax, eax
je 0x401bac
lea eax, [ebp - 0x23c]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x401b9c
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
call fcn.004052c5
push 0x40b4b4
lea ecx, [ebp - 0x230]
call fcn.004052c5
push dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
call fcn.0040110c
neg eax
sbb esi, esi
inc esi
jmp 0x401b9e
xor esi, esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401bae
xor esi, esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401bc6
xor esi, esi
jmp 0x401bc6
mov esi, edi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401bd6
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401be1
mov esi, edi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x401c22
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004093a1
pop ecx
pop ecx
mov eax, esi
call fcn.00409e2e
ret
Function at 0x401d11
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x40a072
call fcn.00409e70
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x401e5b
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401e53
lea eax, [ebp - 0x224]
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00405248
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
push esi
call fcn.004058ec
lea ecx, [esi + 1]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00405aa0
mov edx, str.explorer.exe
lea ecx, [ebp - 0x14]
call fcn.00405184
test al, al
je 0x401e34
push dword [ebp - 0x240]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401e99
cmp edi, 0xffffffff
je 0x401e99
lea eax, [ebp - 0x24c]
push eax
push 0xa
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401e2d
mov edx, dword [ebp - 0x254]
mov eax, 0x104
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x250]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401c2a
add esp, 0xc
test eax, eax
jne 0x401e63
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405924
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401d6c
xor eax, eax
call fcn.00409e2e
ret
push dword [ebp - 0x25c]
push 1
push 1
push ebx
push 0x2000000
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x24c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call ebx
push edi
call ebx
xor ebx, ebx
test esi, esi
setne bl
lea ecx, [ebp - 0x14]
call fcn.00405924
mov eax, ebx
jmp 0x401e5d
Function at 0x401ea5
Capabilities:
Get common file path

Disassembly:
push 0xe34
mov eax, 0x40a0ac
call fcn.00409e70
mov esi, ecx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x21c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xe2c]
call fcn.00401a19
test eax, eax
mov edi, 0x104
lea eax, [ebp - 0x21c]
je 0x401f0e
push str.HKEY_USERS_
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0xe2c]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x401f1b
push 0x40b4b8
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x21c]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov dword [ebp - method.RegUtil.virtual_0], vtable.RegUtil.0
mov dword [ebp - 0xe38], ebx
mov dword [ebp - 0xe3c], ebx
add esp, 4
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x21c]
push esi
push str.Local_AppData
push eax
call fcn.004087d8
mov edx, esi
mov ecx, str.GetUserLocalAppDataFolder_:_:_folderpath_via_registry_:
call fcn.0040172d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401f70
sub ecx, edx
sar ecx, 1
jne 0x402024
push 0x208
lea eax, [ebp - 0x62c]
mov dword [ebp - 0xe34], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x208
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x62c]
lea ecx, [ebp - 0xe34]
push eax
call fcn.00401d11
pop ecx
test eax, eax
je 0x402009
lea eax, [ebp - 0xe30]
mov dword [ebp - 0xe30], ebx
push eax
push dword [ebp - 0xe34]
push ebx
push 0x40b370
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push dword [ebp - 0xe30]
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov ecx, str.Get_tUserLocalAppDataFolder_:_:_folderpath_new2_:
jmp 0x40201d
push ebx
push 0x1c
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402026
mov ecx, str.GetUserLocalAppDataFolder_:_:_folderpath_old_:
mov edx, esi
call fcn.0040172d
mov bl, 1
mov al, bl
call fcn.00409e2e
ret
Function at 0x40202e
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x40a0e6
call fcn.00409e70
mov ebx, ecx
xor esi, esi
mov dword [ebp - method.RegUtil.virtual_0], vtable.RegUtil.0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x218]
mov edi, str.Shell
push eax
push edi
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
call fcn.004087d8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00401154
test eax, eax
js 0x4020aa
cmp dword [ebp - 0x21c], esi
jne 0x4020f7
push ecx
push ecx
lea eax, [ebp - 0x218]
push eax
push edi
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
call fcn.004087d8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00401154
test eax, eax
js 0x4020dd
cmp dword [ebp - 0x21c], 0
jne 0x4020f7
push str.explorer.exe
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea edi, [ebp - 0x218]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x402100
push esi
push esi
push esi
lea eax, [ebp - 0x218]
sub edi, ecx
push eax
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [edi + 1]
cmp ecx, eax
jne 0x40214d
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test eax, eax
je 0x4021af
lea edx, [ebp - 0x218]
mov ecx, str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
jmp 0x4021be
mov edi, 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40219b
cmp eax, edi
ja 0x40219b
push 0x40b4b4
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x40218e
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call edi
add esp, 0xc
test eax, eax
je 0x4021af
lea edx, [ebp - 0x218]
mov ecx, str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
jmp 0x4021be
push str.C:Windowsexplorer.exe
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x4021b4
xor esi, esi
inc esi
jmp 0x4021c3
mov edx, 0x40b468
mov ecx, str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.0040172d
mov eax, esi
call fcn.00409e2e
ret
Function at 0x4021cb
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x414]
push esi
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.0040202e
test eax, eax
je 0x402396
lea ecx, [ebp - 0x414]
call fcn.00401871
mov ebx, eax
test ebx, ebx
je 0x402396
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x44
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x464], esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x460], esi
lea edi, [ebp - 0x474]
add esp, 0x24
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push esi
push 0x400
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x402341
lea eax, [ebp - 0x464]
push eax
push 0xb
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402341
lea eax, [ebp - 0x460]
xor edi, edi
push eax
inc edi
push edi
push 2
push esi
push 0x18b
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x402341
lea eax, [ebp - 0x418]
mov dword [ebp - 0x45c], 0x44
push eax
mov dword [ebp - 0x418], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x4022f5
mov eax, esi
mov dword [ebp - 0x418], eax
jmp 0x4022fb
mov eax, dword [ebp - 0x418]
test eax, eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x45c]
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push 0x8000000
je 0x40232b
push eax
push esi
push esi
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
jmp 0x40233c
push esi
push esi
push esi
push eax
push esi
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
cmovne esi, edi
cmp dword [ebp - 0x464], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402358
push dword [ebp - 0x464]
call edi
test ebx, ebx
je 0x40235f
push ebx
call edi
cmp dword [ebp - 0x474], 0
je 0x402370
push dword [ebp - 0x474]
call edi
cmp dword [ebp - 0x470], 0
je 0x402381
push dword [ebp - 0x470]
call edi
cmp dword [ebp - 0x460], 0
je 0x402392
push dword [ebp - 0x460]
call edi
mov eax, esi
jmp 0x402398
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409058
leave
ret
Function at 0x4023a7
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x20008
mov esi, ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40247a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor eax, eax
inc eax
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x402471
push edi
push dword [ebp - 0x10]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x402470
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 1
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x402460
xor ecx, ecx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x12
xor ebx, ebx
lea eax, [ebp - 0xc]
inc ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402460
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
cmovne esi, ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409058
leave
ret

Function at 0x40248a
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push 0
push eax
mov edi, edx
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
lea eax, [ebp - 0x414]
push ebx
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409058
leave
ret
Function at 0x40276d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00401ea5
test al, al
je 0x40280d
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4027bc
sub ecx, edx
sar ecx, 1
je 0x40280d
lea eax, [ebp - 0x20c]
test esi, esi
je 0x4027de
push str.GoogleChrome_BetaUser_Data_
jmp 0x4027e3
push str.GoogleChromeUser_Data_
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40280d
test al, 0x10
je 0x40280d
xor eax, eax
inc eax
jmp 0x40280f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409058
leave
ret
Function at 0x403d55
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
mov ebx, ecx
lea edi, [ebp - 0x210]
pop ecx
mov esi, str._unknown_
lea eax, [ebp - 0x1fc]
rep movsd dword es:[edi], dword [esi]
push 0x1f6
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x16
call fcn.004093af
push str.chrome.exe
mov esi, eax
mov dword [ebp - 0x220], edi
push 0xb
push esi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0x1c
push ebx
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x403ed1
cmp ebx, 0xffffffff
je 0x403ed1
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov esi, 0x105
test eax, eax
push esi
lea eax, [ebp - 0x210]
push eax
je 0x403e0e
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
jmp 0x403e25
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x210]
push eax
push str.chrome.exe
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x403e45
mov esi, dword [ebp - 0x21c]
jmp 0x403ea8
cmp dword [ebp - 0x220], edi
je 0x403eb4
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea eax, [ebp - 0x210]
push eax
call esi
push 0xb
push dword [ebp - 0x21c]
call esi
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov edx, eax
add esp, 0x18
test edx, edx
je 0x403eba
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x220], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x403e8f
sub ecx, dword [ebp - 0x220]
sar ecx, 1
cmp word [edx + ecx*2], di
jne 0x403eba
xor eax, eax
mov ecx, str._t_tFound_Match_:
lea edi, [eax + 1]
jmp 0x403ebf
mov esi, dword [ebp - 0x21c]
mov ecx, str._t_tChecking_:
lea edx, [ebp - 0x210]
call fcn.0040172d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00409066
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409058
leave
ret

Function at 0x403ee9
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00409fa0
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x403f49
mov edi, dword [ebp - 0x1008]
xor esi, esi
shr edi, 2
test edi, edi
je 0x403f49
mov ecx, dword [ebp + esi*4 - 0x1004]
test ecx, ecx
je 0x403f44
push ecx
call fcn.00403d55
pop ecx
test eax, eax
jne 0x403f59
inc esi
cmp esi, edi
jb 0x403f2e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409058
leave
ret
xor eax, eax
inc eax
jmp 0x403f4b