joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d2d0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14002d31c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14002d327
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14002d30a
mov qword [rdi], rsi
call fcn.1400072c0
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400072c0
mov r14, qword [rdi]
mov rcx, qword [0x140169900]
test rcx, rcx
je 0x14002d34c
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rdi], 0
jmp 0x14002d2f8
call fcn.14004eba0
mov rcx, qword [0x140169900]
jmp 0x14002d33b

Function at 0x14002e630
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14002e66c
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 0x14002e676
add rdi, rbx
sub rsi, rbx
jne 0x14002e64a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14002e9c0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x140141320]
mov qword [rcx], rax
add rcx, 8
call fcn.14000cc90
lea rcx, [rsi + 0x10]
call fcn.14000cc90
xor edi, edi
mov byte [rsi + 0x18], dil
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], edi
call fcn.14000cc90
mov byte [rsi + 0x48], dil
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rdi
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebx, 0x3f800000
mov dword [rsi + 0xd0], ebx
mov dword [rsi + 0xd8], edi
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebx
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebx
mov qword [rsi + 0x150], rdi
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x158], ebx
movups xmmword [rsi + 0x160], xmm6
movups xmmword [rsi + 0x170], xmm6
mov dword [rsi + 0x180], ebx
mov qword [rsi + 0x1a0], rdi
movups xmmword [rsi + 0x188], xmm6
mov dword [rsi + 0x198], edi
mov qword [rsi + 0x1a8], 1
lea rcx, [rsi + 0x1b0]
call fcn.14002ef40
lea rcx, [rsi + 0x2f8]
movups xmmword [rsi + 0x2e0], xmm6
mov qword [rsi + 0x2f0], rdi
xor edx, edx
call fcn.14002ec30
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14002ec30
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.14002ec30
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], ebx
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x361], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
call fcn.14000ab20
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x198], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x190], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14002ee10
lea rbx, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.14002ee60
mov rax, qword [rbx]
mov qword [rsi + 0x130], rax
mov rcx, rdi
call fcn.14002eda0
mov rcx, rsi
call fcn.14002f010
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14002ec1a
call fcn.140016e00
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
call fcn.140016aa0
mov qword [0x140169890], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140107cc0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x14002ebd3
Function at 0x14002ec50
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x140166310]
cmp ecx, 0xffffffff
je 0x14002ec76
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14002ec7b
call fcn.140021dc0
mov eax, dword [0x14016ba88]
mov ecx, dword [0x1401666f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002ed41
mov rbx, qword [0x14016ba80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002ed83
mov rcx, qword [0x14016a270]
inc rcx
mov edx, 0x100
lea rax, [0x14016a280]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14002ecf8
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14002ecf8
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x14002ecce
jmp 0x14002ed1d
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x14016a270], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14002ed90
cmp eax, 0x100
jge 0x14002ed93
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14016ba88]
call fcn.1401050e8
cmp dword [0x14016ba88], 0xffffffff
jne 0x14002eca0
mov ecx, 8
call fcn.140105030
mov qword [rax], 0
mov qword [0x14016ba80], rax
lea rcx, [0x14016ba88]
call fcn.1401052d4
jmp 0x14002eca0
mov rcx, rbx
call fcn.1400071b0
jmp 0x14002ecb8
int3
int3

Function at 0x1400313e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140102e80]
mov qword [rsp + 0x20], rax
lea rcx, [0x14016c088]
lea rdx, [0x140102e70]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140031474
cmp dword [0x14016c090], 0
jne 0x140031470
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14016c094]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140031470
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140107cc0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140031458
call fcn.140106230
int3
Function at 0x140031c50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140031c8c
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 0x140031c96
add rdi, rbx
sub rsi, rbx
jne 0x140031c6a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140106230
int3

Function at 0x14003bb40
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x140141df0]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.14003b740
xor edi, edi
test eax, eax
je 0x14003bbbd
lea rcx, [rsp + 0x20]
call fcn.14003ce10
cmp rax, 9
jne 0x14003bbd3
lea rcx, [rsp + 0x20]
call fcn.14003ce20
mov rcx, qword [rax]
xor rcx, qword [0x1401547cc]
mov al, byte [rax + 8]
xor al, byte [0x1401547d4]
movzx eax, al
or rax, rcx
jne 0x14003bbd3
lea rax, [0x1401547c8]
mov eax, dword [rax]
mov dword [rsi], eax
mov edi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140107cc0
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x20]
call fcn.14003ce10
cmp rax, 7
jne 0x14003bc0b
lea rcx, [rsp + 0x20]
call fcn.14003ce20
mov ecx, dword [rax]
xor ecx, dword [0x140154894]
mov eax, dword [rax + 3]
xor eax, dword [0x140154897]
or eax, ecx
jne 0x14003bc0b
lea rax, [0x140154890]
jmp 0x14003bbb4
lea rcx, [rsp + 0x20]
call fcn.14003ce10
cmp rax, 7
jne 0x14003bc46
lea rcx, [rsp + 0x20]
call fcn.14003ce20
mov ecx, dword [rax]
xor ecx, dword [0x14015495c]
mov eax, dword [rax + 3]
xor eax, dword [0x14015495f]
or eax, ecx
jne 0x14003bc46
lea rax, [0x140154958]
jmp 0x14003bbb4
lea rcx, [rsp + 0x20]
call fcn.14003ce10
cmp rax, 3
jne 0x14003bc87
lea rcx, [rsp + 0x20]
call fcn.14003ce20
movzx ecx, word [rax]
xor cx, word [0x140154a24]
mov al, byte [rax + 2]
xor al, byte [0x140154a26]
movzx eax, al
or ax, cx
jne 0x14003bc87
lea rax, [0x140154a20]
jmp 0x14003bbb4
lea rcx, [rsp + 0x20]
call fcn.14003ce10
cmp rax, 3
jne 0x14003bbbd
lea rcx, [rsp + 0x20]
call fcn.14003ce20
movzx ecx, word [rax]
xor cx, word [0x140154af4]
mov al, byte [rax + 2]
xor al, byte [0x140154af6]
movzx eax, al
or ax, cx
jne 0x14003bbbd
lea rax, [0x140154af0]
jmp 0x14003bbb4
Function at 0x14003c610
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140141df0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1401456fa]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3e6
call fcn.140006710
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140019a90
cmp byte [rdi + 0x17], 0
jns 0x14003c686
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140018cb0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140107cc0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003c6c0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov r14, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [0x140141df0]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x1401456e5]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x3d6
call fcn.140006710
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140019a90
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14010a410
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x14003c7d2
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0xb0], 0
je 0x14003c804
xor ecx, ecx
lea rax, [rcx + 1]
cmp word [rsp + rcx*2 + 0xb2], 0
mov rcx, rax
jne 0x14003c77f
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004e470
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14003c810
mov rcx, r14
mov rdx, rsi
call fcn.14004e400
mov rcx, rsi
call fcn.14004e3d0
mov rcx, rbx
call fcn.14004e3d0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.140018cb0
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140107cc0
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14003c791
Function at 0x1400466a0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400466cf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400466d2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140046720
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400466f5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400466f8
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004672f
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140107cc0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x140046774
cmp byte [rdi + 8], 0
jne 0x140046760
mov rcx, qword [rdi]
jmp 0x140046769
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
jne 0x140046742
mov rcx, qword [rdi]
jmp 0x14004674b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140046774
mov esi, dword [rsp + 0x24]
jmp 0x140046774
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.14009e920
mov sil, 1
jmp 0x140046709
Function at 0x140047a70
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14010a410
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140047b1f
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0x60], 0
je 0x140047b47
xor ecx, ecx
lea rax, [rcx + 1]
cmp word [rsp + rcx*2 + 0x62], 0
mov rcx, rax
jne 0x140047acf
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004e470
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14003c810
mov rcx, r14
mov rdx, rsi
call fcn.14004e400
mov rcx, rsi
call fcn.14004e3d0
mov rcx, rbx
call fcn.14004e3d0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140107cc0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140047ade

