joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001462c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140005a80
sub rsp, rax
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001320c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001467b
mov rax, rbp
jmp 0x140014783
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x32450]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001574c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32450]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001477f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001477f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001574c
test rax, rax
js 0x14001477f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001477f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014771
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014771
cmp byte [rcx], 0xd
jne 0x140014757
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140014766
cmp byte [rcx + 1], 0xa
jne 0x140014766
inc rcx
jmp 0x140014766
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140014739
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014783
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400054f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400149a4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400149ba
mov al, 1
jmp 0x140014a1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400149cb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014a18
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001992c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014a18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014a18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014a18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014a1a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140014aec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140032450]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140014b43
cmp word [rdx], r13w
jne 0x140014b43
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140014b48
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014c6d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140014c8e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014b81
mov rdx, r9
mov word [rbx], cx
jmp 0x140014ba8
cmp r9, r8
jae 0x140014bb8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140014b62
jmp 0x140014c6d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014c62
cmp dword [rsp + 0x80], esi
je 0x140014c62
lea r8, [0x140032450]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140014c3a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140014c0a
mov word [rbx], r13w
jmp 0x140014c6a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140014c17
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140014c6a
cmp word [rsp + 0x70], r13w
jne 0x140014c47
cmp rbx, r14
je 0x140014c04
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015754
cmp word [rsp + 0x70], r13w
je 0x140014c6d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140032450]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140014c67
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014c6d
Function at 0x1400190c4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400190f4
xor eax, eax
jmp 0x1400191b7
mov rbp, rbx
cmp word [rax], si
je 0x140019119
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019100
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400190fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012120
movsxd r14, eax
test eax, eax
jne 0x140019157
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400190ed
mov rcx, r14
call fcn.1400120c0
mov rdi, rax
test rax, rax
jne 0x140019170
xor ecx, ecx
call fcn.140012084
jmp 0x14001914c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012120
test eax, eax
jne 0x1400191a1
mov rcx, rdi
call fcn.140012084
jmp 0x1400191ab
xor ecx, ecx
call fcn.140012084
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001be80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140011d24
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001bf21
cmp ebx, dword [rsp + 0x30]
je 0x14001bf1a
test esi, esi
je 0x14001bf1a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001bef5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001bf02
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001bedf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001bf06
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001bf23
mov eax, 1
jmp 0x14001bf23
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d674
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000deb8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d6fe
cmp byte [rbp - 0x21], r15b
je 0x14001d6f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d734
call fcn.14001271c
test eax, eax
jne 0x14001d720
cmp byte [rbp - 0x21], r15b
je 0x14001d718
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d734
cmp byte [rbp - 0x21], r15b
je 0x14001d731
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000dff0
test eax, eax
jne 0x14001d7d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000deb8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d773
cmp byte [rbp - 0x21], r15b
je 0x14001d7a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d7a8
call fcn.14001271c
test eax, eax
jne 0x14001d794
cmp byte [rbp - 0x21], r15b
je 0x14001d78d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d7a8
cmp byte [rbp - 0x21], r15b
je 0x14001d7a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000dff0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d7d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d7d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d7e5
mov rcx, rdi
call fcn.140012084
cmp byte [rbp + 0x3f], r15b
je 0x14001d7f4
mov rcx, qword [rbp + 0x27]
call fcn.140012084
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001ef60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ef88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ef88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001b10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movdqa xmm0, xmmword [0x180004380]
mov rdi, rdx
movdqu xmmword [rsp + 0x20], xmm0
mov rbp, rcx
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180001b40
inc rbx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r8d, r8d
mov rsi, rax
test rbx, rbx
je 0x180001b8f
sub rdi, rax
nop dword [rax]
nop word [rax + rax]
mov rcx, r8
lea rdx, [r8 + rsi]
and ecx, 0xf
movzx eax, byte [rsp + rcx + 0x20]
xor al, byte [rdi + rdx]
xor al, r8b
inc r8
mov byte [rdx], al
cmp r8, rbx
jb 0x180001b70
mov rdx, rsi
mov rcx, rbp
call qword [0x180006670]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180001bc0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180006008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x60]
xor esi, esi
mov dword [rsp + 0x30], 0x65006b
mov dword [rsp + 0x34], 0x6e0072
mov dword [rsp + 0x38], 0x6c0065
mov dword [rsp + 0x3c], 0x320033
mov dword [rsp + 0x40], 0x64002e
mov dword [rsp + 0x44], 0x6c006c
mov word [rsp + 0x48], si
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
cmp qword [rbx + 0x30], rsi
je 0x180001c50
nop dword [rax]
mov rcx, qword [rbx + 0x60]
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x180001cce
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], rsi
jne 0x180001c30
mov rbx, qword [0x180006680]
movsxd rax, dword [rbx + 0x3c]
mov edx, esi
mov r10d, dword [rax + rbx + 0x88]
add r10, rbx
mov r8d, dword [r10 + 0x20]
movsxd r9, dword [r10 + 0x18]
add r8, rbx
test r9, r9
jle 0x180001d00
mov rcx, rsi
nop
mov eax, dword [r8 + rcx*4]
add rax, rbx
cmp byte [rax], 0x47
jne 0x180001cc2
cmp byte [rax + 1], 0x65
jne 0x180001cc2
cmp byte [rax + 2], 0x74
jne 0x180001cc2
cmp byte [rax + 3], 0x50
jne 0x180001cc2
cmp byte [rax + 4], 0x72
jne 0x180001cc2
cmp byte [rax + 5], 0x6f
jne 0x180001cc2
cmp byte [rax + 6], 0x63
jne 0x180001cc2
cmp byte [rax + 7], 0x41
jne 0x180001cc2
cmp byte [rax + 8], 0x64
jne 0x180001cc2
cmp byte [rax + 9], 0x64
je 0x180001cde
inc edx
inc rcx
cmp rcx, r9
jl 0x180001c80
jmp 0x180001d00
mov rbx, qword [rbx + 0x30]
mov qword [0x180006680], rbx
jmp 0x180001c57
mov eax, dword [r10 + 0x24]
add rax, rbx
movsxd rcx, edx
movzx edx, word [rax + rcx*2]
mov ecx, dword [r10 + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov qword [0x180006670], rax
movdqa xmm0, xmmword [0x180004380]
mov ecx, 0xe
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rcx, [0x180004300]
mov r10, rsi
sub rcx, rax
mov rdi, rax
nop dword [rax]
mov rdx, r10
lea r9, [r10 + rax]
and edx, 0xf
movzx r8d, byte [rsp + rdx + 0x20]
xor r8b, byte [rcx + r9]
xor r8b, r10b
inc r10
mov byte [r9], r8b
cmp r10, 0xe
jb 0x180001d30
mov rdx, rdi
mov rcx, rbx
call qword [0x180006670]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
mov qword [0x180006660], rbx
setne sil
mov eax, esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180002eb0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180001ee0
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x180006008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [rdx + 0x10]
mov r10, rcx
test rdi, rdi
je 0x180001f48
mov r8d, dword [rdx + 0x18]
bt r8d, 0x19
jae 0x180001f60
mov rcx, qword [rdx]
cmp rcx, qword [rdx + 8]
jne 0x180001f48
cmp dword [rdx + 0x1c], 0
jne 0x180001f37
mov rax, qword [r10]
mov edx, dword [r10 + 0x68]
cmp dword [rax + 0x38], edx
je 0x180001f37
mov r8d, edx
mov rax, rdi
xor edx, edx
div r8
test rdx, rdx
jne 0x180001f48
mov r9, qword [r10 + 0x58]
mov r8d, 0x4000
mov rdx, rdi
call qword [r10 + 0x30]
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180002eb0
add rsp, 0x60
pop rdi
ret
mov qword [rsp + 0x58], rbp
mov rcx, r8
shr rcx, 0x1d
mov rax, r8
shr rax, 0x1e
and ecx, 1
and eax, 1
mov qword [rsp + 0x50], rsi
mov rsi, qword [0x180006688]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
mov r15, qword [rdx]
lea rcx, [rax + rcx*2]
mov rax, r8
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180004348]
mov r14d, dword [rax + rcx*4]
bts r14d, 9
bt r8d, 0x1a
cmovae r14d, dword [rax + rcx*4]
xor ebp, ebp
test rsi, rsi
jne 0x18000204a
movdqa xmm0, xmmword [0x180004380]
lea ecx, [rbp + 0x10]
mov rsi, qword [0x180006680]
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x80], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
lea r10, [0x180004310]
sub r10, rbx
mov eax, ebp
nop dword [rax + rax]
mov rdx, rax
lea r9, [rax + rbx]
and edx, 0xf
movzx r8d, byte [rsp + rdx + 0x20]
xor r8b, byte [r10 + r9]
xor r8b, al
inc rax
mov byte [r9], r8b
cmp rax, 0x10
jb 0x180002000
mov rdx, rbx
mov rcx, rsi
call qword [0x180006670]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x80]
mov qword [0x180006688], rsi
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rdx, rdi
mov rcx, r15
call rsi
mov r15, qword [rsp + 0x40]
test eax, eax
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
setne bpl
mov eax, ebp
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180002eb0
add rsp, 0x60
pop rdi
ret
Function at 0x180002090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r9, qword [rcx]
movabs rax, 0xffffffff00000000
mov r8d, dword [rcx + 0x68]
mov rsi, rcx
mov r12d, r8d
neg r12
movzx edi, word [r9 + 0x14]
mov r10, qword [r9 + 0x30]
add rdi, r9
and r10, rax
mov qword [rsp + 0x70], r10
mov ebp, dword [rdi + 0x20]
mov eax, dword [rdi + 0x28]
or rbp, r10
and r12, rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r12
test eax, eax
jne 0x1800020fa
mov ecx, dword [rdi + 0x3c]
test cl, 0x40
je 0x1800020f2
mov eax, dword [r9 + 0x20]
jmp 0x1800020fa
test cl, cl
jns 0x1800020fa
mov eax, dword [r9 + 0x24]
mov ecx, dword [rdi + 0x3c]
mov edx, eax
mov eax, 1
mov r13d, eax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], 0
cmp ax, word [r9 + 6]
jae 0x180002202
add rdi, 0x64
nop dword [rax]
mov r15d, dword [rdi - 0x1c]
mov eax, r8d
or r15, r10
mov ebx, r8d
mov r10d, dword [rdi - 0x14]
neg rbx
and rbx, r15
test r10d, r10d
jne 0x180002177
mov r11d, dword [rdi]
test r11b, 0x40
je 0x18000216b
mov r10d, dword [r9 + 0x20]
jmp 0x180002177
test r11b, r11b
jns 0x180002177
mov r10d, dword [r9 + 0x24]
mov eax, dword [rsi + 0x68]
mov r14d, r10d
cmp r12, rbx
je 0x1800021b7
mov r8d, eax
lea rax, [rdx + rbp]
cmp rax, rbx
ja 0x1800021b7
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180001ee0
test eax, eax
je 0x1800021f9
mov ecx, dword [rdi]
mov rbp, r15
mov r8d, dword [rsi + 0x68]
mov r12, rbx
mov qword [rsp + 0x20], r15
mov edx, r14d
mov qword [rsp + 0x28], rbx
jmp 0x1800021d2
mov edx, dword [rdi]
mov eax, edx
and eax, ecx
or ecx, edx
bt eax, 0x19
jb 0x1800021c9
btr ecx, 0x19
mov rdx, r14
sub rdx, rbp
add rdx, r15
mov r9, qword [rsi]
inc r13d
add rdi, 0x28
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
movzx eax, word [r9 + 6]
cmp r13d, eax
jge 0x1800021fd
mov r10, qword [rsp + 0x70]
jmp 0x180002140
xor eax, eax
jmp 0x18000221d
mov eax, 1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov rcx, rsi
call fcn.180001ee0
test eax, eax
mov eax, 0
setne al
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800024c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov rbx, qword [0x180006690]
mov esi, r8d
mov rbp, rdx
mov r14, rcx
test rbx, rbx
jne 0x180002566
movdqa xmm0, xmmword [0x180004380]
mov ecx, 0xd
mov rbx, qword [0x180006680]
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x40], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r9d, r9d
lea r10, [0x180004338]
sub r10, rax
mov rdi, rax
nop
mov rax, r9
lea r8, [r9 + rdi]
and eax, 0xf
movzx edx, byte [rsp + rax + 0x20]
xor dl, byte [r10 + r8]
xor dl, r9b
inc r9
mov byte [r8], dl
cmp r9, 0xd
jb 0x180002520
mov rdx, rdi
mov rcx, rbx
call qword [0x180006670]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x40]
mov qword [0x180006690], rbx
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180867058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808671df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180867089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18086706f
add dl, dl
jne 0x180867096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808670f6
xor eax, eax
add dl, dl
jne 0x1808670a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808671ad
add dl, dl
jne 0x1808670b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808670c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808670d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808670dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808670ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18086707e
mov eax, 1
add dl, dl
jne 0x180867106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180867113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808670fb
sub eax, ebx
mov ebx, 1
jne 0x18086714c
mov ecx, 1
add dl, dl
jne 0x18086712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18086713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180867123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18086707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180867168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180867175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18086715d
cmp eax, 0x7d00
jae 0x18086719b
cmp eax, 0x500
jb 0x180867196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18086707e
cmp eax, 0x7f
ja 0x18086719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18086707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808671d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18086707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20