joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004050
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x1800040f0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180005f70
lea rcx, [rsp + 0x20]
call fcn.1800060a0
mov rcx, rax
mov rbx, rax
call fcn.180004050
mov rcx, rbx
test eax, eax
je 0x18000413f
call fcn.180007570
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__rmdir]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.msvcrt.dll_free]
call qword [sym.imp.msvcrt.dll_remove]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.msvcrt.dll_free]

Function at 0x180004160
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180005f70
lea rcx, [rsp + 0x20]
call fcn.1800060a0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.msvcrt.dll__mkdir]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.msvcrt.dll_free]

Function at 0x1800044e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], 0
mov r8d, edx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.180005f70
lea rcx, [rsp + 0x20]
call fcn.180005f80
xor edx, edx
mov r8d, eax
mov edi, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180004540
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x180004555
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.180002df0
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x180004c00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r10, edx
mov rbx, r8
add r10, 4
movsxd rax, r9d
mov edi, edx
mov rsi, rcx
cmp r10, rax
jbe 0x180004c38
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.180004400
mov dword [rbx], eax
test edi, edi
je 0x180004c6e
xor edx, edx
lea rcx, [rbx + 4]
sub rsi, rbx
mov r8, rdi
nop
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 3
inc rdx
movzx eax, byte [rax + rbx]
xor al, byte [rsi + rcx - 5]
mov byte [rcx - 1], al
sub r8, 1
jne 0x180004c50
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 4]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180004c90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
movsxd r11, edx
mov rbx, rcx
movsxd rax, r9d
lea r10, [r11 - 4]
cmp r10, rax
jbe 0x180004caf
xor eax, eax
mov rbx, qword [rsp + 8]
ret
sub r11d, 4
je 0x180004ce0
xor ecx, ecx
mov edx, r11d
mov r9, rbx
sub r9, r8
mov rax, rcx
lea r8, [r8 + 1]
and eax, 3
inc rcx
movzx eax, byte [rax + rbx]
xor al, byte [r9 + r8 + 3]
mov byte [r8 - 1], al
sub rdx, 1
jne 0x180004cc0
mov rbx, qword [rsp + 8]
mov eax, r11d
ret

Function at 0x180004cf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov ebp, r8d
cmp qword [0x181776740], rsi
mov rdi, rcx
jne 0x180004d27
mov ecx, 0x80004
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [0x181776740], rax
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [0x181776740]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, ebp
cmova ebx, ebp
test ebx, ebx
je 0x180004d88
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [0x181776740]
mov edx, 1
mov r9, qword [rdi + 8]
add rax, 4
mov ecx, esi
add rcx, rax
mov r8d, ebx
call qword [sym.imp.msvcrt.dll_fread]
test eax, eax
je 0x180004d81
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x180004d50
jmp 0x180004d88
mov dword [rdi + 4], 0
mov rcx, qword [0x181776740]
lea edx, [rsi + 4]
mov r8d, 8
call fcn.180001c60
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x180004dc0
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rbx, rcx
ja 0x180004dfc
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_htonl]
mov edx, 4
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
lea r8d, [rdx + 5]
call fcn.180001c60
mov rcx, qword [rbx + 8]
call qword [sym.imp.msvcrt.dll_fclose]
add rsp, 0x20
pop rbx
ret
Function at 0x180004eb0
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x58
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.180005f70
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.180002850
lea rcx, [rsp + 0x38]
call fcn.180005f80
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1800028c0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x180011630]
lea rcx, [rsp + 0x20]
call fcn.180002940
lea rcx, [rsp + 0x20]
call fcn.1800029f0
lea rcx, [rsp + 0x20]
mov edx, eax
call fcn.1800029e0
mov rcx, rax
mov r8d, reloc.WS2_32.dll_shutdown
call fcn.180001c60
lea rcx, [rsp + 0x20]
call fcn.1800029b0
add rsp, 0x58
ret

