joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300079f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x3010ebcc], 0
je 0x30007a0e
mov eax, dword [0x3010ebc8]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.30007b02
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x30007ab8
mov edi, SysReAllocString
push edi
call esi
test eax, eax
je 0x3005ba43
lea ecx, [ebp - 4]
call fcn.30007b02
push eax
push ebx
xor ebx, ebx
push ebx
push 0x30007a7c
push edi
call esi
test eax, eax
je 0x3005ba7d
mov dword [0x3010ebc8], ebx
mov byte [0x3010ebcc], 1
cmp dword [ebp - 4], ebx
jne 0x3005bad0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
push 0x3010ebc8
push 0
push 0
push dword [0x30111870]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30007a41
cmp dword [ebp - 8], 4
jne 0x30007a41
cmp dword [ebp - 4], eax
jmp 0x3005bab1
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x3010ebc8
push ebx
push ebx
push dword [0x30111870]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30007a5e
cmp dword [ebp - 8], esi
jne 0x30007a5e
cmp dword [ebp - 4], ebx
mov esi, dword [0x3010ebc8]
mov byte [0x3010ebcc], 1
je 0x3005bac9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x30007a76
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x30007a74

Function at 0x30007ba6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.30007b02
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x3002471c
push SysReAllocString
call esi
test eax, eax
jne 0x30007c01
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.30007b02
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x300496ba
cmp dword [ebp - 4], ebx
jne 0x300496fe
cmp dword [ebp - 8], ebx
je 0x30007c0f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x300496e8
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30007bf8
jmp 0x3005ba0d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x30007c01
cmp dword [ebp + 8], esi
jne 0x30007bf8
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x30007bf8
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x3005ba32
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x3005ba3c
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x30007c11
Function at 0x30019674
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x3010e96c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
je 0x300196bd
mov eax, dword [0x3010e968]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x30053596
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x300196dc
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
call ebx
test eax, eax
js 0x30053576
mov dword [0x3010e96c], 1
jmp 0x3001968d
mov dword [ebp - 4], eax
test eax, eax
je 0x300196a0
jmp 0x300196b4
call ebx
test eax, eax
mov eax, dword [ebp + 8]
js 0x300535a1
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x300196b3
mov dword [edi], eax
jmp 0x300196aa
push 0x300535b8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x300535ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x3010e968], eax
jmp 0x300196c7
push dword [ebp + 0x10]
push eax
call esi
jmp 0x300196d3
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x300196ee

Function at 0x30019a5f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x3010eaf0], 0
push esi
jne 0x30019a76
call fcn.30019ae4
test eax, eax
je 0x3005b659
mov eax, dword [0x3010eaf0]
cmp eax, 1
je 0x3005b642
push eax
call dword [0x3010eaf8]
test eax, eax
jne 0x30019ae2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x3005b659
mov eax, dword [esi]
push edi
push dword [0x3010eaf0]
call dword [0x3010eaf8]
mov edi, eax
test edi, edi
jne 0x3005b65d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x3010eaf0]
call dword [0x3010eaf4]
add edi, 0x10
cmp edi, esi
jb 0x30019acb
mov eax, edi
pop edi
pop esi
ret
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x3005b659
pop esi
ret
xor eax, eax
pop esi
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x30019adf
Function at 0x3004ef2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x3003a2ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
xor eax, eax
mov ebx, ecx
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [edi], eax
mov esi, 0x20019
cmp ebx, eax
je 0x30058c8a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x3004ef94
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x30058cab
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x30058d26
cmp dword [ebp - 0x28], 0
jne 0x30058d30
cmp dword [ebp - 0x24], 0
pop esi
pop ebx
je 0x3004efbf
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
call fcn.30002772
leave
ret 4
test ebx, ebx
jne 0x3004ef60
jmp 0x3004ef8d
lea eax, [ebp - 0x28]
push eax
push esi
push dword [0x3010fcbc]
call dword [sym.imp.MSO.dll_Ordinal_5244]
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x3004efd0
jmp 0x3004ef8d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.Compatibility_Flags
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0x18
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x3004ef8d
cmp dword [ebp - 0x30], 4
jne 0x30058ce4
mov eax, dword [ebp - 0x1c]
jmp 0x30058d1f
cmp dword [ebp - 0x30], 1
jne 0x3004ef94
mov eax, dword [ebp - 0x34]
cmp eax, 4
jbe 0x3004ef94
shr eax, 1
lea ecx, [eax - 1]
cmp ecx, 0xb
jb 0x30058d10
mov dword [ebp - 0x20], 0x8000ffff
jmp 0x3004ef94
xor ecx, ecx
lea edx, [ebp - 0x18]
mov word [ebp + eax*2 - 0x1e], cx
call fcn.300aa3c5
mov dword [edi], eax
jmp 0x3004ef94
push dword [ebp - 0x2c]
call esi
jmp 0x3004efa4
push dword [ebp - 0x28]
call esi
jmp 0x3004efae
Function at 0x3006e3ad
Capabilities:
Create process on windows

