joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404f4090
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xf8]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.1401dafc2
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1404f4138
jmp 0x1404f4224
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1404f4163
jmp 0x1404f41fa
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1404f4187
jmp 0x1404f41fa
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x74]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1404f41b2
jmp 0x1404f41fa
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1404f41c2
jmp 0x1404f41fa
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1404f41f0
jmp 0x1404f41fa
xor eax, eax
test eax, eax
jne 0x1404f4138
cmp qword [rsp + 0x58], 0
je 0x1404f420e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
cmp qword [rsp + 0x38], 0
je 0x1404f4224
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.1401dbb48
add rsp, 0xd0
pop rdi
ret
Function at 0x1404f5f90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x8000
mov eax, dword [rsp + 0x34]
lea r9, [0x1407fc010]
mov r8d, 0x30
mov edx, eax
mov rcx, qword [rsp + 0x20]
call fcn.1401d66c0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1404f5ff7
lea r8, [0x1407fc060]
mov edx, 0x32
mov rcx, qword [rsp + 0x20]
call fcn.1401d45e1
xor eax, eax
jmp 0x1404f606d
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1404f603d
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x1404f603d
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x1404f6057
lea r8, str.D:_vcpkg_buildtreescurl_srccurl_8_9_1_bb74e44024.cleanlibgetenv.c
mov edx, 0x3d
mov rcx, qword [rsp + 0x20]
call fcn.1401d45e1
xor eax, eax
jmp 0x1404f606d
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x1404f6068
mov rax, qword [rsp + 0x20]
jmp 0x1404f606d
jmp 0x1404f5fb3
add rsp, 0x40
pop rdi
ret
Function at 0x140511470
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x30]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x140]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax + 0x220]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x104], 0x80
lea r8, [rsp + 0x104]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14051153d
mov dword [rsp + 0x104], 0x80
lea rax, [0x1408006f0]
mov qword [rsp + 0x20], rax
mov r9d, 0x1be
lea r8, [rsp + 0x104]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1401d9f46
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140511563
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x140]
call fcn.1401de294
mov eax, 0x1e
jmp 0x14051166c
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x140]
call fcn.1401dc87c
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x3ad], 0
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1401d5b62
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x140]
call fcn.1401de3a2
mov dword [rsp + 0x114], eax
cmp dword [rsp + 0x114], 0
je 0x1405115e2
lea r8, [0x140800780]
mov edx, 0x1ce
mov rcx, qword [rsp + 0x48]
call fcn.1401d923f
mov eax, dword [rsp + 0x114]
jmp 0x14051166c
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x280], 0
je 0x14051166a
mov dword [rsp + 0x118], 0
mov dl, 1
mov rcx, qword [rsp + 0x140]
call fcn.1401dba2b
mov r8d, 1
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax + 0x288]
mov rax, qword [rsp + 0x140]
call qword [rax + 0x280]
mov dword [rsp + 0x118], eax
xor edx, edx
mov rcx, qword [rsp + 0x140]
call fcn.1401dba2b
cmp dword [rsp + 0x118], 0
je 0x14051166a
mov rcx, qword [rsp + 0x140]
call fcn.140511290
mov eax, 0x2a
jmp 0x14051166c
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0x130
pop rdi
ret
Function at 0x140515360
Capabilities:
Check http status code

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1405153b5
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.1401de294
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x140515445
cmp dword [rsp + 0x48], 0xc8
je 0x1405153d6
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
mov rcx, qword [rsp + 0x40]
call fcn.1401dc87c
nop
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x1405153f5
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1405135a0
mov dword [rsp + 0x20], eax
jmp 0x140515441
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x14051540f
mov rcx, qword [rsp + 0x40]
call fcn.140513660
mov dword [rsp + 0x20], eax
jmp 0x140515441
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x140515429
mov rcx, qword [rsp + 0x40]
call fcn.140513950
mov dword [rsp + 0x20], eax
jmp 0x140515441
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x140515441
mov rcx, qword [rsp + 0x40]
call fcn.140513980
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14052c910
Capabilities:
Convert ip address from string

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x90], 0x20
jbe 0x14052c95e
xor al, al
jmp 0x14052ca4e
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x80]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x14052c982
xor al, al
jmp 0x14052ca4e
lea r8, [rsp + 0x44]
mov rdx, qword [rsp + 0x88]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x14052c9a6
xor al, al
jmp 0x14052ca4e
cmp dword [rsp + 0x90], 0
je 0x14052ca14
cmp dword [rsp + 0x90], 0x20
je 0x14052ca14
mov eax, 0x20
sub eax, dword [rsp + 0x90]
mov ecx, 0xffffffff
mov dword [rsp + 0x60], ecx
movzx ecx, al
mov eax, dword [rsp + 0x60]
shl eax, cl
mov dword [rsp + 0x54], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x58], eax
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
xor ecx, eax
mov eax, ecx
and eax, dword [rsp + 0x54]
test eax, eax
je 0x14052ca10
xor al, al
jmp 0x14052ca4e
mov al, 1
jmp 0x14052ca4e
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x24], eax
jne 0x14052ca28
mov dword [rsp + 0x64], 1
jmp 0x14052ca30
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
jne 0x14052ca41
mov dword [rsp + 0x68], 0
jmp 0x14052ca49
mov dword [rsp + 0x68], 1
movzx eax, byte [rsp + 0x68]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dbb48
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x14052ca70
Capabilities:
Convert ip address from string

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0xc0], 0
jne 0x14052cac7
mov dword [rsp + 0xc0], 0x80
xor edx, edx
mov eax, dword [rsp + 0xc0]
mov ecx, 8
div ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xc0]
and eax, 7
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0x10
ja 0x14052cafe
cmp dword [rsp + 0x20], 0x10
jne 0x14052cb05
cmp dword [rsp + 0x24], 0
je 0x14052cb05
xor al, al
jmp 0x14052cba5
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0xb0]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x14052cb26
xor al, al
jmp 0x14052cba5
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0xb8]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x14052cb47
xor al, al
jmp 0x14052cba5
cmp dword [rsp + 0x20], 0
je 0x14052cb6c
mov eax, dword [rsp + 0x20]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.1401d76a1
test eax, eax
je 0x14052cb6c
xor al, al
jmp 0x14052cba5
cmp dword [rsp + 0x24], 0
je 0x14052cba3
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x38]
mov ecx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0x68]
xor eax, ecx
mov ecx, 8
sub ecx, dword [rsp + 0x24]
mov edx, 0xff
shl edx, cl
mov ecx, edx
and eax, ecx
test eax, eax
jne 0x14052cba3
xor al, al
jmp 0x14052cba5
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0xa0
pop rdi
ret
Function at 0x140549dd0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140549e06
mov eax, 0x1b
jmp 0x140549e56
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140549e54
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x140549e56
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140549e70
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
add rsp, 0x20
pop rdi
ret
Function at 0x14054a9a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x40]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x140812ac0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xb4], 8
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14054aa16
xor al, al
jmp 0x14054ab28
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.1401dafc2
mov byte [rsp + 0x88], 8
mov byte [rsp + 0x89], 2
mov dword [rsp + 0x8c], 0x6601
mov dword [rsp + 0x90], 8
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x100]
call fcn.14054a7b0
mov edx, 8
lea rcx, [rsp + 0x94]
call fcn.1401db102
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14054aabb
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14054ab28
mov r8d, 8
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.1401d8781
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.1401dbb48
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401d8740
add rsp, 0xe0
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14054b736
mov eax, 0x1b
jmp 0x14054b786
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14054b784
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x14054b786
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14054b7a0
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
add rsp, 0x20
pop rdi
ret

Function at 0x14054dc80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14054dccc
xor eax, eax
jmp 0x14054dd1c
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14054dd17
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
xor eax, eax
jmp 0x14054dd1c
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x14054dd30
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
add rsp, 0x20
pop rdi
ret

Function at 0x140555050
Capabilities:
Encrypt data using rc4 prga
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x14055506a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x140555093
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140641b90]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x140555062
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret

Function at 0x1405550b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x1405550ca
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x1405550f6
mov eax, dword [rsp + 0x20]
shl eax, 8
mov ecx, dword [rsp + 0x20]
shr ecx, 0x18
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140641f90]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x1405550c2
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret
Function at 0x140007660
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140191d94], 0
lea rdi, [0x140191d90]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140007738
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140007690
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000776e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140007750
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x1400077af
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140007793
cmp byte [r8], r9b
jne 0x140007793
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140007780
not eax
pop rdi
ret
Function at 0x1400079c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x1400079d9
mov qword [r8], 0
lea rdx, [0x14017dff8]
call fcn.1400077c0
mov rbx, rax
test rax, rax
jne 0x1400079f8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, 2
mov qword [rsp + 0x38], rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007aba
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140007aba
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007aba
mov rax, qword [0x140190150]
mov rbp, rsi
test rax, rax
je 0x140007a57
inc dword [rax + 0x3e8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140007aba
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140007aa7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140190150]
test rax, rax
je 0x140007a9c
dec dword [rax + 0x3e8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140007ac3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140007ab5
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140007ac5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015070
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x140190150]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2e1c], esi
test rcx, rcx
je 0x14001518a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2e20]
mov dword [rdi + 0x2e1c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x1400150ca
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140016030
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x1400150de
mov edx, 8
mov rcx, rbx
call fcn.140016030
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2e30], esi
jle 0x14001512a
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2e38]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2e30]
jl 0x140015100
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140015139
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2e28]
lea rdx, [0x14017dffc]
test rax, rax
movsxd rsi, esi
lea rdi, [0x140190148]
mov rcx, r15
cmovne rdi, rax
call fcn.1400077c0
mov rbx, rax
test rax, rax
je 0x140015185
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret