joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400794b0
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.1401041e8]
mov rdi, rax
test rax, rax
je 0x14007952d
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 0x140079558
cmp ebx, esi
je 0x140079558
cmp ebx, 0x8000
ja 0x140079558
cmp ebx, esi
jb 0x140079553
mov edx, ebx
mov rcx, rdi
call qword [fcn.1401041e8]
mov rdi, rax
test rax, rax
jne 0x1400794f0
mov rcx, rbp
call qword [fcn.1400f122c]
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 0x140079538
mov rcx, rdi
jmp 0x140079530
Function at 0x14007b000
Capabilities:
Convert ip address from string

Disassembly:
push rsi
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x1401864c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rdx]
mov rsi, r8
mov r14, rdx
mov r13, rcx
test al, al
jne 0x14007b036
mov eax, ntohs
jmp 0x14007b145
mov qword [rsp + 0x78], rdi
cmp al, 0x5b
jne 0x14007b1fd
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x70], r15
cmp rsi, 4
jb 0x14007b1f3
inc r14
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, r14
sub rsi, 2
call fcn.140107f90
cmp rsi, rax
je 0x14007b165
cmp byte [r14 + rax], 0x25
lea r15, [r14 + rax]
mov rsi, rax
jne 0x14007b1f3
xor edi, edi
lea rdx, [0x1401449c4]
lea rcx, [r15 + 1]
lea rbx, [r15 + 1]
lea r8d, [rdi + 2]
call fcn.1400ff990
test eax, eax
jne 0x14007b0c4
movzx eax, byte [r15 + 3]
lea rcx, [r15 + 3]
test al, al
je 0x14007b0c4
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x14007b1f3
mov rcx, rdi
cmp al, 0x5d
je 0x14007b0ef
cmp rcx, 0xf
jge 0x14007b0ef
inc rbx
mov byte [rsp + rcx + 0x20], al
inc edi
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x14007b0d2
test edi, edi
je 0x14007b1f3
cmp byte [rbx], 0x5d
jne 0x14007b1f3
movsxd rax, edi
cmp rax, 0x10
jae 0x14007b220
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x140055c58.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x14007b15f
mov eax, 7
mov rbx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e12a0
add rsp, 0x90
pop r14
pop r13
pop rsi
ret
mov word [r15], 0x5d
lea r8, [rsp + 0x20]
mov byte [rsi + r14], 0
mov rdx, r14
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14007b1f3
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x16]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x14007b1e7
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x14007b1b0
cmp rdx, rsi
jae 0x14007b1e7
lea rax, [rsp + 0x30]
mov r8, r14
sub r8, rax
lea rcx, [rsp + 0x30]
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14007b1d0
mov rsi, rdx
mov byte [rdx + r14 + 1], al
mov byte [rsi + r14], 0x5d
xor eax, eax
jmp 0x14007b12b
mov eax, socket
jmp 0x14007b12b
lea rdx, str.__r_n_t_:______________
mov rcx, r14
call fcn.140103e10
xor edi, edi
mov ecx, reloc.WS2_32.dll_setsockopt
cmp rsi, rax
cmovne edi, ecx
mov eax, edi
jmp 0x14007b140
call fcn.1400e1b84
int3
Function at 0x14007f2d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401864c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rsi, rdx
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
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14007f386
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140073d70
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140062110
mov eax, 2
jmp 0x14007f3f8
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x104]
lea r8, [rbx + 0xd4]
lea rcx, [rsp + 0x30]
call fcn.140062ee0
test al, al
jne 0x14007f3f6
mov qword [rsp + 0x1e0], rdi
call fcn.1400f120c
mov ebx, dword [rax]
call fcn.1400f120c
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140073d70
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140062110
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x14007f3f8
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400e12a0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140080b10
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov dword [rsp + 0x58], 0
mov rsi, rdx
lea rbx, [rdx + 0x148]
mov r8d, send
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rdi, r9
call fcn.1400663d0
test eax, eax
je 0x140080b5d
mov ebp, dword [rbx]
cmp ebp, 0x191
je 0x140080b80
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.1400663d0
test eax, eax
je 0x140080bc6
mov ebp, dword [rbx]
cmp ebp, 0x197
jne 0x140080bc6
mov rcx, rdi
call fcn.14006e060
mov rbx, rax
test rax, rax
jne 0x140080b98
lea eax, [rbx + 0x1b]
jmp 0x140080d29
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.14006fd00
mov rcx, rbx
mov edi, eax
call qword [fcn.1400f122c]
test edi, edi
je 0x140080d27
mov eax, edi
jmp 0x140080d29
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.1400663d0
test eax, eax
je 0x140080c1d
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140080c02
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.140062200
jmp 0x140080d27
xor edx, edx
lea r9, [r14 + 0x298]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140074ae0
jmp 0x140080d27
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, ntohs
lea rdx, str.Connection:
mov rcx, rdi
call fcn.14006df90
test al, al
jne 0x140080d1f
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.1400663d0
test eax, eax
je 0x140080cd0
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140080c86
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rsi
call fcn.140062200
jmp 0x140080d27
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.14006df90
test al, al
je 0x140080d27
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.140062200
mov rcx, rsi
mov byte [r14 + 0x2a4], 1
call fcn.140083aa0
jmp 0x140080d27
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, send
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.14006df90
test al, al
jne 0x140080d1f
mov r9, rbx
lea r8, [rsp + 0x58]
lea rdx, str.HTTP_1._d__d
mov rcx, rdi
call fcn.1400323e0
cmp eax, 2
jne 0x140080d27
mov eax, dword [rbx]
mov dword [rsi + 0x1284], eax
jmp 0x140080d27
mov byte [r14 + 0x2a5], 1
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140087e80
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1401864c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.140073320
mov r13, rax
test rax, rax
jne 0x140087efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140073ea0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140062110
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1400f122c]
jmp 0x1400880b8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140087f71
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140073ea0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140062110
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1400880a2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140087fba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140073ea0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140062110
mov ebx, 0x4d
jmp 0x140088096
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x140087fef
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.140062110
mov ebx, 0x4d
jmp 0x14008808e
lea rcx, [rdi + 1]
call qword [fcn.1400f1240]
mov rbp, rax
test rax, rax
jne 0x140088009
lea ebx, [rax + 0x1b]
jmp 0x14008808e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140088068
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400880da
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14008805f
mov edi, esi
jmp 0x140088061
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140088020
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140087c00
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.1400f122c]
mov rcx, r13
call fcn.1400f122c
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400e12a0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140073ea0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140062110
mov ebx, 0x4d
jmp 0x140088086
Function at 0x14008cec0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.14004fa40
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.1400f1240]
mov rbx, rax
test rax, rax
je 0x14008d066
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14008cf50
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
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 esi, esi
test r15, r15
je 0x14008cfb2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14008cf70
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14008cff3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140147c41]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140147c42]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14008cfc0
mov rcx, qword [rsp + 0x70]
call fcn.14004fa40
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x14008d022
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.1400f122c]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1400ab530
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
add rcx, 0x70
mov rbx, rdx
call fcn.14000a8b0
mov rcx, rax
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400ab530
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140193314], 0
mov rbx, rdx
mov rdi, rcx
jne 0x1400ab54e
call fcn.1400b8640
cmp byte [0x14019331e], 0
mov rdx, rbx
mov rcx, rdi
je 0x1400ab573
xor r9d, r9d
lea r8d, [r9 + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400b89d0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400a90f0

Function at 0x1400ab5f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1401864c0]
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 0x1400ab686
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 0x1400ab686
mov dword [rsp + 0x20], 0x28
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400ab6aa
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400e12a0
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.140007fd0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400ab760
lea rdx, [0x14017ef10]
lea rcx, [rsp + 0x50]
call fcn.1400e24c0
int3
Function at 0x1400abb60
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1401864c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140194270]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401922e0], ecx
jg 0x1400abc3f
mov eax, ebx
cmp rbx, rax
jne 0x1400abc01
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x1400abc01
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x1401922d8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400abc82
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400e12a0
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.140007fd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400ab760
lea rdx, [0x14017ef10]
lea rcx, [rsp + 0x40]
call fcn.1400e24c0
nop
lea rcx, [0x1401922e0]
call fcn.1400e1780
cmp dword [0x1401922e0], 0xffffffff
jne 0x1400abbac
lea rcx, [0x1401922d8]
call fcn.1400ab5f0
lea rcx, [0x140127810]
call fcn.1400e16c0
nop
lea rcx, [0x1401922e0]
call fcn.1400e1714
jmp 0x1400abbac
lea rdx, [0x14014d930]
lea rcx, [rsp + 0x20]
call fcn.140007fd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400ab760
lea rdx, [0x14017ef10]
lea rcx, [rsp + 0x40]
call fcn.1400e24c0
int3

Function at 0x1400b1250
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1400b1287
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 0x1400b1270
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 0x1400b1378
sub rcx, r10
cmp r9, 8
jb 0x1400b1359
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 0x1400b12e0
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 0x1400b1378
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 0x1400b1360
test r8d, r8d
sete al
ret
Function at 0x1400b1380
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1400b1516
cmp r9, 4
jb 0x1400b13ba
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x1400b13a1
xor r11d, r11d
test r9, r9
je 0x1400b1516
cmp r9, 8
jb 0x1400b14ed
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x1400b13ec
cmp r10, r8
jae 0x1400b14ed
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1400b1401
cmp r10, rdx
jae 0x1400b14ed
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1400b14a7
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x1400b1440
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x1400b14df
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x1400b14c0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1400b1516
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x1400b1500
add rsp, 8
ret
Function at 0x1400b1520
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r8, r8
je 0x1400b1682
cmp r8, 4
jb 0x1400b1562
mov r9, r8
shr r9, 2
imul rax, r9, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r9, 1
jne 0x1400b1550
xor r10d, r10d
test r8, r8
je 0x1400b1682
cmp r8, 8
jb 0x1400b1664
lea r9, [rcx - 1]
lea rax, [rdx - 1]
add r9, r8
add rax, r8
cmp rcx, rax
ja 0x1400b1594
cmp r9, rdx
jae 0x1400b1664
cmp r8, 0x40
jb 0x1400b1623
mov r9, r8
mov qword [rsp], rbx
and r9d, 0x3f
mov r11, r8
sub r11, r9
mov rbx, rdx
lea rax, [rcx + 0x10]
sub rbx, rcx
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rax + rbx - 0x10]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + rbx - 0x40]
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm2, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + rbx - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax + rbx - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, r11
jb 0x1400b15c0
mov rbx, qword [rsp]
cmp r9, 8
jb 0x1400b165f
mov r9, r8
and r9, 0xfffffffffffffff8
mov r11, rdx
lea rax, [r10 + rcx]
sub r11, rcx
nop dword [rax]
nop dword [rax + rax]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [r11 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, r9
jb 0x1400b1640
cmp r10, r8
jae 0x1400b1682
sub rdx, rcx
lea r9, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [rdx + r9]
xor byte [r9], al
lea r9, [r9 + 1]
sub r8, 1
jne 0x1400b1670
add rsp, 8
ret
Function at 0x1400bf6a8
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400bf6d6
xor eax, eax
jmp 0x1400bf7bc
cmp qword [rcx + 0x68], 0
je 0x1400bf6e7
call fcn.140012900
jmp 0x1400bf7bc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400bf6fe
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400bf700
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400bf732
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1401234d0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400bf7b6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400bf769
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400bf792
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400f2548
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400bf7b6
cmp rsi, rbx
ja 0x1400bf770
test rsi, rsi
je 0x1400bf7b6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400f2548
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x1400d6a3c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400c357a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400c355d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400c3548

Function at 0x1400e2024
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e206e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e206e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e206e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e206e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e206e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e2070
xor al, al
add rsp, 0x28
ret