joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ace70
Capabilities:
Get thread local storage value

Disassembly:
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x1401659e0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400acfb8
cmp eax, 1
je 0x1400acedd
call fcn.1400abd70
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.1400a7620
mov r13d, dword [rbx]
test r13d, r13d
je 0x1400acf00
cmp r13d, 1
jne 0x1400acf90
mov rcx, r12
call fcn.1400a7910
test rdi, rdi
je 0x1400acedd
mov rcx, rdi
call fcn.1400ac120
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x1400ad00b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x1400ac200]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x1400acff8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call r13
test rax, rax
je 0x1400acfe0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call r13
test rax, rax
je 0x1400acfc8
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400acec8
mov ecx, 2
call qword [fcn.140001f00]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400acec8
mov eax, 0x16
jmp 0x1400acedf
call fcn.1400ac550
test rax, rax
jne 0x1400acf79
jmp 0x14002048e
call fcn.1400ac550
test rax, rax
jne 0x1400acf55
jmp 0x14002047f
call fcn.1400ac550
test rax, rax
jne 0x1400acf2f
jmp 0x140020475
call fcn.140056180
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400ad290
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ad308
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140044af0
cmp esi, dword [rbx + 0x48]
jae 0x1400ad2e3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400ad2e3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140044b30
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400ac550
mov rbx, rax
jmp 0x1400ad2bd
Function at 0x1400ad320
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ad420
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140044af0
cmp esi, dword [rbx + 0x48]
jae 0x1400ad3a0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140044b30
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400ad42d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x1400ad42d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400ad36f
call fcn.1400ac550
mov rbx, rax
jmp 0x1400ad35a
mov rcx, r13
call fcn.140044b30
mov eax, 0xc
jmp 0x1400ad38d

Function at 0x1400ad4b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad4d8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400ac550
test rax, rax
jne 0x1400ad4ca
add rsp, 0x28
ret

Function at 0x1400ad540
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad568
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400ac550
test rax, rax
jne 0x1400ad55a
jmp 0x1400ad55e

Function at 0x1400ad680
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402b9a98]
test eax, eax
jne 0x1400ad698
xor eax, eax
add rsp, 0x28
ret
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad6c8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400ad68e
test byte [rax + 0x40], 3
je 0x1400ad68e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400ad690
call fcn.1400ac550
test rax, rax
jne 0x1400ad6ae
jmp 0x1400ad68e

Function at 0x1400ad6e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad720
test ebx, ebx
jle 0x1400ad710
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400ac550
test rax, rax
jne 0x1400ad6fd
add rsp, 0x20
pop rbx
ret
Function at 0x1400ad810
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ad888
test byte [rbx + 0x40], 0xc
jne 0x1400ad83f
mov eax, dword [0x1402b9a98]
test eax, eax
jne 0x1400ad850
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400a7620
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400ad873
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400ad873
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400ad89c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400a7910
call fcn.1400ac550
mov rbx, rax
test rax, rax
jne 0x1400ad82f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400ad8ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400a7910
call fcn.1400ad730
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400ad940
call fcn.140056a60
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400ad978
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ad9d0
test esi, esi
je 0x1400ad956
call fcn.1400ad810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400ad9b0
mov edx, edi
call fcn.140056b30
call fcn.1400ad810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad9c0
call fcn.1400ad810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400ad810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400ad915
call fcn.1400ac550
mov rbx, rax
jmp 0x1400ad915
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ad92e
call fcn.1400ac550
jmp 0x1400ad956
call fcn.1400ac550
mov rbx, rax
jmp 0x1400ad911
Function at 0x1400ad8d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ad888
test byte [rbx + 0x40], 0xc
jne 0x1400ad83f
mov eax, dword [0x1402b9a98]
test eax, eax
jne 0x1400ad850
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400a7620
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400ad873
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400ad873
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400ad89c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400a7910
call fcn.1400ac550
mov rbx, rax
test rax, rax
jne 0x1400ad82f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400ad8ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400a7910
call fcn.1400ad730
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400ad940
call fcn.140056a60
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400ad978
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ad9d0
test esi, esi
je 0x1400ad956
call fcn.1400ad810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400ad9b0
mov edx, edi
call fcn.140056b30
call fcn.1400ad810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad9c0
call fcn.1400ad810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400ad810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400ad915
call fcn.1400ac550
mov rbx, rax
jmp 0x1400ad915
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ad92e
call fcn.1400ac550
jmp 0x1400ad956
call fcn.1400ac550
mov rbx, rax
jmp 0x1400ad911

Function at 0x1400ad9e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ada50
test esi, esi
je 0x1400ada30
call fcn.1400ad810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400ada60
mov edx, esi
call fcn.140056b30
call fcn.1400ad810
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400ad810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400ad810
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400ac550
mov rbx, rax
jmp 0x1400ada01
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ada1a
Function at 0x1400b1cc0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1400b1d18
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1400b1cf0
and edx, 7
je 0x1400b1d4d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1400b1d28
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x1400ebfc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400ec008
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400ebfda
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400f1200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140159b10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400f1220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400f1228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400f1220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400f127d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400f1274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400f1220
add rax, 0x28
cmp rax, r9
jne 0x1400f1260
xor eax, eax
ret

Function at 0x1400f1280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140159b10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400f129f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400f12a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400f129f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400f1340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140159b10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400f135f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400f1368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
lea r10d, [rdx + 2]
mov r11d, edx
mov eax, 0xaaaaaaab
mov rdi, r8
mul r10d
mov rbx, rcx
shr edx, 1
lea edx, [rdx*4 + 1]
cmp dword [r9], edx
jae 0x14000103f
mov dword [r9], edx
mov eax, 6
jmp 0x14000112c
mov eax, 0xaaaaaaab
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r11d
shr edx, 1
lea ecx, [rdx + rdx*2]
xor edx, edx
test ecx, ecx
je 0x1400010c6
dec ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
mov r10d, edx
lea edx, [rdx + rdx*2]
movzx eax, byte [rbx]
shr rax, 2
mov al, byte [rax + rbp]
mov byte [r8], al
movzx eax, byte [rbx + 1]
movzx ecx, byte [rbx]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbp]
mov byte [r8 + 1], al
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rbp]
mov byte [r8 + 2], al
movzx eax, byte [rbx + 2]
add rbx, 3
and eax, 0x3f
mov al, byte [rax + rbp]
mov byte [r8 + 3], al
add r8, 4
sub r10, 1
jne 0x14000106c
cmp edx, r11d
jae 0x140001120
movzx r10d, byte [rbx]
inc edx
cmp edx, r11d
jae 0x1400010dc
movzx ecx, byte [rbx + 1]
jmp 0x1400010de
xor ecx, ecx
mov rax, r10
shl r10d, 4
shr rax, 2
mov al, byte [rax + rbp]
mov byte [r8], al
mov eax, ecx
shr eax, 4
add eax, r10d
and eax, 0x3f
mov al, byte [rax + rbp]
mov byte [r8 + 1], al
cmp edx, r11d
jae 0x140001111
and ecx, 0xf
shl ecx, 2
mov cl, byte [rcx + rbp]
jmp 0x140001113
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov byte [r8], 0
sub r8d, edi
mov dword [r9], r8d
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x1400012b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rbx, r9
mov ecx, dword [r9]
mov edi, r8d
mov rsi, rdx
call fcn.140003fc8
test eax, eax
jne 0x1400013e2
mov r8d, dword [r9 + 4]
lea eax, [r8 - 1]
cmp eax, 0x7f
ja 0x1400013dd
xor edx, edx
mov eax, edi
div r8d
test edx, edx
jne 0x1400013dd
test r8b, 3
jne 0x1400013dd
movsxd rax, dword [r9]
lea r12, [0x1400b92d0]
imul rcx, rax, 0xb0
mov r10, qword [rcx + r12 + 0x60]
test r10, r10
je 0x140001356
xor edx, edx
lea rcx, [r9 + 0x88]
mov eax, edi
mov qword [rsp + 0x20], rcx
div r8d
add r9, 8
mov rdx, rsi
mov r8d, eax
mov rcx, rbp
call r10
jmp 0x1400013e2
test edi, edi
je 0x1400013d9
xor edx, edx
test r8d, r8d
jle 0x14000137e
mov r8, rbp
lea rcx, [rbx + 8]
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x14000136b
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
imul r9, rax, 0xb0
mov rdx, rsi
lea rcx, [rbx + 8]
call qword [r9 + r12 + 0x28]
test eax, eax
jne 0x1400013e2
mov r8d, dword [rbx + 4]
xor r9d, r9d
test r8d, r8d
jle 0x1400013cb
mov rcx, rbx
mov rdx, rsi
sub rcx, rsi
mov eax, dword [rdx]
add r9d, 4
mov dword [rcx + rdx + 8], eax
lea rdx, [rdx + 4]
mov r8d, dword [rbx + 4]
cmp r9d, r8d
jl 0x1400013b4
movsxd rax, r8d
add rsi, rax
add rbp, rax
sub edi, r8d
jne 0x14000135a
xor eax, eax
jmp 0x1400013e2
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140001404
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1400b34a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rbx, r9
mov ecx, dword [r9]
mov edi, r8d
mov r14, rdx
call fcn.140003fc8
test eax, eax
jne 0x14000152a
mov r11d, dword [r9 + 4]
lea eax, [r11 - 1]
cmp eax, 0x7f
ja 0x140001525
xor edx, edx
mov eax, r8d
div r11d
test edx, edx
jne 0x140001525
test r11b, 3
jne 0x140001525
movsxd rcx, dword [r9]
lea r15, [0x1400b92d0]
imul r8, rcx, 0xb0
mov rbp, qword [r8 + r15 + 0x68]
test rbp, rbp
je 0x1400014a9
xor edx, edx
lea r10, [r9 + 0x88]
mov eax, edi
mov qword [rsp + 0x20], r10
div r11d
add r9, 8
mov rdx, r14
mov r8d, eax
mov rcx, rsi
call rbp
jmp 0x14000152a
test edi, edi
je 0x140001521
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
imul r9, rax, 0xb0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [r9 + r15 + 0x30]
test eax, eax
jne 0x14000152a
mov ecx, dword [rbx + 4]
xor r11d, r11d
test ecx, ecx
jle 0x140001514
lea r8, [rsp + 0x30]
mov r9, rsi
sub r8, rbx
lea rdx, [rbx + 8]
sub r9, rbx
mov r10, r14
sub r10, rbx
mov ecx, dword [r8 + rdx - 8]
add r11d, 4
xor ecx, dword [rdx]
mov eax, dword [r9 + rdx - 8]
mov dword [rdx], eax
mov dword [r10 + rdx - 8], ecx
lea rdx, [rdx + 4]
mov ecx, dword [rbx + 4]
cmp r11d, ecx
jl 0x1400014f1
movsxd rax, ecx
add rsi, rax
add r14, rax
sub edi, ecx
jne 0x1400014ad
xor eax, eax
jmp 0x14000152a
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140068c30
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400038c4
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
xor eax, eax
and qword [rcx], 0
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x14000404c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
movsxd rbp, edx
mov ecx, ebp
mov edi, r9d
mov r12, r8
call fcn.140003ff4
test eax, eax
jne 0x1400041b1
mov rbx, rbp
mov dword [rsi + 0x70], ebp
shl rbx, 7
lea r13, [0x1400ba8d0]
mov r15d, dword [rbx + r13 + 0xc]
test r9d, r9d
jne 0x1400040a7
lea eax, [r9 + 3]
jmp 0x1400041b1
mov ecx, dword [rbx + r13 + 0x10]
call fcn.14006dc2c
mov r14, rax
test rax, rax
jne 0x1400040c2
lea eax, [r14 + 0xd]
jmp 0x1400041b1
mov ecx, dword [rbx + r13 + 0x10]
call fcn.14006dc2c
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x1400040e0
lea edi, [rax + 0xd]
jmp 0x1400041a7
mov ecx, dword [rbx + r13 + 0x10]
mov rdx, r12
cmp edi, ecx
jbe 0x14000412a
mov dword [rsp + 0x30], ecx
mov r9, rax
lea rcx, [rsp + 0x30]
mov r8d, edi
mov qword [rsp + 0x20], rcx
mov ecx, ebp
call fcn.14000173c
mov edi, eax
test eax, eax
jne 0x14000419b
mov eax, dword [rbx + r13 + 0x10]
cmp r15d, eax
jae 0x140004151
sub eax, r15d
mov rcx, r15
add rcx, qword [rsi + 0xe8]
jmp 0x14000414a
mov r8, rdi
mov rcx, rax
call fcn.14006bf10
mov eax, dword [rbx + r13 + 0x10]
cmp edi, eax
jae 0x140004151
mov rcx, qword [rsi + 0xe8]
sub eax, edi
add rcx, rdi
mov edx, eax
call fcn.140003fb0
xor r8d, r8d
cmp dword [rbx + r13 + 0x10], r8d
jbe 0x140004177
mov rax, qword [rsi + 0xe8]
mov cl, byte [r8 + rax]
xor cl, 0x36
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rbx + r13 + 0x10]
jb 0x14000415b
mov rcx, rsi
call qword [rbx + r13 + 0x58]
mov edi, eax
test eax, eax
jne 0x14000419b
mov r8d, dword [rbx + r13 + 0x10]
mov rdx, r14
mov rcx, rsi
call qword [rbx + r13 + 0x60]
mov edi, eax
test eax, eax
je 0x1400041a7
mov rcx, qword [rsi + 0xe8]
call fcn.14006dc24
mov rcx, r14
call fcn.14006dc24
mov eax, edi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400041d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r13, r8
mov ecx, dword [rcx + 0x70]
mov r15, rdx
call fcn.140003ff4
test eax, eax
jne 0x14000433f
movsxd rdi, dword [rsi + 0x70]
lea rbx, [0x1400ba8d0]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.14006dc2c
mov ecx, r12d
mov r14, rax
call fcn.14006dc2c
mov rbp, rax
test r14, r14
je 0x14000432d
test rax, rax
je 0x140004328
mov rdx, rax
mov rcx, rsi
call qword [rdi + rbx + 0x68]
mov ebx, eax
test eax, eax
jne 0x140004308
xor r8d, r8d
lea r9, [0x1400ba8d0]
cmp dword [rdi + r9 + 0x10], r8d
jbe 0x140004283
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rdi + r9 + 0x10]
jb 0x140004267
mov rcx, rsi
call qword [rdi + r9 + 0x58]
mov ebx, eax
test eax, eax
jne 0x140004308
lea rax, [0x1400ba8d0]
mov rdx, r14
mov r8d, dword [rdi + rax + 0x10]
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x140004308
mov r8d, r12d
lea rax, [0x1400ba8d0]
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x140004308
mov rdx, r14
lea rax, [0x1400ba8d0]
mov rcx, rsi
call qword [rdi + rax + 0x68]
mov ebx, eax
test eax, eax
jne 0x140004308
xor ecx, ecx
test r12d, r12d
je 0x140004302
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x140004302
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x1400042eb
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rsi + 0xe8]
call fcn.14006dc24
mov rcx, rbp
call fcn.14006dc24
mov rcx, r14
call fcn.14006dc24
mov eax, ebx
jmp 0x14000433f
mov rcx, r14
jmp 0x140004335
test rbp, rbp
je 0x14000433a
mov rcx, rbp
call fcn.14006dc24
mov eax, reloc.WS2_32.dll_listen
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004f00
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov ebx, edx
mov dword [rax - 0x18], 0xf0000020
mov rdi, rcx
xor edx, edx
lea rcx, [rax + 0x18]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140004f62
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140004f88
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
je 0x140004f79
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret