joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14072550b
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
movzx cx, r14b
mov qword [rax + 0x18], rsi
dec cx
rcl ch, cl
mov qword [rax + 0x20], rdi
push r14
rol al, cl
ror rcx, cl
cwde
sub rsp, 0x20
stc
xor esi, esi
movsx ebx, dx
xchg ebx, eax
add bx, bp
xor r14d, r14d
sbb bl, 0x3d
sar bh, cl
movsxd rcx, esi
rcr al, cl
cdqe
movsx ebx, di
lea rdi, [0x1400cb290]
bt ax, 0x32
mov rax, rcx
shrd ebx, ebx, 0x96
dec ebx
movsx rbx, si
and ecx, 0x3f
sar rax, 6
rol bx, 0x11
lea rbx, [rcx + rcx*8]
clc
stc
mov rdi, qword [rdi + rax*8]
cmc
bsr ax, r14w
shr rax, cl
mov rax, qword [rdi + rbx*8 + 0x28]
cmc
add rax, 2
stc
cmp rax, 1
jbe 0x1407255ab
or byte [rdi + rbx*8 + 0x38], 0x80
jmp 0x1407255a6
jmp 0x1407256be
mov byte [rdi + rbx*8 + 0x38], 0x81
mov ecx, esi
test r14w, 0xf5af
clc
cmp spl, 0x8f
test esi, esi
jmp 0x1407255c4
je 0x1407255f9
sub ecx, 1
jmp 0x1407255d2
je 0x1407255ea
cmp ecx, 1
mov ecx, 0xfffffff4
jmp 0x1407255e5
jmp 0x1407255fe
mov ecx, 0xfffffff5
jmp 0x1407255f4
jmp 0x1407255fe
mov ecx, 0xfffffff6
call fcn.140442a4a
mov rbp, rax
rcl ch, 0xa4
lea rcx, [rax + 1]
cmp rcx, 1
jbe 0x140725626
mov rcx, rax
call fcn.1404c02e3
jmp 0x140725630
sub eax, eax
cmp r13w, 0x2c1b
stc
cmc
test eax, eax
jmp 0x140725637
je 0x14072567d
movzx ecx, al
mov qword [rdi + rbx*8 + 0x28], rbp
test r14b, r9b
cmp ecx, 2
jmp 0x140725650
jne 0x140725665
or byte [rdi + rbx*8 + 0x38], 0x40
jmp 0x140725660
jmp 0x1407256be
cmp ecx, 3
jne 0x1407256be
or byte [rdi + rbx*8 + 0x38], 8
jmp 0x140725678
jmp 0x1407256be
or byte [rdi + rbx*8 + 0x38], 0x40
shl ax, cl
mov qword [rdi + rbx*8 + 0x28], 0xfffffffffffffffe
cmovbe eax, r14d
bts rax, r13
mov rax, qword [0x1400cacc0]
test r8b, dl
test rax, rax
je 0x1407256be
mov rax, qword [r14 + rax]
jmp 0x1407256b2
mov dword [rax + 0x18], 0xfffffffe
jmp 0x1407256be
inc esi
add r14, 8
cmp esi, 3
jne 0x140725546
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
adc r14w, 0x719f
mov rsi, qword [rsp + 0x40]
test r12d, 0x49888980
rcl dil, cl
mov rdi, qword [rsp + 0x48]
and r14w, 0x433a
rcl r14b, 0x39
bswap r14w
add rsp, 0x20
movzx r14d, sp
movzx r14, r10w
pop r14
jmp 0x140725712
ret
Function at 0x140001100
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14000a834
test rax, rax
je 0x140001334
mov rbx, rax
movzx eax, word [r14 + rax*2 - 2]
cmp eax, 0x5c
je 0x14000132c
cmp eax, 0x2f
je 0x14000132c
mov rax, rbx
add rax, 2
lea r15, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r15
call fcn.14000a774
mov rdi, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000bd90
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, r14
call fcn.14000a784
mov rcx, rdi
call fcn.14000a7cc
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov qword [rcx], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140001338
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000136b
add ebx, ebx
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000136b
lea r9, [rsp + 0x34]
mov dword [r9], 4
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000136b
lea r14, [rsp + 0x30]
mov r15d, dword [r14]
mov rcx, r15
call fcn.14000a774
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000bd90
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000136b
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001295
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400012a7
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000a77c
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.14000a784
mov ebp, 1
cmp dword [rsp + 0x30], 0
je 0x140001303
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x30]
cmp r14, rax
jb 0x1400012e5
mov rdi, rbx
mov rcx, rdi
call fcn.14000a77c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140018730
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
dec rbx
jmp 0x14000114c
xor ebp, ebp
jmp 0x14000130e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x14000136b
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x40]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400011c8
xor ebp, ebp
jmp 0x140001306
Function at 0x140005330
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000a774
mov rsi, rax
mov rcx, r15
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400053cb
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x14002fada]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400053fb
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [r14], edx
movzx edx, word [rcx + 8]
mov dword [rbx], edx
movzx edx, word [rcx + 0xe]
mov dword [rdi], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x140005433
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005457
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x140005429
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005494
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.14000a020
xor edi, edi
mov rcx, rsi
call fcn.14000a77c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140018730
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140038330]
call fcn.14000aa30
cmp dword [0x140038330], 0xffffffff
jne 0x1400053ec
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000abc8
lea rcx, [0x140038330]
call fcn.14000aa98
jmp 0x1400053ec
lea rcx, [0x140038330]
call fcn.14000aa30
cmp dword [0x140038330], 0xffffffff
jne 0x14000541c
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000abc8
lea rcx, [0x140038330]
call fcn.14000aa98
jmp 0x14000541c
Function at 0x140006120
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x1400061e1
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000619c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000619c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000619c
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000626d
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.14000a020
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14000bd90
mov rcx, rsi
call fcn.14000a834
cmp rax, 0x104
ja 0x1400061e1
lea rdi, [rsp + 0x20]
mov r8d, 0x105
mov rcx, rdi
mov rdx, rsi
call fcn.14000a784
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x1400061fc
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140018730
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rdx, str.updater.ini
lea rcx, [rsp + 0x20]
call int.140025c40
test eax, eax
je 0x1400061e1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400061e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400061e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400061e1
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400062ae
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.14000a020
jmp 0x1400061e1
lea rcx, [0x140038330]
call fcn.14000aa30
cmp dword [0x140038330], 0xffffffff
jne 0x14000618d
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000abc8
lea rcx, [0x140038330]
call fcn.14000aa98
jmp 0x14000618d
lea rcx, [0x140038330]
call fcn.14000aa30
cmp dword [0x140038330], 0xffffffff
jne 0x140006257
mov qword [0x140038120], 0
lea rcx, [fcn.140001f60]
call fcn.14000abc8
lea rcx, [0x140038330]
call fcn.14000aa98
jmp 0x140006257
Function at 0x14000a020
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140038120], 0
je 0x14000a0ba
mov rsi, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9, qword [0x140038120]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.1400134f8
mov rbx, qword [rsp + 0x30]
mov rdi, qword [0x140038120]
call fcn.140001080
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r8, rsi
xor r9d, r9d
call fcn.14000c71c
mov r9, qword [0x140038120]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.1400134f8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140018730
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000a460
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140027010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000a4b6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000a834
cmp rax, 0x105
jb 0x14000a4cd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018730
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000a784
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call int.140025c40
test eax, eax
je 0x14000a4b6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a51a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000a4b6
lea rdx, str.UpdateLogs
mov rcx, rdi
call int.140025c40
test eax, eax
je 0x14000a4b6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a54f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000a4b6
mov esi, 1
jmp 0x14000a4b6

Function at 0x14000a620
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x468
mov esi, edx
mov rbx, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea r14, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000bd90
mov rcx, r14
call fcn.14000a460
test eax, eax
je 0x14000a696
xor edi, edi
lea r14, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000bd90
lea rdx, str..status
mov rcx, rbx
mov r8, r14
call fcn.14000a560
test eax, eax
jne 0x14000a6b5
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140018730
mov eax, edi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call int.140025c40
test eax, eax
je 0x14000a696
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000a696
mov rbx, rax
lea rdi, [rsp + 0x250]
mov rcx, rdi
mov r8d, esi
call fcn.140025bd0
mov rcx, rdi
call fcn.140013e40
mov rsi, rax
mov qword [rsp + 0x20], 0
lea r14, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne al
cmp dword [r14], esi
sete cl
and cl, al
movzx edi, cl
jmp 0x14000a696
Function at 0x14000fa9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000fbcc
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000fc33
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fc33
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fc33
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fc33
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fc33
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fc33
cmp dword [rcx + 0xf8], 0
je 0x14000fc33
mov ecx, ebx
call fcn.14000fb18
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000fd4c
cmp dword [rbp + 0x20], 0
je 0x14000fc80
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb74
int3

Function at 0x140012510
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400106d0
or eax, 0xffffffff
jmp 0x140012532
xor eax, eax
add rsp, 0x28
ret
Function at 0x140023350
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002335d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002336d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140023355
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140023385
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140023372
sub eax, 3
jb 0x14002339f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400233d6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400233c6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400233c4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400233b3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140023312
jmp 0x14002335d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x12e00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140023426
cmp rsi, rcx
jae 0x14002342e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002340d
cmp al, 0x8f
ja 0x14002340d
cmp byte [rsi - 2], 0xf
je 0x140023413
sub al, 0xe8
cmp al, 1
ja 0x1400233f7
cmp rsi, rcx
jae 0x14002342e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400233fd
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002342e
lodsb al, byte [rsi]
jmp 0x14002340d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x21000]
mov eax, dword [rdi]
or eax, eax
je 0x14002348b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x23390]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002343b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140023485
mov qword [rbx], rax
add rbx, 8
jmp 0x14002345b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400234c5
cmp al, 0xef
ja 0x1400234b7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140023497
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400234a6
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140023544], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140023544
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140023534
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x1400019f4
Capabilities:
Parse pe header

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

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b8b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b8b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f80
cmp rax, 0xffffffffffffffff
je 0x140027f80
xor edi, edi
test rbp, rbp
jle 0x140027f2b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001deb8
mov rbx, rax
test rax, rax
jne 0x140027eb8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027f21
mov edx, 0x8000
mov ecx, r14d
call fcn.140015968
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c590
cmp eax, 0xffffffff
je 0x140027f01
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027ec8
mov edx, r15d
mov ecx, r14d
call fcn.140015968
jmp 0x140027f21
cmp byte [rsi + 0x38], dil
je 0x140027f18
cmp dword [rsi + 0x34], 5
jne 0x140027f18
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027f21
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019f78
jmp 0x140027f94
jns 0x140027f94
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b8b4
cmp rax, 0xffffffffffffffff
jne 0x140027f4c
cmp byte [rsi + 0x30], dil
je 0x140027f94
mov edi, dword [rsi + 0x2c]
jmp 0x140027f94
mov ecx, r14d
call fcn.14001705c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027f94
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f8d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f92
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b8b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov edx, 0x58
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov rcx, rax
mov rbp, rax
lea r8d, [rdx + 0x58]
call fcn.140002f80
or byte [rsi + 0xc2], 2
lea r9, [0x1400010b0]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov byte [rsp + 0x30], 1
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov rcx, rbp
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeApc]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_KeInsertQueueApc]
test al, al
jne 0x140001091
lea rcx, [0x140003360]
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400012fd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140008fd0
sub rsp, 0x48
mov rax, qword [0x140017d30]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rsp + 0x50], rbx
cmp byte [0x140019910], 0x7b
lea r8, [0x140019910]
mov qword [rsp + 0x58], rsi
mov esi, ecx
je 0x14000900f
mov rax, r8
inc ecx
lea rax, [rax + 1]
cmp byte [rax], 0x7b
jne 0x140009004
inc ecx
movsxd rdx, ecx
add rdx, r8
cmp byte [rdx], 0x20
jne 0x14000902b
nop dword [rax]
inc ecx
lea rdx, [rdx + 1]
cmp byte [rdx], 0x20
je 0x140009020
movsxd rbx, ecx
add rbx, r8
movzx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x140009071
mov qword [rsp + 0x40], rdi
lea rdi, [rsp + 0x20]
nop dword [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
movzx ecx, byte [rbx]
inc esi
mov byte [rdi], al
lea rdi, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
jne 0x140009050
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
movsxd rax, esi
mov rsi, qword [rsp + 0x58]
cmp rax, 0x14
jae 0x1400090e1
mov byte [rsp + rax + 0x20], 0
mov rcx, 0xffffffffffffffff
lea rax, [rsp + 0x20]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140009095
inc rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
lea rcx, [rsp + 0x20]
sub r8, rcx
lea rdx, [rsp + 0x20]
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [r8 + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400090c0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400012e4
add rsp, 0x48
ret
call fcn.140001415
int3

Function at 0x140001311
Capabilities:
Terminate process

Disassembly:
jmp 0x140008a80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [0x14001989c]
mov rdi, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str.Error:_illegal_character_s____s__detected_at_line__d:_n
mov rcx, rax
mov r8, rdi
call fcn.1400014f6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [0x140018600]
lea rdx, [0x140013ab4]
call fcn.1400014f6
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14000133e
Capabilities:
Terminate process

Disassembly:
jmp 0x14000b564
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]