joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d33c
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x14007d38b
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x14007d362
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x14007d910
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007d994
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008b2a0]
cmp byte [rcx + rax], 0
je 0x14007d994
dec r8
sub rdx, 1
jne 0x14007d97a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007eaf0
Capabilities:
Parse pe header

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

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

Function at 0x1400026d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140046360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002749
mov rcx, r10
call fcn.1400025a0
test eax, eax
je 0x140002749
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002746
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000273d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002749
add r8, 0x28
cmp r8, r9
jne 0x140002728
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
mov edx, 0x962d8166
add eax, 0x7af61fda
invalid
jbe 0x140020912
adc edi, esi
adc byte [rdi], sil
mov bh, byte [rdi]
pop rbx
mov dh, 0x3f
cmp al, 0x3d
sub eax, 0xff5e272d
and edx, esp
and eax, 0xd8bf3534
pop rsi
pop rax
pop rbp
mov cl, 0x25
push rbp
sbb al, 0x5c
pop rsp
add ch, cl
sub dword [rdx], edx
pop rbx
retf 0x7e6c
test al, 0x17
add esi, edx
jb 0x140020985
test byte [rbp + 0x4767d6b], dl
pop rbp
pop rdi
invalid
Function at 0x140012f00
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x140036a48]
test rcx, rcx
je 0x140012f59
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012f4c
mov rcx, qword [0x140036a48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140036a48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140039260], 1
jne 0x14001301f
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
lea rsi, [0x140036a60]
mov qword [rsp + 0x30], rsi
lea rbx, [0x14002cb74]
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax]
mov rcx, rsi
call r15
cmp eax, 0xffffffff
je 0x14001301f
and eax, 0x10
je 0x14001301f
mov ecx, 0x64
call r12
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
mov rcx, r14
call rdi
add ebp, 0xffffffff
jne 0x140012fd0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014a30
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140014800
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.1400149d0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x140036a50]
test eax, eax
je 0x140014835
test eax, eax
jg 0x14001487d
jmp 0x1400148b3
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140012700
test al, al
je 0x14001493b
lea rcx, [rsp + 0x20]
call fcn.140019760
movsxd rcx, dword [0x140036a50]
lea rdx, [0x140043ac0]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140036a50], eax
test eax, eax
jle 0x1400148b3
lea rdi, [0x140043ac0]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001a1c4
test eax, eax
je 0x14001491c
add rbx, 1
movsxd rax, dword [0x140036a50]
add rdi, 8
cmp rbx, rax
jl 0x140014890
mov rcx, rsi
call fcn.14001a1fc
cmp rax, 2
jne 0x1400148ca
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x14001491e
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400148e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x14001491e
cmp dword [0x140036a50], 0x3ff
jg 0x14001491e
mov rcx, rsi
call fcn.140019760
movsxd rcx, dword [0x140036a50]
lea rdx, [0x140043ac0]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140036a50], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140014a30
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140013650
int3

Function at 0x1400186a8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400187d8
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 0x14001883f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001883f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001883f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001883f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001883f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001883f
cmp dword [rcx + 0xf8], 0
je 0x14001883f
mov ecx, ebx
call fcn.140018724
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.140018958
cmp dword [rbp + 0x20], 0
je 0x14001888c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018780
int3
Function at 0x100013c0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8b, byte [rdx + rax]
xor byte [rcx + rax], r8b
inc rax
cmp rax, 0x10
jne 0x100013c2
ret

Function at 0x10002080
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x100
xor eax, eax
mov r11d, edx
mov rbx, rsp
mov byte [rax + rbx], al
inc rax
cmp rax, 0x100
jne 0x10002092
xor r10d, r10d
xor edi, edi
mov eax, r10d
mov sil, byte [rbx + r10]
cdq
idiv r11d
movsxd rdx, edx
mov al, byte [rcx + rdx]
add eax, esi
add eax, edi
movzx edi, al
movzx eax, al
mov dl, byte [rsp + rax]
mov byte [rbx + r10], dl
inc r10
mov byte [rsp + rax], sil
cmp r10, 0x100
jne 0x100020a5
xor ecx, ecx
xor ebx, ebx
xor r11d, r11d
cmp r9d, ecx
jbe 0x10002119
lea edx, [rbx + 1]
movzx ebx, dl
movzx edx, dl
mov al, byte [rsp + rdx]
lea r10d, [rax + r11]
movzx r11d, r10b
movzx r10d, r10b
mov sil, byte [rsp + r10]
mov byte [rsp + rdx], sil
mov byte [rsp + r10], al
add al, byte [rsp + rdx]
movzx eax, al
mov al, byte [rsp + rax]
xor byte [r8 + rcx], al
inc rcx
jmp 0x100020de
add rsp, 0x100
pop rbx
pop rsi
pop rdi
ret