Function at 0x140047b50
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14010a410
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140047be8
cmp word [rsp + 0x70], 0
je 0x140047be8
mov qword [rsp + 0x60], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140047bae
lea rdx, [rsp + 0x60]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14004e470
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140107cc0
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140141df0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14004e3e0
mov rcx, rdi
call fcn.140047a70
test al, al
je 0x140047c28
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14009b420
jmp 0x140047c47
lea rax, [0x1401456aa]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14004e470
lea rcx, [rsp + 0x40]
call fcn.14004e3d0
jmp 0x140047bcb
Function at 0x140048380
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r9
mov r13d, r8d
mov r15d, ecx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140102e80]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14016c088]
lea rdx, [0x140102e70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140048521
cmp dword [0x14016c090], 0
jne 0x1400484e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14016c094]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1400484e1
mov rbx, qword [rsi]
test rbx, rbx
je 0x1400484e1
cmp r15d, 2
jne 0x14004842b
test r13d, r13d
jne 0x14004842b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov ecx, dword [rbx + 0x200]
lea eax, [rcx + 1]
and eax, 0xf
mov dword [rbx + 0x200], eax
cmp eax, dword [rbx + 0x204]
jne 0x140048451
add ecx, 2
and ecx, 0xf
mov dword [rbx + 0x204], ecx
mov r12d, dword [rsp + 0xa0]
mov ebp, eax
shl rbp, 5
lea rdi, [rbx + rbp]
add rdi, 8
mov rsi, qword [rdi]
test rsi, rsi
jne 0x1400484b9
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov qword [rbx + rbp], r14
mov word [rbx + rbp + 0x14], r12w
shl r15d, 0x18
and r13d, 0xfff
or r13d, r15d
mov dword [rbx + rbp + 0x10], r13d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140107cc0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsi - 8]
add rsi, 0xfffffffffffffff8
add r8, 8
mov rcx, rsi
xor edx, edx
call fcn.14010a410
mov rcx, qword [0x140166348]
mov rdx, rsi
xor r8d, r8d
call qword [rcx + 0x28]
jmp 0x14004846f
mov ecx, 0x210
call fcn.14004bd80
test rax, rax
je 0x14004849a
mov rbx, rax
mov r8d, 0x210
mov rcx, rax
xor edx, edx
call fcn.14010a410
lea r8, [0x140102940]
xor ecx, ecx
mov rdx, rbx
call fcn.14002a830
test eax, eax
jne 0x140048417
jmp 0x14004849a
call fcn.140106230
int3
Function at 0x1400498e0
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
movsxd r8, dword [rdx + 8]
test r8, r8
je 0x140049a5c
mov r14, rcx
mov edi, 1
cmovne rdi, r8
mov rcx, qword [rdx]
lea rbx, [rdi - 1]
mov eax, edi
and eax, 7
cmp rbx, 7
jae 0x14004991a
xor ebx, ebx
xor esi, esi
jmp 0x140049952
and rdi, 0xfffffffffffffff8
xor ebx, ebx
xor esi, esi
or rsi, qword [rcx + rbx*8]
or rsi, qword [rcx + rbx*8 + 8]
or rsi, qword [rcx + rbx*8 + 0x10]
or rsi, qword [rcx + rbx*8 + 0x18]
or rsi, qword [rcx + rbx*8 + 0x20]
or rsi, qword [rcx + rbx*8 + 0x28]
or rsi, qword [rcx + rbx*8 + 0x30]
or rsi, qword [rcx + rbx*8 + 0x38]
add rbx, 8
cmp rdi, rbx
jne 0x140049922
test rax, rax
je 0x140049969
lea rbx, [rcx + rbx*8]
xor edi, edi
or rsi, qword [rbx + rdi*8]
inc rdi
cmp rax, rdi
jne 0x14004995d
test rsi, rsi
je 0x140049a5c
test r8d, r8d
jle 0x140049a81
test byte [rcx], 1
je 0x140049a81
cmp dword [rdx + 0x10], 0
jne 0x140049aba
lea rdi, [r14 + 0x18]
mov rcx, rdi
call fcn.14004a600
test rax, rax
je 0x140049ada
mov eax, dword [r14 + 0x20]
test eax, eax
jle 0x140049aa1
mov rcx, qword [rdi]
lea edx, [rax - 1]
dec rax
cmp qword [rcx + rdx*8], 0
je 0x1400499a7
inc eax
mov dword [r14 + 0x20], eax
mov rax, qword [rdi]
mov r10, qword [rax]
mov eax, 1
mov r11d, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
movabs r9, 0x4000000000000000
mov edi, eax
and edi, 1
neg rdi
mov rbx, r10
and rbx, rdi
mov rsi, rbx
xor rsi, rax
shr rsi, 1
and rbx, rax
add rbx, rsi
mov esi, ebx
and esi, 1
neg rsi
mov rax, r10
and rax, rsi
mov rdx, rax
xor rdx, rbx
shr rdx, 1
and rax, rbx
add rax, rdx
and rsi, r8
shr rcx, 2
shr rdi, 1
and rdi, r9
or rcx, rdi
or rcx, rsi
add r11, 0xfffffffffffffffe
jne 0x1400499ec
mov qword [r14 + 0x30], rcx
mov qword [r14 + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rsp + 0x20], 0xa5
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.140048380
jmp 0x140049a50
mov dword [rsp + 0x20], 0xa9
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x140049a7a
mov dword [r14 + 0x20], eax
test eax, eax
jne 0x1400499c5
mov dword [r14 + 0x28], 0
jmp 0x1400499c5
mov dword [rsp + 0x20], 0xad
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x140049a7a
mov dword [rsp + 0x20], 0xb3
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x140049a7a
Function at 0x14004a7b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x14004a81e
xor r11d, r11d
mov r14, qword [r8 + r11*8]
mov r15, qword [rcx + r11*8]
mov rbx, r15
xor rbx, r14
mov edi, eax
lea rax, [rbx - 1]
mov rsi, r15
sub rsi, r14
xor rsi, r15
or rsi, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor rsi, r15
sar rsi, 0x3f
mov rbx, rsi
not rsi
and esi, 1
or rsi, rbx
mov rbx, rax
and edi, ebx
not rax
and rax, rsi
or rax, rdi
inc r11
cmp r10, r11
jne 0x14004a7cb
mov r10, rdx
sub r10, r9
jb 0x14004a845
jbe 0x14004a87c
mov rbx, r9
not rbx
add rbx, rdx
mov r8d, r10d
and r8d, 7
cmp rbx, 7
jae 0x14004a892
xor edx, edx
jmp 0x14004a8cc
mov rcx, qword [r8 + rdx*8]
lea rbx, [rdx + 1]
cmp rbx, r9
je 0x14004a860
or rcx, qword [r8 + rdx*8 + 8]
add rdx, 2
cmp rdx, r9
jne 0x14004a884
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
mov rdx, rcx
and edx, eax
not rcx
or ecx, edx
mov eax, ecx
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
je 0x14004a860
jmp 0x14004a884
and r10, 0xfffffffffffffff8
neg r10
xor edx, edx
or rdx, qword [rcx + r9*8]
or rdx, qword [rcx + r9*8 + 8]
or rdx, qword [rcx + r9*8 + 0x10]
or rdx, qword [rcx + r9*8 + 0x18]
or rdx, qword [rcx + r9*8 + 0x20]
or rdx, qword [rcx + r9*8 + 0x28]
or rdx, qword [rcx + r9*8 + 0x30]
or rdx, qword [rcx + r9*8 + 0x38]
add r9, 8
add r10, 8
jne 0x14004a89b
test r8, r8
je 0x14004a8e3
lea rcx, [rcx + r9*8]
xor ebx, ebx
or rdx, qword [rcx + rbx*8]
inc rbx
cmp r8, rbx
jne 0x14004a8d7
mov rcx, rdx
not rcx
dec rdx
and rdx, rcx
sar rdx, 0x3f
mov rcx, rdx
and ecx, eax
not rdx
and edx, 1
or edx, ecx
mov eax, edx
jmp 0x14004a87c