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

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x4d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x140167769
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1402743b0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x1401677ca
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140140960
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.140167200
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x140167879
sub r8d, 1
je 0x1401678eb
sub r8d, 1
je 0x140167835
cmp r8d, 1
je 0x140167815
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1402b3980]
call fcn.140140960
jmp 0x1401678eb
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.140167410
test eax, eax
je 0x1401678eb
jmp 0x14016779e
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.1401671e0
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.140168270
cmp rax, rbx
jae 0x1401678eb
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s
call fcn.140140a40
jmp 0x1401678eb
cmp r9d, 4
jle 0x1401678eb
mov rcx, r14
call fcn.1401671e0
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne 0x1401678eb
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.140140890
mov ebx, eax
test eax, eax
je 0x1401678ca
mov edx, 5
mov rcx, rdi
call fcn.140168160
mov eax, ebx
jmp 0x14016779e
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.14013fab0
mov rcx, rsi
call fcn.14013fd50
test eax, eax
je 0x14016779c
mov edx, 5
mov rcx, rdi
call fcn.140168160
mov eax, Ordinal_46
jmp 0x14016779e
Function at 0x1401694e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.140284ec0]
mov rdi, rax
test rax, rax
je 0x14016955d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140169588
cmp ebx, esi
je 0x140169588
cmp ebx, 0x8000
ja 0x140169588
cmp ebx, esi
jb 0x140169583
mov edx, ebx
mov rcx, rdi
call qword [fcn.140284ec0]
mov rdi, rax
test rax, rax
jne 0x140169520
mov rcx, rbp
call qword [fcn.14027b988]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140169568
mov rcx, rdi
jmp 0x140169560
jmp 0x1401694e0

Function at 0x140169590
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.140284ec0]
mov rdi, rax
test rax, rax
je 0x14016955d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140169588
cmp ebx, esi
je 0x140169588
cmp ebx, 0x8000
ja 0x140169588
cmp ebx, esi
jb 0x140169583
mov edx, ebx
mov rcx, rdi
call qword [fcn.140284ec0]
mov rdi, rax
test rax, rax
jne 0x140169520
mov rcx, rbp
call qword [fcn.14027b988]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140169568
mov rcx, rdi
jmp 0x140169560
jmp 0x1401694e0
Function at 0x14016dbc0
Capabilities:
Encode data using xor

Disassembly:
push r13
sub rsp, 0x220
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rcx + 0xd0]
mov r13, rcx
mov qword [rsp + 0x30], rcx
test rax, rax
je 0x14016dbf8
cmp byte [rax + 0x184], 0
jne 0x14016dc14
call fcn.14016e500
test al, al
je 0x14016dc1b
mov rax, qword [r13 + 0xd0]
test rax, rax
je 0x14016dc14
mov byte [rax + 0x184], 1
xor eax, eax
jmp 0x14016de42
mov rcx, qword [r13 + 0x8c0]
test rcx, rcx
je 0x14016dc3a
mov edx, 0x400
call fcn.1401b36f0
call fcn.14016e500
test al, al
jne 0x14016dc14
mov qword [rsp + 0x238], rbx
mov qword [rsp + 0x240], rbp
mov qword [rsp + 0x248], rsi
mov qword [rsp + 0x218], rdi
mov qword [rsp + 0x210], r12
mov r12d, 0x40
mov qword [rsp + 0x208], r14
mov qword [rsp + 0x200], r15
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm7
xorps xmm7, xmm7
cvtsi2sd xmm7, r12
test r12, r12
jns 0x14016dc9d
addsd xmm7, qword [0x14035d108]
mulsd xmm7, qword [0x1402bf208]
xor r13d, r13d
nop dword [rax + rax]
mov r14, r13
lea r15, [rsp + 0x90]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
call fcn.14012ea70
mov ecx, 1
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x20], xmm6
call fcn.140141740
mov ebp, dword [rsp + 0x28]
lea rdi, [r14 + 3]
lea rax, [rdi - 2]
movq rsi, xmm6
imul rsi, rax
lea eax, [r14 + 2]
lea rcx, [rsp + 0x48]
imul ebp, eax
call fcn.14012ea70
lea rcx, [rsp + 0x58]
movsxd rbx, dword [rax + 8]
call fcn.14012ea70
mov rcx, qword [rax]
add rcx, rbx
imul rcx, rdi
shl rcx, 8
xor rsi, rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
call fcn.14012ea70
lea rcx, [rsp + 0x78]
mov rbx, rax
call fcn.14012ea70
lea r15, [r15 + 0x10]
mov ecx, dword [rax]
lea eax, [r14 + 4]
add ecx, dword [rbx + 8]
inc r14
imul ecx, eax
shl ecx, 0x10
xor ebp, ecx
mov dword [rsp + 0x28], ebp
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r15 - 0x10], xmm0
cmp r14, 4
jb 0x14016dcc0
movaps xmm2, xmm7
lea rcx, [rsp + 0x90]
mov edx, r12d
call fcn.1401b3390
call fcn.14016e500
test al, al
je 0x14016dcb0
mov edx, 0x100
mov byte [rsp + 0xd0], r13b
lea rcx, [rsp + 0xd0]
call fcn.1401b35a0
cmp byte [rsp + 0xd0], r13b
mov r13, qword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x1e0]
movaps xmm6, xmmword [rsp + 0x1f0]
mov r15, qword [rsp + 0x200]
mov r14, qword [rsp + 0x208]
mov r12, qword [rsp + 0x210]
mov rdi, qword [rsp + 0x218]
mov rsi, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x240]
mov rbx, qword [rsp + 0x238]
je 0x14016de1d
mov edx, 0x400
lea rcx, [rsp + 0xd0]
call fcn.1401b36f0
call fcn.14016e500
test al, al
jne 0x14016dc14
lea rdx, str.libcurl_is_now_using_a_weak_random_seed_
mov rcx, r13
call fcn.140140a40
call fcn.14016e500
test al, al
mov ecx, 0x23
mov eax, 0
cmovne ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x220
pop r13
ret
Function at 0x14016fec0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.14012ea70
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14016fa80
mov rcx, rdi
mov rsi, rax
call fcn.14016fa80
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14016ff70
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14012ea70
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14012eaf0
cmp rax, 0x3e8
ja 0x14016ffa1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14016ff20
test rsi, rsi
je 0x14016ff7d
mov rcx, rsi
call fcn.14027b988
test rbx, rbx
je 0x14016ff8a
mov rcx, rbx
call fcn.14027b988
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14016ffae
mov rcx, rsi
call fcn.14027b988
test rbx, rbx
je 0x14016ffbb
mov rcx, rbx
call fcn.14027b988
mov eax, 1
jmp 0x14016ff8c
Function at 0x140170e70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.14027bdf8]
mov rdi, rax
test rax, rax
jne 0x140170eb2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140170ef5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140170f52
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
sub rbp, 1
jne 0x140170f10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140170f93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1402bf2e9]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1402bf2ea]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140170f60
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1401959b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov eax, 0x20
call fcn.140126870
sub rsp, rax
mov rax, qword [rcx + 8]
lea r14d, [r9 + 1]
mov rbx, rdx
mov rsi, rcx
mov r9, qword [rax + 0xc8]
test byte [r9 + 0x70], 1
je 0x140195a16
mov ecx, dword [rdx + 4]
lea eax, [r14 + r8]
cmp eax, ecx
jbe 0x140195a03
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, r8d
add qword [rdx + 0x10], rax
add qword [rdx + 0x18], rax
sub ecx, r8d
mov dword [rdx + 4], ecx
jmp 0x140195a1c
cmp r14d, dword [rdx + 4]
ja 0x1401959f0
mov ecx, dword [rdx + 4]
mov rax, qword [rdx + 0x10]
dec ecx
mov qword [rsp + 0x30], rbp
or ebp, 0xffffffff
test dword [rsi + 0x19c], 0x200
mov qword [rsp + 0x38], rdi
movzx edi, byte [rcx + rax]
je 0x140195a8f
cmp qword [rsi + 0xe0], 0
jne 0x140195a8f
mov rcx, qword [rsi + 0x80]
lea rdx, [0x140450cf8]
add rcx, 8
mov r8d, 8
call fcn.1401bed70
test eax, eax
jne 0x140195a7d
test dil, 1
jne 0x140195a7d
mov rax, qword [rsi + 0x80]
or dword [rax], 8
mov rax, qword [rsi + 0x80]
test byte [rax], 8
je 0x140195a8f
test edi, edi
je 0x140195a8f
add edi, ebp
mov rcx, qword [rsi + 0xd0]
mov rcx, qword [rcx]
call fcn.1400dddc0
bt eax, 0x15
jae 0x140195ab3
sub ebp, edi
mov eax, 1
add dword [rbx + 4], ebp
jmp 0x140195b6a
mov r11d, dword [rbx + 4]
lea ecx, [rdi + r14]
mov esi, 0xff
mov r8d, r11d
sub r8d, ecx
mov eax, r11d
xor r8d, ecx
xor eax, ecx
or r8d, eax
lea eax, [r11 - 1]
xor r8d, r11d
shr r8d, 0x1f
dec r8d
cmp eax, esi
cmovb esi, eax
xor r9d, r9d
test esi, esi
je 0x140195b3a
mov rbp, qword [rbx + 0x10]
mov r10d, edi
shr r10d, 0x1f
nop word [rax + rax]
mov eax, r9d
mov ecx, edi
sub ecx, r9d
shr eax, 0x1f
shr ecx, 0x1f
xor cl, al
xor al, r10b
or cl, al
mov eax, r11d
sub eax, r9d
xor cl, r10b
dec cl
dec eax
movzx edx, cl
inc r9d
movzx ecx, byte [rax + rbp]
xor ecx, edi
and edx, ecx
not edx
and r8d, edx
cmp r9d, esi
jb 0x140195b00
not r8d
movzx eax, r8b
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [rdi + 1]
neg ecx
and eax, ecx
sub r11d, eax
shl eax, 8
or dword [rbx], eax
mov eax, ecx
and eax, 1
mov dword [rbx + 4], r11d
not ecx
or eax, ecx
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14019a300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.140126870
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x14019a350
lea ecx, [rax - 0x1e]
call fcn.14028a594
mov rcx, rax
lea r8, [0x1403adcf8]
mov r9d, 0x42f
lea rdx, str.invalid_state_reached__s:_d
call fcn.140060c50
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14019ec70
test eax, eax
je 0x14019a386
mov rcx, rbx
call fcn.140176c20
test eax, 0x3000
jne 0x14019a393
cmp dword [rbx + 0x284], 0
jne 0x14019a393
mov rcx, rbx
call fcn.140119a40
mov rcx, rax
mov edx, 1
call fcn.1401a70d0
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14019eb80

Function at 0x14019eb80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, 0x20
call fcn.140126870
sub rsp, rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
call fcn.14019ea70
test rax, rax
je 0x14019ec66
cmp dword [rsp + 0x38], 0
jg 0x14019ec66
cmp dword [rsp + 0x3c], 0
jg 0x14019ec66
mov rcx, qword [rbx + 0x88]
movzx eax, word [rcx + 0x31c]
add ax, ax
mov word [rcx + 0x31c], ax
mov rax, qword [rbx + 0x88]
cmp word [rax + 0x31c], 0x3c
jbe 0x14019ebf0
mov ecx, 0x3c
mov word [rax + 0x31c], cx
mov rcx, rbx
call fcn.14019eea0
mov rcx, rbx
call fcn.14019e2f0
test eax, eax
jns 0x14019ec0d
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x88]
inc dword [rax + 0x308]
mov rax, qword [rbx + 0x88]
cmp dword [rax + 0x308], 2
jbe 0x14019ec34
mov dword [rax + 0x308], 1
cmp dword [rbx + 0x284], 0
mov rcx, rbx
je 0x14019ec54
mov dword [rbx + 0x284], 0
add rsp, 0x20
pop rbx
jmp fcn.140199920
call fcn.14019eea0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14019a700
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401a6260
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, gethostbyname
call fcn.140126870
sub rsp, rax
mov rbx, rdx
mov rsi, rcx
call fcn.1401a6430
mov rdi, rax
test rax, rax
jne 0x1401a6339
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1403af110]
mov dword [rsp + 0x20], 0xaf
mov r8d, eax
lea edx, [rdi + 1]
lea ecx, [rdi + 2]
call fcn.1401b6c10
lea rax, [0x1403af128]
mov r8, rsi
mov qword [rsp + 0x28], rax
lea r9, [0x1403af12c]
lea rdx, [0x1403af130]
mov qword [rsp + 0x20], rbx
lea ecx, [rdi + 5]
call fcn.1401b6080
call fcn.140284f80
cmp dword [rax], 2
je 0x1401a6305
call fcn.140284f80
cmp dword [rax], 6
je 0x1401a6305
mov dword [rsp + 0x20], 0xb8
lea r9, [0x1403af150]
lea r8d, [rdi + 2]
jmp 0x1401a631a
mov dword [rsp + 0x20], 0xb6
lea r9, [0x1403af138]
mov r8d, Ordinal_133
mov edx, WSASetLastError
lea ecx, [rdx - 0x4d]
call fcn.1401b6c10
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x1403af0b0]
call fcn.1401a6c60
mov rbx, rax
test rax, rax
jne 0x1401a6367
mov rcx, rdi
call fcn.140286334
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor edx, edx
mov rcx, rbx
call fcn.1401a6700
mov edx, 0x6a
mov r9, rdi
mov rcx, rbx
lea r8d, [rdx - 0x69]
call fcn.1401a6730
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1401b36f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
mov eax, 0x460
call fcn.140126870
sub rsp, rax
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov ebx, edx
mov rdi, rcx
test rcx, rcx
jne 0x1401b3726
xor eax, eax
jmp 0x1401b3813
lea rdx, [rsp + 0x20]
call fcn.140285bd8
test eax, eax
js 0x1401b371f
xorps xmm2, xmm2
lea rcx, [rsp + 0x20]
mov edx, gethostbyname
call fcn.1401b3390
test ebx, ebx
je 0x1401b371f
lea rdx, [0x1403b1860]
mov qword [rsp + 0x498], r14
mov rcx, rdi
call fcn.1402862a4
mov r14, rax
test rax, rax
je 0x1401b3809
mov eax, 0x2000
mov qword [rsp + 0x490], rsi
test word [rsp + 0x26], ax
je 0x1401b37a0
cmp ebx, 0xffffffff
mov eax, 0x800
mov rcx, r14
cmove ebx, eax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
call fcn.140294a40
nop dword [rax]
mov edi, 0x400
test ebx, ebx
jle 0x1401b37ae
cmp ebx, edi
cmovl edi, ebx
movsxd r8, edi
lea rcx, [rsp + 0x50]
mov r9, r14
mov edx, 1
call fcn.140289b64
mov rsi, rax
test eax, eax
jle 0x1401b37ea
movd xmm2, esi
lea rcx, [rsp + 0x50]
cvtdq2pd xmm2, xmm2
mov edx, edi
call fcn.1401b3390
add ebp, esi
test ebx, ebx
jle 0x1401b37a0
sub ebx, edi
test ebx, ebx
jg 0x1401b37a0
mov rcx, r14
call fcn.140286334
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1400011e0
mov rsi, qword [rsp + 0x490]
mov r14, qword [rsp + 0x498]
mov eax, ebp
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x460
pop rdi
pop rbp
pop rbx
ret

Function at 0x1401bed70
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1401bed97
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1401bed80
movzx eax, r9b
ret
Function at 0x1401d64a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0xb8
call fcn.140126870
sub rsp, rax
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r12, qword [rsp + 0x110]
xor ebx, ebx
movsxd rsi, r8d
mov rbp, r9
mov r14, rdx
mov rdi, rcx
mov eax, ebx
test r9, r9
je 0x1401d6506
cmp r9, qword [rcx]
je 0x1401d64fc
test rdx, rdx
je 0x1401d66f9
test r8d, r8d
js 0x1401d66f9
mov eax, 1
mov qword [rcx], r9
jmp 0x1401d6512
mov rbp, qword [rcx]
test rbp, rbp
je 0x1401d66f9
mov qword [rsp + 0xb0], r15
test r14, r14
je 0x1401d65f5
mov rcx, rbp
call fcn.1401c7870
mov r15d, eax
cmp eax, 0x80
jle 0x1401d654d
lea r8, str.j____int_sizeof_ctx__key_
mov edx, reloc.WS2_32.dll_WSACleanup
lea rcx, str..cryptohmachmac.c
call fcn.1401bf3a0
cmp r15d, esi
jge 0x1401d65a4
mov r8, r12
lea rcx, [rdi + 8]
mov rdx, rbp
call fcn.1401ad960
test eax, eax
je 0x1401d66e8
mov r8, rsi
lea rcx, [rdi + 8]
mov rdx, r14
call fcn.1401adbc0
test eax, eax
je 0x1401d66e8
lea r14, [rdi + 0x98]
mov r8, r14
lea rdx, [rdi + 0x9c]
lea rcx, [rdi + 8]
call fcn.1401ad880
test eax, eax
je 0x1401d66e8
jmp 0x1401d65cc
cmp esi, 0x80
ja 0x1401d66e8
mov r8, rsi
lea rcx, [rdi + 0x9c]
mov rdx, r14
call fcn.1402743b0
lea r14, [rdi + 0x98]
mov dword [r14], esi
mov ecx, dword [r14]
cmp ecx, 0x80
je 0x1401d65fd
mov eax, ecx
mov r8d, Ordinal_133
sub r8d, ecx
xor edx, edx
lea rcx, [rdi + 0x9c]
add rcx, rax
call fcn.1402767a0
jmp 0x1401d65fd
test eax, eax
je 0x1401d66d7
lea rcx, [rsp + 0x20]
mov rax, rdi
sub rax, rcx
mov rdx, rbx
lea rsi, [rax + 0x9c]
lea r14, [rax + 0x9d]
nop dword [rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x1401d6620
mov r8, r12
lea rcx, [rdi + 0x38]
mov rdx, rbp
call fcn.1401ad960
test eax, eax
je 0x1401d66e8
mov rcx, rbp
call fcn.1401c7870
movsxd r8, eax
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x38]
call fcn.1401adbc0
test eax, eax
je 0x1401d66e8
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rbx
add rbx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rbx, 0x80
jl 0x1401d6680
mov r8, r12
lea rcx, [rdi + 0x68]
mov rdx, rbp
call fcn.1401ad960
test eax, eax
je 0x1401d66e8
mov rcx, rbp
call fcn.1401c7870
movsxd r8, eax
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x68]
call fcn.1401adbc0
test eax, eax
je 0x1401d66e8
lea rdx, [rdi + 0x38]
lea rcx, [rdi + 8]
call fcn.1401adcd0
test eax, eax
jne 0x1401d66ec
xor eax, eax
jmp 0x1401d66f1
mov eax, 1
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140125a70
add rsp, 0xb8
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140204750
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, gethostbyname
call fcn.140126870
sub rsp, rax
mov r15, r8
mov r12, rdx
mov rdi, rcx
lea rdx, [0x1403d05b0]
mov r8d, 0x5a6
lea ecx, [rax - 0x10]
mov r14d, r9d
call fcn.1401a59c0
mov rbx, rax
test rax, rax
jne 0x1402047e3
mov eax, dword [0x140453c8c]
test eax, eax
jne 0x1402047b0
call fcn.1401b67b0
mov dword [0x140453c8c], eax
mov edx, 0x67
mov dword [rsp + 0x20], 0x5a8
lea r9, [0x1403d05c8]
mov ecx, eax
lea r8d, [rdx - 0x26]
call fcn.1401b6c10
call fcn.140203870
mov rcx, rbx
call fcn.1401a58c0
xor eax, eax
jmp 0x140204926
test rdi, rdi
je 0x140204848
cmp dword [rdi], 2
jl 0x140204848
cmp qword [rdi + 8], 0
je 0x140204848
mov rcx, r12
mov qword [rsp + 0x50], rbp
call fcn.140205d10
mov rcx, r15
mov rsi, rax
call fcn.140205d10
mov r9, rax
mov dword [rsp + 0x20], r14d
mov r8, rsi
lea rdx, str.capi_get_key__contname_s__provname_s__type_d_n
mov rcx, rdi
mov rbp, rax
call fcn.1402035d0
test rbp, rbp
je 0x140204836
mov rcx, rbp
call fcn.1401a58c0
mov rbp, qword [rsp + 0x50]
test rsi, rsi
je 0x140204848
mov rcx, rsi
call fcn.1401a58c0
mov eax, dword [rdi + 0x38]
lea rcx, [rbx + 8]
shr eax, 0xc
mov r9d, r14d
and eax, 0x20
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1402048b0
mov eax, dword [0x140453c8c]
test eax, eax
jne 0x140204881
call fcn.1401b67b0
mov dword [0x140453c8c], eax
mov edx, 0x67
mov dword [rsp + 0x20], 0x5be
mov r8d, edx
lea r9, [0x1403d0650]
mov ecx, eax
call fcn.1401b6c10
call fcn.140203870
mov rcx, rbx
call fcn.1401a58c0
xor eax, eax
jmp 0x140204926
mov edi, dword [rsp + 0x70]
lea r8, [rbx + 0x10]
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x140204919
mov eax, dword [0x140453c8c]
test eax, eax
jne 0x1402048dd
call fcn.1401b67b0
mov dword [0x140453c8c], eax
mov edx, 0x67
mov dword [rsp + 0x20], 0x5c3
lea r9, [0x1403d0668]
mov ecx, eax
lea r8d, [rdx + 0xa]
call fcn.1401b6c10
call fcn.140203870
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rbx
call fcn.1401a58c0
xor eax, eax
jmp 0x140204926
mov dword [rbx + 0x18], edi
mov rax, rbx
mov qword [rbx], 0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret