joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008ba54
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.180080ea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180080ea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18008bba4
cmp rax, 0xffffffffffffffff
je 0x18008bba4
xor edi, edi
test rbp, rbp
jle 0x18008bb4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007bdb4
mov rbx, rax
test rax, rax
jne 0x18008badc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18008bb45
mov edx, 0x8000
mov ecx, r14d
call fcn.18008b8d8
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.18007de98
cmp eax, 0xffffffff
je 0x18008bb25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008baec
mov edx, r15d
mov ecx, r14d
call fcn.18008b8d8
jmp 0x18008bb45
cmp byte [rsi + 0x38], dil
je 0x18008bb3c
cmp dword [rsi + 0x34], 5
jne 0x18008bb3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18008bb45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18007be2c
jmp 0x18008bbb8
jns 0x18008bbb8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180080ea4
cmp rax, 0xffffffffffffffff
jne 0x18008bb70
cmp byte [rsi + 0x30], dil
je 0x18008bbb8
mov edi, dword [rsi + 0x2c]
jmp 0x18008bbb8
mov ecx, r14d
call fcn.180084974
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18008bbb8
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 0x18008bbb8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18008bbb1
mov eax, dword [rsi + 0x2c]
jmp 0x18008bbb6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180080ea4
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 0x18008c3e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18008c408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18008c408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1423d20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1423d2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1423d3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1423d25
lea eax, [rcx + 1]
jmp 0x1423d4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1423d5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1423d44
sub eax, 3
jb 0x1423d7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1423dcd
sar eax, 1
movsxd rbp, eax
jb 0x1423db4
jmp 0x1423d8c
add ebx, ebx
jne 0x1423d8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1423db4
inc ecx
add ebx, ebx
jne 0x1423d9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1423db4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1423dad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1423d9c
add ecx, 2
jmp 0x1423db9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01423ce2
jmp 0x1423d2d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x100f000]
mov eax, dword [rdi]
or eax, eax
je 0x1423e29
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1023000]
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 0x1423dd9
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 0x1423e23
mov qword [rbx], rax
add rbx, 8
jmp 0x1423df9
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 0x1423e6d
cmp al, 0xef
ja 0x1423e55
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1423e35
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1423e44
mov eax, dword [rdi]
add rdi, 4
jmp 0x1423e44
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1423ec1
sub rsp, 0xffffffffffffff80
jmp 0x45bb20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401ed5f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401ed600]
mov dword [rax], 1
mov rax, qword [0x1401ed610]
mov dword [rax], 1
mov rax, qword [0x1401ed590]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401ed5e0]
mov dword [0x1401f0020], 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 [0x1401ed6b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401ed690]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401ed540]
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 0x1400c3100
Capabilities:
Write file on windows

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

Function at 0x1400c3170
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401f00b4]
mov rbx, rcx
test esi, esi
jle 0x1400c32a0
mov rax, qword [0x1401f00b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400c31bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400c3245
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400c31a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400c32c2
mov rax, qword [0x1401f00b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401f00b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x1400c32a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400c323e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400c3250
add dword [0x1401f00b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401f00b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x1400c323e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400c31c8
mov rax, qword [0x1401f00b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400c3830
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401f0120]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1401f0100]
test rbx, rbx
je 0x1400c388c
mov rbp, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400c3883
test rsi, rsi
je 0x1400c3883
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c3868
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x1400c3aa0
Capabilities:
Parse pe header

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

Function at 0x1400c3ad0
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 0x1400c3b1d
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 0x1400c3b14
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400c3b1f
add rax, 0x28
cmp rax, r9
jne 0x1400c3b00
xor eax, eax
ret

Function at 0x1400c3b20
Capabilities:
Parse pe header

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

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

Function at 0x1400c3c40
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1401ed590]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400c3ca0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400c3ca8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400c3ca0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400c3cf0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400c3ce7
test rcx, rcx
je 0x1400c3ca0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400c3cd8
xor eax, eax
ret

Function at 0x1400c3d00
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1401ed590]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400c3d60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400c3d68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400c3d60
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400c3d60
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 0x1400c3db4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400c3dc0
add rdx, 0x28
cmp r9, rdx
jne 0x1400c3da0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1401ed590]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400c3df2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400c3e00
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400c3df2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400c3df2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400c3df2
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 0x1400c3e55
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400c3e68
add rdx, 0x28
cmp rdx, r10
jne 0x1400c3e40
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400c3e77
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400c3e87
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400c3e5e
test ecx, ecx
jg 0x1400c3e70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180002d20
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea rax, [rcx - 1]
mov r15, r10
test r8b, r8b
je 0x180002e50
mov r15, qword [r15]
cmp r15, r10
je 0x180002e72
mov rdi, rax
test r9b, r9b
je 0x180002e60
nop word cs:[rax + rax]
nop
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x180002dd0
test r14b, r14b
je 0x180002e70
sub rdi, rcx
je 0x180002e38
mov r12, qword [r15 + 0x60]
xor edx, edx
nop
movzx esi, word [r12 + rdx*2]
lea ebx, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp bx, 0x1a
cmovae ebp, esi
movsx ebx, byte [rcx + rdx]
lea r13d, [rbx - 0x41]
lea r11d, [rbx + 0x20]
cmp r13b, 0x1a
cmovae r11d, ebx
sub ebp, r11d
test esi, esi
je 0x180002e30
test ebp, ebp
jne 0x180002e30
add rdx, 1
cmp rdi, rdx
jne 0x180002df0
jmp 0x180002e38
test ebp, ebp
jne 0x180002da4
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002e50
jmp 0x180002e60
jmp 0x180002e70
xor eax, eax
jmp 0x180002e3c
Function at 0x180002aa0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002ad2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002ad2
nop word cs:[rax + rax]
jmp 0x180002ad0
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r11, [rcx - 1]
xor eax, eax
mov r14, r10
mov r14, qword [r14]
cmp r14, r10
je 0x180002bcb
mov rsi, r11
test r8b, r8b
je 0x180002bb0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002b40
sub rsi, rcx
je 0x180002bc2
test r9b, r9b
je 0x180002bc0
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop word [rax + rax]
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002ba0
test ebp, ebp
jne 0x180002ba0
add rbx, 1
cmp rsi, rbx
jne 0x180002b60
jmp 0x180002bc7
test ebp, ebp
jne 0x180002b2c
jmp 0x180002bc7
jmp 0x180002bb0
jmp 0x180002bc0
test r9b, r9b
je 0x180002be0
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002be0
Function at 0x14000157f
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x1400015bb
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x14000159a
inc r8
jmp 0x140001587
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140001595
ret

Function at 0x1400015bc
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
lea rcx, [0x1400204a8]
mov edx, 9
call fcn.14000157f
mov edi, eax
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x10
mov rbx, qword [rbx]
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
call fcn.14000157f
cmp eax, edi
jne 0x1400015f7
mov r14, qword [rbx + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x14000168d
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x14000168f
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rdx, 0xffffffffffffffff
cmp byte [rcx + rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x14000165d
lea r15, [rbp + 1]
call fcn.14000157f
cmp eax, esi
jne 0x140001647
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x1400016ab
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x14000168f
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.srcmain.rs
mov rdx, rdi
call fcn.14001de60
ud2
Function at 0x1400064a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006530
cmp r10, r11
jb 0x1400065a6
cmp r10, rdx
ja 0x1400065ba
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140006532
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006510
jmp 0x140006594
ja 0x14000653a
mov r11, r10
cmp rax, r8
jne 0x1400064d4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006570
mov rdi, r8
sub ecx, edx
jns 0x14000658b
jmp 0x140006596
cmp r8, rsi
je 0x1400065cb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006596
xor al, 1
cmp rdi, rsi
jne 0x140006550
jmp 0x140006596
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001e1d0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001df60
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001dfe0
ud2
Function at 0x14000c500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14000c55b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000c55b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000c576
cmp eax, 0x42
jne 0x14000c55b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000c626
cmp byte [r9 + r11], 0x5f
jne 0x14000c626
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000c68e
mov rcx, rsi
xor edx, edx
call fcn.140007d90
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140007d90
test al, al
jne 0x14000c721
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000c5b2
lea rdx, [0x140021d43]
mov r8d, 1
call fcn.140004300
test al, al
jne 0x14000c721
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000c56a
xor r14d, r14d
lea rbx, [0x140022126]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000c5e4
cmp byte [rax + rcx], 0x45
je 0x14000c743
sub r14, 1
jb 0x14000c609
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000c609
mov r8d, 2
mov rdx, rbx
call fcn.140004300
test al, al
jne 0x14000c721
mov rcx, rsi
call fcn.14000c760
test al, al
jne 0x14000c721
mov rax, qword [rsi]
test rax, rax
jne 0x14000c5d0
jmp 0x14000c56a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000c6e8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000c682
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000c66c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000c65b
add dl, 0xa9
jmp 0x14000c66a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000c6e8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000c6e8
movzx edx, bl
add rax, rdx
jae 0x14000c630
jmp 0x14000c6e8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000c6e8
cmp rax, rcx
jae 0x14000c6e5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000c73b
cmp qword [rsi + 0x20], 0
je 0x14000c74f
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000c500
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000c56c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000c729
lea rax, [0x1400220f1]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140004300
test al, al
je 0x14000c729
mov dil, 2
jmp 0x14000c56a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000c56a
mov dil, 1
xor r8d, r8d
jmp 0x14000c6ea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000c56a
xor edi, edi
jmp 0x14000c56a