joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14003f490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14003f4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14001ee00
jmp 0x14000123c
mov rax, qword [0x14003f4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14003f4a0]
mov dword [rax], 1
mov rax, qword [0x14003f4e0]
mov rdx, rax
mov rax, qword [0x14003f4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140043024], 1
mov rax, qword [0x14003f4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14003f4c0]
mov rdx, rax
mov rax, qword [0x14003f4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14003f4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14003f490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14003f3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14003f3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14001e088
mov rax, qword [0x14003f520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14003f480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14001d880
mov eax, dword [0x140043004]
lea rdx, [0x140043008]
mov ecx, eax
call fcn.14000147c
call fcn.14001d617
mov rax, qword [0x14003f410]
mov rax, qword [rax]
mov rdx, qword [0x140043010]
mov qword [rax], rdx
mov rcx, qword [0x140043010]
mov rdx, qword [0x140043008]
mov eax, dword [0x140043004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004301c], eax
mov eax, dword [0x140043020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004301c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140043024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004301c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14003f440]
mov dword [rax], 1
mov rax, qword [0x14003f450]
mov dword [rax], 1
mov rax, qword [0x14003f460]
mov dword [rax], 1
mov rax, qword [0x14003f400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14001d890
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14001ebf0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14001e562
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140043168]
test eax, eax
je 0x14001e5fa
lea rax, [0x140043140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140043170]
mov qword [rbp - 8], rax
jmp 0x14001e5de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001e5d2
cmp qword [rbp - 0x10], 0
je 0x14001e5d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001e598
lea rax, [0x140043140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001e5fb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001e700
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001e728
mov eax, 0
jmp 0x14001e776
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001e751
mov eax, 0
jmp 0x14001e776
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001e771
mov eax, 0
jmp 0x14001e776
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001e77c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001e7fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001e7f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001e7f1
mov rax, qword [rbp - 8]
jmp 0x14001e80f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001e7c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140017840]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140017850]
mov dword [rax], 1
mov rax, qword [0x140017860]
mov dword [rax], 1
mov rax, qword [0x1400177e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140017830]
mov dword [0x14001a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140017910]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400178f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140017790]
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 [dbg._matherr]
call dbg.__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 0x140002400
Capabilities:
Parse pe header

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

Function at 0x140002430
Capabilities:
Enumerate pe sections

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

Function at 0x140002480
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002510
mov rdx, qword [0x1400177e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400024fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024fe
cmp word [rax + 0x18], 0x20b
jne 0x1400024fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002510
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400024e9
add rbx, 0x28
cmp rbx, rdi
je 0x140002510
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400024e0
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 0x140002520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400177e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002540
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000259d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140002594
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002540
add rax, 0x28
cmp rax, r9
jne 0x140002580
xor eax, eax
ret

Function at 0x1400025a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400177e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400177e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002600
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002608
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002600
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002650
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002647
test rcx, rcx
je 0x140002600
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002638
xor eax, eax
ret

Function at 0x140002660
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400177e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000267f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002688
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400177e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400026c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002714
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002720
add rdx, 0x28
cmp r9, rdx
jne 0x140002700
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400177e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002752
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002760
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002752
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002752
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002752
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400027b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027c8
add rdx, 0x28
cmp rdx, r10
jne 0x1400027a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027be
test ecx, ecx
jg 0x1400027d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140007df0
Capabilities:
Create process on windows
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call dbg.__main
call dbg.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x140007e3b
jmp 0x140007eb1
test cl, cl
je 0x140007e68
and esi, 1
je 0x140007e50
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x140007e37
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140007e18
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140007e26
test cl, cl
je 0x140007e68
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140007e68
cmp al, 0x20
jle 0x140007e58
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x140007e96
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x1400177e0]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x1400170b0]
jmp 0x140007e68
Function at 0x21d9d1050
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
xor eax, eax
and ecx, 0xff0
add r8, rcx
lea r9, [rdx + rax]
lea r10, [rax + r8]
xor ecx, ecx
mov r11b, byte [r10 + rcx]
inc rcx
xor byte [r9], r11b
inc r9
cmp rcx, 4
jne 0x21d9d1069
add rax, 4
cmp rax, 0x10
jne 0x21d9d105f
ret

Function at 0x21d9d11e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
lea rax, [rdx + r8]
mov rbp, rsp
push r15
push r14
push r13
push r12
lea r12, str.cw
push rdi
mov dil, 0x1b
push rsi
mov rsi, rdx
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x28], rax
mov eax, 0x10
cmp qword [rsp + 0x28], rsi
je 0x21d9d13f0
cmp eax, 0x10
jne 0x21d9d13dd
lea rdx, [rsp + 0x30]
mov r8, rbx
xor ecx, ecx
mov r14d, 1
movups xmm0, xmmword [rbx + 0xf0]
lea r13, [rsp + 0x34]
movaps xmmword [rsp + 0x30], xmm0
call fcn.21d9d1050
lea rdx, [rsp + 0x30]
mov rcx, rdx
mov rax, rcx
xor r8d, r8d
movzx r9d, byte [rax]
inc r8d
add rax, 4
mov r9b, byte [r12 + r9]
mov byte [rax - 4], r9b
cmp r8b, 4
jne 0x21d9d125d
inc rcx
cmp r13, rcx
jne 0x21d9d1257
mov cl, byte [rsp + 0x35]
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x31], cl
mov cl, byte [rsp + 0x39]
mov byte [rsp + 0x35], cl
mov cl, byte [rsp + 0x3d]
mov byte [rsp + 0x3d], al
mov al, byte [rsp + 0x32]
mov byte [rsp + 0x39], cl
mov cl, byte [rsp + 0x3a]
mov byte [rsp + 0x3a], al
mov al, byte [rsp + 0x36]
mov byte [rsp + 0x32], cl
mov cl, byte [rsp + 0x3e]
mov byte [rsp + 0x3e], al
mov al, byte [rsp + 0x33]
mov byte [rsp + 0x36], cl
mov cl, byte [rsp + 0x3f]
mov byte [rsp + 0x33], cl
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x3f], cl
mov cl, byte [rsp + 0x37]
mov byte [rsp + 0x37], al
mov byte [rsp + 0x3b], cl
cmp r14d, 0xe
je 0x21d9d13a2
lea r11, [rdx + 0x10]
mov cl, byte [rdx]
mov r9b, byte [rdx + 1]
add rdx, 4
mov r8b, byte [rdx - 2]
xor r8b, byte [rdx - 1]
xor r9d, ecx
mov r15d, ecx
xor cl, byte [rdx - 1]
mov eax, r9d
mov r10d, r9d
add r9d, r9d
shr al, 7
xor r10d, r8d
imul eax, edi
xor r15d, r10d
xor r15d, eax
xor r9d, r15d
mov r15b, byte [rdx - 3]
xor r15b, byte [rdx - 2]
mov eax, r15d
mov byte [rdx - 4], r9b
mov r9b, byte [rdx - 3]
add r15d, r15d
shr al, 7
imul eax, edi
xor r9d, r10d
xor r9d, eax
mov eax, r8d
add r8d, r8d
shr al, 7
xor r15d, r9d
mov r9b, byte [rdx - 2]
imul eax, edi
mov byte [rdx - 3], r15b
xor r9d, r10d
xor r10b, byte [rdx - 1]
xor r9d, eax
mov eax, ecx
add ecx, ecx
shr al, 7
xor r8d, r9d
imul eax, edi
mov byte [rdx - 2], r8b
mov r8d, r10d
xor eax, r8d
xor ecx, eax
mov byte [rdx - 1], cl
cmp r11, rdx
jne 0x21d9d12ec
mov ecx, r14d
lea rdx, [rsp + 0x30]
mov r8, rbx
inc r14d
call fcn.21d9d1050
jmp 0x21d9d124f
mov r8, rbx
mov ecx, 0xe
call fcn.21d9d1050
mov eax, 0xf
mov dl, byte [rbx + rax + 0xf0]
cmp dl, 0xff
jne 0x21d9d13d0
mov byte [rbx + rax + 0xf0], 0
sub rax, 1
jae 0x21d9d13b4
jmp 0x21d9d13db
cdqe
inc edx
mov byte [rbx + rax + 0xf0], dl
xor eax, eax
movsxd rdx, eax
inc eax
mov dl, byte [rsp + rdx + 0x30]
xor byte [rsi], dl
inc rsi
jmp 0x21d9d1215
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x21d9d23a0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
mov r14, r8
push r13
mov r13, rdx
push r12
push rbp
push rdi
mov rdi, rcx
mov rcx, rdx
push rsi
mov rsi, r9
push rbx
sub rsp, 0x48
call fcn.21d9e3ad0
mov rbx, qword [0x21d9ea170]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx]
cmp dword [rax + 0xf4], 0
je 0x21d9d2412
lea rdx, [0x21d9e7ab0]
mov ecx, 1
call qword [rax + 0x1b0]
mov r12, rax
test rax, rax
jne 0x21d9d2415
mov rax, qword [rbx]
mov ecx, 1
mov rax, qword [rax + 0x8c2]
mov edx, dword [rax + 0x68]
call fcn.21d9dfb50
jmp 0x21d9d25a5
xor r12d, r12d
xor ebp, ebp
mov r15d, 0x40
mov rax, qword [rdi + 8]
cmp word [rax + 2], bp
jbe 0x21d9d24e4
movzx edx, bp
mov rcx, qword [rdi]
imul rax, rdx, 0x28
lea rax, [rcx + rax + 0x14]
cmp dword [rax + 0x10], 0
mov qword [rdi + 0x10], rax
jne 0x21d9d2448
inc ebp
jmp 0x21d9d241d
mov r8d, dword [rax + 0x24]
mov eax, 1
mov ecx, r8d
and ecx, 0xe0000000
je 0x21d9d24ac
mov eax, 0x10
cmp ecx, 0x20000000
je 0x21d9d24ac
mov eax, 2
cmp ecx, 0x40000000
je 0x21d9d24ac
mov eax, 0x20
cmp ecx, 0x60000000
je 0x21d9d24ac
mov eax, 8
cmp ecx, 0x80000000
je 0x21d9d24ac
mov eax, pe_nt_image_headers64
cmp ecx, 0xa0000000
je 0x21d9d24ac
cmp ecx, 0xc0000000
mov eax, 4
cmovne eax, r15d
bt r8d, 0x1a
jae 0x21d9d24b6
or ah, 2
shl rdx, 4
add rdx, qword [rdi + 0x3c]
mov ecx, 2
mov r9, qword [rdx + 8]
mov dword [rsp + 0x20], eax
mov r8, qword [rdx]
or rdx, 0xffffffffffffffff
call fcn.21d9df320
test eax, eax
jne 0x21d9d2444
jmp 0x21d9d25a5
mov r9, qword [rdi + 0x4c]
test r9, r9
jne 0x21d9d24f2
xor r15d, r15d
jmp 0x21d9d2518
mov dword [rsp + 0x20], 2
mov r8, qword [rdi + 0x44]
or rdx, 0xffffffffffffffff
mov ecx, 2
call fcn.21d9df320
test eax, eax
jne 0x21d9d24ed
jmp 0x21d9d25a5
inc r15d
mov rax, qword [rdi + 8]
mov eax, dword [rax + 0xc]
cmp eax, r15d
jbe 0x21d9d2571
mov ebp, r15d
mov rdx, qword [rdi + 0x20]
imul rbp, rbp, 0x12
lea rcx, [rdx + rbp]
cmp dword [rcx], 0
jne 0x21d9d2546
imul rax, rax, 0x12
mov ecx, dword [rcx + 4]
add rax, rcx
lea rcx, [rdx + rax]
mov r8d, dword [rsp + 0x38]
mov rdx, r13
call fcn.21d9def30
test eax, eax
jne 0x21d9d2515
add rbp, qword [rdi + 0x20]
mov rax, qword [rdi + 0x3c]
movzx edx, word [rbp + 0xc]
mov ecx, dword [rbp + 8]
shl rdx, 4
add rcx, qword [rax + rdx - 0x10]
jne 0x21d9d25a9
mov edx, dword [rsp + 0xb0]
mov ecx, 0x14
call fcn.21d9df8a0
mov edx, 2
mov r12, rax
mov rcx, rax
call fcn.21d9df620
mov rcx, r12
mov rdx, r13
call fcn.21d9df750
mov rcx, r12
call fcn.21d9df950
xor eax, eax
jmp 0x21d9d260d
mov rdx, qword [rdi + 8]
mov r9w, word [rdx + 2]
xor edx, edx
jmp 0x21d9d25c5
mov r8, qword [rax]
cmp r8, rcx
jbe 0x21d9d25cd
inc rdx
add rax, 0x10
cmp r9w, dx
ja 0x21d9d25b6
jmp 0x21d9d25a5
add r8, qword [rax + 8]
cmp rcx, r8
jae 0x21d9d25be
imul rdx, rdx, 0x28
mov rax, qword [rdi]
lea rax, [rax + rdx + 0x14]
mov qword [rdi + 0x10], rax
test byte [rax + 0x27], 0x20
je 0x21d9d25a5
mov r8, rsi
mov rdx, r14
call fcn.21d9d2620
test r12, r12
je 0x21d9d2608
mov rax, qword [rbx]
mov rcx, r12
call qword [rax + 0x1b8]
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x21d9dbee0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
mov r12, rcx
push rbp
mov rdx, r12
push rdi
push rsi
xor esi, esi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x21d9e2db0
mov rdx, r12
mov ebx, eax
add rbx, r12
mov ecx, dword [rbx + 0x20]
call 0x21d9e2db0
mov ecx, dword [rbx + 0x24]
mov rdx, r12
mov ebp, eax
call 0x21d9e2db0
mov r15d, dword [rbx + 0x18]
add rbp, r12
mov edi, eax
add rdi, r12
lea r14, [rsi + rsi]
add r14, rdi
cmp r15, rsi
je 0x21d9dbfa1
mov ecx, dword [rbp + rsi*4]
mov rdx, r12
call 0x21d9e2db0
mov r13d, eax
add r13, r12
mov rcx, r13
call fcn.21d9dc490
cmp eax, 0xa6caa1c5
jne 0x21d9dbf8d
mov ecx, dword [rbx + 0x1c]
mov rdx, r12
call 0x21d9e2db0
movzx edx, word [r14]
mov eax, eax
add rax, r12
mov ecx, dword [rax + rdx*4]
add rsp, 0x28
mov rdx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x21d9e2db0
mov rcx, r13
inc rsi
call fcn.21d9dc490
cmp eax, 0xffe885ef
jne 0x21d9dbf31
jmp 0x21d9dbf5e
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp dword [rdx + 0x14], eax
ja 0x21d9e2dfa
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x21d9e2df8
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x21d9e2df0
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp r10d, eax
jbe 0x21d9e2df0
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x21d9e2dce
xor eax, eax
ret

Function at 0x21d9dc440
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test rcx, rcx
je 0x21d9dc48d
mov r10, rcx
mov eax, 0x1505
mov r9b, byte [r10]
test edx, edx
jne 0x21d9dc45c
test r9b, r9b
jne 0x21d9dc46f
ret
mov r11, r10
sub r11, rcx
cmp edx, r11d
jbe 0x21d9dc48d
cmp r9b, 1
adc r10, 0
cmp r9b, 0x60
jbe 0x21d9dc47e
test r8d, r8d
je 0x21d9dc47e
sub r9d, 0x20
imul eax, eax, 0x21
movzx r9d, r9b
inc r10
add eax, r9d
jmp 0x21d9dc44f
ret

Function at 0x21d9dc490
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movsx edx, byte [rcx]
inc rcx
test dl, dl
je 0x21d9dc4a6
imul eax, eax, 0x21
add eax, edx
jmp 0x21d9dc495
ret