Function at 0x10002250
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x38
xor r10d, r10d
mov r11, rdx
mov al, byte [rcx + r10]
mov byte [r11 + r10], al
inc r10
cmp r10, 0x10
jne 0x1000225c
lea rsi, [r11 + 0x10]
mov ebx, 1
lea rcx, [rsp + 0x2c]
mov edx, r10d
xor eax, eax
mov r8b, byte [rsi + rax - 4]
inc rax
mov byte [rax + rcx - 1], r8b
cmp rax, 4
jne 0x10002280
and dl, 0xf
jne 0x100022a2
movzx edx, bl
inc ebx
call fcn.100022e0
mov rdx, r10
xor eax, eax
mov r8b, byte [r11 + rdx - 0x10]
xor r8b, byte [rcx + rax]
inc rax
mov byte [r11 + rdx], r8b
inc rdx
cmp rax, 4
jne 0x100022a7
add r10, 4
add rsi, 4
cmp r10, 0xb0
jne 0x1000227b
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x10003310
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x100
xor eax, eax
mov r11d, edx
mov rbx, rsp
mov byte [rax + rbx], al
inc rax
cmp rax, 0x100
jne 0x10003322
test rcx, rcx
jne 0x10003342
mov r11d, 0x10
lea rcx, str._l___r3__v_
xor r10d, r10d
xor edi, edi
mov eax, r10d
mov sil, byte [rbx + r10]
cdq
idiv r11d
movsxd rdx, edx
mov al, byte [rcx + rdx]
add eax, esi
add eax, edi
movzx edi, al
movzx eax, al
mov dl, byte [rsp + rax]
mov byte [rbx + r10], dl
inc r10
mov byte [rsp + rax], sil
cmp r10, 0x100
jne 0x10003347
xor ecx, ecx
xor ebx, ebx
xor r11d, r11d
cmp dword [rsp + 0x140], ecx
jbe 0x100033c3
lea edx, [rbx + 1]
movzx ebx, dl
movzx edx, dl
mov al, byte [rsp + rdx]
lea r10d, [rax + r11]
movzx r11d, r10b
movzx r10d, r10b
mov sil, byte [rsp + r10]
mov byte [rsp + rdx], sil
mov byte [rsp + r10], al
add al, byte [rsp + rdx]
movzx eax, al
mov al, byte [rsp + rax]
xor al, byte [r8 + rcx]
mov byte [r9 + rcx], al
inc rcx
jmp 0x10003380
add rsp, 0x100
pop rbx
pop rsi
pop rdi
ret
Function at 0x10008f30
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
xor eax, eax
lea rdi, [0x1002ed40]
lea rsi, [0x1002e7e0]
lea rbx, [0x1002e8e0]
lea r11, [0x1002ec40]
lea r10, [0x1002e3c0]
lea r9, [0x1002e9e0]
lea r8, [0x1002e4e0]
lea rcx, [0x1002e5e0]
lea rdx, [0x1002e6e0]
xor byte [rdi + rax], 0x13
xor byte [rsi + rax], 0x13
xor byte [rbx + rax], 0x13
xor byte [r11 + rax], 0x13
xor byte [r10 + rax], 0x13
xor byte [r9 + rax], 0x13
xor byte [r8 + rax], 0x13
xor byte [rcx + rax], 0x13
xor byte [rdx + rax], 0x13
inc rax
cmp rax, 0x100
jne 0x10008f74
pop rbx
pop rsi
pop rdi
ret
Function at 0x1000a020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r14d, r14d
mov r12, rdx
movsxd rdx, dword [rdx + 0x3c]
mov qword [rsp + 0xa0], rcx
add rdx, r12
mov esi, dword [rdx + 0x88]
add rsi, r12
mov r15d, dword [rsi + 0x20]
mov edi, dword [rsi + 0x24]
mov ebp, dword [rsi + 0x1c]
add r15, r12
cmp dword [rsi + 0x18], r14d
jbe 0x1000a10c
mov ebx, r14d
mov qword [rsp + 0x28], rdx
mov r13d, dword [r15 + rbx*4]
add r13, r12
mov rcx, r13
call fcn.10014560
cmp eax, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x28]
jne 0x1000a104
add rbx, rbx
mov ecx, dword [rdx + 0x88]
add rbx, r12
movzx eax, word [rbx + rdi]
lea rax, [r12 + rax*4]
mov eax, dword [rax + rbp]
cmp eax, ecx
jbe 0x1000a0ff
add ecx, dword [rdx + 0x8c]
cmp eax, ecx
jae 0x1000a0ff
mov rcx, r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
call fcn.10029b90
mov rcx, r13
mov word [rsp + 0x40], ax
call fcn.10029b90
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, r12
inc eax
lea r9, [rsp + 0x38]
mov word [rsp + 0x42], ax
call qword [0x100421e8]
mov rax, qword [rsp + 0x38]
jmp 0x1000a10e
add rax, r12
jmp 0x1000a10e
inc r14d
jmp 0x1000a05b
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1000a120
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor ebp, ebp
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
mov r12d, ecx
mov rsi, rdx
mov r13, r8
mov r14d, r9d
lea r15, [rsp + 0x2c]
test rbx, rbx
je 0x1000a23c
mov r10, qword [rbx + 0x30]
test r10, r10
je 0x1000a23f
test r12d, r12d
je 0x1000a1c5
mov r11, qword [rbx + 0x60]
mov r9d, dword [rbx + 0x58]
xor r8d, r8d
xor eax, eax
imul rcx, rax, 0x801
movzx eax, byte [r11 + r8]
or rcx, 0x2800000
cmp al, 0x60
jbe 0x1000a1a5
movzx edx, al
sub edx, 0x20
movsxd rdx, edx
lea rax, [rdx + rcx]
jmp 0x1000a1a8
add rax, rcx
inc r8
cmp r9w, r8w
jne 0x1000a17f
cmp r12d, eax
jne 0x1000a1c5
test r14d, r14d
je 0x1000a23f
mov r10, qword [rbx + 0x50]
jmp 0x1000a23f
cmp r10, rsi
jne 0x1000a1d0
mov r10, qword [rbx + 0x60]
jmp 0x1000a23f
test r13, r13
je 0x1000a234
mov r10, qword [rbx + 0x60]
test r10, r10
je 0x1000a23f
lea rdi, [rsp + 0x3c]
mov ecx, 0x15
mov eax, ebp
mov r8d, dword [rbx + 0x58]
rep stosd dword [rdi], eax
xor edx, edx
mov qword [rsp + 0x2c], 0
mov qword [rsp + 0x34], 0
lea eax, [rdx + rdx]
cmp r8w, ax
jbe 0x1000a21f
movzx eax, ax
mov cl, byte [r10 + rax]
movzx eax, dx
inc edx
mov byte [rsp + rax + 0x2c], cl
jmp 0x1000a204
mov rdx, r15
mov rcx, r13
call fcn.10011370
test eax, eax
je 0x1000a234
mov r10, qword [rbx + 0x30]
jmp 0x1000a23f
mov rbx, qword [rbx]
jmp 0x1000a157
xor r10d, r10d
mov rax, r10
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1000a2c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
cmp word [rax], 0x5a4d
jne 0x1000a2ee
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x1000a2ee
cmp dword [rax + rdx], 0x4550
je 0x1000a2f3
dec rax
jmp 0x1000a2cd
ret

Function at 0x10013b20
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [rcx - 1], 0xcc
je 0x10013b7e
test r8d, r8d
jne 0x10013b2f
sub rcx, 0x20
mov r9b, byte [rcx]
cmp r9b, 0xe9
je 0x10013b42
mov r8b, byte [rcx + 3]
cmp r8b, 0xe9
jne 0x10013b49
inc edx
xor r8d, r8d
jmp fcn.10013b20
xor eax, eax
cmp r9b, 0x4c
jne 0x10013b80
cmp byte [rcx + 1], 0x8b
jne 0x10013b80
cmp byte [rcx + 2], 0xd1
jne 0x10013b7e
cmp r8b, 0xb8
jne 0x10013b7e
cmp byte [rcx + 6], 0
jne 0x10013b80
movzx eax, byte [rcx + 5]
shl eax, 8
mov r8d, eax
movzx eax, byte [rcx + 4]
or eax, r8d
add eax, edx
jmp 0x10013b80
xor eax, eax
ret

Function at 0x10014560
Capabilities:
Resolve function by brute ratel badger hash

Disassembly:
xor eax, eax
movsx edx, byte [rcx]
test dl, dl
je 0x1001457b
imul eax, eax, 0x801
inc rcx
or eax, 0x2800000
add eax, edx
jmp 0x10014562
ret

Function at 0x1001f6a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov r9d, 0x40
mov qword [rsp + 0x20], 0
mov rbx, r8
lea r8, [rsp + 0x30]
mov rsi, rdx
mov qword [rsp + 0x90], rcx
call fcn.1002d400
movsxd rdx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, rbx
mov qword [rsp + 0x20], 0
mov r9d, 0x108
mov edi, eax
add rdx, rsi
call fcn.1002d400
cmp word [rsp + 0x30], 0x5a4d
jne 0x1001f711
or edi, eax
jne 0x1001f711
xor eax, eax
cmp dword [rbx], 0x4550
sete al
jmp 0x1001f713
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret

Function at 0x1002c300
Capabilities:
Inspect section memory permissions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, qword [rcx + 0x38]
mov edi, dword [rcx + 0x40]
mov rsi, rcx
lea rbp, [rsp + 0x48]
lea r13, [rsp + 0x40]
lea r12, [rsp + 0x3c]
dec edi
cmp edi, 0xffffffff
je 0x1002c3e0
mov eax, dword [rbx + 0xc]
add rax, qword [rsi + 0x28]
mov qword [rsp + 0x40], rax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x24]
mov edx, eax
mov ecx, eax
shr edx, 0x1f
shl edx, 3
mov dword [rsp + 0x3c], edx
and ecx, 0x40000000
je 0x1002c370
cdq
and edx, 2
add edx, 2
mov dword [rsp + 0x3c], edx
mov r8d, eax
and r8d, 0x20000000
je 0x1002c387
cdq
and edx, 0x70
add edx, 0x10
mov dword [rsp + 0x3c], edx
mov edx, eax
and edx, 0x60000000
cmp edx, 0x60000000
jne 0x1002c39f
mov dword [rsp + 0x3c], 0x20
test r8d, r8d
setne dl
shr eax, 0x1f
test dl, al
je 0x1002c3b8
test ecx, ecx
je 0x1002c3b8
mov dword [rsp + 0x3c], 0x40
mov r9d, dword [rsp + 0x3c]
cmp r9d, 0x20
je 0x1002c3d7
mov qword [rsp + 0x20], r12
mov r8, rbp
mov rdx, r13
or rcx, 0xffffffffffffffff
call fcn.1002cf00
add rbx, 0x28
jmp 0x1002c325
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x180003758
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1800e1010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbp, rcx
mov rcx, r8
mov rax, 0xfffffffffffff000
and rcx, rax
mov rsi, r8
mov qword [rdx], rcx
mov rdx, r8
sub rdx, rcx
lea r9, [rdi + 0x10]
add rdx, 0x1004
mov r8d, 0x40
and rdx, rax
mov qword [rdi + 8], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800037e2
mov r9, qword [rdi + 8]
lea rdx, str.__unprotect_memory__p__size_llu______p__size_llu__n
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002db4
xor eax, eax
jmp 0x18000382f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.180003464
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rdi + 8]
lea rdx, str.Failed_to_unprotect_memory__p__size_llu______p__size_llu__error_lu__s__
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002ddc
mov eax, 9
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18009c260
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800081fc
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180008256
mov r11b, 0x23
lea rdi, [0x1800a6130]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x180008240
cmp rdx, 2
jb 0x180008240
cmp byte [r10], r11b
jne 0x180008240
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000821e
jmp 0x180008297
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180008297
mov r11b, 0x23
lea rdi, [0x1800a6130]
cmp dl, r11b
jne 0x18000827b
cmp byte [r10], r11b
jne 0x18000827b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x180008269
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x1800083cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x1800083ec
and qword [r8], 0
lea rdx, [0x1800c6928]
call fcn.1800082a8
mov rbx, rax
test rax, rax
je 0x1800084dd
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800084d4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800084d4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800084d4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800084d4
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x1800084d4
mov rax, qword [0x1800e4b80]
test rax, rax
je 0x180008471
inc dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800084d4
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1800084c1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800e4b80]
test rax, rax
je 0x1800084b6
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800084dd
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1800084cf
mov qword [rsi], rbp
mov rax, rdi
jmp 0x1800084df
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000b0bc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e1010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0xf8]
mov r8, rdx
mov qword [rsp + 0x20], rdx
mov r9, rcx
movsxd rdx, dword [rcx + 0xf0]
mov r10d, 8
mov ebx, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x20]
not ebx
movzx eax, byte [rdx]
inc rdx
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1800a6130]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000b0fb
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1210], ebx
jne 0x18000b132
lea edx, [r10 + 0xc]
mov ecx, ebx
call fcn.18001b660
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18009c260
add rsp, 0x30
pop rbx
ret