joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
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 0x140001ad0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400027a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000283a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000281e
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 0x140002812
cmp qword [rbp - 0x10], 0
je 0x140002812
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 0x1400027d8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000283b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002940
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 0x140002968
mov eax, 0
jmp 0x1400029b6
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 0x140002991
mov eax, 0
jmp 0x1400029b6
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 0x1400029b1
mov eax, 0
jmp 0x1400029b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400029bc
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 0x140002a3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a31
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 0x140002a31
mov rax, qword [rbp - 8]
jmp 0x140002a4f
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 0x140002a04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18000163c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x18006f2e0], rcx
mov rcx, qword [0x18006f2d0]
mov rdi, rdx
test rcx, rcx
je 0x180001665
call qword [0x180063080]
mov rax, qword [rbx + 8]
mov qword [0x18006f2d0], rax
lock add dword [rbx + 4], 1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1800014ac]
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [0x180063088]
mov rdi, rax
test rax, rax
je 0x1800016ad
call qword [0x180063090]
mov rcx, rdi
call qword [0x180063080]
jmp 0x1800016b2
lock add dword [rbx + 4], 0xffffffff
and qword [0x18006f2d0], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180001a94
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov r14, rcx
mov rcx, qword [0x18006f2c8]
xor r15d, r15d
xor edx, edx
mov r8d, 0x410
mov dword [rax + 8], r15d
call qword [0x180063040]
lea ebp, [r15 + 2]
lea r12, [0x180000000]
mov rsi, rax
cmp rax, r15
je 0x180001bad
mov edx, ebp
xor ecx, ecx
call qword [0x180063340]
mov edi, eax
cmp eax, r15d
je 0x180001b13
cmp eax, 1
je 0x180001b13
cmp eax, 0x80010106
je 0x180001b13
call qword [0x180063078]
mov ebx, eax
jmp 0x180001b99
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x21]
mov qword [rsp + 0x20], rsi
call qword [0x180063298]
cmp eax, r15d
jl 0x180001b84
mov rcx, rsi
call qword [0x180063038]
lea r8, [rsp + 0x2b0]
mov rdx, rsi
mov rcx, r14
mov ebx, eax
call fcn.180002584
mov rax, qword [0x18006f2e8]
mov rdx, rsi
lea r8, [rax + r12 + 0x73788]
mov rcx, rsi
mov word [rsi + rbx*2], r15w
call qword [0x1800632c8]
lea r8, [rsp + 0x2b0]
mov rdx, rsi
mov rcx, r14
call fcn.180002584
mov ebx, eax
jmp 0x180001b89
mov ebx, 3
cmp edi, r15d
je 0x180001b93
cmp edi, 1
jne 0x180001b99
call qword [0x180063330]
mov rcx, qword [0x18006f2c8]
mov r8, rsi
xor edx, edx
call qword [0x180063048]
jmp 0x180001bb2
mov ebx, 8
neg ebx
lea rcx, [0x180073240]
sbb edi, edi
and edi, 0xe8
call fcn.180002668
mov rbx, rax
cmp rax, r15
je 0x180001cac
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [0x180063098]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001c94
mov rcx, rbx
call qword [0x1800632d0]
mov rcx, rbx
mov word [rax], r15w
call qword [0x180063038]
mov r13d, eax
test byte [rsp + 0x30], 0x10
je 0x180001c71
lea rcx, [rsp + 0x5c]
call qword [0x180063038]
mov rcx, qword [0x18006f2c8]
xor edx, edx
add eax, r13d
lea r8d, [rax + rax + 4]
call qword [0x180063040]
mov r12, rax
cmp rax, r15
je 0x180001c71
lea r8, [rsp + 0x5c]
mov rdx, rbx
mov rcx, rax
call qword [0x1800632c8]
lea r8, [rsp + 0x2b0]
mov rdx, r14
mov rcx, r12
call fcn.180001d30
mov rcx, qword [0x18006f2c8]
mov r8, r12
xor edx, edx
mov ebp, eax
call qword [0x180063048]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [0x1800630a8]
cmp eax, r15d
jne 0x180001c08
mov rcx, rsi
call qword [0x1800630a0]
lea r12, [0x180000000]
mov rcx, qword [0x18006f2c8]
mov r8, rbx
xor edx, edx
call qword [0x180063048]
neg ebp
sbb eax, eax
and edi, eax
mov rax, qword [0x18006f2e8]
lea r9, [rsp + 0x2b0]
mov rcx, r14
lea r8, [rax + r12 + 0x73110]
lea rdx, [rax + r12 + 0x73410]
call section..text
lea r9, [rsp + 0x2b0]
mov rcx, r14
neg eax
mov rax, qword [0x18006f2e8]
sbb ebx, ebx
lea r8, [rax + r12 + 0x730c4]
lea rdx, [rax + r12 + 0x73790]
and ebx, edi
call section..text
neg eax
sbb eax, eax
and eax, ebx
lock add dword [0x18006f2d8], 0xffffffff
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180002584
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov r12d, dword [r8]
mov r13, rcx
mov rcx, rdx
mov rdi, r8
mov rbp, rdx
call qword [0x180063038]
mov r8, qword [0x18006f2e8]
movsxd r14, eax
lea rax, [0x180073878]
mov rdx, rbp
mov rcx, rbp
add r8, rax
call qword [0x1800632c8]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [0x180063098]
xor r15d, r15d
mov rsi, rax
cmp rax, r15
je 0x18000263d
lea r8, [rsp + 0x4c]
mov rdx, rbp
mov rcx, rbp
mov word [rbp + r14*2], r15w
call qword [0x1800632c8]
mov r8, rdi
mov rdx, rbp
mov rcx, r13
call fcn.180002244
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov ebx, eax
call qword [0x1800630a8]
cmp eax, r15d
jne 0x1800025f1
cmp r12d, dword [rdi]
mov rcx, rsi
cmovne ebx, r15d
call qword [0x1800630a0]
jmp 0x180002642
mov ebx, 2
lea r11, [rsp + 0x270]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180002668
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rsi, rcx
xor ebx, ebx
call qword [0x1800630c8]
mov edi, eax
test eax, eax
je 0x1800026cf
mov rcx, qword [0x18006f2c8]
lea r8d, [rax + rax]
xor edx, edx
call qword [0x180063040]
mov rbx, rax
test rax, rax
je 0x1800026cf
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [0x1800630c8]
test eax, eax
jne 0x1800026cf
mov rcx, qword [0x18006f2c8]
mov r8, rbx
xor edx, edx
call qword [0x180063048]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000287c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov r12, rdx
and qword [rax - 0x28], rdi
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [0x180063110]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180002931
xor edx, edx
mov rcx, rax
call qword [0x1800630d0]
mov ebx, eax
test eax, eax
jne 0x1800028dc
mov ebx, 0xe8
jmp 0x180002939
mov rcx, qword [0x18006f2c8]
lea r8d, [rbx + 1]
xor edx, edx
call qword [0x180063040]
mov rdi, rax
test rax, rax
je 0x180002931
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [0x180063108]
test eax, eax
je 0x180002931
cmp ebx, dword [rsp + 0x78]
je 0x180002922
mov ebx, 0x1e
jmp 0x180002939
mov byte [rbx + rdi], 0
mov dword [rbp], ebx
mov qword [r12], rdi
xor ebx, ebx
jmp 0x180002939
call qword [0x180063078]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x180002948
mov rcx, rsi
call qword [0x180063080]
test rdi, rdi
je 0x180002963
test ebx, ebx
je 0x180002963
mov rcx, qword [0x18006f2c8]
mov r8, rdi
xor edx, edx
call qword [0x180063048]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180002ba4
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x70
and dword [rsp + 0x50], 0
xor eax, eax
mov r13, rdx
mov qword [rsp + 0x58], rax
mov rax, qword [0x18006f2e8]
lea r15, [0x180000000]
lea rdx, [rax + r15 + 0x73478]
mov r12, r8
call fcn.180002b14
mov rsi, rax
test rax, rax
je 0x180002d96
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.18000287c
mov ebx, eax
test eax, eax
jne 0x180002d82
mov ecx, dword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
lea ebx, [rax + 0xb]
dec ecx
mov byte [rcx + rbp], al
mov rax, qword [0x18006f2e8]
mov rcx, rbp
lea rdx, [rax + r15 + 0x732df]
call qword [0x1800632a8]
mov rdi, rax
test rax, rax
je 0x180002d70
add rdi, 0x10
lea edx, [rbx + 0x17]
mov rcx, rdi
call qword [0x1800632d8]
test rax, rax
je 0x180002d70
mov rcx, rdi
mov byte [rax], 0
call qword [0x1800630b0]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0xb8]
lea r8d, [rbx - 0xa]
mov r9, rdi
mov qword [rsp + 0x20], rcx
mov edx, eax
mov rcx, rdi
mov dword [rsp + 0xb8], eax
call qword [0x180063008]
test eax, eax
je 0x180002d70
lea r8d, [rbx - 6]
cmp dword [rsp + 0xb8], r8d
jbe 0x180002d70
mov rax, qword [0x18006f2e8]
mov rcx, rdi
lea rdx, [rax + r15 + 0x734ce]
call qword [0x1800632b0]
test eax, eax
jne 0x180002d70
lea rax, [rdi + 5]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0xb8]
xor r8d, r8d
add eax, 0xfffffffb
xor edx, edx
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [0x180063010]
test eax, eax
je 0x180002d68
mov r8d, dword [rsp + 0x50]
mov rcx, qword [0x18006f2c8]
xor edx, edx
call qword [0x180063040]
mov rbx, rax
test rax, rax
je 0x180002d56
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.180062a8e
mov eax, dword [rsp + 0x50]
mov qword [r13], rbx
mov dword [r12], eax
xor ebx, ebx
jmp 0x180002d5b
mov ebx, 8
mov rcx, qword [rsp + 0x58]
call qword [0x1800631f8]
jmp 0x180002d70
call qword [0x180063078]
mov ebx, eax
mov rcx, qword [0x18006f2c8]
mov r8, rbp
xor edx, edx
call qword [0x180063048]
mov rcx, qword [0x18006f2c8]
mov r8, rsi
xor edx, edx
call qword [0x180063048]
jmp 0x180002d9b
mov ebx, 8
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180002db8
Capabilities:
Encode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
xor edi, edi
mov r12d, r9d
mov rbp, r8
and dword [rax - 0x38], edi
mov qword [rax + 0x18], rdi
xor eax, eax
mov qword [rsp + 0x48], rax
mov ebx, edx
mov rsi, rcx
test r8, r8
je 0x180002ea7
cmp ebx, 0x1f
jbe 0x180002ea7
mov rdx, qword [0x18006f2e8]
lea rcx, [0x18007336b]
lea r8d, [rdi + 3]
add rdx, rcx
mov rcx, rsi
call qword [0x1800632b0]
test eax, eax
jne 0x180002ea7
bt qword [0x18006eee0], 0x3f
lea rax, [rsi + 0xf]
mov qword [rsp + 0x58], rax
lea eax, [rbx - 0x1f]
mov dword [rsp + 0x50], eax
jae 0x180002e60
lea rcx, [rbx + rsi - 0x10]
lea r9, [rsi + 3]
mov r8d, r12d
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.180002978
mov r11d, eax
mov eax, dword [rsp + 0x50]
jmp 0x180002e66
mov r11d, 0x7e
test r11d, r11d
jne 0x180002ea1
test eax, eax
je 0x180002ea1
lea ecx, [r11 + 0x40]
mov edx, eax
call qword [0x1800631f0]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x180002ff3
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x40], ecx
mov r8, rcx
mov rcx, rax
call fcn.180062a8e
mov ebx, dword [rsp + 0x40]
jmp 0x180002ee2
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], edi
and qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], ebx
call qword [0x180063010]
neg eax
sbb ebx, ebx
and ebx, dword [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x180002ff3
test ebx, ebx
je 0x180002ff3
mov ecx, ebx
mov rdx, rsi
mov al, byte [rdx]
sub al, 0x21
cmp al, 0x5d
ja 0x180002f53
inc rdx
add ecx, 0xffffffff
jne 0x180002efd
and dword [rsp + 0x28], edi
and qword [rsp + 0x20], rdi
mov r9d, ebx
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [0x1800630c0]
test eax, eax
je 0x180002fe2
lea r8, [rsp + 0x90]
mov r9d, eax
mov edx, ebx
mov rcx, rsi
call fcn.1800026e4
mov rdi, qword [rsp + 0x90]
jmp 0x180002fe8
test ecx, ecx
je 0x180002f0d
and dword [rsp + 0x90], edi
xor r9d, r9d
lea rax, [rsp + 0x90]
lea r8d, [r9 + 1]
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [section..rdata]
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x180002fe8
mov rcx, qword [0x18006f2c8]
lea r8d, [rax + rax]
xor edx, edx
call qword [0x180063040]
mov rdi, rax
test rax, rax
je 0x180002fe8
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x90]
mov r9, rdi
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
call qword [section..rdata]
test eax, eax
jne 0x180002fe8
mov rcx, qword [0x18006f2c8]
mov r8, rdi
xor edx, edx
call qword [0x180063048]
xor edi, edi
jmp 0x180002fe8
call qword [0x180063078]
mov rcx, qword [rsp + 0x48]
call qword [0x1800631f8]
lea r11, [rsp + 0x60]
mov rax, rdi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180008dbc
Capabilities:
Encode data using xor

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 r13
push r15
sub rsp, 0x20
cmp dword [rcx], 0
mov rdi, r9
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
lea r15, [0x180064930]
je 0x180008e21
xor eax, eax
mov r9, rdx
test r8d, r8d
jle 0x180008e18
movzx ecx, byte [r9]
dec r8d
inc r9
movzx edx, byte [rcx + r15]
mov ecx, eax
shl ecx, 3
xor edx, ecx
xor eax, edx
test r8d, r8d
jg 0x180008dfb
xor edx, edx
div dword [rbx]
mov r13d, edx
jmp 0x180008e24
xor r13d, r13d
mov r9d, r13d
mov r8d, ebp
mov rdx, r12
mov rcx, rbx
call fcn.180008cc4
mov r11, rax
test rax, rax
je 0x180008eb7
mov rsi, qword [rax + 0x10]
test rdi, rdi
jne 0x180008ea7
mov rax, qword [rax + 8]
test rax, rax
je 0x180008e57
mov rcx, qword [r11]
mov qword [rax], rcx
jmp 0x180008e5e
mov rax, qword [r11]
mov qword [rbx + 8], rax
mov rcx, qword [r11]
test rcx, rcx
je 0x180008e6e
mov rax, qword [r11 + 8]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x10], 0
je 0x180008e8f
mov ecx, r13d
shl rcx, 4
add rcx, qword [rbx + 0x10]
cmp qword [rcx + 8], r11
jne 0x180008e8d
mov rax, qword [r11]
mov qword [rcx + 8], rax
dec dword [rcx]
mov rcx, r11
call fcn.1800059e4
add dword [rbx + 4], 0xffffffff
jne 0x180008eaf
mov rcx, rbx
call fcn.180008b00
jmp 0x180008eaf
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov rax, rsi
jmp 0x180008f4d
test rdi, rdi
je 0x180008f4b
mov ecx, 0x28
call fcn.1800056f8
mov rsi, rax
test rax, rax
jne 0x180008ed7
mov rax, rdi
jmp 0x180008f4d
mov qword [rax + 0x18], r12
mov dword [rax + 0x20], ebp
mov qword [rax + 0x10], rdi
inc dword [rbx + 4]
mov edx, dword [rbx + 4]
cmp edx, 0xa
jb 0x180008f2a
mov eax, dword [rbx]
add eax, eax
cmp edx, eax
jbe 0x180008f2a
add edx, edx
mov rcx, rbx
call fcn.180008bc0
test eax, eax
je 0x180008f2a
xor eax, eax
jmp 0x180008f1f
movzx ecx, byte [r12]
inc r12
movzx edx, byte [rcx + r15]
mov ecx, eax
shl ecx, 3
xor edx, ecx
xor eax, edx
dec ebp
test ebp, ebp
jg 0x180008f07
xor edx, edx
div dword [rbx]
mov r13d, edx
cmp qword [rbx + 0x10], 0
mov r8, rsi
mov rcx, rbx
je 0x180008f44
mov edx, r13d
shl rdx, 4
add rdx, qword [rbx + 0x10]
jmp 0x180008f46
xor edx, edx
call fcn.180008b58
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r13
pop r12
ret
Function at 0x18002dd34
Capabilities:
Encode data using xor

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 r13
push r14
sub rsp, 0x20
xor esi, esi
mov r13d, r8d
mov rdi, rdx
mov rbp, rcx
cmp rdx, rsi
jne 0x18002dd68
xor eax, eax
jmp 0x18002de38
mov edx, 0x10
call fcn.180005d10
mov rbx, rax
cmp rax, rsi
je 0x18002dd61
mov eax, dword [rdi]
mov dword [rbx], eax
test r13b, 1
jne 0x18002dd93
mov eax, 1
cmp dword [rdi], eax
jle 0x18002dd93
add eax, eax
cmp eax, dword [rdi]
jl 0x18002dd8d
lea edx, [rax + rax*4]
mov rcx, rbp
shl edx, 3
call fcn.180005d10
mov r12, rax
mov qword [rbx + 8], rax
cmp rax, rsi
jne 0x18002ddba
mov rdx, rbx
mov rcx, rbp
call fcn.180005a84
jmp 0x18002dd61
cmp dword [rdi], esi
mov r14, qword [rdi + 8]
jle 0x18002de35
mov rdx, qword [r14]
xor r9d, r9d
mov r8d, r13d
mov rcx, rbp
call fcn.18002d9fc
mov rcx, rbp
mov qword [r12], rax
mov rdx, qword [r14 + 8]
call fcn.180005e8c
mov rcx, rbp
mov qword [r12 + 8], rax
mov rdx, qword [r14 + 0x10]
call fcn.180005e8c
inc esi
add r12, 0x28
mov qword [r12 - 0x18], rax
mov al, byte [r14 + 0x18]
and dword [r12 - 0xc], 0xfffffffe
mov byte [r12 - 0x10], al
mov eax, dword [r14 + 0x1c]
add r14, 0x28
xor eax, dword [r12 - 0xc]
and eax, 2
xor eax, dword [r12 - 0xc]
mov dword [r12 - 0xc], eax
mov eax, dword [r14 - 8]
mov dword [r12 - 8], eax
cmp esi, dword [rdi]
jl 0x18002ddc2
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x18002f874
Capabilities:
Resolve function by parsing pe exports

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
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov r12, rcx
xor ecx, ecx
mov esi, r9d
mov ebp, r8d
lea r11d, [rcx + 0xa]
lea r10, [r12 + 0x88]
cmp dword [r10 + 0xc], 0
jle 0x18002f8be
cmp dword [r10], r9d
jne 0x18002f8be
movsx eax, word [r10 + 4]
cmp eax, r8d
je 0x18002f901
inc ecx
add r10, 0x14
cmp ecx, r11d
jl 0x18002f8a8
mov ebx, dword [rsp + 0x60]
mov r9d, r8d
mov rcx, rdi
mov r8d, esi
mov dword [rsp + 0x20], ebx
call fcn.18002f79c
mov r11b, byte [rsp + 0x68]
test r11b, r11b
je 0x18002f933
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18002f943
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r11b
jmp 0x18002f943
mov eax, dword [r12 + 0x74]
mov dword [r10 + 0x10], eax
inc dword [r12 + 0x74]
mov ecx, dword [r10 + 0xc]
lea rax, [r12 + 0x8e]
cmp dword [rax + 6], ecx
jne 0x18002f923
mov byte [rax], 0
add rax, 0x14
sub r11, 1
jne 0x18002f91b
mov eax, dword [r10 + 0xc]
jmp 0x18002f945
mov r9d, ebx
mov r8d, ebp
mov edx, esi
mov rcx, r12
call fcn.18002f620
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x18003e704
Capabilities:
Encode data using xor

Disassembly:
mov r9, qword [rcx]
xor edx, edx
mov rax, r9
cmp r9, rdx
je 0x18003e727
cmp byte [r9], dl
je 0x18003e71d
inc rax
cmp byte [rax], dl
jne 0x18003e716
sub eax, r9d
and eax, 0x3fffffff
mov edx, eax
mov rcx, qword [rcx + 0x70]
mov r8d, edx
mov rdx, r9
add rcx, 0x50
jmp fcn.180008d44