joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180058240
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x180058299
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x180058299
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x180058299
xor eax, eax
jmp 0x1800582e0
mov dword [rsp], 1
jmp 0x1800582aa
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x1800582db
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1800582d9
xor eax, eax
jmp 0x1800582e0
jmp 0x1800582a2
mov eax, 1
add rsp, 0x18
ret
Function at 0x180059290
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800592ca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800592cf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180059318
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180066aa0]
cmp byte [rcx + rax], 0
je 0x180059318
dec r8
sub rdx, 1
jne 0x1800592fe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18005aed0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov eax, 0x35
movaps xmmword [rsp + 0x30], xmm7
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm8
mov rbx, rcx
movsd xmm8, qword [0x180084068]
cvtsi2sd xmm6, rax
test rax, rax
jns 0x18005af09
addsd xmm6, xmm8
movaps xmm0, xmm8
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
divsd xmm6, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movsd xmm6, qword [0x180100018]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm7, xmm7
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x18005b043
mov qword [rsp + 0x60], rbp
movabs rbp, 0x38eb3ffff6d3
mov qword [rsp + 0x68], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x70], rdi
mov edi, eax
mov eax, dword [rbx]
cmp eax, 0x138
jne 0x18005afbc
lea r8, [rbx + 0x10]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x18005af80
jmp 0x18005afcb
cmp eax, 0x270
jb 0x18005afcb
mov rcx, rbx
call fcn.18005c2c0
mov eax, dword [rbx]
xorps xmm1, xmm1
mov rcx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rax, rcx
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rbp
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, rcx
shr rax, 0x2b
xor rax, rcx
cvtsi2sd xmm1, rax
jns 0x18005b01d
addsd xmm1, xmm8
mulsd xmm1, xmm6
mulsd xmm6, xmm8
addsd xmm7, xmm1
sub rdi, 1
jne 0x18005af65
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret
Function at 0x18005c2c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
lea r9, [rcx + 0x9c8]
movabs rbx, 0xb5026f5aa96619e9
mov r11d, 0x9c
nop
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 + 0x4d8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x18005c2e0
lea r9, [r10 + 0xea8]
mov r11d, 0x9b
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 - 0xea8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x18005c330
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], r11d
ret
Function at 0x18005ce60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x18010d3c0]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x20
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18005cf0f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
jmp 0x18005cfd7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x18005cfc5
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jb 0x18005cfc5
shr ecx, 1
je 0x18005cf83
lea rax, [rsp + 0xc0]
lea edx, [rbx + 0x5c]
nop
cmp word [rax], 0x2f
jne 0x18005cf79
mov word [rax], dx
add rax, 2
sub rcx, 1
jne 0x18005cf70
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2d0]
call fcn.18005ccf0
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.18005c950
jmp 0x18005cfdf
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.18005d000
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.180059b80
add rsp, 0xae0
pop rbx
ret
Function at 0x18005d0e0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18010d3c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x1800842c0]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x1800842c4]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x1800842a8]
mov word [rsp + 0x6c], ax
mov eax, 0x30
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x1800842b8]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18005d1e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18005d198
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x18005d207
inc ax
mov word [rsp + 0x6a], ax
jmp 0x18005d1b3
cmp eax, 0xe7
jne 0x18005d207
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x18005d207
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18005d178
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180059b80
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x18005d1e9

Function at 0x18005d210
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18005d230
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x18005d226
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18005d226
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18005d2bb
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x18005d2d0
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x18005d2a4
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.18005d050
mov rbp, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x18005d2e0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x18005d2f6
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x18005d303
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18005d2fb
test rdx, rdx
je 0x18005d2fb
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18005d33a
cmp dword [rsp + 0x50], edi
jne 0x18005d33a
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002720
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140002736
lea rax, [rcx - 1]
add rsp, 0x38
ret
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov rax, 0xffffffffffffffff
je 0x140002759
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x140002780
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140002796
lea rax, [rcx - 1]
add rsp, 0x28
ret
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x1400027c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
test ecx, ecx
cmovne rax, rdx
add rsp, 0x28
ret
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x14000f030
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1400962f8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14000f062
lea ecx, [rdx + 0x12]
jmp 0x14000f28a
mov rax, qword [rdx]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140017e6f.8]
cmp rax, 0xffffffffffffffff
jne 0x14000f085
lea ecx, [rax + 0x32]
jmp 0x14000f28a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140017e6f.8]
xorps xmm0, xmm0
mov qword [rbx + 8], rax
mov rax, qword [rdi]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
mov rax, qword [rax + 8]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [case.0x140017e6f.8]
cmp rax, 0xffffffffffffffff
jne 0x14000f0d9
lea ecx, [rax + 0x14]
jmp 0x14000f28a
cmp rax, 0x40
je 0x14000f0e9
mov ecx, 0x2f
jmp 0x14000f28a
mov eax, 0x5a4d
cmp ax, word [rsp + 0x20]
jne 0x14000f0df
mov eax, 0xffffffff
cmp qword [rbx + 8], rax
jle 0x14000f10a
mov ecx, 0x30
jmp 0x14000f28a
movsxd rax, dword [rsp + 0x5c]
mov qword [rsp + 0x1a0], rsi
test eax, eax
je 0x14000f27d
mov rsi, rax
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
call qword [case.0x140017e6f.8]
cmp rax, rsi
jl 0x14000f27d
lfence
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140017e6f.8]
cmp rax, 0xffffffffffffffff
jne 0x14000f162
lea ecx, [rax + 0x32]
jmp 0x14000f282
lfence
mov esi, dword [rsp + 0x5c]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x108
call fcn.140049dd0
mov rax, qword [rdi]
lea rdx, [rsp + 0x60]
mov r8d, 0xf8
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140017e6f.8]
cmp rax, 0xffffffffffffffff
jne 0x14000f1a4
lea ecx, [rax + 0x14]
jmp 0x14000f282
cmp rax, 0xf8
jne 0x14000f27d
cmp dword [rsp + 0x60], 0x4550
jne 0x14000f27d
xor ecx, ecx
cmp cx, word [rsp + 0x74]
je 0x14000f27d
movzx eax, word [rsp + 0x78]
mov edx, 0x10b
cmp dx, ax
jne 0x14000f20a
cmp dword [rsp + 0xd4], 5
jb 0x14000f27d
mov eax, dword [rsp + 0xf8]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0xfc]
mov dword [rbx + 0x14], eax
lea eax, [rsi + 0x58]
mov dword [rbx + 0x18], eax
lea eax, [rsi + 0x98]
jmp 0x14000f23e
mov edx, 0x20b
cmp dx, ax
jne 0x14000f279
cmp dword [rsp + 0xe4], 5
jb 0x14000f27d
mov eax, dword [rsp + 0x108]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x10c]
mov dword [rbx + 0x14], eax
lea eax, [rsi + 0x58]
mov dword [rbx + 0x18], eax
lea eax, [rsi + 0xa8]
mov rdx, qword [rsp + 0xbc]
mov dword [rbx + 0x1c], eax
mov eax, 1
cmp ax, dx
je 0x14000f261
mov eax, 8
cmp ax, dx
je 0x14000f261
xor dl, dl
jmp 0x14000f263
mov dl, 1
movzx eax, word [rsp + 0xbe]
shr ax, 7
and al, 1
mov byte [rbx + 0x20], dl
mov byte [rbx + 0x21], al
jmp 0x14000f282
mov word [rbx + 0x20], cx
mov ecx, 0x2f
mov rsi, qword [rsp + 0x1a0]
test ecx, ecx
sete al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140047b10
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x180
pop rdi
ret
Function at 0x140019710
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x100080
mov dword [rsp + 0x28], 0x80
mov rsi, rcx
mov ebx, ebp
mov qword [rsp + 0x70], rbp
lea r8d, [rbp + 7]
mov dword [rsp + 0x20], 3
call qword [0x140096148]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400197bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x140019768
cmp eax, 2
jne 0x1400197b7
test ebx, ebx
jle 0x1400197b7
mov ecx, 0xc8
cmp ebx, ecx
cmovl ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 0x100080
mov rcx, rsi
mov dword [rsp + 0x20], 3
sub ebx, 0xc8
lea r8d, [r9 + 7]
call qword [0x140096148]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140019758
jmp 0x1400197bd
cmp rdi, 0xffffffffffffffff
je 0x1400197c2
test rdi, rdi
jne 0x1400197d1
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp eax, 0xffffffff
jne 0x140019802
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
test eax, eax
cmovne rbx, rcx
jmp 0x140019807
mov rbx, qword [rsp + 0x68]
mov rcx, rdi
call qword [0x140096008]
test rbx, rbx
mov rbx, qword [rsp + 0x60]
setg al
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022310
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov ecx, 0x88
call fcn.14004e0e4
test rax, rax
jne 0x140022354
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x58], rax
mov dword [rax + 8], 1
lea rcx, vtable.RefCountObj_class_HashAlgorithmMD5_.0
mov qword [rax], rcx
lea rdx, [rax + 0x18]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov qword [rax + 0x80], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rdx
lea rcx, vtable.HashAlgorithmMD5.0
mov qword [rdx], rcx
lea rcx, [rdx + 8]
test rcx, rcx
je 0x1400223d3
mov qword [rcx + 0x10], rdi
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rax + 0x10], 1
mov qword [rbx], rdx
mov qword [rbx + 8], rax
movdqu xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140022400
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov ecx, 0x88
call fcn.14004e0e4
mov rcx, rax
test rax, rax
jne 0x140022447
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x58], rcx
mov dword [rax + 8], 1
lea rax, vtable.RefCountObj_class_HashAlgorithmSHA1_.0
mov qword [rcx], rax
lea rax, [rcx + 0x18]
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x70], xmm0
mov qword [rcx + 0x80], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x58], rax
lea rdx, vtable.HashAlgorithmSHA1.0
mov qword [rax], rdx
mov dword [rax + 8], 0x67452301
mov dword [rax + 0xc], 0xefcdab89
mov dword [rax + 0x10], 0x98badcfe
mov dword [rax + 0x14], 0x10325476
mov dword [rax + 0x18], 0xc3d2e1f0
mov qword [rax + 0x20], rdi
mov qword [rax + 0x28], rdi
mov dword [rcx + 0x10], 1
mov qword [rbx], rax
mov qword [rbx + 8], rcx
movdqu xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140022500
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov ecx, 0x278
call fcn.14004e0e4
mov rsi, rax
test rax, rax
jne 0x140022549
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov dword [rsp + 0x20], 1
jmp 0x140022704
mov qword [rsp + 0x70], rsi
mov dword [rax + 8], 1
lea rax, vtable.RefCountObj_class_HashAlgorithmSHA2_.0
mov qword [rsi], rax
mov dword [rsi + 0x10], ebp
lea rbx, [rsi + 0x18]
lea rcx, [rsi + 0x20]
xor edx, edx
mov r8d, 0x258
call fcn.140049dd0
nop
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x70], rbx
mov eax, dword [r14]
lea rcx, vtable.HashAlgorithmSHA2.0
mov qword [rbx], rcx
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], ebp
mov dword [rbx + 0x218], eax
cmp eax, 1
jne 0x140022619
lea rax, [rbx + 0x18]
test rax, rax
je 0x140022606
mov dword [rax + 0x90], 0xc1059ed8
mov dword [rax + 0x94], 0x367cd507
mov dword [rax + 0x98], 0x3070dd17
mov dword [rax + 0x9c], 0xf70e5939
mov dword [rax + 0xa0], 0xffc00b31
mov dword [rax + 0xa4], 0x68581511
mov dword [rax + 0xa8], 0x64f98fa7
mov dword [rax + 0xac], 0xbefa4fa4
mov qword [rax + 8], rbp
mov qword [rax], rbp
mov dword [rbx + 0x10], 4
lea rax, [0x140022e00]
jmp 0x1400226e1
cmp eax, 2
jne 0x14002268e
lea rax, [rbx + 0x18]
test rax, rax
je 0x14002267e
mov dword [rax + 0x90], 0x6a09e667
mov dword [rax + 0x94], 0xbb67ae85
mov dword [rax + 0x98], 0x3c6ef372
mov dword [rax + 0x9c], 0xa54ff53a
mov dword [rax + 0xa0], 0x510e527f
mov dword [rax + 0xa4], 0x9b05688c
mov dword [rax + 0xa8], 0x1f83d9ab
mov dword [rax + 0xac], 0x5be0cd19
mov qword [rax + 8], rbp
mov qword [rax], rbp
mov dword [rbx + 0x10], 5
lea rax, [0x140022e00]
jmp 0x1400226e1
cmp eax, 3
jne 0x1400226a8
lea rcx, [rbx + 0xc8]
call fcn.14001b350
mov dword [rbx + 0x10], 6
jmp 0x1400226da
cmp eax, 4
jne 0x1400226c2
lea rcx, [rbx + 0xc8]
call fcn.14001b170
mov dword [rbx + 0x10], 7
jmp 0x1400226da
cmp eax, 5
jne 0x1400226e5
lea rcx, [rbx + 0xc8]
call fcn.14001b520
mov dword [rbx + 0x10], 8
lea rax, [0x140022e10]
mov qword [rbx + 8], rax
mov dword [rsi + 0x10], 1
mov qword [rdi], rbx
mov qword [rdi + 8], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140022b30
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x218]
mov rbx, rcx
cmp eax, 1
jne 0x140022bbe
lea rax, [rcx + 0x18]
test rax, rax
je 0x140022ba6
mov dword [rax + 0x90], 0xc1059ed8
xor ecx, ecx
mov dword [rax + 0x94], 0x367cd507
mov dword [rax + 0x98], 0x3070dd17
mov dword [rax + 0x9c], 0xf70e5939
mov dword [rax + 0xa0], 0xffc00b31
mov dword [rax + 0xa4], 0x68581511
mov dword [rax + 0xa8], 0x64f98fa7
mov dword [rax + 0xac], 0xbefa4fa4
mov qword [rax + 8], rcx
mov qword [rax], rcx
lea rax, [0x140022e00]
mov dword [rbx + 0x10], 4
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 2
jne 0x140022c3d
lea rax, [rcx + 0x18]
test rax, rax
je 0x140022c25
mov dword [rax + 0x90], 0x6a09e667
xor ecx, ecx
mov dword [rax + 0x94], 0xbb67ae85
mov dword [rax + 0x98], 0x3c6ef372
mov dword [rax + 0x9c], 0xa54ff53a
mov dword [rax + 0xa0], 0x510e527f
mov dword [rax + 0xa4], 0x9b05688c
mov dword [rax + 0xa8], 0x1f83d9ab
mov dword [rax + 0xac], 0x5be0cd19
mov qword [rax + 8], rcx
mov qword [rax], rcx
lea rax, [0x140022e00]
mov dword [rbx + 0x10], 5
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 3
jne 0x140022c66
add rcx, 0xc8
call fcn.14001b350
lea rax, [0x140022e10]
mov dword [rbx + 0x10], 6
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 4
jne 0x140022c8f
add rcx, 0xc8
call fcn.14001b170
lea rax, [0x140022e10]
mov dword [rbx + 0x10], 7
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 5
jne 0x140022cb2
add rcx, 0xc8
call fcn.14001b520
lea rax, [0x140022e10]
mov dword [rbx + 0x10], 8
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret

Function at 0x140023da0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x20], 0
mov rdi, r9
mov rbp, r8
mov rbx, rcx
je 0x140023e40
cmp rdx, 0xffffffffffffffff
je 0x140023de0
mov rax, qword [rcx]
xor r8d, r8d
mov rax, qword [rax + 0x40]
call qword [case.0x140017e6f.8]
cmp rax, 0xffffffffffffffff
je 0x140023e40
mov ecx, dword [rbx + 0x30]
xor edx, edx
mov rax, rdi
div rcx
test rdx, rdx
jne 0x140023e40
mov rsi, qword [rbx + 0x20]
lea r9, [rsp + 0x40]
mov rax, rdi
mov qword [rsp + 0x20], 0
div rcx
mov rcx, qword [rsi]
mov rdx, rbp
mov r8, rax
mov eax, dword [rsi + 0x1c]
imul r8, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140023e40
mov ecx, dword [rsi + 0x1c]
xor edx, edx
mov eax, dword [rsp + 0x40]
div rcx
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140023e40
mov eax, dword [rbx + 0x30]
imul rax, rcx
jmp 0x140023e47
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret