joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045890
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx + 0x1a0]
movsxd r8, edx
mov edx, dword [rax + r8*4 + 8]
cmp edx, 3
je 0x1400458c0
cmp edx, 2
je 0x1400458cc
test edx, edx
jne 0x1400458cb
mov dword [rax + r8*4 + 8], 2
mov edx, 0xfb
jmp fcn.1400451d0
cmp dword [rax + r8*4 + 0x408], 0
je 0x1400458e4
ret
cmp dword [rax + r8*4 + 0x408], 1
jne 0x1400458cb
mov dword [rax + r8*4 + 0x408], 0
ret
mov dword [rax + r8*4 + 0x408], 1
ret

Function at 0x140045900
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx + 0x1a0]
movsxd r8, edx
mov edx, dword [rax + r8*4 + 0xc08]
cmp edx, 3
je 0x140045936
cmp edx, 2
je 0x140045942
test edx, edx
jne 0x140045941
mov dword [rax + r8*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.1400451d0
cmp dword [rax + r8*4 + 0x1008], 0
je 0x14004595a
ret
cmp dword [rax + r8*4 + 0x1008], 1
jne 0x140045941
mov dword [rax + r8*4 + 0x1008], 0
ret
mov dword [rax + r8*4 + 0x1008], 1
ret
Function at 0x140046110
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov rdi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx + 0x20]
mov rsi, qword [rax + 0x5d0]
mov dword [rsp + 0x34], Ordinal_133
mov r8d, dword [rsi + 0x144]
add r8d, 4
mov rdx, qword [rsi + 0x150]
mov rcx, qword [rsi + 0x18]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
mov dword [rsi + 0x13c], eax
cmp dword [rsi + 0x138], 0
je 0x1400461a9
cmp ebx, 3
jg 0x1400461d3
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140003830
mov dword [rsi + 0xc], 7
jmp 0x140046322
lea rcx, [rsi + 0xb8]
movsxd rbx, dword [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov r8, rbx
call fcn.1408af920
mov dword [rsi + 0x138], ebx
mov ebx, dword [rsi + 0x13c]
cmp ebx, 3
jle 0x14004618e
lea r14, [rsi + 0x150]
mov rcx, r14
call fcn.140047010
movzx eax, ax
mov dword [rsi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1400461fe
lea rcx, [0x1409116e8]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp ebx, 5
jb case.0x1400461fe.4
mov ebp, dword [rsi + 0x14c]
inc ebp
mov rcx, r14
call fcn.140046ff0
cmp bp, ax
jne case.0x1400461fe.4
add ebx, 0xfffffffc
mov r8, qword [r14]
add r8, 4
mov rcx, rdi
mov edx, 1
mov r9, rbx
call fcn.140016fd0
test eax, eax
je 0x1400462dd
mov ebx, eax
mov rcx, rsi
mov edx, 5
call fcn.140046070
jmp 0x140046324
lea rdx, [0x140905e31]
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
call fcn.140003830
jmp case.0x1400461fe.4
mov rcx, r14
call fcn.140046ff0
mov r14, qword [rsi + 0x150]
add r14, 4
add ebx, 0xfffffffc
movzx eax, ax
mov dword [rsi + 8], eax
mov rcx, r14
mov rdx, rbx
call fcn.140047020
cmp rax, rbx
jae case.0x1400461fe.4
cmp byte [rdi + 0xaaf], 0
je case.0x1400461fe.4
lea rdx, str.TFTP_error:__s
mov rcx, rdi
mov r8, r14
call fcn.140003900
jmp case.0x1400461fe.4
add ebx, 0xfffffffe
mov rdx, qword [rsi + 0x150]
add rdx, 2
mov rcx, rsi
mov r8d, ebx
call fcn.140047050
mov ebx, eax
test eax, eax
jne 0x140046324
jmp case.0x1400461fe.4
movsxd rax, dword [rsi + 0x13c]
mov rcx, qword [rdi + 0x100]
lea rdx, [rax + rcx]
add rdx, 0xfffffffffffffffc
mov qword [rdi + 0x100], rdx
mov rcx, rdi
call fcn.140033e90
mov rcx, rdi
call fcn.1400338d0
test eax, eax
je 0x140046322
mov rcx, rsi
mov edx, 5
call fcn.140046070
mov ebx, Ordinal_46
jmp 0x140046324
xor ebx, ebx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14004d640
Capabilities:
Get socket status

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x14004d66e
cmp dword [rsi], 0
jne 0x14004d678
test rdi, rdi
je 0x14004d68f
cmp dword [rdi], 0
je 0x14004d68f
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.14005afa0
test rbx, rbx
jne 0x14004d6a6
xor r9d, r9d
jmp 0x14004d6b0
test rbx, rbx
je 0x14004d6f5
cmp dword [rbx], 0
je 0x14004d6f5
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.14005afa0
xor r9d, r9d
cmp dword [rbx], 0
cmovne r9, rbx
xor r8d, r8d
test rdi, rdi
je 0x14004d6bf
cmp dword [rdi], 0
cmovne r8, rdi
xor edx, edx
test rsi, rsi
je 0x14004d6cd
cmp dword [rsi], 0
cmovne rdx, rsi
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1408ac9a0
mov rcx, r14
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14004d170

Function at 0x14004d920
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.140019310
mov rcx, rdi
call fcn.140023ae0
mov rdi, rax
mov rcx, rsi
call fcn.140023ae0
mov rsi, rax
mov rcx, rdi
mov rdx, rax
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14004d9d0
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rbx
call fcn.140019310
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, r14
call fcn.1400193d0
cmp rax, 0x3e9
jae 0x14004da09
mov ecx, 1
call r15
mov rcx, rdi
mov rdx, rsi
mov r8d, 1
call r12
test eax, eax
je 0x14004d990
test rdi, rdi
je 0x14004d9dd
mov rcx, rdi
call fcn.1408b5568
xor edi, edi
test rsi, rsi
je 0x14004d9ec
mov rcx, rsi
call fcn.1408b5568
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test rdi, rdi
je 0x14004da16
mov rcx, rdi
call fcn.1408b5568
mov edi, 1
test rsi, rsi
jne 0x14004d9e4
jmp 0x14004d9ec

Function at 0x14004eb80
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8, rsi
call fcn.1408affc0
xor ecx, ecx
mov rdx, rdi
mov r8d, esi
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setne cl
add ecx, ecx
mov eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret
push rsi
sub rsp, 0x20
mov rsi, rdx
mov r8d, 4
call fcn.1400048f0
cmp eax, 4
jne 0x14004ed1a
mov edx, 4
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x14004eb80
nop
add rsp, 0x20
pop rsi
ret
Function at 0x14004ecf0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8, rsi
call fcn.1408affc0
xor ecx, ecx
mov rdx, rdi
mov r8d, esi
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setne cl
add ecx, ecx
mov eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret
push rsi
sub rsp, 0x20
mov rsi, rdx
mov r8d, 4
call fcn.1400048f0
cmp eax, 4
jne 0x14004ed1a
mov edx, 4
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x14004eb80
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140050c50
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor eax, eax
test edx, edx
setne al
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, esi
add rsp, 0x30
pop rsi
ret
Function at 0x140052840
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rbx, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, rdx
call fcn.140023ae0
test rax, rax
je 0x140052901
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140052940
mov r14, rax
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140052977
mov r13, qword [rsp + 0x48]
cmp r13, 0x100001
jl 0x1400529ec
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rbx
mov r8d, 0x100000
call fcn.140003830
jmp 0x1400529a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140037360
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.140003830
xor ecx, ecx
call qword [fcn.1408b5568]
mov edi, Ordinal_79
jmp 0x1400529c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140037360
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.140003830
mov edi, Ordinal_79
xor r15d, r15d
jmp 0x1400529b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140037360
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.140003830
mov edi, Ordinal_79
xor r15d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [fcn.1408b5568]
mov rcx, rsi
call fcn.1408b5568
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [r13 + 1]
call qword [fcn.1408b557c]
test rax, rax
je 0x140052a53
mov r15, rax
xor ebp, ebp
test r13, r13
mov qword [rsp + 0x38], r12
je 0x140052a5d
xor r12d, r12d
nop dword [rax]
mov r8d, r13d
sub r8d, ebp
mov dword [rsp + 0x44], 0
lea rdx, [r15 + r12]
mov qword [rsp + 0x20], 0
mov rcx, r14
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140052a84
mov eax, dword [rsp + 0x44]
add ebp, eax
test eax, eax
cmove r13, r12
mov r12, rbp
cmp r13, rbp
ja 0x140052a10
jmp 0x140052a60
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400529a9
xor r13d, r13d
mov byte [r15 + r13], 0
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x38]
mov rdx, r15
mov r8, r13
mov r9, rdi
call fcn.140052570
mov edi, eax
jmp 0x1400529ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140037360
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.140003830
mov edi, Ordinal_79
jmp 0x1400529ac
Function at 0x14005a920
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov esi, eax
movsxd rax, ebx
mov byte [rax + rdi - 1], 0
test esi, esi
jne 0x14005a958
mov rcx, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
call fcn.1408b1cf0
test rax, rax
je 0x14005a958
mov byte [rax], 0
mov eax, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005ab70
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
mov rdx, r8
mov r8, rbx
call fcn.14005abc0
lea r8, [rbx + 7]
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.14005abc0
add rbx, 0xe
add rsi, 0x10
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005abc0

Function at 0x14005abc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x3c], 8
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x48]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14005acc9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0
mov word [rsp + 0x50], 0x208
movabs rax, 0x800006601
mov qword [rsp + 0x54], rax
lea r14, [rsp + 0x5c]
mov rcx, rbx
mov rdx, r14
call fcn.14005af00
mov edx, 8
mov rcx, r14
call fcn.14005c340
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_sendto
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14005acbc
mov rax, qword [rdi]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x30], 8
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14005b310
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edi, edi
xor edx, edx
xor r8d, r8d
mov r9d, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14005b372
lea rax, [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14005b377
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsi], 0
mov edi, 2
jmp 0x14005b377
mov edi, reloc.WLDAP32.dll_Ordinal_27
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14005b420
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov ecx, dword [rcx + 0x20]
add eax, eax
add rcx, rax
add rcx, 0x18
call qword [fcn.1408b557c]
mov rdi, rax
test rax, rax
je 0x14005b55b
mov qword [rdi], rsi
lea rcx, [rdi + 0x18]
mov qword [rdi + 8], rcx
mov eax, dword [rsi + 0x18]
add rax, rdi
add rax, 0x18
mov qword [rdi + 0x10], rax
cmp dword [rsi + 0x1c], ebp
jae 0x14005b4ac
call qword [rsi]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, ebp
call qword [rsi + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsi + 0x18]
add rbx, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, rbx
call qword [rsi + reloc.WS2_32.dll_recv]
mov ebp, dword [rsi + 0x20]
mov rcx, qword [rdi + 8]
call qword [rsi]
mov rcx, qword [rdi + 0x10]
call qword [rsi]
mov r15d, ebp
test ebp, ebp
je 0x14005b50e
xor r12d, r12d
lea r14, [rsp + 0x27]
nop word cs:[rax + rax]
movzx eax, byte [rbx + r12]
xor al, 0x36
mov byte [rsp + 0x27], al
mov rcx, qword [rdi + 8]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
movzx eax, byte [rbx + r12]
xor al, 0x5c
mov byte [rsp + 0x27], al
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
inc r12
cmp r15, r12
jne 0x14005b4d0
cmp r15d, dword [rsi + 0x1c]
jae 0x14005b55b
lea rbx, str.6GSSAPI_handshake_failure__empty_challenge_message_
lea r14, [0x140914c59]
nop word cs:[rax + rax]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [rsi + reloc.WS2_32.dll_htonl]
inc r15
mov eax, dword [rsi + 0x1c]
cmp r15, rax
jb 0x14005b530
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1408ac9a0
mov rax, rdi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14005c860
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], 0xf0000040
xor edi, edi
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14005c8c8
lea rax, [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, 1
test eax, eax
jne 0x14005c8c8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsi], 0
xor edi, edi
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14005d6f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov r11d, r8d
lea r9, [rcx + 0x10]
shr r11d, 2
mov edi, 1
mov eax, r11d
mov r10d, r11d
shr eax, 1
add eax, 3
mov dword [rcx], eax
test r11d, r11d
je 0x14005d741
mov rcx, r9
mov r8d, r10d
nop
mov eax, dword [rdx]
lea rdx, [rdx + 4]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, rdi
jne 0x14005d730
xor r10d, r10d
lea rsi, [r11 + 0xe]
lea rbx, [r11*4]
mov eax, dword [rbx + r9 - 4]
lea rsi, [r11 + rsi*2]
lea rsi, [r9 + rsi*4]
lea r14d, [r10 + 0x1b]
lea rbp, str.cw
test r10d, r10d
jne 0x14005d7bc
mov r8d, eax
mov r10d, r11d
movzx eax, al
mov ecx, r8d
shr rcx, 0x18
movzx eax, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
shl eax, 8
or eax, ecx
mov ecx, r8d
shr rcx, 0x10
shl eax, 8
movzx edx, cl
shr r8, 8
movzx ecx, byte [rdx + rbp]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + rbp]
xor edx, edi
add edi, edi
or eax, edx
bt edi, 8
cmovb edi, r14d
jmp 0x14005d806
cmp r10d, 4
jne 0x14005d806
cmp r11d, 6
jbe 0x14005d806
mov r8d, eax
shr rax, 0x10
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov ecx, r8d
shr rcx, 0x18
movzx ecx, byte [rcx + rbp]
shl ecx, 8
or eax, ecx
mov ecx, r8d
shr rcx, 8
movzx edx, cl
shl eax, 8
movzx ecx, byte [rdx + rbp]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + rbp]
or eax, edx
xor eax, dword [r9]
dec r10d
mov dword [rbx + r9], eax
add r9, 4
cmp r9, rsi
jne 0x14005d768
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x14005ebb0
Capabilities:
Check os version
Get common file path

Disassembly:
sub rsp, 0x318
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x14005ec06
lea rcx, [0x1408e1cf8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005ec06
mov ecx, 0xc00
call rax
test eax, eax
jne 0x14005ed1e
mov edx, 0x106
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x14005ed1e
lea ecx, [rax - 1]
mov qword [rsp + 0x320], rbx
cmp word [rsp + rcx*2 + 0x20], 0x5c
je 0x14005ec46
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rsp + rcx*2 + 0x20], dx
movzx edx, byte [str.userenv]
lea rbx, str.userenv
test dl, dl
je 0x14005ed16
mov qword [rsp + 0x328], rbp
mov qword [rsp + 0x330], rsi
mov qword [rsp + 0x310], rdi
lea rdi, [rsp + 0x20]
mov eax, eax
mov qword [rsp + 0x308], r14
mov qword [rsp + 0x300], r15
xor r15d, r15d
lea rdi, [rdi + rax*2]
nop dword [rax]
nop word [rax + rax]
mov rcx, rdi
inc rbx
nop word [rax + rax]
movzx eax, dl
movzx edx, byte [rbx]
inc rbx
mov word [rcx], ax
lea rcx, [rcx + 2]
test dl, dl
jne 0x14005ecb0
xor edx, edx
mov dword [rcx], 0x64002e
mov dword [rcx + 4], 0x6c006c
mov word [rcx + 8], r15w
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
movzx edx, byte [rbx]
test dl, dl
jne 0x14005eca0
mov r15, qword [rsp + 0x300]
mov r14, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x310]
mov rsi, qword [rsp + 0x330]
mov rbp, qword [rsp + 0x328]
mov rbx, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1408ac9a0
add rsp, 0x318
ret
Function at 0x140066830
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 8]
mov rdi, rdx
and eax, 0x3f
mov rbx, rcx
mov byte [rax + rcx + 0x40], 0x80
inc eax
cmp eax, 0x38
jbe 0x140066887
cmp eax, 0x40
je 0x14006686d
mov byte [rax + rcx + 0x40], 0
inc eax
cmp eax, 0x40
jne 0x140066861
lea rbp, [rcx + 0x40]
mov r8d, 1
lea rsi, [rcx + 0x20]
mov rdx, rbp
mov rcx, rsi
call qword [rbx]
xor eax, eax
jmp 0x14006688f
lea rbp, [rcx + 0x40]
lea rsi, [rcx + 0x20]
mov ecx, eax
mov r8d, gethostname
add rcx, 0x40
sub r8d, eax
add rcx, rbx
xor edx, edx
call fcn.1408affc0
mov rcx, qword [rbx + 8]
mov r8d, 1
shl rcx, 3
mov rdx, rbp
mov rax, rcx
bswap ecx
shr rax, 0x20
bswap eax
mov dword [rbx + 0x7c], ecx
mov rcx, rsi
mov dword [rbx + 0x78], eax
call qword [rbx]
mov rdx, rsi
mov r8d, 4
nop dword [rax + rax]
mov ecx, dword [rdx + 4]
lea rdi, [rdi + 8]
mov eax, dword [rdx]
lea rdx, [rdx + 8]
bswap eax
mov dword [rdi - 8], eax
bswap ecx
mov dword [rdi - 4], ecx
sub r8, 1
jne 0x1400668e0
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 8], r8
mov dword [rsi], 0x6a09e667
mov rsi, qword [rsp + 0x40]
mov dword [rbx + 0x24], 0xbb67ae85
mov dword [rbx + 0x28], 0x3c6ef372
mov dword [rbx + 0x2c], 0xa54ff53a
mov dword [rbx + 0x30], 0x510e527f
mov dword [rbx + 0x34], 0x9b05688c
mov dword [rbx + 0x38], 0x1f83d9ab
mov dword [rbx + 0x3c], 0x5be0cd19
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140067190
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov r8, rdx
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call fcn.1408b56c4
mov qword [rbx], rax
test rax, rax
je 0x1400671ca
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x14006a5d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14006a5e9
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14006a60e
xor bl, bl
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, dword [rdi + 8]
lea rcx, [rsp + 0x40]
inc ebx
mov qword [rsp + 0x38], rsi
mov rsi, qword [rdi]
add rbx, rbx
mov r8, rbx
mov qword [rsp + 0x40], 0
mov edx, 0x2002
call fcn.14006d9f0
test al, al
jne 0x14006a641
xor bl, bl
jmp 0x14006a68b
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14006a63d
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.1408af920
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x40]
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14006a63d
mov qword [rsp + 0x40], 0
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.14006da20
mov rsi, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret