joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140003ad1
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140003ad1
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x1400039db
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140003af8
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400039f2
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x1400039f2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140003a05
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140003a52
mov r9d, eax
cmp eax, 0x800
jae 0x140003a1f
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140003a52
cmp eax, 0x10000
jae 0x140003a39
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140003a52
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140003ad1
add qword [r14], 2
test sil, sil
jne 0x140003a73
cmp r10d, 3
jae 0x140003a7f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x140003aae
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x140003a90
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14000398f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140003adf
Function at 0x1400059e0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf0], rax
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x140005b2a
lea edx, [rax + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400031a0
lea rcx, [rsp + 0x70]
call fcn.140002ac0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14000b310]
call fcn.140003fc0
nop
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140003b10
nop
lea rcx, [rsp + 0x30]
call fcn.140002df0
lea rcx, [rsp + 0x50]
call fcn.1400031b0
mov dword [rsp + 0x28], 1
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rax
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x140005b23
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140002e50
nop
lea rcx, [rsp + 0x70]
call fcn.140002e60
mov edx, 0x78
lea rcx, [rsp + 0x70]
call fcn.1400031a0
lea rcx, [rsp + 0x70]
call fcn.140002ac0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14000b310]
call fcn.140003fc0
nop
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140003b10
nop
lea rcx, [rsp + 0x30]
call fcn.140002df0
lea rcx, [rsp + 0x50]
call fcn.1400031b0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rax
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x140005a90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
nop
mov rcx, qword [0x14000b310]
call fcn.140004bb0
mov rcx, qword [0x14000b310]
call fcn.1400043e0
mov rcx, qword [0x14000b310]
call fcn.1400052c0
nop
mov rcx, qword [0x14000b310]
call fcn.140004760
jmp 0x140005b50

Function at 0x140006618
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14002456d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002457d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140024565
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140024595
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140024582
sub eax, 3
jb 0x1400245af
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400245e6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400245d6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400245d4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400245c3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140024522
jmp 0x14002456d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140024632
cmp rsi, rcx
jae 0x14002463a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140024619
cmp al, 0x8f
ja 0x140024619
cmp byte [rsi - 2], 0xf
je 0x14002461f
sub al, 0xe8
cmp al, 1
ja 0x140024603
cmp rsi, rcx
jae 0x14002463a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140024609
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002463a
lodsb al, byte [rsi]
jmp 0x140024619
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x22000]
mov eax, dword [rdi]
or eax, eax
je 0x140024697
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x244ec]
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 0x140024647
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 0x140024691
mov qword [rbx], rax
add rbx, 8
jmp 0x140024667
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 0x1400246d1
cmp al, 0xef
ja 0x1400246c3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400246a3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400246b2
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.140024750], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140024750
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140024740
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x14001123a
Capabilities:
Terminate process

Disassembly:
jmp 0x140014800
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112d0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015b40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015b60
xor al, al
jmp 0x140015be1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015b73
xor al, al
jmp 0x140015be1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015b9d
xor al, al
jmp 0x140015be1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015bb1
xor al, al
jmp 0x140015be1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015bc3
xor al, al
jmp 0x140015be1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015bdf
xor al, al
jmp 0x140015be1
mov al, 1
add rsp, 0x38
ret
Function at 0x140005040
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400050d0
jmp 0x1400050bf
jae 0x140005190
cmp r8, 0x201
jae 0x1400050d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140005128
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400050ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001b150
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140005151
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400051f8
mov r8d, r14d
cmp r15, r8
jne 0x1400050b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000521b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400050bf
jmp 0x1400050d0
cmp rsi, r8
jb 0x140005235
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140007100
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400051e1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call int.140001250
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400051c9
jmp 0x1400051e1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001bbf0
jmp 0x14000524a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001bfe0
ud2
Function at 0x14000bfb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001ed08]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000bff4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c05a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c091
test eax, eax
js 0x14000c06b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c084
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140002a70
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140006d80
mov rcx, rax
call fcn.140002ec0
mov ecx, 7
int 0x29
ud2
Function at 0x140019090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001910a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140019100
cmp r11, r10
ja 0x1400191a3
cmp r10, rdx
ja 0x1400191b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140019102
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400190e0
jmp 0x140019177
ja 0x14001910a
mov r11, r10
cmp rax, r8
jne 0x1400190b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001917b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140019150
mov r8, r10
sub ecx, r9d
jns 0x14001916e
jmp 0x14001917d
cmp r10, rdx
je 0x140019189
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001917d
xor al, 1
cmp r8, rdx
jne 0x140019130
jmp 0x14001917d
xor eax, eax
jmp 0x14001917d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001bbf0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c050
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001bfe0
ud2

