joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016d72c
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.14014857c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14016d7b6
cmp byte [rbp - 0x21], r15b
je 0x14016d7b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14016d7ec
call fcn.1401606b4
test eax, eax
jne 0x14016d7d8
cmp byte [rbp - 0x21], r15b
je 0x14016d7d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14016d7ec
cmp byte [rbp - 0x21], r15b
je 0x14016d7e9
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.14014db64
test eax, eax
jne 0x14016d88c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14014857c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14016d82b
cmp byte [rbp - 0x21], r15b
je 0x14016d860
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14016d860
call fcn.1401606b4
test eax, eax
jne 0x14016d84c
cmp byte [rbp - 0x21], r15b
je 0x14016d845
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14016d860
cmp byte [rbp - 0x21], r15b
je 0x14016d85d
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.14014db64
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14016d88c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14016d88f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14016d89d
mov rcx, rdi
call fcn.140117bf0
cmp byte [rbp + 0x3f], r15b
je 0x14016d8ac
mov rcx, qword [rbp + 0x27]
call fcn.140117bf0
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 0x140187f80
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14013a754
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140187ff0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.14014dce0
mov qword [rbx], rax
test rax, rax
je 0x140187fd7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140190fc0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400e9220
test al, al
je 0x140190fe2
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140196730
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140205888], 0
je 0x140196776
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14013bb80
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x140205860]
test rdi, rdi
je 0x140196817
test byte [0x1401fc3dc], 1
je 0x140196759
cmp byte [rdi + 0x17], 0
jns 0x140196798
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140205888], rax
inc rax
cmp rax, 1
ja 0x140196759
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14013dca0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1401968e2
xor esi, esi
jmp 0x140196759
mov ecx, 0x18
call fcn.14013a754
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14013dca0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1401c9ef0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14016fbf0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14019687e
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x140196884
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x1401968aa
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14008c9f0
mov qword [0x140205860], rdi
jmp 0x140196786
lea r8, [rax + rax]
test r8, r8
je 0x140196889
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1401968ae
cmp rdx, 0xfffffffffffffffe
je 0x140196889
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x1401969a9
mov rcx, rdi
call fcn.1401885c0
jmp 0x140196889
mov rdi, qword [0x140205860]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14015bcc0
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14008c6d0
mov rcx, qword [0x140205860]
call fcn.14008aa10
cmp word [rax], 0x5c
je 0x14019692f
mov rcx, qword [0x140205860]
lea rdx, [0x1401d426e]
mov r8d, 1
call fcn.14008c9f0
mov rcx, qword [0x140205860]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14008c9f0
mov rcx, qword [0x140205860]
cmp byte [rcx + 0x17], 0
jns 0x140196958
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140205888], rax
inc rax
cmp rax, 1
ja 0x140196759
mov qword [0x140205888], 0
jmp 0x140196810
call fcn.140153cb0
int3
Function at 0x14019aed0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14019af0e
test rax, rax
je 0x14019afcb
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x14019aff7
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x14019afbe
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x14019afcb
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.14013d5f0
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x14019af02
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14019b530
mov rcx, rdi
mov rdx, r15
call fcn.14019bab0
jmp 0x14019af5d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140170320
call fcn.140153cb0
int3

Function at 0x1401a8120
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1401a81a8
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1401a81a1
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1401a8162
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14013bb80
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1401aefd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1401af00c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401af016
add rdi, rbx
sub rsi, rbx
jne 0x1401aefea
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140153cb0
int3
Function at 0x140010af0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140010b25
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x90], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140010c90
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
xor ebx, ebx
test eax, eax
jle 0x140010c29
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140010c90
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jl 0x140010ba0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.14000e390
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x140010c69
mov rdi, r14
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140010c69
call fcn.140010c98
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x140010c50
mov rcx, r14
call fcn.140010c98
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x140eab62c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140eab636
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140eab65f
pop rbp
sub rbp, 0x33
sub rbp, 0xeab62c
sub rsp, 0x20
jmp 0x140eab67e
mov rax, 0xeab62c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x4d64dcd8
xor byte [rax], dl
inc rax
dec rcx
jne 0x140eab69d
jmp 0x140eab6b4
nop
push rcx
xor dword [rbx + 0x51], edx
in al, 0xd8
fcomp st(0)
nop
pop rcx
sbb eax, edx
fstpnce st(0), st(0)
fcom dword [rax + 0x1f9031d9]
sbb bh, bl
fcomp st(0)
fcom dword [rax - 0x270fe5e1]
fcomp st(0)
nop
invalid
Function at 0x140004f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov rbx, r9
mov rsi, r8
mov r10, rdx
cmp rcx, rdx
jne 0x140004f1d
xor al, al
mov rbx, qword [rsp + 0x28]
pop rsi
ret
mov qword [rsp + 0x18], rbp
movzx ebp, byte [rcx]
lea eax, [rbp - 0x2b]
test al, 0xfd
jne 0x140004f2f
inc rcx
mov r11, r10
sub r11, rcx
cmp r11, 3
jge 0x140004f49
xor al, al
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x28]
pop rsi
ret
mov qword [rsp + 0x20], rdi
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov r9d, eax
sub rdi, rcx
mov rdx, rcx
sub rbx, rcx
movzx r8d, byte [rdx]
cmp r8b, byte [rdi + rdx]
je 0x140004f71
cmp r8b, byte [rbx + rdx]
jne 0x140004fc1
inc r9d
inc rdx
cmp r9d, 3
jb 0x140004f61
add rcx, 3
cmp r10, rcx
je 0x140005045
mov rax, r10
sub rax, rcx
cmp rax, 2
jl 0x140004fae
movzx eax, byte [rsp + 0x48]
cmp byte [rcx], al
jne 0x140004fae
movzx eax, byte [rsp + 0x50]
cmp byte [r10 - 1], al
je 0x140005045
mov rdi, qword [rsp + 0x20]
xor al, al
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x28]
pop rsi
ret
cmp r11, 3
jne 0x140004ff2
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
sub r8, rcx
sub r9, rcx
movzx edx, byte [rcx]
cmp dl, byte [r8 + rcx]
je 0x140004fe6
cmp dl, byte [r9 + rcx]
jne 0x140004fae
inc eax
inc rcx
cmp eax, 3
jb 0x140004fd7
jmp 0x140005029
cmp r11, 8
jne 0x140004fae
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
sub r8, rcx
sub r9, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
cmp dl, byte [rcx + r8]
je 0x14000501f
cmp dl, byte [rcx + r9]
jne 0x140004fae
inc eax
inc rcx
cmp eax, 8
jb 0x140005010
cmp bpl, 0x2d
je 0x14000503b
movabs rax, 0x7ff0000000000000
jmp 0x140005077
movsd xmm0, qword [0x140055118]
jmp 0x14000505f
cmp bpl, 0x2d
je 0x140005057
movabs rax, 0x7ff8000000000000
jmp 0x140005077
movsd xmm0, qword [0x140055120]
movsd qword [rsp + 0x10], xmm0
movabs rcx, 0x8000000000000000
mov rax, qword [rsp + 0x10]
xor rax, rcx
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x28]
mov qword [rsi], rax
mov al, 1
pop rsi
ret
Function at 0x140035170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov byte [rax + 0x18], r8b
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, r9
movzx eax, r8b
mov r13, rdx
mov r14, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rcx + 8]
mov r12, rcx
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x1400352a4
mov r15, qword [r9 + 0x10]
mov r12, rbx
test al, al
je 0x140035226
lea rcx, [rbx + 0x20]
cmp qword [rsi + 0x18], 0x10
jb 0x1400351dc
mov rdx, qword [rsi]
jmp 0x1400351df
mov rdx, rsi
lea r14, [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x1400351ed
mov rcx, qword [rcx]
mov r14, qword [r14]
mov r8, r15
cmp r14, r15
cmovb r8, r14
test r8, r8
je 0x14003520a
call sub.VCRUNTIME140.dll_memcmp
mov edi, eax
test eax, eax
jne 0x14003521d
cmp r14, r15
jae 0x140035214
or edi, 0xffffffff
jmp 0x14003521d
xor edi, edi
cmp r14, r15
seta dil
shr edi, 0x1f
xor dil, 1
jmp 0x14003527a
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140035238
mov rdx, qword [rdx]
cmp qword [rsi + 0x18], 0x10
jb 0x140035244
mov rcx, qword [rsi]
jmp 0x140035247
mov rcx, rsi
mov rdi, qword [rdi]
mov r8, rdi
cmp r15, rdi
cmovb r8, r15
test r8, r8
je 0x140035262
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140035274
cmp r15, rdi
jae 0x14003526c
or eax, 0xffffffff
jmp 0x140035274
xor eax, eax
cmp r15, rdi
seta al
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140035284
mov rbx, qword [rbx]
jmp 0x140035288
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
movzx eax, byte [rsp + 0x80]
je 0x1400351c5
mov rcx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x70]
mov rbx, r12
test dil, dil
je 0x14003534a
cmp r12, qword [rcx]
jne 0x1400352ed
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140034ea0
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003539c
cmp byte [r12 + 0x19], 0
je 0x1400352fc
mov rbx, qword [r12 + 0x10]
jmp 0x14003534a
mov rax, qword [r12]
cmp byte [rax + 0x19], 0
jne 0x140035322
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14003534a
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140035313
jmp 0x14003534a
mov rax, qword [r12 + 8]
cmp byte [rax + 0x19], 0
jne 0x140035342
nop dword [rax]
cmp rbx, qword [rax]
jne 0x140035342
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140035330
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, rsi
call fcn.140012b20
test al, al
je 0x140035390
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
movzx r8d, dil
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140034ea0
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003539c
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400436c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14009e240], rbx
je 0x14004370c
cmp rax, rbx
jne 0x1400436ff
mov ebx, 1
mov esi, ebx
jmp 0x140043711
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400436e4
mov ebx, 1
mov eax, dword [0x14009e248]
cmp eax, ebx
jne 0x140043727
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14004378c
mov eax, dword [0x14009e248]
test eax, eax
jne 0x140043786
mov dword [0x14009e248], ebx
lea r15, [0x140053f60]
lea rdi, [0x140053f48]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140043778
test eax, eax
jne 0x14004377c
cmp qword [rdi], 0
je 0x14004376d
mov rax, qword [rdi]
mov rcx, qword [0x140053f18]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14004374e
test eax, eax
je 0x14004378c
mov eax, 0xff
jmp 0x140043868
mov dword [0x14007c4b4], ebx
mov eax, dword [0x14009e248]
cmp eax, ebx
jne 0x1400437b3
lea rdx, [0x140053f40]
lea rcx, [0x140053f20]
call sub.msvcrt.dll__initterm
mov dword [0x14009e248], 2
test esi, esi
jne 0x1400437c0
xor eax, eax
xchg qword [0x14009e240], rax
cmp qword [0x14009e260], 0
je 0x1400437f4
lea rcx, [0x14009e260]
call fcn.140044300
test eax, eax
je 0x1400437f4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009e260]
mov r9, qword [0x140053f18]
call r9
mov r8, qword [0x14007c4c8]
mov rdx, qword [0x14007c4c0]
mov ecx, dword [0x14007c4b8]
call fcn.1400012fc
mov dword [0x14007c4b0], eax
cmp dword [0x14007c4d0], 0
jne 0x140043824
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14007c4b4], 0
jne 0x140043839
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14007c4b0]
jmp 0x140043868
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140130000
add rsp, 0x28
jmp 0x1400436c0

Function at 0x140043ea8
Capabilities:
Print debug messages

Disassembly:
jmp 0x140043eb4
push rbx
sub rsp, 0x540
mov rax, qword [0x14007c478]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140043f31
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140043f51
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400438c0
add rsp, 0x540
pop rbx
ret
Function at 0x140d61058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d611df
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 0x140d61089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6106f
add dl, dl
jne 0x140d61096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d610f6
xor eax, eax
add dl, dl
jne 0x140d610a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d611ad
add dl, dl
jne 0x140d610b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d610c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d610d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d610dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d610ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d6107e
mov eax, 1
add dl, dl
jne 0x140d61106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d61113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d610fb
sub eax, ebx
mov ebx, 1
jne 0x140d6114c
mov ecx, 1
add dl, dl
jne 0x140d6112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d6113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d61123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d61168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d61175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6115d
cmp eax, 0x7d00
jae 0x140d6119b
cmp eax, 0x500
jb 0x140d61196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6107e
cmp eax, 0x7f
ja 0x140d6119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d611d2
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 0x140d6107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20