joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012fba0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0xd0]
mov rax, rdx
mov r14, qword [rsp + 0xd8]
xor r15d, r15d
mov qword [rsp + 0x30], rcx
mov rdi, r9
mov ebx, r8d
mov rdx, rcx
mov byte [rsi], 0
mov dword [r9], r15d
test rax, rax
jne 0x14012fc0f
test r14, r14
je 0x14012fd30
mov rax, qword [r14]
lea rdx, str.NULL_buf_pointer.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x14012fd36
test ebx, ebx
je 0x14012fd34
mov ecx, 0x10000
mov byte [rsi], r15b
cmp ebx, ecx
mov dword [rsp + 0x48], r15d
mov ebp, ebx
mov r13, rax
cmova ebp, ecx
mov r12, rax
test rax, rax
je 0x14012fd13
mov rcx, qword [rdx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14012fc8f
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14012fc85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14012fccd
test r14, r14
je 0x14012fc78
mov edx, eax
mov rcx, r14
call fcn.1400a5d90
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x14012fd36
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x14012fcd4
jmp 0x14012fcd1
mov r9, qword [rdx + 8]
test r9, r9
je 0x14012fd05
mov r8d, ebp
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov dword [rsp + 0x48], eax
cmp eax, ebp
jne 0x14012fcbb
add dword [rdi], eax
sub ebx, eax
mov eax, eax
add rax, r13
jmp 0x14012fcdb
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x14012fcee
mov eax, dword [rsp + 0x48]
mov byte [rsi], 1
add dword [rdi], eax
sub ebx, eax
add rax, r12
cmp byte [rsi], r15b
jne 0x14012fd34
test ebx, ebx
je 0x14012fd34
mov rdx, qword [rsp + 0x30]
jmp 0x14012fc17
test r14, r14
je 0x14012fc78
mov rcx, r14
call fcn.1400a5a60
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x14012fd36
test r14, r14
je 0x14012fd2d
lea rdx, str.No_file_is_open.
jmp 0x14012fd1f
test r14, r14
je 0x14012fd2d
lea rdx, str.NULL_buf_or_bufSize
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
mov r15d, dword [rsp + 0x48]
add dword [rdi], r15d
xor al, al
jmp 0x14012fd36
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402268d0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140130200
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov r14, r9
mov rsi, qword [rsp + 0xb0]
mov rdi, r8
mov rbp, rdx
mov r15, rcx
jne 0x140130262
cmp qword [rcx + 8], 0
jne 0x140130262
test rsi, rsi
je 0x140130360
mov rax, qword [rsi]
lea rdx, str.Failed_to_write_because_file_is_not_open.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x14013032d
xor r13d, r13d
test r14, r14
je 0x14013026d
mov qword [r9], r13
test r8, r8
je 0x14013032b
mov edx, dword [rsp + 0x30]
mov r12d, 0x989680
mov rcx, qword [r15 + 0x10]
cmp rdi, r12
mov ebx, edi
cmovg ebx, r12d
cmp rcx, 0xffffffffffffffff
je 0x1401302eb
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov r8d, ebx
mov qword [rsp + 0x20], r13
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401302ba
mov edx, dword [rsp + 0x30]
cmp edx, ebx
je 0x140130310
test rsi, rsi
je 0x140130360
mov rax, qword [rsi]
lea rdx, str.WriteFileError
mov r8b, 1
mov rcx, rsi
call qword [rax + 0x48]
mov rcx, rsi
call fcn.1400a5a60
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
xor al, al
jmp 0x14013032d
mov r9, qword [r15 + 8]
test r9, r9
je 0x140130310
mov edx, ebx
mov r8d, 1
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rax, 1
jne 0x14013034b
mov edx, ebx
mov dword [rsp + 0x30], ebx
mov eax, ebx
add rbp, rax
sub rdi, rax
test r14, r14
je 0x140130322
mov eax, edx
add qword [r14], rax
test rdi, rdi
jne 0x140130280
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402268d0
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rsi, rsi
je 0x140130360
mov rax, qword [rsi]
lea rdx, str.fwrite_failed.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x14013032d
Function at 0x1401358c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x4c], r8d
mov rbx, rdx
mov rax, qword [rbp + 0x1d0]
mov qword [rsp + 0x58], rax
mov eax, dword [rbp + 0x1d8]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp + 0x1e0]
mov dword [rsp + 0x40], eax
mov rax, qword [rbp + 0x1e8]
mov qword [rsp + 0x50], rax
mov r15, qword [rbp + 0x1f0]
mov r13, qword [rbp + 0x1f8]
xor r12d, r12d
mov dword [r15], r12d
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x10]
call fcn.140053bb0
nop
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140054890
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rbp - 0x10]
call fcn.1400580d0
lea rcx, [rbp - 0x10]
call fcn.140057720
mov r14, rax
call fcn.14012f800
mov rbx, rax
test rax, rax
je 0x140135adf
mov edi, r12d
xor sil, sil
nop word [rax + rax]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x10], rax
cmp edi, 3
jge 0x1401359fa
cmp rax, 0xffffffffffffffff
jne 0x1401359fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp eax, 0x20
jne 0x1401359fa
inc edi
lea ecx, [rax + 0x12]
call sub.KERNEL32.dll_Sleep
jmp 0x1401359a0
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x140135adc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp eax, 2
jne 0x140135a42
test sil, sil
jne 0x140135a42
lea rcx, [rbp - 0x10]
call fcn.140099350
test al, al
je 0x140135a42
mov sil, 1
lea rcx, [rbp - 0x10]
call fcn.140099a40
lea rcx, [rbp - 0x10]
call fcn.140057720
mov r14, rax
jmp 0x1401359a0
test r13, r13
je 0x140135acc
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rsp + 0x60]
call fcn.140082320
nop
lea rcx, [rsp + 0x60]
call fcn.140083c30
mov rax, qword [r13]
lea rdx, str.Failed_to_open_file__3_
mov rcx, r13
call qword [rax + 0x28]
lea r8, [rbp - 0x10]
lea rdx, str.filePath
mov rcx, r13
call fcn.1400a56c0
lea r8, [rsp + 0x60]
lea rdx, str.osErrorInfo
mov rcx, r13
call fcn.1400a5490
nop
lea rcx, [rsp + 0x60]
call fcn.140082370
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, r12
mov r12, rbx
lea rcx, [rbp - 0x10]
call fcn.140053c10
mov rax, r12
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1402268d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140136050
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1404a4ee5], 0
mov rbx, rcx
jne 0x14013626c
cmp qword [0x1404a4fb8], 0
je 0x140136078
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.bcrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1404a4fb8], rax
test rax, rax
jne 0x1401360b8
mov rcx, rbx
mov byte [0x1404a4ee5], 1
call fcn.1400a5a60
mov rax, qword [rbx]
lea rdx, str.Failed_to_load_bcrypt.dll
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
add rsp, 0x20
pop rbx
ret
lea rdx, str.BCryptGenerateKeyPair
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptFinalizeKeyPair
mov qword [0x1404a4f60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptExportKey
mov qword [0x1404a4f68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptDestroyKey
mov qword [0x1404a4f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptCloseAlgorithmProvider
mov qword [0x1404a4f78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptOpenAlgorithmProvider
mov qword [0x1404a4f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptGetProperty
mov qword [0x1404a4f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptCreateHash
mov qword [0x1404a4f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptHashData
mov qword [0x1404a4f98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptDestroyHash
mov qword [0x1404a4fa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404a4fb8]
lea rdx, str.BCryptFinishHash
mov qword [0x1404a4fa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1404a4f80], 0
mov qword [0x1404a4fb0], rax
je 0x14013624a
cmp qword [0x1404a4f88], 0
je 0x14013624a
cmp qword [0x1404a4f90], 0
je 0x14013624a
cmp qword [0x1404a4f98], 0
je 0x14013624a
cmp qword [0x1404a4fa0], 0
je 0x14013624a
cmp qword [0x1404a4fa8], 0
je 0x14013624a
cmp qword [0x1404a4f60], 0
je 0x14013624a
cmp qword [0x1404a4f68], 0
je 0x14013624a
cmp qword [0x1404a4f70], 0
je 0x14013624a
cmp qword [0x1404a4f78], 0
je 0x14013624a
test rax, rax
jne 0x140136070
mov rax, qword [rbx]
lea rdx, str.BCrypt_function_s__not_found.
mov rcx, rbx
call qword [rax + 0x28]
mov byte [0x1404a4ee5], 1
mov qword [0x1404a4fb8], 0
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14013a910
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov esi, ecx
test ecx, ecx
js 0x14013a9a8
test rbx, rbx
je 0x14013a9a8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.getEntropy
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.1400a48d0
nop
xor bpl, bpl
call fcn.1400a3ab0
mov rdi, rax
test rax, rax
jne 0x14013a971
xor bl, bl
jmp 0x14013a999
mov r8, rbx
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx ebx, bpl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
lea rcx, [rsp + 0x20]
call fcn.1400a49f0
movzx eax, bl
jmp 0x14013a9aa
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402268d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140152ec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, rcx
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0x18]
cmp eax, ecx
jb 0x140152f3c
cmp eax, dword [rbx + 0x28]
jb 0x140152f3c
sub eax, ecx
mov ecx, eax
je 0x140152fbe
mov r8, qword [rbx + 8]
mov eax, 1
add r8, rcx
cmove r8, rax
mov r9, qword [rbx + 0x20]
add r9, qword [rbx + 0x10]
imul rax, r9, 0x3e8
cqo
idiv r8
mov ecx, 0xffffffff
cmp rax, rcx
jg 0x140152fbe
mov qword [rbx + 0x30], r9
mov qword [rbx + 0x38], rax
jmp 0x140152fbe
xor edx, edx
mov r8d, 0x178
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.1400a63c0
nop
cmp byte [0x1404a3f25], 0
je 0x140152f93
mov eax, dword [rbx + 0x44]
cmp eax, 1
jne 0x140152f73
lea rdx, str.resetSendPerfMon
jmp 0x140152f86
cmp eax, 2
lea rdx, str.resetReceivePerfMon
je 0x140152f86
lea rdx, str.resetPerformanceMon
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [rax + 0x30]
xor edi, edi
mov dword [rbx + 0x28], edi
mov qword [rbx + 0x20], rdi
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0x18], eax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
lea rcx, [rsp + 0x20]
call fcn.1400a63f0
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1402268d0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x1b0
pop rdi
ret
Function at 0x140154560
Capabilities:
Hash data using sha1

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, r9
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov r14, qword [rsp + 0x120]
lea rax, vtable._ckSha1.0
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x5c], 0x10325476
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rsp + 0x88], xmm1
movups xmmword [rsp + 0x98], xmm1
mov dword [rsp + 0x50], 0x67452301
mov dword [rsp + 0x54], 0xefcdab89
mov dword [rsp + 0x58], 0x98badcfe
mov dword [rsp + 0x60], 0xc3d2e1f0
xor r15d, r15d
mov dword [rsp + 0x64], r15d
mov qword [rsp + 0x48], r15
mov ecx, 0x4e28
call fcn.140062bc0
mov rbx, rax
test rax, rax
jne 0x140154616
jmp 0x1401546c2
mov dword [rsp + 0x30], r15d
mov r15b, 1
mov rcx, rbp
call fcn.14013ebc0
test al, al
jne 0x1401546a5
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov r8d, 0x4e20
mov rdx, rbx
mov rcx, rbp
call fcn.14013ee10
test al, al
je 0x1401546a5
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x14015461e
test r14, r14
je 0x14015466d
mov rdx, rbx
mov rcx, r14
call fcn.1400906b0
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140154cf0
test rdi, rdi
je 0x14015461e
mov edx, dword [rsp + 0x30]
mov r8, rsi
mov rcx, rdi
call fcn.1401188a0
test al, al
je 0x14015461e
mov rax, qword [rsi]
lea rdx, str.Digest_SHA1_aborted_by_application
mov rcx, rsi
call qword [rax + 0x28]
xor r15b, r15b
mov rcx, rbx
call fcn.14022608c
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140154910
nop
movzx eax, r15b
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1402268d0
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140154b20
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov ebp, edx
mov qword [rcx + 0xd8], r12
mov rsi, r8
mov qword [rcx + 0xe0], r12
mov rbx, rcx
add rcx, 8
mov edi, r9d
xor edx, edx
mov r8d, 0x80
call fcn.140062ba0
xor edx, edx
lea r8d, [r12 + 0x40]
lea rcx, [rbx + 0x88]
call fcn.140062ba0
xor edx, edx
lea r8d, [r12 + 0x10]
lea rcx, [rbx + 0xc8]
call fcn.140062ba0
lea eax, [rbp - 1]
cmp eax, 0x3f
ja 0x140154c9e
cmp edi, 0x40
ja 0x140154c9e
mov qword [rbx + 0xe0], rbp
movabs rax, 0xbb67ae8584caa73b
mov qword [rbx + 0x90], rax
mov ecx, edi
xor ecx, 0x10100
movabs rax, 0x3c6ef372fe94f82b
mov qword [rbx + 0x98], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rbx + 0xa0], rax
movabs rax, 0x510e527fade682d1
mov qword [rbx + 0xa8], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rbx + 0xb0], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rbx + 0xb8], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rbx + 0xc0], rax
movabs rax, 0x6a09e667f3bcc908
shl ecx, 8
xor rcx, rbp
xor rcx, rax
mov eax, edi
mov qword [rbx + 0x88], rcx
mov qword [rbx + 0xc8], r12
mov qword [rbx + 0xd0], r12
mov qword [rbx + 0xd8], r12
cmp rdi, 0x80
jae 0x140154c7d
lea rcx, [rbx + 8]
mov r8d, 0x80
add rcx, rax
sub r8, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test edi, edi
je 0x140154c9a
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.140155950
mov qword [rbx + 0xd8], 0x80
mov al, 1
jmp 0x140154ca0
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140154cc0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 0x10], 0x67452301
mov dword [rcx + 0x24], eax
mov qword [rcx + 8], rax
mov dword [rcx + 0x14], 0xefcdab89
mov dword [rcx + 0x18], 0x98badcfe
mov dword [rcx + 0x1c], 0x10325476
mov dword [rcx + 0x20], 0xc3d2e1f0
ret
Function at 0x1401555a0
Capabilities:
Hash data using sha1

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp byte [0x1404a4ee0], 0
mov rsi, rdx
mov rdi, rcx
jne 0x1401555e3
mov r9, r8
mov r8, rdx
mov edx, 1
call fcn.1401371f0
test al, al
jne 0x14015569b
xorps xmm1, xmm1
mov qword [rsp + 0xa0], rbx
xor ebx, ebx
lea rax, vtable._ckSha1.0
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x3c], 0x10325476
mov dword [rsp + 0x40], 0xc3d2e1f0
movups xmmword [rsp + 0x48], xmm1
mov dword [rsp + 0x30], 0x67452301
movups xmmword [rsp + 0x58], xmm1
mov dword [rsp + 0x34], 0xefcdab89
movups xmmword [rsp + 0x68], xmm1
mov dword [rsp + 0x38], 0x98badcfe
movups xmmword [rsp + 0x78], xmm1
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x28], rbx
cmp dword [rdi + 0xc08], ebx
jbe 0x140155683
nop dword [rax]
nop word [rax + rax]
mov edx, ebx
lea rcx, [rsp + 0x20]
mov r8d, dword [rdi + rdx*4 + 0x808]
mov rdx, qword [rdi + rdx*8 + 8]
call fcn.140154cf0
inc ebx
cmp ebx, dword [rdi + 0xc08]
jb 0x140155660
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140154910
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1402268d0
add rsp, 0xa8
pop rdi
pop rsi
ret

Function at 0x1401556c0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, r8
mov esi, edx
mov rdi, rcx
cmp byte [0x1404a4ee0], 0
jne 0x1401557a0
xor edx, edx
mov r8d, 0x178
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x30]
call fcn.1400a63c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
call fcn.140090030
nop
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
mov ecx, 1
call fcn.140136e10
test al, al
je 0x14015578c
lea rcx, [rsp + 0x30]
call fcn.140094880
mov rdx, rax
mov r8d, shutdown
mov rcx, rbx
call fcn.140062b80
nop
lea rcx, [rsp + 0x30]
call fcn.1400901e0
nop
lea rcx, [rbp - 0x30]
call fcn.1400a63f0
jmp 0x140155819
lea rcx, [rsp + 0x30]
call fcn.1400901e0
nop
lea rcx, [rbp - 0x30]
call fcn.1400a63f0
lea rax, vtable._ckSha1.0
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x7c], 0x10325476
xorps xmm1, xmm1
movups xmmword [rbp - 0x78], xmm1
movups xmmword [rbp - 0x68], xmm1
movups xmmword [rbp - 0x58], xmm1
movups xmmword [rbp - 0x48], xmm1
mov dword [rsp + 0x70], 0x67452301
mov dword [rsp + 0x74], 0xefcdab89
mov dword [rsp + 0x78], 0x98badcfe
mov dword [rbp - 0x80], 0xc3d2e1f0
xor eax, eax
mov dword [rbp - 0x7c], eax
mov qword [rsp + 0x68], rax
mov r8d, esi
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140154cf0
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140154910
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1402268d0
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x140155840
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14035f7b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov rbp, rcx
mov edx, shutdown
mov rcx, rdi
call fcn.140094800
mov rsi, rax
test rax, rax
je 0x14015591f
lea rax, vtable._ckSha1.0
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x3c], 0x10325476
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov dword [rsp + 0x40], 0xc3d2e1f0
xor eax, eax
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x28], rax
mov rcx, rbp
call fcn.140094bb0
mov ebx, eax
mov rcx, rbp
call fcn.140094880
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x20]
call fcn.140154cf0
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140154910
mov edx, shutdown
mov rcx, rdi
call fcn.140090580
nop
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1402268d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140155a50
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
lea rdx, [rcx + 0x28]
mov r8d, reloc.WS2_32.dll_recv
nop dword [rax]
movzx eax, byte [rdx + 0x20]
mov byte [rdx], al
xor al, byte [rdx - 0x10]
mov byte [rdx + 0x10], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140155a60
xor cl, cl
lea r10, [r9 + 0x19]
lea r11, str._.C
mov rax, r10
mov r9d, 2
nop dword [rax]
movzx ecx, cl
movzx ecx, byte [rcx + r11]
xor byte [rax - 1], cl
movzx ecx, byte [rax - 1]
movzx ecx, byte [rcx + r11]
xor cl, byte [rax]
movzx edx, cl
mov byte [rax], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 1]
movzx edx, cl
mov byte [rax + 1], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 2]
movzx edx, cl
mov byte [rax + 2], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 3]
movzx edx, cl
mov byte [rax + 3], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 4]
movzx edx, cl
mov byte [rax + 4], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 5]
movzx edx, cl
mov byte [rax + 5], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 6]
movzx edx, cl
mov byte [rax + 6], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 7]
movzx edx, cl
mov byte [rax + 7], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 8]
movzx edx, cl
mov byte [rax + 8], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 9]
movzx edx, cl
mov byte [rax + 9], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0xa]
movzx edx, cl
mov byte [rax + 0xa], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0xb]
movzx edx, cl
mov byte [rax + 0xb], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0xc]
movzx edx, cl
mov byte [rax + 0xc], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0xd]
movzx edx, cl
mov byte [rax + 0xd], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0xe]
movzx edx, cl
mov byte [rax + 0xe], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0xf]
movzx edx, cl
mov byte [rax + 0xf], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0x10]
movzx edx, cl
mov byte [rax + 0x10], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0x11]
movzx edx, cl
mov byte [rax + 0x11], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0x12]
movzx edx, cl
mov byte [rax + 0x12], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax + 0x13]
lea rax, [rax + 0x18]
movzx edx, cl
mov byte [rax - 5], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax - 4]
movzx edx, cl
mov byte [rax - 4], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax - 3]
movzx edx, cl
mov byte [rax - 3], dl
movzx ecx, byte [rdx + r11]
xor cl, byte [rax - 2]
mov byte [rax - 2], cl
sub r9, 1
jne 0x140155a90
add cl, r8b
inc r8d
cmp r8d, 0x12
jl 0x140155a83
ret