joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a15
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x409d33
call fcn.00409b65
mov dword [ebp - 0x240], ecx
xor ebx, ebx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
xor esi, esi
push eax
inc esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x401bcf
push 0x40b5fc
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x401bcf
lea ecx, [ebp - 0x218]
call fcn.0040186d
test eax, eax
je 0x401bcf
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401bcf
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], ebx
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401bc4
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], ebx
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401bb4
push dword [ebp - 0x234]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x401bb0
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
push ebx
push esi
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401b9c
lea eax, [ebp - 0x23c]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x401b8c
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
call fcn.00405435
push 0x40b570
lea ecx, [ebp - 0x230]
call fcn.00405435
push dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
call fcn.0040110c
test eax, eax
je 0x401b8e
xor esi, esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401b9e
xor esi, esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401bb6
xor esi, esi
jmp 0x401bb6
mov esi, ebx
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401bc6
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401bd1
mov esi, ebx
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x401c12
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c09
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040908b
pop ecx
pop ecx
mov eax, esi
call fcn.00409b20
ret
Function at 0x401d01
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x409d72
call fcn.00409b65
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push 2
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x401ec5
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401ec5
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
call fcn.0040154d
test eax, eax
je 0x401f09
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 4], edi
test eax, 0xffff0000
jne 0x401da0
movzx eax, ax
lea ecx, [ebp - 0x14]
push eax
call fcn.00405ad9
jmp 0x401dc8
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401da9
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d22
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
push esi
call fcn.00405880
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.00405b56
mov eax, dword [ebp - 0x14]
mov ecx, str.explorer.exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e1e
test dx, dx
je 0x401e1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e1e
add eax, 4
add ecx, 4
test dx, dx
jne 0x401df8
mov eax, edi
jmp 0x401e25
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
test eax, eax
jne 0x401e9e
push dword [ebp - 0x240]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401efd
cmp esi, 0xffffffff
je 0x401efd
lea eax, [ebp - 0x24c]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401e9b
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.00401c1a
add esp, 0xc
test eax, eax
jne 0x401ecd
push dword [ebp - 0x24c]
call ebx
push esi
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004058bc
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401d65
xor eax, eax
call fcn.00409b20
ret
push dword [ebp - 0x25c]
xor eax, eax
inc eax
push eax
push eax
push edi
push 0x2000000
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 1
pop ecx
push dword [ebp - 0x24c]
test eax, eax
cmovne edi, ecx
call ebx
push esi
call ebx
lea ecx, [ebp - 0x14]
call fcn.004058bc
mov eax, edi
jmp 0x401ec7
push 0x80004005
call fcn.0040139d
int3
Function at 0x401f14
Capabilities:
Get common file path

Disassembly:
push 0xe34
mov eax, 0x409dac
call fcn.00409b65
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.00401a15
test eax, eax
mov edi, 0x104
lea eax, [ebp - 0x21c]
je 0x401f7d
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 0x401f8a
push 0x40b574
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.0040849b
mov edx, esi
mov ecx, str.GetUserLocalAppDataFolder_:_:_folderpath_via_registry_:
call fcn.00401729
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401fdf
sub ecx, edx
sar ecx, 1
jne 0x402093
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.00401d01
pop ecx
test eax, eax
je 0x402078
lea eax, [ebp - 0xe30]
mov dword [ebp - 0xe30], ebx
push eax
push dword [ebp - 0xe34]
push ebx
push 0x40b3a0
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 0x40208c
push ebx
push 0x1c
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402095
mov ecx, str.GetUserLocalAppDataFolder_:_:_folderpath_old_:
mov edx, esi
call fcn.00401729
mov bl, 1
mov al, bl
call fcn.00409b20
ret
Function at 0x40209d
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x409de6
call fcn.00409b65
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.0040849b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004011c7
test eax, eax
js 0x402119
cmp dword [ebp - 0x21c], esi
jne 0x402166
push ecx
push ecx
lea eax, [ebp - 0x218]
push eax
push edi
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
call fcn.0040849b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004011c7
test eax, eax
js 0x40214c
cmp dword [ebp - 0x21c], 0
jne 0x402166
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 0x40216f
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 0x4021bc
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 0x40221e
lea edx, [ebp - 0x218]
mov ecx, str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
jmp 0x40222d
mov edi, 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40220a
cmp eax, edi
ja 0x40220a
push 0x40b570
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 0x4021fd
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call edi
add esp, 0xc
test eax, eax
je 0x40221e
lea edx, [ebp - 0x218]
mov ecx, str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
jmp 0x40222d
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 0x402223
xor esi, esi
inc esi
jmp 0x402232
mov edx, 0x40b524
mov ecx, str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.00401729
mov eax, esi
call fcn.00409b20
ret
Function at 0x40223a
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x41300c]
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.0040209d
test eax, eax
je 0x4023f9
lea ecx, [ebp - 0x414]
call fcn.0040186d
mov ebx, eax
test ebx, ebx
je 0x4023f9
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 0x4023a4
lea eax, [ebp - 0x464]
push eax
push 0xb
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4023a4
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 0x4023a4
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]
neg eax
sbb eax, eax
and dword [ebp - 0x418], eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x45c]
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push 0x8000000
je 0x40238e
push eax
push esi
push esi
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
jmp 0x40239f
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 0x4023bb
push dword [ebp - 0x464]
call edi
test ebx, ebx
je 0x4023c2
push ebx
call edi
cmp dword [ebp - 0x474], 0
je 0x4023d3
push dword [ebp - 0x474]
call edi
cmp dword [ebp - 0x470], 0
je 0x4023e4
push dword [ebp - 0x470]
call edi
cmp dword [ebp - 0x460], 0
je 0x4023f5
push dword [ebp - 0x460]
call edi
mov eax, esi
jmp 0x4023fb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret
Function at 0x40240a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41300c]
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 0x4024dd
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 0x4024d4
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 0x4024d3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 1
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x4024c3
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 0x4024c3
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.00408c0f
leave
ret

Function at 0x4024ed
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41300c]
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.00408c0f
leave
ret
Function at 0x403265
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41300c]
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.00409099
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 0x4033e1
cmp ebx, 0xffffffff
je 0x4033e1
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 0x40331e
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
jmp 0x403335
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
je 0x4033bf
cmp dword [ebp - 0x220], edi
je 0x4033b2
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 0x4033b8
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x220], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x403397
sub ecx, dword [ebp - 0x220]
sar ecx, 1
cmp word [edx + ecx*2], di
je 0x4033c5
jmp 0x4033b8
mov esi, dword [ebp - 0x21c]
mov ecx, str._t_tChecking_:
jmp 0x4033cf
mov esi, dword [ebp - 0x21c]
xor eax, eax
mov ecx, str._t_tFound_Match_:
lea edi, [eax + 1]
lea edx, [ebp - 0x210]
call fcn.00401729
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00408c20
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret

Function at 0x4033f9
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00409c90
mov eax, dword [0x41300c]
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 0x403459
mov edi, dword [ebp - 0x1008]
xor esi, esi
shr edi, 2
test edi, edi
je 0x403459
mov ecx, dword [ebp + esi*4 - 0x1004]
test ecx, ecx
je 0x403454
push ecx
call fcn.00403265
pop ecx
test eax, eax
jne 0x403469
inc esi
cmp esi, edi
jb 0x40343e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408c0f
leave
ret
xor eax, eax
inc eax
jmp 0x40345b
Function at 0x403d4d
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], 0x10
push 0xf0000040
xor ecx, ecx
mov dword [ebp - 0x24], eax
inc ecx
mov dword [ebp - 0x20], eax
push ecx
push eax
push eax
mov esi, eax
mov ebx, edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403e46
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403e46
cmp dword [ebp - 0x20], esi
je 0x403e55
push esi
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403e46
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x403e46
mov eax, ebx
mov ecx, edi
shr eax, 2
test bl, 4
lea ebx, [eax - 1]
cmove ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov edx, ebx
push eax
call fcn.00403f71
pop ecx
pop ecx
test eax, eax
je 0x403e46
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00404045
pop ecx
pop ecx
test eax, eax
je 0x403e46
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0xc]
xor eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
call fcn.00403e77
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x20], 0
je 0x403e55
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x24], 0
je 0x403e66
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c0f
leave
ret
Function at 0x403e77
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x88]
push 0x20
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 0x90], eax
rep movsd dword es:[edi], dword [esi]
mov ebx, edx
xor edx, edx
xor ecx, ecx
movsw word es:[edi], word [esi]
movzx esi, byte [ecx + eax]
inc ecx
mov dword [ebp - 0x8c], esi
cmp ecx, 8
jae 0x403ece
movzx esi, byte [ecx + eax]
inc ecx
cmp ecx, 8
jae 0x403ed0
movzx edi, byte [ecx + eax]
inc ecx
jmp 0x403ed2
xor esi, esi
xor edi, edi
mov eax, dword [ebp - 0x8c]
shr eax, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2], ax
mov eax, dword [ebp - 0x8c]
and eax, 3
shl eax, 4
mov dword [ebp - 0x8c], eax
mov eax, esi
shr eax, 4
and esi, 0xf
or dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
shl esi, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 2], ax
mov eax, edi
shr eax, 6
and edi, 0x3f
or esi, eax
mov ax, word [ebp + esi*2 - 0x88]
mov word [ebx + edx*2 + 4], ax
mov ax, word [ebp + edi*2 - 0x88]
mov word [ebx + edx*2 + 6], ax
add edx, 4
mov eax, dword [ebp - 0x90]
cmp ecx, 8
jb 0x403ead
mov ecx, dword [ebp - 4]
push 0x3d
pop eax
mov word [ebx + edx*2 - 2], ax
xor ecx, ebp
xor eax, eax
pop edi
mov word [ebx + edx*2], ax
inc eax
pop esi
pop ebx
call fcn.00408c0f
leave
ret
Function at 0x404cdc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x404cff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x404dad
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x404d20
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x404d22
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x404da1
jg 0x404d35
test esi, esi
je 0x404da1
test ecx, ecx
jl 0x404d83
jg 0x404d3f
test eax, eax
je 0x404d83
cmp edi, ecx
jg 0x404d51
jl 0x404d49
cmp esi, eax
jae 0x404d51
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x404da1
jg 0x404d86
test esi, esi
je 0x404da1
jmp 0x404d86
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x404da1
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc