joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3c670b3c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x48e941b0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4013ae
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 0x401404
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401404
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4013f6
cmp esi, ecx
jae 0x401404
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4013e4
cmp esi, ecx
jae 0x401404
cmp word [esi], 0
je 0x401404
mov eax, esi
jmp 0x401406
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4016a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41000c]
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 0x401736
mov eax, dword [0x4106bc]
test eax, eax
jne 0x401726
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 0x40957c
lea eax, [ebp - 0x10c]
push eax
push 0x4106bc
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [0x4106bc]
add esp, 0x18
test eax, eax
je 0x401736
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.004073d5
leave
ret
Function at 0x4017e4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x41000c]
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 0x401858
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40186f
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401876
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40197d
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401899
test esi, esi
je 0x40186f
push esi
jmp 0x401869
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 0x4018e6
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 0x401943
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
neg eax
sbb eax, eax
and dword [ebp - 0x418], eax
call fcn.0040176f
cmp eax, dword [ebp - 0x418]
je 0x40195b
lea eax, [ebp - 0x648]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401899
jmp 0x401961
mov edi, dword [ebp - 0x640]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40196e
push esi
call ebx
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x40197b
push eax
call ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret
Function at 0x40198c
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x408463
call fcn.00408335
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 0x401b46
push 0x4095cc
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 0x401b46
lea ecx, [ebp - 0x218]
call fcn.004017e4
test eax, eax
je 0x401b46
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401b46
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 0x401b3b
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 0x401b2b
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 0x401b27
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 0x401b13
lea eax, [ebp - 0x23c]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x401b03
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
call fcn.00404612
push 0x409540
lea ecx, [ebp - 0x230]
call fcn.00404612
push dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
call fcn.004010dc
test eax, eax
je 0x401b05
xor esi, esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401b15
xor esi, esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401b2d
xor esi, esi
jmp 0x401b2d
mov esi, ebx
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b3d
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b48
mov esi, ebx
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x401b89
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b80
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00407851
pop ecx
pop ecx
mov eax, esi
call fcn.004082f0
ret
Function at 0x401c78
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x4084a2
call fcn.00408335
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 0x401e3c
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401e3c
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
call fcn.004014c4
test eax, eax
je 0x401e80
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 0x401d17
movzx eax, ax
lea ecx, [ebp - 0x14]
push eax
call fcn.00404bf7
jmp 0x401d3f
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401d20
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00404e40
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
push esi
call fcn.00404a05
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.00404c74
mov eax, dword [ebp - 0x14]
mov ecx, str.explorer.exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401d95
test dx, dx
je 0x401d91
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401d95
add eax, 4
add ecx, 4
test dx, dx
jne 0x401d6f
mov eax, edi
jmp 0x401d9c
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
test eax, eax
jne 0x401e15
push dword [ebp - 0x240]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401e74
cmp esi, 0xffffffff
je 0x401e74
lea eax, [ebp - 0x24c]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401e12
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.00401b91
add esp, 0xc
test eax, eax
jne 0x401e44
push dword [ebp - 0x24c]
call ebx
push esi
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404a41
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401cdc
xor eax, eax
call fcn.004082f0
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.00404a41
mov eax, edi
jmp 0x401e3e
push 0x80004005
call fcn.00401314
int3
Function at 0x401e8c
Capabilities:
Get common file path

Disassembly:
push 0xe34
mov eax, 0x4084dc
call fcn.00408335
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.0040198c
test eax, eax
mov edi, 0x104
lea eax, [ebp - 0x21c]
je 0x401ef5
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 0x401f02
push 0x409544
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.00406d16
mov edx, esi
mov ecx, str.GetUserLocalAppDataFolder_:_:_folderpath_via_registry_:
call fcn.004016a0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401f57
sub ecx, edx
sar ecx, 1
jne 0x40200b
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.00401c78
pop ecx
test eax, eax
je 0x401ff0
lea eax, [ebp - 0xe30]
mov dword [ebp - 0xe30], ebx
push eax
push dword [ebp - 0xe34]
push ebx
push 0x409370
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 0x402004
push ebx
push 0x1c
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40200d
mov ecx, str.GetUserLocalAppDataFolder_:_:_folderpath_old_:
mov edx, esi
call fcn.004016a0
mov bl, 1
mov al, bl
call fcn.004082f0
ret
Function at 0x40270e
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41000c]
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.0040785f
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 0x40288a
cmp ebx, 0xffffffff
je 0x40288a
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 0x4027c7
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
jmp 0x4027de
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 0x402868
cmp dword [ebp - 0x220], edi
je 0x40285b
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 0x402861
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x220], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x402840
sub ecx, dword [ebp - 0x220]
sar ecx, 1
cmp word [edx + ecx*2], di
je 0x40286e
jmp 0x402861
mov esi, dword [ebp - 0x21c]
mov ecx, str._t_tChecking_:
jmp 0x402878
mov esi, dword [ebp - 0x21c]
xor eax, eax
mov ecx, str._t_tFound_Match_:
lea edi, [eax + 1]
lea edx, [ebp - 0x210]
call fcn.004016a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004073e6
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073d5
leave
ret

Function at 0x4028a2
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004083c0
mov eax, dword [0x41000c]
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 0x402902
mov edi, dword [ebp - 0x1008]
xor esi, esi
shr edi, 2
test edi, edi
je 0x402902
mov ecx, dword [ebp + esi*4 - 0x1004]
test ecx, ecx
je 0x4028fd
push ecx
call fcn.0040270e
pop ecx
test eax, eax
jne 0x402912
inc esi
cmp esi, edi
jb 0x4028e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004073d5
leave
ret
xor eax, eax
inc eax
jmp 0x402904
Function at 0x402fc1
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 [0x41000c]
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 0x4030ba
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 0x4030ba
cmp dword [ebp - 0x20], esi
je 0x4030c9
push esi
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4030ba
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 0x4030ba
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.004031e5
pop ecx
pop ecx
test eax, eax
je 0x4030ba
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004032b9
pop ecx
pop ecx
test eax, eax
je 0x4030ba
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.004030eb
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x20], 0
je 0x4030c9
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x24], 0
je 0x4030da
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.004073d5
leave
ret
Function at 0x4030eb
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41000c]
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 0x403142
movzx esi, byte [ecx + eax]
inc ecx
cmp ecx, 8
jae 0x403144
movzx edi, byte [ecx + eax]
inc ecx
jmp 0x403146
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 0x403121
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.004073d5
leave
ret
Function at 0x403ed6
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 0x403ef9
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 0x403fa7
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 0x403f1a
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x403f1c
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x403f9b
jg 0x403f2f
test esi, esi
je 0x403f9b
test ecx, ecx
jl 0x403f7d
jg 0x403f39
test eax, eax
je 0x403f7d
cmp edi, ecx
jg 0x403f4b
jl 0x403f43
cmp esi, eax
jae 0x403f4b
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 0x403f9b
jg 0x403f80
test esi, esi
je 0x403f9b
jmp 0x403f80
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x403f9b
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