joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a2ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a302
mov al, 1
jmp 0x14001a362
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a313
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a360
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001dab8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a360
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a360
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a360
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a362
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001a748
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, [0x140035780]
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 0x14001a79f
cmp word [rdx], r13w
jne 0x14001a79f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a7a4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a8c9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a8ea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a7dd
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a804
cmp r9, r8
jae 0x14001a814
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 0x14001a7be
jmp 0x14001a8c9
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 0x14001a8be
cmp dword [rsp + 0x80], esi
je 0x14001a8be
lea r8, [0x140035780]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a896
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a866
mov word [rbx], r13w
jmp 0x14001a8c6
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 0x14001a873
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a8c6
cmp word [rsp + 0x70], r13w
jne 0x14001a8a3
cmp rbx, r14
je 0x14001a860
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001a6a4
cmp word [rsp + 0x70], r13w
je 0x14001a8c9
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, [0x140035780]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a8c3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a8c9
Function at 0x14001cc04
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 0x14001cc34
xor eax, eax
jmp 0x14001ccf7
mov rbp, rbx
cmp word [rax], si
je 0x14001cc59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001cc40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001cc3c
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.14001cb24
movsxd r14, eax
test eax, eax
jne 0x14001cc97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001cc2d
mov rcx, r14
call fcn.140016d20
mov rdi, rax
test rax, rax
jne 0x14001ccb0
xor ecx, ecx
call fcn.1400160a8
jmp 0x14001cc8c
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.14001cb24
test eax, eax
jne 0x14001cce1
mov rcx, rdi
call fcn.1400160a8
jmp 0x14001cceb
xor ecx, ecx
call fcn.1400160a8
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 0x140021e90
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.1400157dc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140021f1a
cmp byte [rbp - 0x21], r15b
je 0x140021f15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140021f50
call fcn.1400162f8
test eax, eax
jne 0x140021f3c
cmp byte [rbp - 0x21], r15b
je 0x140021f34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021f50
cmp byte [rbp - 0x21], r15b
je 0x140021f4d
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.14001b270
test eax, eax
jne 0x140021ff0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400157dc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140021f8f
cmp byte [rbp - 0x21], r15b
je 0x140021fc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021fc4
call fcn.1400162f8
test eax, eax
jne 0x140021fb0
cmp byte [rbp - 0x21], r15b
je 0x140021fa9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021fc4
cmp byte [rbp - 0x21], r15b
je 0x140021fc1
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.14001b270
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021ff0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021ff3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140022001
mov rcx, rdi
call fcn.1400160a8
cmp byte [rbp + 0x3f], r15b
je 0x140022010
mov rcx, qword [rbp + 0x27]
call fcn.1400160a8
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 0x140022e10
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.14001a6a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001a6a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140022f60
cmp rax, 0xffffffffffffffff
je 0x140022f60
xor edi, edi
test rbp, rbp
jle 0x140022f0b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140016030
mov rbx, rax
test rax, rax
jne 0x140022e98
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140022f01
mov edx, 0x8000
mov ecx, r14d
call fcn.140015b1c
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.140019eec
cmp eax, 0xffffffff
je 0x140022ee1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140022ea8
mov edx, r15d
mov ecx, r14d
call fcn.140015b1c
jmp 0x140022f01
cmp byte [rsi + 0x38], dil
je 0x140022ef8
cmp dword [rsi + 0x34], 5
jne 0x140022ef8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140022f01
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400160a8
jmp 0x140022f74
jns 0x140022f74
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001a6a4
cmp rax, 0xffffffffffffffff
jne 0x140022f2c
cmp byte [rsi + 0x30], dil
je 0x140022f74
mov edi, dword [rsi + 0x2c]
jmp 0x140022f74
mov ecx, r14d
call fcn.14001dab8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140022f74
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 0x140022f74
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140022f6d
mov eax, dword [rsi + 0x2c]
jmp 0x140022f72
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001a6a4
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 0x1400240e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024108
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024108
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800090b0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rdi
mov eax, 0x270
call fcn.1800514e0
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rax, qword [0x18027ceb0]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x18000912b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x18000912b
lea rbx, [rbp + 0x248]
call fcn.180052f68
mov rdx, qword [rbp + 0x240]
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.180064660
jmp 0x1800092df
mov r8, qword [rbp + 0x240]
mov rcx, r8
call fcn.180008e20
add eax, 1
mov edi, eax
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x180009155
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1800514e0
sub rsp, rcx
lea rbx, [rsp + 0x50]
test rbx, rbx
jne 0x18000917a
lea rbx, str.no_stack_
jmp 0x18000922d
mov r9d, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1800091ba
xor edx, edx
test rdi, rdi
je 0x1800091ba
nop
nop
mov rax, qword [rbp + 0x240]
add rdx, 1
cmp rdx, rdi
movsx ecx, byte [rdx + rax - 1]
mov word [rbx + rdx*2 - 2], cx
jb 0x1800091a0
xor edx, edx
test rdi, rdi
je 0x18000922d
lea r9, [0x180000000]
cmp word [rbx + rdx*2], 0x25
jne case.0x1800091f6.47
lea r8, [rbx + rdx*2 + 2]
movzx eax, word [r8]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x1800091f6.47
cdqe
movzx eax, byte [r9 + rax + 0x9314]
mov ecx, dword [r9 + rax*4 + 0x92fc]
add rcx, r9
jmp rcx
add rdx, 1
add r8, 2
jmp 0x1800091d4
mov word [rbx + rdx*2 + 2], 0x53
jmp case.0x1800091f6.47
mov word [rbx + rdx*2 + 2], 0x73
jmp case.0x1800091f6.47
mov word [rbx + rdx*2 + 2], 0x43
jmp case.0x1800091f6.47
mov word [rbx + rdx*2 + 2], 0x63
add rdx, 1
cmp rdx, rdi
jb 0x1800091c8
lea r9, [rbp + 0x248]
lea rcx, [rbp + 0x10]
mov r8, rbx
mov edx, 0xff
call fcn.18006454c
mov word [rbp + 0x20e], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1800092c6
call fcn.180008f80
test eax, eax
je 0x1800092c6
lea rdx, str.OPENSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x40], 0
xor r9d, r9d
mov rbx, rax
lea rax, [rbp + 0x10]
xor r8d, r8d
mov qword [rbp], rax
lea rax, [rbp]
mov dx, 1
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rcx, rbx
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1800092df
lea r8, str.OpenSSL:_FATAL
lea rdx, [rbp + 0x10]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.18004fba0
lea rsp, [rbp + 0x220]
pop rdi
pop rbx
pop rbp
ret
add byte [rax], al
add byte [rax - 0x7d], cl
invalid
Function at 0x180009360
Capabilities:
Terminate process

Disassembly:
mov eax, 0x28
call fcn.1800514e0
sub rsp, rax
mov r9, r8
mov r8d, edx
mov rdx, rcx
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
call fcn.1800090b0
add rsp, 0x28
jmp fcn.180055fec

Function at 0x180015b90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r13
push r14
push r15
mov eax, 0x70
call fcn.1800514e0
sub rsp, rax
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0xc0]
lea ebp, [rdx - 1]
mov r13d, r9d
lea eax, [rbp - 0x29]
mov r14, r8
mov r12, rcx
cmp r9d, eax
jle 0x180015bf9
mov edx, 0x79
lea r9, str..crypto_rsa_rsa_oaep.c
mov dword [rsp + 0x20], 0x2d
lea ecx, [rdx - 0x75]
lea r8d, [rdx - 0xb]
call fcn.180005690
xor eax, eax
jmp 0x180015de1
cmp ebp, 0x29
jge 0x180015c25
mov edx, 0x79
lea r9, str..crypto_rsa_rsa_oaep.c
mov dword [rsp + 0x20], 0x33
lea ecx, [rdx - 0x75]
lea r8d, [rdx - 1]
call fcn.180005690
xor eax, eax
jmp 0x180015de1
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
lea edi, [rbp - 0x14]
lea rdx, str..crypto_rsa_rsa_oaep.c
mov r8d, 0x37
mov ecx, edi
call fcn.180005950
test rax, rax
mov rsi, rax
jne 0x180015c73
lea r9, str..crypto_rsa_rsa_oaep.c
lea edx, [rax + 0x79]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov dword [rsp + 0x20], 0x3a
call fcn.180005690
xor eax, eax
jmp 0x180015dd7
mov byte [r12], 0
mov qword [rsp + 0x68], rbx
lea rbx, [r12 + 1]
add r12, 0x15
call fcn.180018400
movsxd rdx, dword [rsp + 0xc8]
xor r9d, r9d
mov r8, r12
mov rcx, r15
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.180018230
mov r11d, ebp
lea rcx, [r12 + 0x14]
xor edx, edx
sub r11d, r13d
sub r11d, 0x29
movsxd r8, r11d
call fcn.180050a30
movsxd r11, r13d
movsxd rax, ebp
sub rax, r11
mov r8, r13
mov rdx, r14
lea rcx, [rax + r12 - 0x14]
mov byte [rax + r12 - 0x15], 1
call fcn.18004f540
mov edx, 0x14
mov rcx, rbx
call fcn.180004850
test eax, eax
jg 0x180015cff
xor eax, eax
jmp 0x180015dd2
call fcn.180018400
mov r9d, 0x14
mov r8, rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180015a30
test edi, edi
jle 0x180015d42
mov r11, rsi
mov rcx, r12
mov r10d, edi
sub r11, r12
nop
movzx eax, byte [r11 + rcx]
add rcx, 1
xor byte [rcx - 1], al
sub r10, 1
jne 0x180015d30
call fcn.180018400
lea rcx, [rsp + 0x30]
mov r9d, edi
mov r8, r12
mov edx, 0x14
mov qword [rsp + 0x20], rax
call fcn.180015a30
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x31]
lea r9, [rsp + 0x32]
lea r10, [rsp + 0x33]
lea r11, [rsp + 0x34]
sub rdx, rbx
sub r8, rbx
sub r9, rbx
sub r10, rbx
mov ecx, 4
sub r11, rbx
nop
movzx eax, byte [rdx + rbx]
add rbx, 5
xor byte [rbx - 5], al
movzx eax, byte [r8 + rbx - 5]
xor byte [rbx - 4], al
movzx eax, byte [r9 + rbx - 5]
xor byte [rbx - 3], al
movzx eax, byte [r10 + rbx - 5]
xor byte [rbx - 2], al
movzx eax, byte [r11 + rbx - 5]
xor byte [rbx - 1], al
sub rcx, 1
jne 0x180015d90
mov rcx, rsi
call fcn.180005cd0
mov eax, 1
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004fba0
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180015e00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x80
call fcn.1800514e0
sub rsp, rax
mov rax, qword [0x18027ceb0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, dword [rsp + 0xe0]
mov rax, qword [rsp + 0xe8]
xor r13d, r13d
sub esi, 1
mov r14, r8
mov dword [rsp + 0x30], edx
cmp esi, 0x29
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
mov rbp, r13
mov r15d, r13d
jl 0x18001602a
mov eax, esi
sub eax, r9d
jns 0x180015e6f
lea r15d, [r13 + 1]
mov eax, r13d
mov r12, r8
movsxd rdi, eax
add esi, 0xffffffec
lea rdx, str..crypto_rsa_rsa_oaep.c
sub r12, rdi
mov r8d, 0x7a
mov ecx, esi
add r12, 0x14
call fcn.180005950
test rax, rax
mov rbp, rax
jne 0x180015ebe
lea r9, str..crypto_rsa_rsa_oaep.c
lea edx, [rax + 0x7a]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov dword [rsp + 0x20], 0x7d
call fcn.180005690
jmp 0x180016057
call fcn.180018400
mov ebx, 0x14
lea rcx, [rsp + 0x48]
mov edx, ebx
mov r9d, esi
mov r8, r12
mov qword [rsp + 0x20], rax
call fcn.180015a30
cmp rdi, rbx
jge 0x180015f04
mov rcx, rdi
sub rcx, rdi
add rcx, r14
nop
movzx eax, byte [rcx]
add rdi, 1
add rcx, 1
xor byte [rsp + rdi + 0x47], al
cmp rdi, rbx
jl 0x180015ef0
call fcn.180018400
lea r8, [rsp + 0x48]
mov r9d, ebx
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.180015a30
test esi, esi
movsxd rdi, esi
jle 0x180015f42
mov rcx, rbp
sub r12, rbp
mov rdx, rdi
movzx eax, byte [r12 + rcx]
add rcx, 1
xor byte [rcx - 1], al
sub rdx, 1
jne 0x180015f30
call fcn.180018400
movsxd rdx, dword [rsp + 0xf0]
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.180018230
mov rcx, qword [rbp]
lea rax, [rsp + 0x60]
cmp rcx, qword [rax]
jne 0x180015f8b
mov rcx, qword [rbp + 8]
cmp rcx, qword [rax + 8]
jne 0x180015f8b
mov ecx, dword [rbp + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x180015f93
sbb eax, eax
sbb eax, 0xffffffff
mov r13d, eax
test r13d, r13d
jne 0x18001602a
test r15d, r15d
jne 0x18001602a
cmp rbx, rdi
mov rax, rbx
jge 0x180015fc2
nop
cmp byte [rax + rbp], 0
jne 0x180015fc2
add rax, 1
add ebx, 1
cmp rax, rdi
jl 0x180015fb0
movsxd rax, ebx
cmp byte [rax + rbp], 1
jne 0x18001602a
mov eax, ebx
add ebx, 1
cmp eax, esi
jge 0x18001602a
sub esi, ebx
cmp dword [rsp + 0x30], esi
jge 0x18001600b
mov edx, 0x7a
lea r9, str..crypto_rsa_rsa_oaep.c
mov dword [rsp + 0x20], 0x9b
lea ecx, [rdx - 0x76]
lea r8d, [rdx - 0xd]
call fcn.180005690
mov rcx, rbp
or esi, 0xffffffff
call fcn.180005cd0
mov eax, esi
jmp 0x18001605a
mov rcx, qword [rsp + 0x38]
movsxd rdx, ebx
movsxd r8, esi
add rdx, rbp
call fcn.18004f540
mov rcx, rbp
call fcn.180005cd0
mov eax, esi
jmp 0x18001605a
mov edx, 0x7a
lea r9, str..crypto_rsa_rsa_oaep.c
mov dword [rsp + 0x20], 0xa8
lea ecx, [rdx - 0x76]
lea r8d, [rdx - 1]
call fcn.180005690
test rbp, rbp
je 0x180016057
mov rcx, rbp
call fcn.180005cd0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18004fba0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180016150
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x38
call fcn.1800514e0
sub rsp, rax
cmp dword [rsp + 0x60], r9d
mov r10, rcx
jne 0x180016238
movzx eax, byte [r8]
cmp al, 0x6a
je 0x18001617b
cmp al, 0x6b
jne 0x180016238
cmp al, 0x6b
mov qword [rsp + 0x30], rbx
lea rdx, [r8 + 1]
jne 0x1800161e7
lea ebx, [r9 - 3]
xor eax, eax
test ebx, ebx
jle 0x1800161aa
movzx ecx, byte [rdx]
add rdx, 1
cmp cl, 0xba
je 0x1800161aa
cmp cl, 0xbb
jne 0x1800161dd
add eax, 1
cmp eax, ebx
jl 0x180016192
sub ebx, eax
test eax, eax
jne 0x1800161eb
mov dword [rsp + 0x20], 0x8a
mov edx, 0x80
lea r9, str..crypto_rsa_rsa_x931.c
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xa]
call fcn.180005690
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
mov dword [rsp + 0x20], 0x81
jmp 0x1800161b8
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x180016221
mov edx, 0x80
lea r9, str..crypto_rsa_rsa_x931.c
mov dword [rsp + 0x20], 0x93
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xb]
call fcn.180005690
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
mov r8d, ebx
mov rcx, r10
call fcn.18004f540
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
mov edx, 0x80
lea r9, str..crypto_rsa_rsa_x931.c
mov dword [rsp + 0x20], 0x72
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 9]
call fcn.180005690
or eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x180025cf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x20
call fcn.1800514e0
sub rsp, rax
mov eax, dword [r8 + 8]
mov rsi, rdx
mov rbx, rcx
cmp dword [rdx + 8], eax
jge 0x180025d1c
mov rdi, r8
jmp 0x180025d22
mov rdi, rdx
mov rsi, r8
mov edx, dword [rdi + 8]
cmp edx, dword [rcx + 0xc]
jle 0x180025d2f
call fcn.180001940
xor r8d, r8d
cmp dword [rsi + 8], r8d
jle 0x180025d65
mov r9, r8
nop
nop
mov rax, qword [rdi]
mov rcx, qword [rsi]
add r8d, 1
mov rdx, qword [rcx + r9]
add r9, 8
xor rdx, qword [rax + r9 - 8]
mov rax, qword [rbx]
mov qword [r9 + rax - 8], rdx
cmp r8d, dword [rsi + 8]
jl 0x180025d40
cmp r8d, dword [rdi + 8]
movsxd rdx, r8d
jge 0x180025d8f
shl rdx, 3
mov rax, qword [rdi]
mov rcx, qword [rbx]
add r8d, 1
mov rax, qword [rdx + rax]
add rdx, 8
mov qword [rdx + rcx - 8], rax
cmp r8d, dword [rdi + 8]
jl 0x180025d72
mov eax, dword [rdi + 8]
test eax, eax
mov dword [rbx + 8], eax
jle 0x180025dc5
add eax, 0xffffffff
movsxd rcx, eax
mov rax, qword [rbx]
lea rdx, [rax + rcx*8]
nop
nop
nop
mov rax, qword [rdx]
sub rdx, 8
test rax, rax
jne 0x180025dc5
add dword [rbx + 8], 0xffffffff
cmp dword [rbx + 8], eax
jg 0x180025db0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x18002b210
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r8d, dword [rcx]
mov eax, dword [rcx + 4]
mov ebx, dword [rdx]
mov edi, dword [rdx + 4]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
mov r9, rcx
mov r10d, 0xc6ef3720
mov r11d, 0x20
nop dword [rax]
nop dword [rax + rax]
mov edx, r8d
mov ecx, r8d
dec r11d
shr edx, 5
shl ecx, 4
add edx, ebp
add ecx, esi
xor edx, ecx
lea ecx, [r10 + r8]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
add edx, edi
add ecx, ebx
xor edx, ecx
lea ecx, [r10 + rax]
lea r10d, [r10 + 0x61c88647]
xor edx, ecx
sub r8d, edx
test r11d, r11d
jg 0x18002b250
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r9], r8d
mov dword [r9 + 4], eax
ret

Function at 0x18002b490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r8d, dword [rcx]
mov eax, dword [rcx + 4]
mov ebx, dword [rdx]
mov edi, dword [rdx + 4]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
mov r9, rcx
xor r10d, r10d
mov r11d, 0x20
mov edx, eax
mov ecx, eax
lea r10d, [r10 - 0x61c88647]
shr edx, 5
shl ecx, 4
dec r11d
add edx, edi
add ecx, ebx
xor edx, ecx
lea ecx, [r10 + rax]
xor edx, ecx
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
add edx, ebp
add ecx, esi
xor edx, ecx
lea ecx, [r10 + r8]
xor edx, ecx
add eax, edx
test r11d, r11d
jg 0x18002b4c1
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r9], r8d
mov dword [r9 + 4], eax
ret