joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003660
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rax + 0x10], 0x100
lea r9, [rax + 0x10]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x180003698
add rsp, 0x130
pop rbx
ret
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_atoi
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret
Function at 0x180003d20
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 0x180003d40
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180006180
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180006320
mov rcx, rax
mov rbx, rax
call fcn.180003d20
mov rcx, rbx
test eax, eax
je 0x180003d99
lea rdx, [0x180003b20]
call fcn.1800075f0
mov rcx, rbx
call sub.msvcrt.dll__rmdir
mov rcx, rbx
call fcn.1800092ec
add rsp, 0x40
pop rbx
ret
call sub.msvcrt.dll_remove
mov rcx, rbx
call fcn.1800092ec
add rsp, 0x40
pop rbx
ret
Function at 0x1800040c0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180006180
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180006320
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll__mkdir
mov rcx, rbx
call fcn.1800092ec
add rsp, 0x40
pop rbx
ret

Function at 0x180004600
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.180006180
lea rcx, [rsp + 0x20]
call fcn.180006190
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 0x180004660
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x180004675
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.180002d60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180004d50
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 0x180004d6f
xor eax, eax
mov rbx, qword [rsp + 8]
ret
sub r11d, 4
je 0x180004da0
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 0x180004d80
mov rbx, qword [rsp + 8]
mov eax, r11d
ret

Function at 0x180004db0
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 0x180004de8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.1800044b0
mov dword [rbx], eax
test edi, edi
je 0x180004e1e
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 0x180004e00
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 4]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180004f30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x180004f1a
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
call rdi
mov rcx, qword [rbx + 8]
call sub.msvcrt.dll_fclose
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
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
xor esi, esi
mov ebp, r8d
cmp qword [0x180017168], rsi
mov r14, rdx
mov rdi, rcx
jne 0x180004f6f
mov ecx, 0x80004
call sub.msvcrt.dll_malloc
mov qword [0x180017168], rax
mov ecx, dword [rdi]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x180017168]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, ebp
cmova ebx, ebp
test ebx, ebx
je 0x180004fc7
nop dword [rax + rax]
mov rax, qword [0x180017168]
mov edx, 1
mov r9, qword [rdi + 8]
add rax, 4
mov ecx, esi
add rcx, rax
mov r8d, ebx
call sub.msvcrt.dll_fread
test eax, eax
je 0x180004fc0
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x180004f90
jmp 0x180004fc7
mov dword [rdi + 4], 0
mov rcx, qword [0x180017168]
lea edx, [rsi + 4]
mov r8d, 8
call r14
mov rdx, r14
mov rcx, rdi
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
jmp 0x180004ee0
Function at 0x180005000
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.180006180
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.1800028a0
lea rcx, [rsp + 0x38]
call fcn.180006190
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1800028d0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x180010a28]
lea rcx, [rsp + 0x20]
call fcn.180002900
lea rcx, [rsp + 0x20]
call fcn.1800061d0
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.180002990
mov rcx, rax
mov r8d, reloc.WS2_32.dll_shutdown
mov edx, ebx
call rdi
lea rcx, [rsp + 0x20]
call fcn.180002870
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
lea rax, [rsp + 0x78]
mov edi, r8d
mov qword [rsp + 0x28], r14
mov rsi, rdx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x30], r14d
xor r8d, r8d
xor edx, edx
mov rbp, rcx
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x18000574c
or eax, 0xffffffff
jmp 0x1800057a8
cmp dword [rsp + 0x78], ebx
jbe 0x1800057a6
cmp ebx, edi
jae 0x1800057a6
mov r8d, edi
mov qword [rsp + 0x20], r14
sub r8d, ebx
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
xor r9d, r9d
add ebx, eax
mov qword [rsp + 0x28], r14
add rsi, rax
xor r8d, r8d
lea rax, [rsp + 0x78]
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180005747
cmp dword [rsp + 0x78], r14d
ja 0x180005752
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180005b00
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 0x180005b61
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 0x180005b7e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x180005b7e
add ebx, eax
cmp ebx, edi
jl 0x180005b30
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 0x180005b6b
Function at 0x180005c70
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, [0x180005d20]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
lea rcx, [fcn.180008630]
mov qword [rdi + 0x10], rax
lea rax, [0x180005dc0]
mov qword [rdi + 0x18], rax
lea rax, [0x180005cf0]
mov qword [rdi + 0x20], rax
lea rax, [0x180005db0]
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 0x180005e30
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 0x180005e87
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 0x180005ea6
test eax, eax
je 0x180005e87
add ebx, eax
cmp ebx, edi
jl 0x180005e60
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 0x180005e91

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

Disassembly:
sub rsp, 0x28
test r8d, r8d
jne 0x180005ec2
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 0x180005fe0
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 sub.msvcrt.dll_memset
lea rdi, [rsp + 0x858]
call fcn.180001a20
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.18000b250
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_OutputDebugStringA
add rsp, 0x838
pop rdi
pop rbx
ret
Function at 0x180006440
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180006490
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800067c0
test eax, eax
jle 0x180006476
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180006460
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800068f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180018098]
xor edi, edi
test rbx, rbx
je 0x1800069a0
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180006925
cmp dword [rbx + 0xc], eax
jne 0x18000693c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180006910
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180006925
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180006925
cmp dword [rbx + 0x10], 0
jne 0x180006965
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 0x180006979
cmp dword [rbx + 0x10], 2
je 0x180006925
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180006994
mov qword [rdi + 0x28], rax
call fcn.1800092ec
mov rbx, qword [rdi + 0x28]
jmp 0x18000692c
mov qword [0x180018098], rax
call fcn.1800092ec
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800067c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x180018098]
xor ebp, ebp
mov esi, ebp
mov dword [rsp + 0x48], ebp
cmp qword [0x1800180a0], rsi
mov rdi, rcx
jne 0x1800067f8
mov ecx, 0x100000
call sub.msvcrt.dll_malloc
mov qword [0x1800180a0], rax
test rbx, rbx
je 0x1800068d2
mov qword [rsp + 0x40], r14
mov r14d, 0xffffc
nop dword [rax]
cmp dword [rbx + 4], 1
jne 0x1800068bd
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 [0x1800180a0]
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 0x18000686d
mov rcx, qword [0x1800180a0]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x1800068bd
test r8d, r8d
je 0x1800068bd
mov rdx, qword [0x1800180a0]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.1800069b0
cmp eax, 0xffffffff
jne 0x1800068a1
mov rcx, qword [0x1800180a0]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x1800068bd
mov edx, dword [rsp + 0x48]
cmp eax, edx
jne 0x1800068bd
mov rcx, qword [0x1800180a0]
add edx, 4
mov r8d, 5
call rdi
inc esi
mov rcx, qword [rbx + 0x28]
mov rbx, rcx
test rcx, rcx
jne 0x180006810
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 0x1800068f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180006490
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800067c0
test eax, eax
jle 0x180006476
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180006460
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800068f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180018098]
xor edi, edi
test rbx, rbx
je 0x1800069a0
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180006925
cmp dword [rbx + 0xc], eax
jne 0x18000693c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180006910
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180006925
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180006925
cmp dword [rbx + 0x10], 0
jne 0x180006965
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 0x180006979
cmp dword [rbx + 0x10], 2
je 0x180006925
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180006994
mov qword [rdi + 0x28], rax
call fcn.1800092ec
mov rbx, qword [rdi + 0x28]
jmp 0x18000692c
mov qword [0x180018098], rax
call fcn.1800092ec
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800069b0
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 0x180006a06
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 0x180006a1d
cmp ebx, edi
jl 0x1800069e0
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 0x180006a08

Function at 0x180007610
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 sub.msvcrt.dll_malloc
mov r9, rbp
lea r8, [0x180010a88]
mov edx, 0x8000
mov rcx, rax
mov rbx, rax
call fcn.180001a30
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov r15, rax
call fcn.1800092ec
cmp r15, 0xffffffffffffffff
je 0x18000773e
mov qword [rsp + 0x40], rdi
test byte [rsi], 0x10
je 0x18000770f
movzx eax, byte [rsi + 0x2c]
cmp al, byte [0x180010a90]
jne 0x18000769b
movzx eax, byte [rsi + 0x2d]
cmp al, byte [0x180010a91]
je 0x18000771c
movzx eax, byte [rsi + 0x2c]
cmp al, byte [0x180010a94]
jne 0x1800076bf
movzx eax, byte [rsi + 0x2d]
cmp al, byte [0x180010a95]
jne 0x1800076bf
movzx eax, byte [rsi + 0x2e]
cmp al, byte [0x180010a96]
je 0x18000771c
mov ecx, 0x8000
call sub.msvcrt.dll_malloc
lea r9, [rsi + 0x2c]
mov edx, 0x8000
lea r8, [0x180010740]
mov rcx, rax
mov rdi, rax
call fcn.180001a30
mov r9, r14
lea rdx, [rsi + 0x2c]
mov r8, rsi
mov rcx, rbp
call fcn.180007760
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call r14
mov rcx, rdi
call fcn.1800092ec
jmp 0x18000771c
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 0x180007676
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 0x180008700
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 0x18000878d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180008787
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 0x18000878d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp - 0x38]
test rbx, rbx
jne 0x18000879d
xor al, al
jmp 0x180008832
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 0x18000884f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x48]
xor bl, bl
test rcx, rcx
je 0x18000881e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x48], r15
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x18000882f
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 0x180008875
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 0x180008809
mov rcx, qword [rbp - 0x48]
mov ebx, r15d
test rcx, rcx
je 0x18000889f
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 0x180008809
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18000880d
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 0x18000880f
Function at 0x1800088f0
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 0x180008988
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180008982
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 0x180008988
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 7]
test rbx, rbx
jne 0x180008998
xor al, al
jmp 0x180008a2d
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 0x180008a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 9]
xor bl, bl
test rcx, rcx
je 0x180008a19
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 9], r12
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x180008a2a
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 0x180008a74
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 0x180008a04
mov rcx, qword [rbp - 9]
mov ebx, r12d
test rcx, rcx
je 0x180008a9e
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 0x180008a04
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x180008a08
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 0x180008a0a