joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801236c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x590]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], pe_nt_image_headers64
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x180123756
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.180210c20
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x1801237a6
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.1800f8840
mov dword [rdi + 0xc], 7
mov eax, esi
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1801cf080
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1801237dc.1
movsxd rax, ecx
lea r9, [0x180000000]
mov ecx, dword [r9 + rax*4 + 0x1238e4]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1801237dc.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1801237dc.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1800f8e60
mov esi, eax
test eax, eax
je case.0x1801237dc.4
mov edx, 5
mov rcx, rdi
call fcn.1801242f0
jmp 0x180123781
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0xf8], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.180124360
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x1801237dc.4
mov r8, r14
lea rdx, str.TFTP_error:__s
mov rcx, rbp
call fcn.1800f8930
jmp case.0x1801237dc.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.180123410
mov esi, eax
test eax, eax
je case.0x1801237dc.4
jmp 0x180123783
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x180244ff4]
call fcn.1800f8840
mov rcx, rbp
call fcn.18010e330
test eax, eax
je 0x180123781
mov edx, 5
mov rcx, rdi
call fcn.1801242f0
mov eax, Ordinal_46
jmp 0x180123783
Function at 0x18012b2e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1802f6d90]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x18012b344
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1801311f0
test al, al
je 0x18012b338
mov dword [0x1802f6d90], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1802f6d90], 1
jmp 0x18012b349
cmp eax, 2
je 0x18012b39b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18012b37a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x18012b39b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x18012bf90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x18012c031
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x18012bff5
mov dword [rsi], 0x51
jmp 0x18012c02a
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.18010fbb0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1800f8840
mov rax, qword [rdi + 8]
mov dword [rax + 0xd64], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.1800f89d0
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1801cf080
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18012c070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2c8]
test dword [rcx + 0x84], 0x800
jne 0x18012c1b1
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18012c141
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.18010fbb0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800f8840
mov eax, 2
jmp 0x18012c1b3
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.1800f9f40
test al, al
jne 0x18012c1b1
mov qword [rsp + 0x1e0], rdi
call fcn.1801ec6bc
mov ebx, dword [rax]
call fcn.1801ec6bc
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.18010fbb0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800f8840
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x18012c1b3
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1801cf080
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x18013e780
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.1801ebb90]
mov rbx, rax
test rax, rax
jne 0x18013e7c3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x18013e810
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x18013e872
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x18013e830
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x18013e8b1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x18022b6ff]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x18022b700]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x18013e880
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x18013eaa0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, Ordinal_26
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18013eaec
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18013ebbe
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
jne 0x18013eb30
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x18013ebbe
mov rcx, rbp
call fcn.1800fb3b0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x18013eb9a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18013ebaa
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18013ebbc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1801cf080
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x18013f800
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x18013f865
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x18013f810
ret
Function at 0x18013f9a0
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 8
mov r10, rdx
mov r9, rcx
cmp rdx, 0x10
jb 0x18013fa49
mov qword [rsp], rbx
lea r11d, [r8 - 0x7a143589]
lea rbx, [rdx - 0xf]
add rbx, rcx
lea edx, [r8 + 0x24234428]
lea eax, [r8 + 0x61c8864f]
imul ecx, dword [r9], 0x7a143589
sub edx, ecx
imul ecx, dword [r9 + 4], 0x7a143589
rol edx, 0xd
imul edx, edx, 0x9e3779b1
sub r11d, ecx
imul ecx, dword [r9 + 8], 0x7a143589
rol r11d, 0xd
imul r11d, r11d, 0x9e3779b1
sub r8d, ecx
imul ecx, dword [r9 + 0xc], 0x7a143589
rol r8d, 0xd
add r9, 0x10
imul r8d, r8d, 0x9e3779b1
sub eax, ecx
rol eax, 0xd
imul eax, eax, 0x9e3779b1
cmp r9, rbx
jb 0x18013f9d4
mov rbx, qword [rsp]
rol eax, 0x12
rol r8d, 0xc
add eax, r8d
rol r11d, 7
add eax, r11d
rol edx, 1
add eax, edx
jmp 0x18013fa50
lea eax, [r8 + 0x165667b1]
add eax, r10d
and r10d, 0xf
cmp r10, 4
jb 0x18013fa8e
mov r8d, r10d
shr r8, 2
imul rcx, r8, 0xfffffffffffffffc
add r10, rcx
nop dword [rax + rax]
mov ecx, dword [r9]
add r9, 4
imul edx, ecx, 0x3d4d51c3
sub eax, edx
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
sub r8, 1
jne 0x18013fa70
test r10, r10
je 0x18013fabf
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
imul edx, ecx, 0x165667b1
add eax, edx
rol eax, 0xb
imul eax, eax, 0x9e3779b1
sub r10, 1
jne 0x18013faa0
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul eax, ecx, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul edx, ecx, 0xc2b2ae3d
mov eax, edx
shr eax, 0x10
xor eax, edx
add rsp, 8
ret
Function at 0x18013faf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov qword [rsp + 0x28], r15
movabs r15, 0x7a1435883d4d519d
mov r10, rdx
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
cmp rdx, 0x20
jb 0x18013fc56
mov qword [rsp + 0x18], rbx
lea rcx, [rdx - 0x1f]
mov qword [rsp + 0x20], rdi
lea r11, [r8 + rbp]
movabs rdi, 0x60ea27eeadc0b5d6
add rcx, r9
add rdi, r8
movabs rbx, 0x61c8864e7a143579
add rbx, r8
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r9]
imul rax, rbp
add rdi, rax
mov rax, qword [r9 + 8]
imul rax, rbp
rol rdi, 0x1f
add r11, rax
mov rax, qword [r9 + 0x10]
imul rax, rbp
imul rdi, rsi
add r8, rax
rol r11, 0x1f
mov rax, qword [r9 + 0x18]
add r9, 0x20
imul rax, rbp
imul r11, rsi
add rbx, rax
rol r8, 0x1f
rol rbx, 0x1f
imul rbx, rsi
imul r8, rsi
cmp r9, rcx
jb 0x18013fb70
mov rdx, rbx
mov rax, r8
rol rdx, 0x12
mov rcx, rdi
rol rax, 0xc
add rdx, rax
rol rdi, 1
mov rax, r11
imul rcx, rbp
imul r11, rbp
imul rbx, rbp
imul r8, rbp
rol rax, 7
add rdx, rax
rol rcx, 0x1f
add rdx, rdi
rol r11, 0x1f
mov rdi, qword [rsp + 0x20]
movabs rax, 0x85ebca77c2b2ae63
imul rcx, rsi
imul r11, rsi
xor rdx, rcx
rol rbx, 0x1f
imul rdx, rsi
imul rbx, rsi
sub rdx, r15
rol r8, 0x1f
xor rdx, r11
imul rdx, rsi
imul r8, rsi
sub rdx, r15
xor rdx, r8
imul rdx, rsi
sub rdx, r15
xor rdx, rbx
mov rbx, qword [rsp + 0x18]
imul rdx, rsi
add rax, rdx
jmp 0x18013fc5a
lea rax, [r8 + r14]
add rax, r10
and r10d, 0x1f
cmp r10, 8
jb 0x18013fca7
mov edx, r10d
shr rdx, 3
imul rcx, rdx, 0xfffffffffffffff8
add r10, rcx
nop word [rax + rax]
mov rcx, qword [r9]
add r9, 8
imul rcx, rbp
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
sub rdx, 1
jne 0x18013fc80
mov r15, qword [rsp + 0x28]
movabs r8, 0x165667b19e3779f9
cmp r10, 4
jb 0x18013fcd9
mov edx, dword [r9]
add r9, 4
imul rdx, rsi
xor rax, rdx
rol rax, 0x17
imul rax, rbp
add rax, r8
sub r10, 4
test r10, r10
je 0x18013fcfd
nop
movzx ecx, byte [r9]
lea r9, [r9 + 1]
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
sub r10, 1
jne 0x18013fce0
mov rcx, rax
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x30]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r14
pop rsi
ret
Function at 0x18013fd30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov rbx, qword [rcx]
mov rdi, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rbx, 0x20
jb 0x18013fe18
mov r8, qword [rcx + 8]
mov r10, qword [rcx + 0x20]
mov rdx, r8
mov r9, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov rax, r9
rol rax, 0xc
mov r11, rcx
rol r11, 7
add r11, rax
rol r8, 1
mov rax, r10
imul rdx, rbp
imul rcx, rbp
imul r9, rbp
imul r10, rbp
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
add r11, r8
rol rcx, 0x1f
imul rdx, rsi
imul rcx, rsi
rol r9, 0x1f
movabs rax, 0x85ebca77c2b2ae63
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r9, rsi
imul r10, rsi
sub r11, r15
xor r11, rcx
imul r11, rsi
sub r11, r15
xor r11, r9
imul r11, rsi
sub r11, r15
xor r11, r10
imul r11, rsi
add rax, r11
jmp 0x18013fe1f
mov rax, qword [rcx + 0x18]
add rax, r14
add rax, rbx
lea r8, [rdi + 0x28]
and ebx, 0x1f
cmp rbx, 8
jb 0x18013fe67
mov edx, ebx
shr rdx, 3
imul rcx, rdx, 0xfffffffffffffff8
add rbx, rcx
nop dword [rax]
mov rcx, qword [r8]
add r8, 8
imul rcx, rbp
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
sub rdx, 1
jne 0x18013fe40
movabs r9, 0x165667b19e3779f9
cmp rbx, 4
jb 0x18013fe94
mov edx, dword [r8]
add r8, 4
imul rdx, rsi
xor rax, rdx
rol rax, 0x17
imul rax, rbp
add rax, r9
sub rbx, 4
test rbx, rbx
je 0x18013febd
nop dword [rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
sub rbx, 1
jne 0x18013fea0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r9
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret
Function at 0x1801a87b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, qword [rsp + 0x30]
xor ecx, ecx
mov r11, rdx
test r10, r10
je 0x1801a8905
mov qword [rsp + 0x10], rbx
cmp r10, 0x40
jb 0x1801a88ca
lea rdx, [r8 - 1]
lea rbx, [r10 - 1]
add rdx, r10
add rbx, r11
cmp r8, rbx
ja 0x1801a87f2
cmp rdx, r11
jae 0x1801a88ca
lea rax, [r9 - 1]
add rax, r10
cmp r8, rax
ja 0x1801a8807
cmp rdx, r9
jae 0x1801a88ca
cmp r11, rax
ja 0x1801a8815
cmp rbx, r9
jae 0x1801a88ca
mov qword [rsp + 0x18], rsi
mov rbx, r10
mov qword [rsp + 0x20], rdi
and rbx, 0xffffffffffffffc0
mov qword [rsp], r14
mov rdi, r9
lea rdx, [r8 + 0x10]
mov rsi, r9
sub rdi, r11
sub rsi, r8
mov r14, r11
sub r14, r8
movdqu xmm0, xmmword [rdx - 0x10]
lea rax, [r14 + rdx]
add rcx, 0x40
movdqu xmm1, xmmword [rsi + rdx - 0x10]
lea rdx, [rdx + 0x40]
movdqu xmm2, xmmword [rax + rdi]
xorps xmm0, xmm1
movdqu xmmword [rdx - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqu xmm0, xmmword [rdx - 0x40]
movdqu xmmword [rdx - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdx - 0x30]
movdqu xmm2, xmmword [rsi + rdx - 0x20]
movdqu xmmword [rax], xmm1
movdqu xmm1, xmmword [rsi + rdx - 0x30]
xorps xmm0, xmm1
movdqu xmmword [rdx - 0x30], xmm1
movdqa xmm1, xmm2
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rdx - 0x20]
movdqu xmmword [rdx - 0x20], xmm2
xorps xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
cmp rcx, rbx
jb 0x1801a8840
mov r14, qword [rsp]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
cmp rcx, r10
jae 0x1801a8900
sub r9, r11
lea rax, [rcx + r8]
sub r11, r8
sub r10, rcx
nop word [rax + rax]
lea rdx, [rax + r11]
movzx r8d, byte [r9 + rdx]
lea rax, [rax + 1]
movzx ecx, r8b
xor cl, byte [rax - 1]
mov byte [rdx], cl
mov byte [rax - 1], r8b
sub r10, 1
jne 0x1801a88e0
mov rbx, qword [rsp + 0x10]
add rsp, 8
ret
Function at 0x1801b10f0
Capabilities:
Hash data using sha1

Disassembly:
mov rcx, qword [rcx + 0xc8]
jmp 0x1801b10f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1802f8230], 0
mov rbx, rdx
mov rdi, rcx
jne 0x1801b110e
call fcn.1801c7180
cmp byte [0x1802f823a], 0
mov rdx, rbx
mov rcx, rdi
je 0x1801b1135
xor r9d, r9d
mov r8d, 0x40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1801c7510
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1801add30

Function at 0x1801b4250
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1801b42e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1801b42e8
mov dword [rsp + 0x20], Ordinal_41
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1801b430c
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1801cf080
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.18000c400
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1801b43c0
lea rdx, [0x1802e9d70]
lea rcx, [rsp + 0x50]
call fcn.1801d17a0
int3

Function at 0x1801b47c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1802f919c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1802f6e08], ecx
jg 0x1801b489f
mov eax, ebx
cmp rbx, rax
jne 0x1801b4861
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x1801b4861
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x1802f6e00]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1801b48e2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1801cf080
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.18000c400
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1801b43c0
lea rdx, [0x1802e9d70]
lea rcx, [rsp + 0x40]
call fcn.1801d17a0
nop
lea rcx, [0x1802f6e08]
call fcn.1801cf458
cmp dword [0x1802f6e08], 0xffffffff
jne 0x1801b480c
lea rcx, [0x1802f6e00]
call fcn.1801b4250
lea rcx, [0x180219780]
call fcn.1801cf828
nop
lea rcx, [0x1802f6e08]
call fcn.1801cf3ec
jmp 0x1801b480c
lea rdx, [0x180232d80]
lea rcx, [rsp + 0x20]
call fcn.18000c400
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1801b43c0
lea rdx, [0x1802e9d70]
lea rcx, [rsp + 0x40]
call fcn.1801d17a0
int3
Function at 0x1801b8690
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1801b86c7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x1801b86b0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1801b87b8
sub rcx, r10
cmp r9, 8
jb 0x1801b8799
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x1801b8720
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1801b87b8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1801b87a0
test r8d, r8d
sete al
ret