Disassembly:
push 0x268
mov eax, 0x300e9e36
call fcn.300060f0
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov esi, 0x3006e510
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.MSO.dll_Ordinal_5919]
mov ecx, 0x104
cmp eax, ecx
jbe 0x3006e3fe
push ebx
push 0x7a7a7471
call dword [sym.imp.MSO.dll_Ordinal_1511]
mov esi, 0x8000ffff
jmp 0x3006e4e3
push ecx
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.MSO.dll_Ordinal_4324]
push ebx
test eax, eax
jne 0x3006e419
push 0x7a7a7472
jmp 0x3006e3ee
push ebx
push ebx
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSO.dll_Ordinal_3826]
mov esi, eax
cmp esi, ebx
jl 0x3006e4e3
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xf8]
test eax, eax
jne 0x3006e452
mov esi, 0x80004005
jmp 0x3006e4e3
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push 0x3006e520
push eax
call fcn.3001b96e
mov esi, eax
add esp, 0x10
cmp esi, ebx
jl 0x3006e4e3
push 0x44
pop edi
push edi
lea eax, [ebp - 0x274]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0xa
pop eax
mov word [ebp - 0x244], ax
mov dword [ebp - 0x274], edi
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
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x274]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x220]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x3006e448
push dword [ebp - 0x230]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x22c]
call edi
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], bl
call fcn.300067bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.300071b0
mov eax, esi
call fcn.30006126
ret

Function at 0x3006eb96
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x3006eba9
push 0xd
pop eax
jmp 0x3006ebd4
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x3006ebac
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x3006f1db
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x3003a2ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.3006bd8f
mov dword [ebp - 0x218], eax
cmp eax, esi
je 0x3006f26f
cmp eax, 2
je 0x3006f24d
cmp eax, 3
je 0x3006f24d
push eax
push ebx
push 0x3006f2f0
push esi
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.3001f4f4
add esp, 0x18
lea ecx, [ebp - 0x20c]
call fcn.3006bd74
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30002772
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x3006f28d
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.3006f1db
cmp eax, esi
jne 0x3006f2d5
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], pe_nt_image_headers32
call ebx
test eax, eax
je 0x3006f277
lea ecx, [ebp - 0x20c]
call fcn.3006bd74
push dword [ebp - 0x214]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.3006bd74
mov eax, esi
jmp 0x3006f25e
Function at 0x30070b34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x300ea26a
call fcn.300e7b6e
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push edi
call fcn.3006f4e2
mov dword [ebp - 0x420], eax
cmp eax, esi
jne 0x30070ba5
push edi
push 0x30070dfc
push esi
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.3001f4f4
add esp, 0x14
call fcn.3006bd5f
mov esi, eax
jmp 0x30070cfc
push dword [ebp - 0x41c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x30070bf0
mov eax, ebx
shr eax, 0x10
test ax, ax
mov eax, 0x30070da8
je 0x30070bcd
mov eax, 0x30070d50
push dword [ebp - 0x41c]
push ebx
push eax
push esi
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.3001f4f4
add esp, 0x18
call fcn.3006bd5f
jmp 0x30070cee
push edi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x430], eax
cmp eax, esi
jne 0x30070c1f
push 0x30070d20
push esi
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.3001f4f4
add esp, 0x10
jmp 0x30070be6
push edi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x30070c72
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x30070c54
lea ecx, [ebp - 0x418]
call fcn.300d7b17
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.300677e6
mov eax, esi
call fcn.300e7ba7
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.3006fa86
mov dword [ebp - 4], 1
jmp 0x30070ca0
cmp dword [ebp - 0x418], esi
jne 0x30070caf
mov esi, 0x8007000e
jmp 0x30070cf0
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x430]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x30070be6
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x428]
call fcn.300708bc
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x30070c59
lea ecx, [ebp - 0x418]
call fcn.300d7b17
jmp 0x30070c59

Function at 0x300875da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi]
push esi
call dword [eax + 4]
and dword [ebp - 8], 0
push 0x30111be8
push 0
push esi
push 0x30087425
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x30087637
mov eax, dword [esi]
push esi
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x30087639
and eax, 0xffff
or eax, 0x80070000
jmp 0x30087639
xor eax, eax
pop esi
leave
ret
Function at 0x300a79ef
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], edi
call fcn.30005b8e
test al, al
je 0x300a7a23
mov esi, 0x80070057
jmp 0x300a7b71
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x300a7a19
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x300a7a35
mov dword [eax], edi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.300163fc
mov esi, eax
cmp esi, edi
jl 0x300a7b71
cmp dword [ebp + 0x14], edi
je 0x300a7a58
push dword [ebp - 8]
call fcn.300a77f1
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ebx, eax
cmp dword [0x30111c6c], edi
jne 0x300a7aba
push 0xf0000000
push 1
push edi
push edi
push 0x30111c6c
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x300a7aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x300a7b6b
and eax, 0xffff
or eax, 0x80070000
jmp 0x300a7b6b
push edi
push fcn.300a77d5
push 0x3010e92c
call fcn.30005551
mov esi, eax
cmp esi, edi
jl 0x300a7b71
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8004
push dword [0x30111c6c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x300a7a83
push edi
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x300a7a83
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push 2
push dword [ebp - 4]
call esi
test eax, eax
je 0x300a7a83
push dword [ebp - 0xc]
call fcn.30002efd
mov ebx, eax
pop ecx
mov dword [ebp - 0x10], ebx
cmp ebx, edi
jne 0x300a7b17
mov esi, 0x8007000e
jmp 0x300a7b71
push dword [ebp - 0xc]
push edi
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call esi
test eax, eax
je 0x300a7a83
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x300a7b44
mov ecx, dword [ebx]
mov dword [eax], ecx
push dword [ebx + 4]
lea eax, [ebp - 0x14]
push dword [ebx]
push 0x300a7bb0
push eax
call fcn.300418ec
mov esi, eax
add esp, 0x10
cmp esi, edi
jl 0x300a7b71
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.30011afd
mov esi, eax
cmp esi, edi
jge 0x300a7b77
push edi
call fcn.300a77d5
cmp dword [ebp - 4], edi
je 0x300a7b85
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x10], edi
je 0x300a7b93
push dword [ebp - 0x10]
call fcn.30009d6e
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.300067bd
lea eax, [ebp - 0x14]
push eax
call fcn.30005cf0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x300a85fc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x3003a2ac]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x260], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x254], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
mov dword [ebp - 0x258], ebx
call fcn.30005b8e
test al, al
je 0x300a865c
mov esi, 0x80070057
jmp 0x300a883e
cmp edi, ebx
je 0x300a8652
mov dword [edi], ebx
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
mov edi, 0x30111c70
cmp bx, 4
jne 0x300a8681
push edi
call fcn.30005b8e
test al, al
je 0x300a8755
and dword [ebp - 0x25c], 0
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x300a86bf
push 0x300a8864
push esi
lea ecx, [ebp - 0x25c]
call fcn.3009a1f2
mov esi, eax
test esi, esi
jge 0x300a86dd
lea eax, [ebp - 0x25c]
push eax
call fcn.300067bd
jmp 0x300a883e
push 0x3010bc18
push 0x300a8864
push 0x3005ea98
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.3004280b
jmp 0x300a86a8
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x300a8749
test byte [ebp - 0x254], 0x10
je 0x300a8732
push 0x3005f118
lea eax, [ebp - 0x228]
push eax
call fcn.30005296
test eax, eax
jne 0x300a8732
push 0x3005f110
lea eax, [ebp - 0x228]
push eax
call fcn.30005296
test eax, eax
je 0x300a87c0
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x300a86fb
lea eax, [ebp - 0x25c]
push eax
call fcn.300067bd
push dword [ebp - 0x258]
call fcn.30005b8e
test al, al
je 0x300a8816
lea eax, [ebp - 0x258]
push eax
call fcn.300a805c
test eax, eax
jge 0x300a879a
lea eax, [ebp - 0x258]
push eax
call fcn.30005cf0
lea eax, [ebp - 0x258]
push eax
call fcn.300a7cff
mov esi, eax
test esi, esi
jl 0x300a8829
cmp bx, 4
jne 0x300a8816
push 0xffffffffffffffff
push dword [ebp - 0x258]
push 0x11
push edi
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
jne 0x300a8816
mov esi, 0x8007007a
jmp 0x300a8829
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.30011a90
mov esi, eax
test esi, esi
jge 0x300a87e7
lea eax, [ebp - 0x25c]
push eax
call fcn.300067bd
jmp 0x300a8829
cmp bx, 4
jne 0x300a8749
push 0xffffffffffffffff
lea eax, [ebp - 0x228]
push eax
push 0x11
push edi
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
jne 0x300a8749
mov esi, 0x8007007a
jmp 0x300a87d9
push dword [ebp - 0x264]
lea ecx, [ebp - 0x258]
call fcn.30011afd
mov esi, eax
cmp dword [ebp - 0x260], 0xffffffff
je 0x300a883e
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x258]
push eax
call fcn.30005cf0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.30002772
leave
ret 0xc
Function at 0x300a9492
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 0x2000
xor esi, esi
mov dword [ebp - 0xc], edi
call fcn.30005b8e
test al, al
je 0x300a94c0
mov edi, 0x80070057
jmp 0x300a9615
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x300a94b6
mov dword [eax], edi
mov dword [ebp - 4], ebx
call fcn.30005f5a
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jne 0x300a94ea
mov edi, 0x8007000e
jmp 0x300a9615
lea eax, [ebp - 4]
push eax
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
call edi
mov dword [ebp - 8], eax
test eax, eax
jne 0x300a9563
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300a954e
push ebx
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.30005f5a
push dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
jne 0x300a9535
mov edi, 0x8007000e
jmp 0x300a9606
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push 0
call edi
mov dword [ebp - 8], eax
test eax, eax
jne 0x300a9563
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x300a955c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x300a9606
push dword [esi + 8]
push dword [ebp + 8]
call fcn.30005bb9
test eax, eax
jne 0x300a95e9
mov edi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
push ebx
push 0
push esi
mov dword [ebp - 4], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call edi
test eax, eax
jne 0x300a95da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300a954e
push ebx
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.30005f5a
push dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
je 0x300a952b
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call edi
test eax, eax
je 0x300a9548
push dword [esi + 8]
push dword [ebp + 8]
call fcn.30005bb9
test eax, eax
je 0x300a9578
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.30011a90
mov edi, eax
test edi, edi
jl 0x300a9606
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.30011afd
cmp dword [ebp - 8], 0
je 0x300a9615
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
call fcn.30005f5a
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.30005cf0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8