joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180069030
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r14
push r15
sub rsp, 0x3a0
mov r14d, 2
cmp dword [0x1803ad524], 0
jne 0x18006907e
mov ecx, r14d
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18006907e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ec544
inc dword [0x1803ad524]
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1800690ac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ec544
mov ecx, 4
call fcn.1800d9be0
mov dword [rax], 1
mov qword [rsp + 0x50], rax
lea rax, [0x180185428]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x30], r14w
mov ecx, 0x1698
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x180069118
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ec544
jmp 0x180069158
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x180069149
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ec544
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180069158
mov edx, 5
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
nop
lea rax, [0x180040b20]
mov qword [0x1803ad530], rax
xor ebp, ebp
lea r15, [0x180185428]
nop
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180069199
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180069199
mov rbx, rbp
jmp 0x1800691fa
mov ecx, 0x18
call fcn.1800d9be0
mov rbx, rax
mov qword [rsp + 0x3d0], rax
mov qword [rax], r15
mov qword [rax + 8], rdi
cmp dword [0x1803ad524], 0
jne 0x1800691e0
mov ecx, r14d
lea rdx, [rsp + 0x200]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800691e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1800ec544
inc dword [0x1803ad524]
mov ecx, 4
call fcn.1800d9be0
mov dword [rax], 1
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x1800676b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x180069170
Function at 0x180070210
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x28]
mov edx, 1
call fcn.1800c86b0
xor edx, edx
lea rcx, [rdx - 1]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x18007d2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
lea r11, [rcx + 0x10]
mov edi, edx
mov rbx, rcx
and edi, 7
je 0x18007d345
cmp edx, edi
jge 0x18007d33b
mov r9, qword [rcx + 8]
mov r10d, dword [rcx + 0x14]
mov rax, qword [rbx]
cmp rax, r9
jb 0x18007d313
xor cl, cl
jmp 0x18007d31c
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
mov ecx, edx
shl eax, cl
add edx, 8
or eax, r10d
mov dword [r11], edx
mov dword [rbx + 0x14], eax
mov r10d, eax
cmp edx, 0x18
jle 0x18007d307
lea r11, [rbx + 0x10]
mov ecx, edi
shr dword [rbx + 0x14], cl
sub edx, edi
mov dword [r11], edx
xor r9d, r9d
mov ecx, edx
test edx, edx
jle 0x18007d37e
mov eax, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, al
nop word [rax + rax]
shr eax, 8
inc r9d
mov byte [rdx], r10b
lea rdx, [rdx + 1]
sub ecx, 8
mov dword [rbx + 0x14], eax
movzx r10d, al
test ecx, ecx
jg 0x18007d360
mov dword [r11], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x18007d3b2
mov r8, qword [rbx + 8]
nop dword [rax + rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x18007d39c
xor dl, dl
jmp 0x18007d3a5
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x18007d390
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
je 0x18007d40f
mov edx, dword [0x1803ac254]
mov rax, qword gs:[0x58]
mov ecx, 0x18
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x18007d44e
mov edx, dword [0x1803ac254]
mov rax, qword gs:[0x58]
mov ecx, 0x18
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x18007d468
mov rcx, rbx
call fcn.18007c9b0
test eax, eax
je 0x18007d402
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.18010b6e0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18008d9b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18008d9e4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18008d9d0
ret
Function at 0x180091880
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18009194c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18009194c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x180091965
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x18009193c
cmp byte [rax], 0x5c
jne 0x180091936
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x180091936
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180091922
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x180091933
test r8b, 0x10
jne 0x180091936
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x180091936
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18008e560
test edi, edi
jne 0x1800918a0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.18008e550
int3

Function at 0x180097a90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180097aed
lea rbx, [0x18017d130]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180097ad4
cmp r10, 2
jb 0x180097ad4
cmp byte [r9], r8b
jne 0x180097ad4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180097ab0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180097b2f
lea rbx, [0x18017d130]
cmp r8b, 0x23
jne 0x180097b13
cmp byte [r9], r8b
jne 0x180097b13
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180097b00
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180097c70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180097c8a
mov qword [r8], 0
lea rdx, [0x18017c8b8]
call fcn.180097b40
mov rbx, rax
test rax, rax
jne 0x180097caa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.1800ed514
mov esi, eax
cmp eax, 0xffffffff
je 0x180097d78
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1800eb9a8
test eax, eax
jne 0x180097d78
mov rcx, rbx
call fcn.1800ed514
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180097d78
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1800eb9a8
test eax, eax
jne 0x180097d78
cmp rdi, 0xffffffffffffffff
je 0x180097d78
mov rax, qword [0x1803ad788]
test rax, rax
je 0x180097d1a
inc dword [rax + 0x3bc]
mov rcx, rdi
call fcn.1800e600c
mov rsi, rax
test rax, rax
je 0x180097d78
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1800eb5d8
mov rcx, rbx
cmp rax, rdi
je 0x180097d66
call fcn.1800ea728
mov rax, qword [0x1803ad788]
test rax, rax
je 0x180097d5c
dec dword [rax + 0x3bc]
mov rcx, rsi
call fcn.1800e5ff8
jmp 0x180097d80
call fcn.1800ea728
test r14, r14
je 0x180097d73
mov qword [r14], rdi
mov rax, rsi
jmp 0x180097d82
mov rcx, rbx
call fcn.1800ea728
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18009b960
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x18017c721]
mov dword [rsp + 0x2c], eax
lea r11, [0x18017d130]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x18009b9b3
cmp byte [r8], r9b
jne 0x18009b9b3
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x18009b9a0
mov ecx, dword [rbx + 0x2f84]
lea rax, [0x1800a7310]
mov edi, dword [rbx + 0x2f80]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x1800a73c0]
mov qword [rsp + 0x38], rax
lea rax, [0x1800a7490]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x18009bab3
inc edi
test ecx, ecx
je 0x18009ba1f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18009ba24
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x18009bab3
mov rax, qword [0x1803ad788]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x18009ba48
inc dword [rax + 0x3bc]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call fcn.1800e600c
mov rdx, qword [rbx + 0x2f88]
mov rsi, rax
test rdx, rdx
je 0x18009baa1
movsxd rcx, dword [rbx + 0x2f80]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call fcn.18010b6e0
mov rcx, qword [rbx + 0x2f88]
test rcx, rcx
je 0x18009ba9c
mov rax, qword [0x1803ad788]
test rax, rax
je 0x18009ba9c
dec dword [rax + 0x3bc]
call fcn.1800e5ff8
mov qword [rbx + 0x2f88], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2f84], edi
movsxd rax, dword [rbx + 0x2f80]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2f88]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2f80]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x18009d290
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18009d2e0
lea r11, [0x18017d130]
nop dword [rax]
cmp r9b, 0x23
jne 0x18009d2c3
cmp byte [r8], r9b
jne 0x18009d2c3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18009d2b0
mov rcx, qword [0x1803ad788]
not eax
movsxd rdx, dword [rcx + 0x1a58]
mov r9, qword [rcx + 0x1a60]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18009d341
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18009d339
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18009d33c
mov rdx, r8
test rdx, rdx
jne 0x18009d310
cmp r9, r10
je 0x18009d350
cmp dword [r9], eax
jne 0x18009d350
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x1800a6f70
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x1803ad788]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov qword [rsp + 0x30], r12
test rdx, rdx
jne 0x1800a6fae
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1800a6fa5
test r13, r13
je 0x1800a6fba
inc dword [r13 + 0x3bc]
lea rcx, [rbx + 1]
call fcn.1800e600c
mov r8, rbx
mov qword [rsp + 0x58], rax
mov rdx, rdi
mov rcx, rax
mov rsi, rax
lea r12, [rax + rbx]
call fcn.18010b6e0
xor ebp, ebp
mov byte [r12], 0
xor edi, edi
mov rcx, rsi
cmp rsi, r12
jae 0x1800a7183
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x1800a71c6
cmp al, 0xd
je 0x1800a71c6
mov rbx, rcx
cmp rcx, r12
jae 0x1800a7033
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x1800a7033
cmp al, 0xd
je 0x1800a7033
inc rbx
cmp rbx, r12
jb 0x1800a7020
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x1800a7167
cmp al, 0x5b
jne 0x1800a714e
cmp rbx, rcx
jbe 0x1800a714e
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x1800a714e
lea r14, [rcx + 1]
mov byte [rsi], 0
mov r8, rsi
mov rcx, r14
sub r8, r14
mov edx, 0x5d
call fcn.18010c120
mov r15, rax
test rax, rax
je 0x1800a7167
lea rcx, [rax + 1]
mov edx, 0x5b
sub rsi, rcx
mov r8, rsi
call fcn.18010c120
mov r11, rax
test rax, rax
je 0x1800a7167
mov r10, qword [0x1803ad788]
lea r8, [r14 + 1]
mov byte [r15], 0
mov esi, 0xffffffff
movzx r9d, byte [r14]
mov ecx, esi
test r9b, r9b
je 0x1800a70fa
cmp r9b, 0x23
jne 0x1800a70d7
cmp byte [r8], r9b
jne 0x1800a70d7
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
lea rax, [0x18017d130]
inc r8
xor ecx, dword [rax + rdx*4]
test r9b, r9b
jne 0x1800a70c5
mov r8d, dword [r10 + 0x2f80]
xor eax, eax
not ecx
test r8d, r8d
jle 0x1800a7124
mov r9, qword [r10 + 0x2f88]
lea rdx, [r9 + 8]
cmp dword [rdx], ecx
je 0x1800a712a
inc eax
add rdx, 0x30
cmp eax, r8d
jl 0x1800a7115
xor edi, edi
xor ebp, ebp
jmp 0x1800a7167
cdqe
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r9
je 0x1800a7126
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x1800a7167
test rdi, rdi
je 0x1800a7167
test rbp, rbp
je 0x1800a7167
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x1800a7000
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x1800a71ae
mov rax, qword [0x1803ad788]
test rax, rax
je 0x1800a71ae
dec dword [rax + 0x3bc]
mov rcx, rsi
call fcn.1800e5ff8
mov byte [r13 + 0x2f68], 1
add rsp, 0x38
pop r13
pop rsi
ret
inc rcx
jmp 0x1800a7000
Function at 0x1800bc3a0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbp
push r12
push r15
sub rsp, 0x60
mov rbp, r8
mov r12, rdx
mov r15, rcx
test rdx, rdx
jne 0x1800bc3c5
lea eax, [rdx + 1]
add rsp, 0x60
pop r15
pop r12
pop rbp
ret
xorps xmm0, xmm0
mov qword [rsp + 0x80], rbx
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x88], rsi
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x90], rdi
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x98], r14
movups xmmword [rsp + 0x20], xmm0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x1800bc49a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x1800bc49a
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x7d9cf417
lea rcx, [r14 + r11*4]
mov r8d, dword [rcx + rbx]
add r8, rbx
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x1800bc495
movsx ecx, r9b
lea r8, [r8 + 1]
sub r9b, 0x41
mov edx, ecx
or edx, 0x20
cmp r9b, 0x19
movzx r9d, byte [r8 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r9b, r9b
jne 0x1800bc460
cmp r10d, 0x58b767fd
je 0x1800bc4a2
test r11d, r11d
jne 0x1800bc440
mov rax, qword [rax]
jmp 0x1800bc410
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
mov rdx, r15
add rax, rbx
lea rcx, [rsp + 0x20]
call rax
mov dword [rsp + 0x30], 0x30
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x48], 0x40
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x1800bc589
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x1800bc589
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xfbf67ea9
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx ecx, byte [r9]
inc r9
test cl, cl
je 0x1800bc584
nop
movsx edx, cl
lea r9, [r9 + 1]
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
movzx ecx, byte [r9 - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test cl, cl
jne 0x1800bc550
cmp r10d, 0xce8ade36
je 0x1800bc591
test r11d, r11d
jne 0x1800bc530
mov rax, qword [rax]
jmp 0x1800bc500
mov ecx, dword [rsi + 0x24]
lea r8, [rsp + 0x30]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
mov edx, 0x2000000
add rax, rbx
mov rcx, r12
call rax
mov r14, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r15
pop r12
pop rbp
ret
Function at 0x1800be6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov qword [rsp + 0x60], r14
cmp qword [rdx + 0x18], 7
lea rdi, [rdx + 0x18]
mov r14, r8
mov dword [rsp + 0x78], 4
mov rbx, rdx
mov dword [rsp + 0x68], r15d
jbe 0x1800be70a
mov rdx, qword [rdx]
lea rsi, [rbx + 0x18]
jmp 0x1800be70d
mov rsi, rdi
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x1800be73a
mov ecx, dword [rsp + 0x68]
mov dword [r14], ecx
mov rdx, qword [rdi]
mov r14, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1800be780
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
mov rdi, rsi
cmp rdx, 0x1000
jb 0x1800be77b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800be79c
mov rcx, r8
lea rdi, [rbx + 0x18]
call fcn.1800d9c1c
mov qword [rbx + 0x10], r15
mov eax, ebp
mov qword [rdi], 7
mov word [rbx], r15w
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1800e5f80
int3

Function at 0x1800be7b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 7
lea rdi, [rdx + 0x18]
mov rbx, rdx
jbe 0x1800be7d5
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rdi]
mov esi, eax
cmp rdx, 7
jbe 0x1800be836
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800be831
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800be858
mov rcx, r8
lea rdi, [rbx + 0x18]
call fcn.1800d9c1c
xor eax, eax
mov qword [rdi], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.1800e5f80
int3
Function at 0x1800c0420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xfc8]
mov eax, 0x10c8
call fcn.1800da7f0
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x1000
call fcn.18010bd80
xor esi, esi
lea rdi, [rbp + 0xff8]
mov qword [rsp + 0x60], rsi
call fcn.180027480
mov qword [rsp + 0x30], rdi
lea r9, [rsi - 1]
mov qword [rsp + 0x28], rsi
lea rdx, [rbp - 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.1800e96b8
lea edx, [rsi + 0x4a]
mov dword [rsp + 0x68], 0x4a0000
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1800c04c4
add rsp, 0x10c8
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx r8d, word [rsp + 0x6a]
xor edx, edx
mov rcx, rax
call fcn.18010bd80
lea rdx, [0x180181e60]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov dword [rsp + 0x50], esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rsi
lea r9, [rsp + 0x78]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x78]
mov dword [rsp + 0x38], 3
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], 2
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100004
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0x78], 0x30
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x60], 0x40
mov qword [rbp - 0x68], rax
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x1800c059d
mov rcx, qword [rsp + 0x60]
mov eax, 0xffffffff
mov qword [rsp + 0x40], rsi
test ebx, ebx
mov qword [rsp + 0x38], rsi
cmovs ebx, eax
lea rax, [rbp - 0x40]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1800c05ad
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
add rsp, 0x10c8
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1800c05c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rsi, r8
mov r8, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov dword [rsp + 0x20], 1
xor edx, edx
mov r9, rsi
call fcn.18001c8d0
test rsi, rsi
je 0x1800c0622
mov ecx, ebx
nop word [rax + rax]
add rcx, qword [rdi]
lea eax, [rbx + 0x64]
xor byte [rcx], al
inc ebx
movsxd rcx, ebx
cmp rcx, rsi
jb 0x1800c0610
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret