joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14011f0e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400105b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400105b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400105b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140010605
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400105fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400105b0
add rax, 0x28
cmp rax, r9
jne 0x1400105e8
xor eax, eax
ret

Function at 0x140010610
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14011f0e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140010630
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140010638
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140010630
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400106c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14011f0e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400106e0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400106e8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140010890
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400108b0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400108f8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400108a4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400108e5
Function at 0x140010a10
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140126430]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140010a33
lea rax, [0x140126438]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x140010a7b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010a78
lea rax, [0x140126460]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x140010aab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010aa8
xor ecx, ecx
mov byte [0x140126474], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14012647d], rdx
lea r8, [0x140126430]
lea rbx, [0x140126475]
mov qword [0x14012648d], rdx
mov qword [0x14012649d], rdx
mov qword [0x1401264ad], rdx
xor edx, edx
mov qword [0x140126475], rax
mov qword [0x140126485], rax
mov qword [0x140126495], rax
mov qword [0x1401264a5], rax
mov byte [0x1401264b5], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140010c86
lea rcx, [0x140126460]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140010bd1
lea rsi, [0x1401263a0]
lea r8, [0x1401264b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140010b7d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140010b70
lea rcx, [0x140126460]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140010c73
lea rcx, [0x140010920]
mov qword [0x1401263a0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1401263a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x140126460]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1401264b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140010ca6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140010c23
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140010c10
mov rax, rdx
mov qword [0x1401263a0], rax
lea rsi, [0x1401263a0]
jmp 0x140010c49
cmp rdx, rsi
je 0x140010baf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140010c40
cmp rdx, rsi
je 0x140010baf
mov qword [rdx + 8], rsi
lea rcx, [0x140010920]
call sub.msvcrt.dll__onexit
jmp 0x140010baf
lea rcx, [0x14011e940]
call fcn.140010890
xor eax, eax
jmp 0x140010bc8
lea rcx, [0x14011e918]
call fcn.140010890
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x14011e968]
call fcn.140010890
xor eax, eax
jmp 0x140010c2f
Function at 0x140013330
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14011f190]
mov rax, qword [rsi]
test rax, rax
je 0x1400133c0
cmp qword [rax + 0x30], 0
jne 0x1400133e0
lea rbx, [0x140024468]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140013390
cmp qword [rax + 0x30], 0
jne 0x1400133b0
lea rdx, [0x140024468]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140023770
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018230
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140013372
test rax, rax
jne 0x1400133b0
call fcn.140018230
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140013380
call fcn.140018230
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140013350
test rax, rax
jne 0x1400133e0
call fcn.140018230
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14001335b
call sub.msvcrt.dll_abort
nop

Function at 0x1400133f0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140013502
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400134da
add rax, 1
cmp rax, 0x6b
je 0x1400134f7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400134d0
cmp edx, 0x6a
je 0x1400134f7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400134eb
Function at 0x1400180b0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400180d0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140018118
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400180c4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140018105
Function at 0x140018230
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140126620]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140018253
lea rax, [0x140126628]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14001829b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140018298
lea rax, [0x140126660]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1400182cb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400182c8
xor ecx, ecx
mov byte [0x140126679], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140126682], rdx
lea r8, [0x140126620]
lea rbx, [0x14012667a]
mov qword [0x140126692], rdx
mov qword [0x1401266a2], rdx
mov qword [0x1401266b2], rdx
xor edx, edx
mov qword [0x14012667a], rax
mov qword [0x14012668a], rax
mov qword [0x14012669a], rax
mov qword [0x1401266aa], rax
mov byte [0x1401266ba], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400184a6
lea rcx, [0x140126660]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400183f1
lea rsi, [0x140126560]
lea r8, [0x1401266ba]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14001839d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140018390
lea rcx, [0x140126660]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140018493
lea rcx, [0x140018140]
mov qword [0x140126560], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140126560]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140126660]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1401266ba]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400184c6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140018443
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140018430
mov rax, rdx
mov qword [0x140126560], rax
lea rsi, [0x140126560]
jmp 0x140018469
cmp rdx, rsi
je 0x1400183cf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140018460
cmp rdx, rsi
je 0x1400183cf
mov qword [rdx + 8], rsi
lea rcx, [0x140018140]
call sub.msvcrt.dll__onexit
jmp 0x1400183cf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400180b0
xor eax, eax
jmp 0x1400183e8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400180b0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1400180b0
xor eax, eax
jmp 0x14001844f
Function at 0x100401220
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x1004025f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ebx, ebx
mov eax, dword [rcx + 0x48]
mov rdi, rcx
mov rbp, rdx
lea rsi, [rcx + 0x50]
test eax, eax
jne 0x10040261b
jmp 0x100402658
add ebx, 1
add rsi, 0x18
cmp ebx, eax
jae 0x10040264b
mov rcx, qword [rsi]
mov rdx, rbp
call sub.msys_2.0.dll_fputs
mov eax, dword [rdi + 0x48]
lea ecx, [rax - 1]
cmp ecx, ebx
jbe 0x100402610
mov rdx, rbp
mov ecx, 0x20
add ebx, 1
add rsi, 0x18
call sub.msys_2.0.dll_fputc
mov eax, dword [rdi + 0x48]
cmp ebx, eax
jb 0x10040261b
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9, rdx
mov r8d, 4
mov edx, 1
lea rcx, str.NULL
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fwrite

Function at 0x100402680
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [sym.imp.msys_2.0.dll_optarg]
xor r8d, r8d
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
call sub.msys_2.0.dll_strtol
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x1004026bf
cmp rdx, qword [rbx]
je 0x1004026bf
cmp byte [rdx], 0
jne 0x1004026bf
add rsp, 0x30
pop rbx
ret
mov rbx, qword [rbx]
call sub.msys_2.0.dll___getreent
lea rdx, str.Expected_a_number__not___s__n
mov rcx, qword [rax + 0x18]
mov r8, rbx
call sub.msys_2.0.dll_fprintf
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]

Function at 0x1004026f0
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.TERM
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x10040270c
add rsp, 0x20
pop rbx
ret
mov rbx, qword [str.infocmp]
call sub.msys_2.0.dll___getreent
lea rdx, str._s:_environment_variable_TERM_not_set_n
mov rcx, qword [rax + 0x18]
mov r8, rbx
call sub.msys_2.0.dll_fprintf
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x1004039d0
Capabilities:
Terminate process

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 8]
lea rdi, [r8 + 1]
mov rsi, r8
mov r8, qword [rcx + 0x10]
mov r12, rdx
lea rdx, [rax + rdi]
mov rbx, rcx
mov rcx, qword [rcx]
cmp r8, rdx
jae 0x100403a1b
lea rdx, [r8 + rdx + 0x400]
mov qword [rbx + 0x10], rdx
call qword [sym.imp.msys_ncursesw6.dll__nc_doalloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x100403a42
mov rax, qword [rbx + 8]
add rcx, rax
mov r8, rdi
mov rdx, r12
call sub.msys_2.0.dll_strncpy
mov rax, qword [rbx]
add rsi, qword [rbx + 8]
mov qword [rbx + 8], rsi
mov byte [rax + rsi], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str.strncpy_DYN
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop dword [rax]

Function at 0x100403b10
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [sym.imp.msys_ncursesw6.dll__nc_doalloc]
xor ebx, ebx
lea rsi, [0x100411080]
mov ebp, ecx
test ecx, ecx
jle 0x100403b97
nop
mov rax, qword [0x100411088]
mov rdx, qword [0x100411090]
mov rcx, qword [rsi]
lea r8, [rax + 2]
cmp r8, rdx
jbe 0x100403b6d
lea rdx, [r8 + rdx + 0x400]
mov qword [0x100411090], rdx
call rdi
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x100403ba0
mov rax, qword [0x100411088]
mov edx, 9
add ebx, 1
mov word [rcx + rax], dx
mov rax, qword [0x100411088]
lea rdx, [rax + 1]
mov qword [0x100411088], rdx
mov rdx, qword [rsi]
mov byte [rdx + rax + 1], 0
cmp ebx, ebp
jne 0x100403b30
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.strncpy_DYN
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word [rax + rax]
Function at 0x140016910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140016923
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001693c
test al, 0x10
jne 0x14001693c
mov dil, 1
jmp 0x14001693f
xor dil, dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001697a
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140016975
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001699a
mov rcx, r8
call fcn.140019dd0
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movzx eax, dil
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
call fcn.14001e274
int3
Function at 0x1400169a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r8
mov dword [rsp + 0x30], edx
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140016a26
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140016a1f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140016a1a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016b4e
mov rcx, r8
call fcn.140019dd0
xor al, al
jmp 0x140016b20
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400169e5
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140016a57
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400169e5
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400169e5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400169e5
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140016b1e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140016b19
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016b4e
mov rcx, r8
call fcn.140019dd0
mov al, 1
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140019820
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
call fcn.14001e274
int3
Function at 0x140016c00
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x40], rcx
xor esi, esi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x48], rsi
movdqa xmm0, xmmword [0x14004e3b0]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], sil
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rsi + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140016d32
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140016d26
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140016ca8
mov rdi, qword [rdi]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp - 0x48]
test eax, eax
je 0x140016d20
mov dword [rbp - 0x38], esi
mov dword [rbp - 0x10], 4
mov dword [rsp + 0x20], esi
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140016d1c
mov edx, dword [rbp - 0x38]
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140003340
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
mov dword [rsp + 0x20], esi
lea r9, [rbp - 0x38]
mov edx, 2
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140019820
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400210d4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140020f67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020f67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020f67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020f67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020f67
cmp dword [rcx + 0x84], 0xe
jbe 0x140020f67
cmp dword [rcx + 0xf8], 0
je 0x140020f67
mov ecx, ebx
call fcn.140021008
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140020df8
cmp dword [rbp + 0x20], 0
je 0x140020fb4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020fbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140020f00