joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004550
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 0x1800045a7
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 0x1800045c6
test eax, eax
je 0x1800045a7
add ebx, eax
cmp ebx, edi
jl 0x180004580
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 0x1800045b1

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

Disassembly:
sub rsp, 0x28
test r8d, r8d
jne 0x1800045e2
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 0x180004700
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
push rdi
sub rsp, 0x838
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x800
call fcn.18000e372
lea rdi, [rsp + 0x858]
call fcn.180001000
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x800
mov rcx, qword [rax]
call fcn.180009f50
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_OutputDebugStringA
add rsp, 0x838
pop rdi
pop rbx
ret
Function at 0x180004780
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov ecx, 0x494
call fcn.180004b50
mov edx, __WSAFDIsSet
mov rcx, rax
mov rbp, rax
call fcn.180004c80
mov edx, 0x100
mov rcx, rbp
mov r14, rax
call fcn.180004c80
mov edx, 0x100
mov rcx, rbp
mov rbx, rax
call fcn.180004c80
mov edx, 0x100
mov rcx, rbp
mov r15, rax
call fcn.180004c80
mov edx, 0x100
mov rcx, rbp
mov r12, rax
call fcn.180004c80
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x100
mov rcx, r12
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x100
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.180002560
mov r8d, 0x100
mov rdx, rdi
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180004860
mov edx, 0x5c
mov rcx, rdi
call sub.msvcrt.dll_strrchr
mov rdi, rax
test rax, rax
je 0x180004860
add rdi, 1
jne 0x180004867
lea rdi, [0x18000f75c]
mov rcx, r14
mov dword [r14], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [r14 + 4]
mov rcx, rsi
mov dword [0x1800160b4], eax
movzx edx, byte [r14 + 4]
call fcn.180001760
movzx edx, byte [r14 + 8]
mov rcx, rsi
call fcn.180001760
movzx edx, word [r14 + 0xc]
mov rcx, rsi
call fcn.180001800
mov rdx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
sar rdx, 0x20
call fcn.1800017d0
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rsi
call fcn.1800017d0
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call fcn.1800017d0
mov edx, r13d
mov rcx, rsi
call fcn.1800017d0
mov r9, r15
mov qword [rsp + 0x28], rdi
lea r8, str._s_t_s_t_s
mov qword [rsp + 0x20], r12
mov edx, 0x100
mov rcx, rbx
call fcn.180001010
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x180004907
mov ecx, 0x3a
mov rdx, rbx
cmp eax, ecx
cmovg eax, ecx
mov rcx, rsi
mov r8d, eax
call fcn.180001780
mov rcx, rbp
call fcn.180004c00
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180004e40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180004e90
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800051c0
test eax, eax
jle 0x180004e76
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180004e60
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800052f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x1800164c8]
xor edi, edi
test rbx, rbx
je 0x1800053a0
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180005325
cmp dword [rbx + 0xc], eax
jne 0x18000533c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180005310
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180005325
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180005325
cmp dword [rbx + 0x10], 0
jne 0x180005365
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 0x180005379
cmp dword [rbx + 0x10], 2
je 0x180005325
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180005394
mov qword [rdi + 0x28], rax
call sub.msvcrt.dll_free
mov rbx, qword [rdi + 0x28]
jmp 0x18000532c
mov qword [0x1800164c8], rax
call sub.msvcrt.dll_free
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800051c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x1800164c8]
xor ebp, ebp
mov esi, ebp
mov dword [rsp + 0x48], ebp
cmp qword [0x1800164d0], rsi
mov rdi, rcx
jne 0x1800051f8
mov ecx, 0x100000
call sub.msvcrt.dll_malloc
mov qword [0x1800164d0], rax
test rbx, rbx
je 0x1800052d2
mov qword [rsp + 0x40], r14
mov r14d, 0xffffc
nop dword [rax]
cmp dword [rbx + 4], 1
jne 0x1800052bd
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x48]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x1800164d0]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x48]
cmp r8d, r14d
cmova r8d, r14d
mov dword [rsp + 0x48], r8d
cmp eax, 0xffffffff
jne 0x18000526d
mov rcx, qword [0x1800164d0]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x1800052bd
test r8d, r8d
je 0x1800052bd
mov rdx, qword [0x1800164d0]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.1800053b0
cmp eax, 0xffffffff
jne 0x1800052a1
mov rcx, qword [0x1800164d0]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x1800052bd
mov edx, dword [rsp + 0x48]
cmp eax, edx
jne 0x1800052bd
mov rcx, qword [0x1800164d0]
add edx, 4
mov r8d, 5
call rdi
inc esi
mov rcx, qword [rbx + 0x28]
mov rbx, rcx
test rcx, rcx
jne 0x180005210
mov r14, qword [rsp + 0x40]
mov eax, esi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800052f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180004e90
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800051c0
test eax, eax
jle 0x180004e76
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180004e60
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800052f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x1800164c8]
xor edi, edi
test rbx, rbx
je 0x1800053a0
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180005325
cmp dword [rbx + 0xc], eax
jne 0x18000533c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180005310
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180005325
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180005325
cmp dword [rbx + 0x10], 0
jne 0x180005365
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 0x180005379
cmp dword [rbx + 0x10], 2
je 0x180005325
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180005394
mov qword [rdi + 0x28], rax
call sub.msvcrt.dll_free
mov rbx, qword [rdi + 0x28]
jmp 0x18000532c
mov qword [0x1800164c8], rax
call sub.msvcrt.dll_free
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800053b0
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 0x180005406
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 0x18000541d
cmp ebx, edi
jl 0x1800053e0
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 0x180005408
Function at 0x180006890
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
movdqa xmm2, xmmword [0x180010880]
lea rbp, str.AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRR
xor r14d, r14d
mov qword [0x181777870], rcx
mov eax, r14d
nop dword [rax]
movdqu xmm0, xmmword [rax + rbp]
pxor xmm0, xmm2
movdqu xmmword [rax + rbp], xmm0
movdqu xmm1, xmmword [rax + rbp + 0x10]
pxor xmm1, xmm2
movdqu xmmword [rax + rbp + 0x10], xmm1
add rax, 0x20
cmp rax, 0x1000
jl 0x1800068c0
lea rcx, str.____decrypted_settings_____r_n
call fcn.180004700
mov edx, 0x1000
mov rcx, rbp
call fcn.180004600
mov ecx, 0x800
call sub.msvcrt.dll_malloc
mov rdx, rax
mov qword [0x181777878], rax
lea rcx, str.settings:_0x_x_r_n
call fcn.180004700
mov rcx, qword [0x181777878]
xor edx, edx
mov r8d, 0x800
call fcn.18000e372
mov rcx, qword [0x181777878]
mov r9d, 1
mov r8d, r9d
mov qword [rsp + 0x20], r14
mov edx, 0x800
call fcn.1800072b0
mov r8d, 0x1000
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.180004c30
lea rcx, [rsp + 0x30]
call fcn.180004cb0
movzx edi, ax
test ax, ax
jle 0x180006a83
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.180004cb0
lea rcx, [rsp + 0x30]
movsx ebx, ax
call fcn.180004cb0
mov rcx, qword [0x181777878]
movzx esi, ax
movsx rdi, di
shl rdi, 4
mov word [rdi + rcx], bx
mov ecx, ebx
sub ecx, 1
je 0x180006a4d
sub ecx, 1
je 0x180006a36
cmp ecx, 1
jne 0x180006a63
movsx rbx, ax
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r8, qword [0x181777878]
lea rcx, [rsp + 0x30]
movsx edx, si
mov qword [rdi + r8 + 8], rax
call fcn.180004c80
mov rcx, qword [0x181777878]
mov rdx, rax
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
call sub.msvcrt.dll_memcpy
mov rcx, qword [0x181777878]
mov r9d, 1
mov r8d, r9d
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov rcx, qword [rdi + rcx + 8]
call fcn.1800072b0
jmp 0x180006a63
lea rcx, [rsp + 0x30]
call fcn.180004c40
mov rcx, qword [0x181777878]
mov dword [rdi + rcx + 8], eax
jmp 0x180006a63
lea rcx, [rsp + 0x30]
call fcn.180004cb0
mov rdx, qword [0x181777878]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x30]
call fcn.180004cb0
movzx edi, ax
test ax, ax
jg 0x180006990
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
jmp fcn.18000e372
Function at 0x1800070a0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x18000712f
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x70]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
Function at 0x180007640
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r15d, r15d
mov dword [rbp - 0x40], 0x18
mov rsi, r9
mov dword [rbp - 0x3c], 0xf0000000
mov r14, rdx
mov qword [rbp - 0x38], r15
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r15 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800076cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800076c7
mov r9d, dword [rbp - 0x40]
lea rcx, [rbp - 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800076cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp - 0x38]
test rbx, rbx
jne 0x1800076dd
mov al, 1
jmp 0x180007772
mov eax, dword [rdi + 8]
xor ecx, ecx
mov rdx, qword [rdi]
mov r8d, eax
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], ecx
lea rcx, [rbp - 0x24]
mov qword [rbp - 0x48], r15
mov dword [rbp - 0x30], 0x208
mov dword [rbp - 0x2c], 0x660e
mov dword [rbp - 0x28], eax
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x18000778f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x48]
mov bl, 1
test rcx, rcx
je 0x18000775e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x48], r15
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x18000776f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, bl
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp - 0x48]
mov ebx, r15d
mov dword [rbp - 0x50], 1
test rcx, rcx
je 0x1800077b5
xor r9d, r9d
lea r8, [rbp - 0x50]
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x180007749
mov rcx, qword [rbp - 0x48]
mov ebx, r15d
test rcx, rcx
je 0x1800077df
mov r8, qword [rdi + 0x10]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x180007749
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18000774d
lea rax, [rbp - 0x4c]
mov dword [rbp - 0x4c], esi
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rbp - 0x48]
cmp eax, ebx
sete bl
jmp 0x18000774f
Function at 0x180007830
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0x90
xor r12d, r12d
mov dword [rbp - 1], 0x18
mov rsi, r9
mov dword [rbp + 3], 0xf0000000
mov r14, r8
mov qword [rbp + 7], r12
mov r15, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
lea r9d, [r12 + 0x18]
xor r8d, r8d
lea rcx, [rbp + 7]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800078c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800078c2
mov r9d, dword [rbp - 1]
lea rcx, [rbp + 7]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800078c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 7]
test rbx, rbx
jne 0x1800078d8
mov al, 1
jmp 0x18000796d
mov eax, dword [rdi + 8]
xor ecx, ecx
mov rdx, qword [rdi]
mov r8d, eax
mov qword [rbp + 0xf], rcx
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rcx
mov qword [rbp + 0x27], rcx
mov qword [rbp + 0x2f], rcx
mov dword [rbp + 0x37], ecx
lea rcx, [rbp + 0x1b]
mov qword [rbp - 9], r12
mov dword [rbp + 0xf], 0x208
mov dword [rbp + 0x13], 0x660e
mov dword [rbp + 0x17], eax
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0xf]
mov rcx, rbx
mov dword [rsp + 0x20], r12d
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x18000798e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 9]
mov bl, 1
test rcx, rcx
je 0x180007959
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 9], r12
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x18000796a
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp - 9]
mov ebx, r12d
mov dword [rbp - 0x11], 1
test rcx, rcx
je 0x1800079b4
xor r9d, r9d
lea r8, [rbp - 0x11]
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x180007944
mov rcx, qword [rbp - 9]
mov ebx, r12d
test rcx, rcx
je 0x1800079de
mov r8, qword [rdi + 0x10]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x180007944
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x180007948
lea rax, [rbp - 0xd]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov dword [rbp - 0xd], esi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 9]
cmp eax, ebx
sete bl
jmp 0x18000794a
Function at 0x180007a30
Capabilities:
Decode data using base64 via winapi

Disassembly:
jmp 0x180007a30
sub rsp, 0x48
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
lea r8d, [rax + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor eax, eax
add rsp, 0x48
ret

Function at 0x180007a60
Capabilities:
Encode data using base64 via winapi

Disassembly:
jmp 0x180007a60
sub rsp, 0x38
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xor eax, eax
add rsp, 0x38
ret

Function at 0x180007a80
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

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, 0x50
xor edi, edi
mov dword [rax - 0x20], 0x18
mov r14d, r9d
mov dword [rax - 0x1c], 0xf0000000
mov ebx, r8d
mov qword [rax - 0x18], rdi
mov rbp, rdx
mov dword [rax - 0x38], 0xf0000000
mov rsi, rcx
lea r9d, [rdi + 0x18]
xor r8d, r8d
lea rcx, [rax - 0x18]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180007b0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180007b05
mov r9d, dword [rsp + 0x38]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180007b0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007b89
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180007b83
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, ebx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180007b83
mov eax, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov r8d, eax
mov dword [rsp + 0x30], eax
call fcn.18000e372
mov r8, qword [rsp + 0x80]
lea r9, [rsp + 0x30]
mov rcx, qword [rsi]
mov edx, 2
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180007b8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007b9e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x180007f30
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov qword [rsp + 0x30], 1
mov edi, r8d
mov qword [rsp + 0x38], rbx
mov rsi, rdx
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rsp + 0x38]
lea r9d, [rbx + 1]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180007fa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180007f9f
mov r9d, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180007fa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180007fc3
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x180007fc6
or ebx, 0xffffffff
test rcx, rcx
je 0x180007fd3
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18000a1c0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000a21c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000a21c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000a21c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000a21c
cmp dword [rcx + 0x84], 0xe
jbe 0x18000a21c
cmp dword [rcx + 0xf8], 0
je 0x18000a21c
mov ecx, ebx
call fcn.18000a150
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x180017270]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.180009fd0
cmp dword [rsp + 0x60], 0
jne 0x18000a25f
mov ecx, ebx
call fcn.18000a100
int3
add rsp, 0x40
pop rbx
ret