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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x40], r15
movaps xmm6, xmmword [0x140158be0]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x3a1
call fcn.1400442c0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140049e70
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140066853
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006689f
mov bl, 1
test al, 0x10
je 0x140066960
lea rcx, [rsp + 0x60]
call fcn.140049ed0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400a2830
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x30], r15
movaps xmmword [rsp + 0x20], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.140045740
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x1400668c7
and r8d, 0x7f
mov rdx, rdi
jmp 0x1400668ce
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
call fcn.1400f2c5c
movzx r8d, byte [rsp + 0x37]
test r8b, r8b
js 0x1400668e9
and r8d, 0x7f
jmp 0x1400668f3
mov r8, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
lea r15, [rsp + 0x40]
mov rcx, r15
mov rdx, r14
call fcn.1400f2c5c
mov rax, qword [r15 + 8]
cmp rax, qword [rsp + 0x58]
je 0x14006697d
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1400667c0
test al, al
je 0x1400669c0
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140066943
lea rcx, [rsp + 0x20]
call fcn.140044660
jmp 0x14006686b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400669c7
mov rcx, rdi
call fcn.140066530
test al, al
jne 0x140066934
jmp 0x1400669c7
test rsi, rsi
je 0x14006696b
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14006686b
test rax, rax
je 0x1400669a7
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
xor r8d, r8d
movzx r9d, word [rcx + r8*2]
cmp r9w, word [rdx + r8*2]
jne 0x14006690e
inc r8
cmp rax, r8
jne 0x14006698f
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x1400669b8
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140066934
test rsi, rsi
je 0x1400669b8
mov ecx, ebp
call fcn.140065db0
jmp 0x1400669b6
Function at 0x140066b40
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov rsi, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x40], rax
movaps xmm0, xmmword [0x140158be0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14016184e]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x4ee
call fcn.1400442c0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140049e70
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400a4980
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 0x140066c3f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400be5b4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140044520
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14006a090
mov rcx, rsi
mov rdx, r14
call fcn.140044760
mov rcx, r14
call fcn.140044660
mov rcx, rbx
call fcn.140044660
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.140049ed0
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400a2830
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140066c80
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x140158be0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x140161863]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x4fe
call fcn.1400442c0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140049e70
cmp byte [rdi + 0x17], 0
jns 0x140066d00
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140049ed0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a2830
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140066d40
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400a4980
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.140067370
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140158be0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14009e3d0
movzx eax, byte [rbx + 0x17]
test al, al
js 0x140066dd6
and eax, 0x7f
jmp 0x140066ddb
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140066e1d
lea rcx, [rsp + 0x30]
call fcn.140044660
lea rcx, [rsp + 0x298]
call fcn.1400674c0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400a2830
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400a4980
mov rcx, r15
mov rdx, r14
call fcn.140067530
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140066f53
mov rcx, r14
call fcn.1400672f0
test al, al
jne 0x140066edf
test sil, 2
jne 0x140066f2a
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x140066e81
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
je 0x140066f12
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400622b0
mov rcx, r15
mov rdx, r14
call fcn.14009e3d0
mov rcx, rbx
mov rdx, r14
call fcn.140044760
mov rcx, r14
call fcn.140044660
movzx eax, byte [rsp + 0x47]
test al, al
js 0x140066ec9
and eax, 0x7f
jmp 0x140066ece
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x140066de0
jmp 0x140066e34
xor ebp, ebp
test sil, 1
je 0x140066e8e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov r8d, esi
call fcn.140066d40
mov ebp, eax
test eax, eax
jne 0x140066e8e
cmp byte [rsp + 0x47], 0
jns 0x140066faa
jmp 0x140066fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140066e8e
call fcn.14004ba30
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
lea rcx, [rsp + 0x30]
call fcn.140109d20
xor ebp, ebp
test al, al
jne 0x140066e8e
jmp 0x140066f12
test sil, 1
jne 0x140066f6b
lea rcx, [rsp + 0x48]
call fcn.1400672f0
test al, al
jne 0x140066f8c
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
js 0x140066f79
lea rcx, [rsp + 0x30]
jmp 0x140066f7e
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140066e5c
lea rcx, [rsp + 0x48]
call fcn.1400672f0
test al, al
je 0x140066e68
jmp 0x140066fbf
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
jmp 0x140066e86
xor ebp, ebp
jmp 0x140066e8e
Function at 0x1400689d0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140068a90
mov eax, dword [rsi]
mov dword [0x140196078], eax
test al, 1
jne 0x1400689f1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401a0718]
test rcx, rcx
jne 0x140068a0b
mov rcx, qword [0x1401a06f0]
test rcx, rcx
je 0x140068a2f
jmp 0x140068a51
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a0718], 0
mov rcx, qword [0x1401a06f0]
test rcx, rcx
jne 0x140068a51
and byte [0x140196078], 0xfe
mov ecx, 0x18
call fcn.1400a1370
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401a06f0], rax
mov rdx, qword [rsi + 8]
call fcn.1400693f0
cmp dword [rsi + 0x14], 0
jne 0x140068a76
mov rcx, qword [0x1401a06f0]
cmp byte [rcx + 0x17], 0
jns 0x140068a70
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400da2c0
Function at 0x14006b0d0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.14006fca0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14006b1d5
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14006b1f5
lea rdx, [0x140161d3a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006b1f1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1401b1008]
mov rbx, rax
movsxd r9, dword [rsp + 0x3c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.14006d570
mov rcx, rsi
mov rdx, r14
call fcn.14006aba0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14006b1c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x50]
mov qword [rcx], r14
call fcn.14002d650
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a2830
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x14006b17b
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14006b178

Function at 0x14006e73f
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a4980
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14006e7ba
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.14006e6cb
test al, al
jne 0x14006e7e7
add rbx, 8
cmp rbx, 0x18
jne 0x14006e787
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400a2830
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x14006e7c6
Function at 0x14006ead3
Capabilities:
Get common file path
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1400a4980
mov word [rsi], 0
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140158be0]
movaps xmmword [rdi], xmm0
mov rcx, rsi
call fcn.1400be5b4
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.14003f1a0
lea rdx, str.usp10.dll
mov r8d, 0xa
mov rcx, rdi
call fcn.14003f378
cmp byte [rax + 0x17], 0
jns 0x14006eb68
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [rsp + 0x37], 0
jns 0x14006eb84
mov rcx, qword [rsp + 0x20]
call fcn.1400a13ac
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400a2830
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret

Function at 0x140070740
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 0x1400707a5
xor r11d, r11d
mov rdi, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rbx, rsi
xor rbx, rdi
mov r14d, eax
lea rax, [rbx - 1]
mov r15, rsi
sub r15, rdi
xor r15, rsi
or r15, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
or r15, 1
and r14d, eax
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x14007075b
cmp rdx, r9
jb 0x1400707b4
ja 0x1400707d8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x1400707b6
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
not ecx
or eax, ecx
jmp 0x1400707ac
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x1400707db
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
xor eax, 1
and eax, r8d
xor eax, 1
jmp 0x1400707ac
Function at 0x140072400
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movsxd rax, dword [rdx + 8]
test rax, rax
je 0x1400724fb
mov rsi, rcx
mov rcx, qword [rdx]
xor r8d, r8d
xor r9d, r9d
or r9, qword [rcx + r8*8]
inc r8
cmp rax, r8
jne 0x14007241f
test r9, r9
je 0x1400724fb
test eax, eax
jle 0x140072530
mov rcx, qword [rdx]
test byte [rcx], 1
je 0x140072530
cmp dword [rdx + 0x10], 0
jne 0x140072550
cmp eax, 0x401
jae 0x140072590
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.140070250
test rax, rax
je 0x140072570
mov eax, dword [rsi + 0x20]
lea ecx, [rax + 1]
test eax, eax
jle 0x140072520
mov rdx, qword [rdi]
dec ecx
cmp qword [rdx + rax*8 - 8], 0
lea rax, [rax - 1]
je 0x140072478
mov dword [rsi + 0x20], ecx
mov rax, qword [rdi]
mov rax, qword [rax]
mov r9d, 1
mov edx, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
mov r10d, r9d
and r10d, 1
neg r10
mov r11, rax
and r11, r10
mov rdi, r11
xor rdi, r9
shr rdi, 1
and r11, r9
add r11, rdi
and r10, r8
shr rcx, 1
or rcx, r10
mov r9, r11
dec rdx
jne 0x1400724b1
mov qword [rsi + 0x30], rcx
mov qword [rsi + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rsp + 0x20], 0xaa
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.140082810
jmp 0x1400724f2
mov dword [rsi + 0x20], eax
test eax, eax
jne 0x140072494
jmp 0x1400725d1
mov dword [rsp + 0x20], 0xae
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x140072519
mov dword [rsp + 0x20], 0xb2
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x140072519
mov dword [rsp + 0x20], 0xbc
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x140072519
mov r9d, 0x400
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rax, r9
jne 0x140072599
test r8, r8
je 0x14007245d
mov dword [rsp + 0x20], 0xb6
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x140072519
mov dword [rsi + 0x28], 0
jmp 0x140072494
Function at 0x140073680
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rsi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movups xmmword [rdi + 0x5c], xmm0
movups xmmword [rdi + 0x50], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movaps xmm0, xmmword [0x1401647f0]
movups xmmword [rdi], xmm0
movaps xmm0, xmmword [0x140164800]
movups xmmword [rdi + 0x10], xmm0
mov dword [rdi + 0x6c], 0x20
mov rcx, rdi
call fcn.1400772e0
mov edx, dword [rdi + 0x6c]
mov rcx, rsi
mov r8, rdi
call fcn.140077420
mov edx, 0x70
mov rcx, rdi
call fcn.14004f740
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400a2830
mov rax, rsi
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x140073e50
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret

Function at 0x1400756d0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp r9, 0x30
ja 0x140075784
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
test r9, r9
jne 0x140075788
xor eax, eax
lea rcx, [0x140164ea0]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x30], dl
inc rax
cmp rax, 0x30
jne 0x14007571a
lea r8, [rsi + 0xf8]
mov qword [rsp + 0x20], 0x20
lea rdi, [rsp + 0x30]
mov rcx, rsi
xor edx, edx
mov r9, rdi
call fcn.140072d70
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a2830
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14007576e
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp r9, rax
je 0x140075711
jmp 0x14007578a
Function at 0x1400757a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp r8, 0x30
ja 0x1400758d8
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x140158be0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r13, [rsp + 0x40]
lea rbx, [rcx + 0x108]
lea r12, [rcx + 0xf8]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov r8, rsi
call qword [0x1401b1008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r13
mov r8, rsi
call qword [0x1401b1008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1401b1008]
test r14, r14
je 0x14007588c
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp r14, rax
jne 0x14007587c
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x30]
mov rcx, rsi
xor edx, edx
mov r8, r12
call fcn.140072d70
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a2830
mov eax, esi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400758b9
Function at 0x14007a850
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14007a860
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14007a881
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14007a8a1
cmp byte [r14 + 0x68], 0
jne 0x14007a93b
or edi, 0x20000000
test dil, 8
jne 0x14007a950
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x14007a8bf
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x14007a8d0
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
je 0x14007a8e3
lea rcx, [r14 + 0x30]
call fcn.140063c60
mov r15, rax
cmp byte [r14], 0
je 0x14007a937
add r14, 8
mov rcx, r14
call fcn.140063c60
mov edx, 1
test ebx, ebx
jne 0x14007a970
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
mov r9, rax
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14007a946
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14007a8f5
or edi, 0x80000000
jmp 0x14007a8a1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14007a922
cmp byte [r14 + 0x88], 0
je 0x14007a965
or edi, 0x40000000
jmp 0x14007a8ab
or edi, 0x10000000
jmp 0x14007a8ab
cmp ebx, 4
jne 0x14007a97c
mov edx, 6
jmp 0x14007a8fe
lea ecx, [rbx - 2]
cmp ecx, 2
jae 0x14007a98e
mov edx, 7
jmp 0x14007a8fe
cmp ebx, 1
jne 0x14007a99d
mov edx, 4
jmp 0x14007a8fe
xor edx, edx
jmp 0x14007a8fe