Function at 0x14001abb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001abfe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001abfe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001abfe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001abfe
cmp dword [rcx + 0x84], 0xe
jbe 0x14001abfe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ac00
xor al, al
add rsp, 0x28
ret
Function at 0x1407a0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407a01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407a0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407a006f
add dl, dl
jne 0x1407a0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407a00f6
xor eax, eax
add dl, dl
jne 0x1407a00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407a01ad
add dl, dl
jne 0x1407a00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407a00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407a007e
mov eax, 1
add dl, dl
jne 0x1407a0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407a00fb
sub eax, ebx
mov ebx, 1
jne 0x1407a014c
mov ecx, 1
add dl, dl
jne 0x1407a012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407a013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407a0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407a007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407a0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407a0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407a015d
cmp eax, 0x7d00
jae 0x1407a019b
cmp eax, 0x500
jb 0x1407a0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407a007e
cmp eax, 0x7f
ja 0x1407a019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407a007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407a01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407a007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400be008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r9
mov dword [rsp + 0x30], edx
mov rbx, r8
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
mov r9d, 0x18
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400010fd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400010fd
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400010fd
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400010fd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400010fd
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
jmp 0x140001102
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400babb0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400bb4c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400bb50a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400bb50a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400bb50a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400bb50a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400bb50a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400bb50c
xor al, al
add rsp, 0x28
ret
Function at 0x1409f2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409f21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409f2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409f206f
add dl, dl
jne 0x1409f2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409f20f6
xor eax, eax
add dl, dl
jne 0x1409f20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409f21ad
add dl, dl
jne 0x1409f20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409f20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409f207e
mov eax, 1
add dl, dl
jne 0x1409f2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409f2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409f20fb
sub eax, ebx
mov ebx, 1
jne 0x1409f214c
mov ecx, 1
add dl, dl
jne 0x1409f212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409f213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409f2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409f207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409f2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409f2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409f215d
cmp eax, 0x7d00
jae 0x1409f219b
cmp eax, 0x500
jb 0x1409f2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409f207e
cmp eax, 0x7f
ja 0x1409f219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409f207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409f21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409f207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6d8947e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8b55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d894968
mov rax, qword [0x6d8b55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d89482c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8948b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d894810
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d89499d
mov rax, qword [0x6d8b55e8]
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 [0x6d8b55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d894980
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8948ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d894910
add dword [0x6d8b55e4], 1
cmp edi, 8
jae 0x6d8948e3
test dil, 4
jne 0x6d894954
test edi, edi
je 0x6d8948d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d89496f
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 0x6d8948d8
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 0x6d8948fc
jmp 0x6d8948d8
add rsi, qword [0x6d8b55e8]
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 0x6d8948ae
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 0x6d8948d8
xor esi, esi
jmp 0x6d894837
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8948d8
mov rax, qword [0x6d8b55e8]
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 0x6d8950f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8b58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8b58a0]
test rbx, rbx
je 0x6d895144
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 0x6d89513b
test rsi, rsi
je 0x6d89513b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d895120
lea rcx, [0x6d8b58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]