Function at 0x1800055b0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [rsp + 0x60]
mov rdi, rdx
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], ebp
xor edx, edx
mov rsi, rcx
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180005600
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsp + 0x60], ebx
jbe 0x180005660
cmp ebx, 0x80000
jae 0x180005660
mov r8d, 0x80000
mov qword [rsp + 0x20], rbp
sub r8d, ebx
lea r9, [rsp + 0x68]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
xor r9d, r9d
add ebx, eax
mov qword [rsp + 0x28], rbp
add rdi, rax
xor r8d, r8d
lea rax, [rsp + 0x60]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1800055f0
cmp dword [rsp + 0x60], ebp
ja 0x180005606
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x180005910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, r8d
mov dword [rsp + 0x60], r14d
mov rsi, rdx
mov rbp, rcx
mov ebx, r14d
test r8d, r8d
jle 0x180005971
nop dword [rax + rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r14
add rdx, rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000598e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x18000598e
add ebx, eax
cmp ebx, edi
jl 0x180005940
or eax, 0xffffffff
cmp ebx, edi
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
or eax, 0xffffffff
jmp 0x18000597b

Function at 0x180005a80
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
test r8d, r8d
jne 0x180005a92
lea eax, [r8 + 1]
add rsp, 0x28
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180005ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x180005b07
nop dword [rax]
nop dword [rax + rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x180005b26
test eax, eax
je 0x180005b07
add ebx, eax
cmp ebx, edi
jl 0x180005ae0
or eax, 0xffffffff
cmp ebx, edi
cmovne edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
or eax, 0xffffffff
jmp 0x180005b11

Function at 0x180005c80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov dword [rsp + 0x30], 0
mov rdi, rcx
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rax, [0x180005b30]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
lea rcx, [0x180005c70]
mov qword [rdi + 0x10], rax
lea rax, [0x180005bc0]
mov qword [rdi + 0x18], rax
lea rax, [0x180005c30]
mov qword [rdi + 0x20], rax
lea rax, [0x180005c60]
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret

Function at 0x180005d00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x820
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x838]
mov r8, rbx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.1800027e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x820
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1800061b6
nop dword [rax]
nop dword [rax + rax]
mov r8d, edi
xor r9d, r9d
sub r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rsi, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x1800061cd
cmp ebx, edi
jl 0x180006190
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1800061b8
Function at 0x1800065c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x181777668]
xor edi, edi
test rbx, rbx
je 0x180006672
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x1800065f5
cmp dword [rbx + 0xc], eax
jne 0x18000660c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800065e0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x1800065f5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x1800065f5
cmp dword [rbx + 0x10], 0
jne 0x180006635
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180006649
cmp dword [rbx + 0x10], 2
je 0x1800065f5
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180006665
mov qword [rdi + 0x28], rax
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rdi + 0x28]
jmp 0x1800065fc
mov qword [0x181777668], rax
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
call fcn.1800062a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [rax + 0xdac]
call fcn.180006680
test eax, eax
jle 0x1800067ca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x1800067b7
add rsp, 0x20
pop rbx
jmp 0x1800065c0

Function at 0x180006680
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, qword [0x181777668]
xor esi, esi
cmp qword [0x181777670], rsi
mov edi, esi
mov dword [rsp + 0x30], esi
jne 0x1800066be
mov ecx, 0x100000
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [0x181777670], rax
test rbx, rbx
je 0x180006783
mov qword [rsp + 0x38], rbp
mov ebp, 0xffffc
cmp dword [rbx + 4], 1
jne 0x18000676e
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x181777670]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x30]
cmp r8d, ebp
cmova r8d, ebp
mov dword [rsp + 0x30], r8d
cmp eax, 0xffffffff
je 0x180006736
test r8d, r8d
je 0x18000676e
mov rdx, qword [0x181777670]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.180006160
cmp eax, 0xffffffff
jne 0x18000674f
mov rcx, qword [0x181777670]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], esi
call fcn.180001c60
jmp 0x18000676e
mov edx, dword [rsp + 0x30]
cmp eax, edx
jne 0x18000676e
mov rcx, qword [0x181777670]
add edx, 4
mov r8d, 5
call fcn.180001c60
inc edi
mov rcx, qword [rbx + 0x28]
mov rbx, rcx
test rcx, rcx
jne 0x1800066d1
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800067a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x181777668]
xor edi, edi
test rbx, rbx
je 0x180006672
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x1800065f5
cmp dword [rbx + 0xc], eax
jne 0x18000660c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800065e0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x1800065f5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x1800065f5
cmp dword [rbx + 0x10], 0
jne 0x180006635
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180006649
cmp dword [rbx + 0x10], 2
je 0x1800065f5
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180006665
mov qword [rdi + 0x28], rax
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rdi + 0x28]
jmp 0x1800065fc
mov qword [0x181777668], rax
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
call fcn.1800062a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [rax + 0xdac]
call fcn.180006680
test eax, eax
jle 0x1800067ca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x1800067b7
add rsp, 0x20
pop rbx
jmp 0x1800065c0

Function at 0x180007420
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r14, r8
mov ecx, 0x8000
mov rsi, rdx
call qword [sym.imp.msvcrt.dll_malloc]
mov r9, rbp
lea r8, str._s
mov rcx, rax
mov edx, 0x8000
mov rbx, rax
call fcn.180001090
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov r15, rax
call qword [sym.imp.msvcrt.dll_free]
cmp r15, 0xffffffffffffffff
je 0x18000755a
mov qword [rsp + 0x40], rdi
nop dword [rax + rax]
test byte [rsi], 0x10
je 0x18000752b
movzx eax, byte [rsi + 0x2c]
cmp al, byte [0x180011698]
jne 0x1800074b5
movzx eax, byte [rsi + 0x2d]
cmp al, byte [0x180011699]
je 0x180007538
movzx eax, byte [rsi + 0x2c]
cmp al, byte [0x18001169c]
jne 0x1800074d9
movzx eax, byte [rsi + 0x2d]
cmp al, byte [0x18001169d]
jne 0x1800074d9
movzx eax, byte [rsi + 0x2e]
cmp al, byte [0x18001169e]
je 0x180007538
mov ecx, 0x8000
call qword [sym.imp.msvcrt.dll_malloc]
lea r9, [rsi + 0x2c]
mov edx, 0x8000
mov rcx, rax
lea r8, [0x180011390]
mov rdi, rax
call fcn.180001090
mov r9, r14
lea rdx, [rsi + 0x2c]
mov r8, rsi
mov rcx, rbp
call fcn.180007390
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call r14
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x180007538
xor r8d, r8d
lea rdx, [rsi + 0x2c]
mov rcx, rbp
call r14
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180007490
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x180007690
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r8d, edx
mov rdx, rcx
jmp fcn.180008c20
Function at 0x1800082d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
jne 0x180008338
mov eax, dword [rcx + 4]
xor r8d, r8d
mov r9d, dword [rcx]
xor edx, edx
add rcx, 8
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008334
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18000832e
mov r9d, dword [rdi]
lea rcx, [rdi + 8]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008334
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rdi + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800083b0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov edx, 0x18
lea rcx, [rsp + 0x30]
mov r8d, 0xf0000000
call fcn.180008280
lea rcx, [rsp + 0x30]
call fcn.1800082d0
test rax, rax
je 0x180008466
lea rcx, [rsp + 0x30]
call fcn.1800082d0
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180008460
mov rcx, qword [rdi]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180008460
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rsp + 0x68], 0x20
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [r8], rax
mov qword [r8 + 8], rax
lea edx, [rax + 2]
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rax
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180008469
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1800082a0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800084b0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbp, rcx
mov edi, r9d
mov rcx, rdx
mov rsi, r8
mov rbx, rdx
call fcn.1800082d0
test rax, rax
je 0x180008562
xor eax, eax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x38], rax
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x34], 0x660e
xor r14d, r14d
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call fcn.1800082d0
mov rcx, rax
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea r8d, [r14 + 0x2c]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0x70]
test eax, eax
jne 0x180008567
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x180008569
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180008640
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x70
mov rbx, rdx
mov rdi, rcx
mov edx, 0x18
lea rcx, [rsp + 0x38]
mov r8d, 0xf0000000
mov rsi, r9
call fcn.180008280
lea rcx, [rsp + 0x38]
call fcn.1800082d0
test rax, rax
jne 0x180008689
or ebx, 0xffffffff
jmp 0x1800087b6
lea rcx, [rsp + 0x30]
call fcn.180008350
mov r9d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov r8, rbx
lea rcx, [rsp + 0x30]
call fcn.1800084b0
test eax, eax
je 0x1800086b7
or ebx, 0xffffffff
jmp 0x1800087ac
lea rcx, [rsp + 0x30]
call fcn.1800029e0
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.1800082d0
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rbx
mov edx, 0x8009
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800087a4
mov rcx, qword [rdi]
lea r8, [rsp + 0x48]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea edx, [rax + 5]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x48], 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x1800087a4
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800087a4
mov rcx, qword [rdi]
lea r9, [rsp + 0x90]
xor ebx, ebx
xor r8d, r8d
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800087a4
mov r9, qword [rsp + 0xb8]
mov eax, dword [r9]
cmp dword [rsp + 0x90], eax
je 0x180008786
or ebx, 0xffffffff
jmp 0x1800087ac
mov r8, qword [rsp + 0xb0]
mov edx, 2
mov rcx, qword [rdi]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1800087ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.180008480
lea rcx, [rsp + 0x38]
call fcn.1800082a0
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret