joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ad7e0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r9d, dword [rcx + 4]
lea r14, [0x180000000]
mov rbx, rcx
mov eax, r9d
shr eax, 0x10
mov r8d, r9d
shr r8, 0x18
mov rdi, rdx
movzx edx, al
mov esi, 8
mov eax, dword [rcx]
shr rax, 0x18
mov r10, qword [r14 + r8*8 + 0x13ede0]
xor r10, qword [r14 + rdx*8 + 0x13e5e0]
xor r10, qword [r14 + rax*8 + 0x13cde0]
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, dword [rbx]
shr eax, 0x10
xor r10, qword [r14 + rcx*8 + 0x13dde0]
movzx ecx, al
mov eax, dword [rbx]
shr eax, 8
xor r10, qword [r14 + rcx*8 + 0x13c5e0]
movzx ecx, al
movzx eax, r9b
xor r10, qword [r14 + rcx*8 + 0x13bde0]
xor r10, qword [r14 + rax*8 + 0x13d5e0]
movzx eax, byte [rbx]
xor r10, qword [r14 + rax*8 + 0x13b5e0]
mov r11, r10
shr r11, 0x20
mov r9d, r10d
mov eax, r10d
xor eax, dword [rdi + 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi]
lea rdi, [rdi + 0x10]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0x13fc60]
xor edx, dword [r14 + rax*4 + 0x136f90]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x13fd60]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x137190]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x13b4b0]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x13fe60]
xor edx, dword [r14 + r8*4 + 0x137090]
xor edx, dword [r14 + r9*4 + 0x137330]
xor r11d, edx
mov r9d, r11d
mov eax, r11d
xor eax, dword [rdi - 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi - 8]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0x13fc60]
xor edx, dword [r14 + rax*4 + 0x136f90]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x13fd60]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x137190]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x13b4b0]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x13fe60]
xor edx, dword [r14 + r8*4 + 0x137090]
xor edx, dword [r14 + r9*4 + 0x137330]
xor r10d, edx
sub rsi, 1
jne 0x1800ad886
mov rsi, qword [rsp + 0x10]
mov eax, r10d
mov rdi, qword [rsp + 0x18]
shr eax, 0x10
movzx ecx, al
mov edx, r10d
shr rdx, 0x18
mov eax, r11d
shr rax, 0x18
mov r8, qword [r14 + rdx*8 + 0x13ac90]
xor r8, qword [r14 + rcx*8 + 0x13a490]
xor r8, qword [r14 + rax*8 + 0x138c90]
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8, qword [r14 + rcx*8 + 0x139c90]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8, qword [r14 + rcx*8 + 0x138490]
movzx ecx, al
movzx eax, r10b
xor r8, qword [r14 + rcx*8 + 0x137c90]
xor r8, qword [r14 + rax*8 + 0x139490]
movzx eax, r11b
xor r8, qword [r14 + rax*8 + 0x137490]
mov r14, qword [rsp + 0x20]
mov dword [rbx], r8d
shr r8, 0x20
mov dword [rbx + 4], r8d
mov rbx, qword [rsp + 8]
ret
Function at 0x1800ae8e4
Capabilities:
Hash data using sha1

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1800ae91f
and dword [rcx + 0x1c], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
add rsp, 0x28
ret
mov r8d, 0x9f
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srchashes_sha1.c
lea rcx, str.md___NULL
call fcn.1800b4378
int3

Function at 0x1800afeac
Capabilities:
Encode data using xor

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 r12
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1800b000e
test rdx, rdx
je 0x1800b0028
test rbx, rbx
je 0x1800b0042
mov ecx, dword [r9]
call fcn.1800b43bc
test eax, eax
jne 0x1800affef
mov r8d, dword [r9 + 4]
lea eax, [r8 - 1]
cmp eax, 0x8f
ja 0x1800affea
xor edx, edx
mov eax, esi
div r8d
test edx, edx
jne 0x1800affea
movsxd rax, dword [r9]
lea r12, [0x18019d4c0]
lea rcx, [rax + rax*2]
shl rcx, 6
mov r10, qword [rcx + r12 + 0x60]
test r10, r10
je 0x1800aff66
xor edx, edx
lea rcx, [r9 + 0x98]
mov eax, esi
mov qword [rsp + 0x20], rcx
div r8d
add r9, 8
mov rdx, rdi
mov r8d, eax
mov rcx, rbp
call r10
jmp 0x1800affef
test esi, esi
je 0x1800affe6
xor edx, edx
test r8d, r8d
jle 0x1800aff8c
mov r8, rbp
lea rcx, [rbx + 8]
sub r8, rbx
mov al, byte [rcx + r8 - 8]
inc edx
xor byte [rcx], al
inc rcx
cmp edx, dword [rbx + 4]
jl 0x1800aff7b
movsxd rax, dword [rbx]
lea r8, [rbx + 0x98]
mov rdx, rdi
lea rcx, [rbx + 8]
lea r9, [rax + rax*2]
shl r9, 6
call qword [r9 + r12 + 0x28]
test eax, eax
jne 0x1800affef
mov r8d, dword [rbx + 4]
xor r9d, r9d
test r8d, r8d
jle 0x1800affd8
mov rdx, rbx
mov rcx, rdi
sub rdx, rdi
mov al, byte [rcx]
inc r9d
mov byte [rcx + rdx + 8], al
inc rcx
mov r8d, dword [rbx + 4]
cmp r9d, r8d
jl 0x1800affc3
movsxd rax, r8d
add rdi, rax
add rbp, rax
sub esi, r8d
jne 0x1800aff6a
xor eax, eax
jmp 0x1800affef
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov r8d, 0x19
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmodescbccbc_encrypt.c
lea rcx, str.pt___NULL
call fcn.1800b4378
int3
mov r8d, 0x1a
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmodescbccbc_encrypt.c
lea rcx, str.ct___NULL
call fcn.1800b4378
int3
mov r8d, 0x1b
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmodescbccbc_encrypt.c
lea rcx, str.cbc___NULL
call fcn.1800b4378
int3
Function at 0x1800b0908
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1800b093c
and dword [rcx + 0x18], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
add rsp, 0x28
ret
mov r8d, 0xe3
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srchashesmd5.c
lea rcx, str.md___NULL
call fcn.1800b4378
int3

Function at 0x1800b1498
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x180194100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800b15f6
test rcx, rcx
je 0x1800b1610
test rbx, rbx
je 0x1800b162a
mov ecx, dword [r9]
call fcn.1800b43bc
test eax, eax
jne 0x1800b15dc
mov r11d, dword [r9 + 4]
lea eax, [r11 - 1]
cmp eax, 0x8f
ja 0x1800b15d7
cmp r11d, 0x10
jg 0x1800b15d7
xor edx, edx
mov eax, r8d
div r11d
test edx, edx
jne 0x1800b15d7
movsxd rcx, dword [r9]
lea r15, [0x18019d4c0]
lea r8, [rcx + rcx*2]
shl r8, 6
mov r14, qword [r8 + r15 + 0x68]
test r14, r14
je 0x1800b155c
xor edx, edx
lea r10, [r9 + 0x98]
mov eax, esi
mov qword [rsp + 0x20], r10
div r11d
add r9, 8
mov rdx, rbp
mov r8d, eax
mov rcx, rdi
call r14
jmp 0x1800b15dc
test esi, esi
je 0x1800b15d3
movsxd rax, dword [rbx]
lea r8, [rbx + 0x98]
lea rdx, [rsp + 0x30]
mov rcx, rdi
lea r9, [rax + rax*2]
shl r9, 6
call qword [r9 + r15 + gethostbyname]
test eax, eax
jne 0x1800b15dc
mov ecx, dword [rbx + 4]
xor r11d, r11d
test ecx, ecx
jle 0x1800b15c6
lea r8, [rsp + 0x30]
mov r9, rdi
sub r8, rbx
lea rdx, [rbx + 8]
sub r9, rbx
mov r10, rbp
sub r10, rbx
mov cl, byte [rdx + r8 - 8]
inc r11d
xor cl, byte [rdx]
mov al, byte [r9 + rdx - 8]
mov byte [rdx], al
mov byte [r10 + rdx - 8], cl
inc rdx
mov ecx, dword [rbx + 4]
cmp r11d, ecx
jl 0x1800b15a5
movsxd rax, ecx
add rdi, rax
add rbp, rax
sub esi, ecx
jne 0x1800b1560
xor eax, eax
jmp 0x1800b15dc
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c9760
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8d, 0x1f
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmodescbccbc_decrypt.c
lea rcx, str.pt___NULL
call fcn.1800b4378
int3
mov r8d, 0x20
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmodescbccbc_decrypt.c
lea rcx, str.ct___NULL
call fcn.1800b4378
int3
mov r8d, 0x21
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmodescbccbc_decrypt.c
lea rcx, str.cbc___NULL
call fcn.1800b4378
int3
Function at 0x1800b16f4
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r11d, edx
mov r10, rcx
test r9, r9
je 0x1800b1856
lea ecx, [rdx + 2]
mov edi, 0xaaaaaaab
mov eax, edi
mul ecx
shr edx, 1
shl edx, 2
inc edx
cmp dword [r9], edx
jae 0x1800b173a
mov dword [r9], edx
mov eax, 6
jmp 0x1800b1846
test r10, r10
je 0x1800b1870
test rbx, rbx
je 0x1800b188a
cmp r10, rbx
jne 0x1800b175b
mov eax, reloc.WS2_32.dll_recv
jmp 0x1800b1846
mov eax, edi
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r11d
shr edx, 1
lea ecx, [rdx + rdx*2]
xor edx, edx
test ecx, ecx
je 0x1800b17e1
dec ecx
mov eax, edi
mul ecx
shr edx, 1
inc edx
mov edi, edx
lea edx, [rdx + rdx*2]
movzx eax, byte [r10]
shr rax, 2
mov al, byte [rax + rsi]
mov byte [r8], al
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rsi]
mov byte [r8 + 1], al
movzx eax, byte [r10 + 2]
movzx ecx, byte [r10 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rsi]
mov byte [r8 + 2], al
movzx eax, byte [r10 + 2]
add r10, 3
and eax, 0x3f
mov al, byte [rax + rsi]
mov byte [r8 + 3], al
add r8, 4
sub rdi, 1
jne 0x1800b1781
cmp edx, r11d
jae 0x1800b183a
movzx edi, byte [r10]
inc edx
cmp edx, r11d
jae 0x1800b17f8
movzx ecx, byte [r10 + 1]
jmp 0x1800b17fa
xor ecx, ecx
mov rax, rdi
shl edi, 4
shr rax, 2
mov al, byte [rax + rsi]
mov byte [r8], al
mov eax, ecx
shr eax, 4
add eax, edi
and eax, 0x3f
mov al, byte [rax + rsi]
mov byte [r8 + 1], al
cmp edx, r11d
jae 0x1800b182b
and ecx, 0xf
shl ecx, 2
mov cl, byte [rcx + rsi]
jmp 0x1800b182d
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov byte [r8], 0
sub r8d, ebx
mov dword [r9], r8d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, 0x28
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.outlen___NULL
call fcn.1800b4378
int3
mov r8d, 0x38
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.in___NULL
call fcn.1800b4378
int3
mov r8d, 0x39
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.out___NULL
call fcn.1800b4378
int3
Function at 0x1800b1eec
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1800b1f74
and dword [rcx + 0x48], 0
movabs rax, 0x6a09e667f3bcc908
and qword [rcx], 0
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
add rsp, 0x28
ret
mov r8d, 0xa9
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srchashes_sha2_sha512.c
lea rcx, str.md___NULL
call fcn.1800b4378
int3
Function at 0x1800b4628
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x1800b4754
and qword [rax + 0x18], 0
lea r8, [0x180175300]
mov r9d, 1
mov dword [rax - 0x38], 0xf0000020
xor edx, edx
lea rcx, [rax + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800b46a3
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x180175300]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1800b46d3
mov rcx, qword [rsp + 0x70]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x70]
xor edx, edx
cmp eax, 1
jne 0x1800b46cd
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x1800b46d3
mov eax, ebx
jmp 0x1800b4737
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor r13d, r13d
xor ebp, ebp
mov r15d, ebx
test ebx, ebx
je 0x1800b4735
dec r15d
xor esi, esi
lea r14d, [rsi + 8]
dec r14d
call fcn.1800f5304
mov r12d, eax
jmp 0x1800b46f8
xor ebp, 1
call fcn.1800f5304
cmp r12d, eax
je 0x1800b46f5
call fcn.1800f5304
mov r12d, eax
jmp 0x1800b4710
xor r13d, 1
call fcn.1800f5304
cmp r12d, eax
je 0x1800b470c
cmp ebp, r13d
je 0x1800b46eb
add esi, esi
or esi, ebp
test r14d, r14d
jne 0x1800b46e8
mov byte [rdi], sil
inc rdi
test r15d, r15d
jne 0x1800b46df
jmp 0x1800b46c9
xor eax, eax
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
mov r8d, 0x83
lea rdx, str.E:Project_Bo4SOURCE_CODE_bods_shield_bods_shielddepslibtomcrypt_srcprngs_rng_get_bytes.c
lea rcx, str.out___NULL
call fcn.1800b4378
int3
Function at 0x1800b7f10
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180194100]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800b80af
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800b8051
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x1800b800c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800b800c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800b800c
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1800b7fce
mov rcx, qword [0x18019d4b8]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1800b8035
jmp 0x1800b7fff
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x1800b7fff
mov rcx, qword [0x18019d4b8]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800b8035
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800b7f7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800b8051
mov esi, ebx
cmp qword [rdi], rbx
je 0x1800b8051
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18019d4b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1800b80af
cmp qword [rdi], rbx
je 0x1800b80b4
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800b80b4
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x1800b80a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.1800b7d80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x1800b806a
jmp 0x1800b80b4
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c9760
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b80d8
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1800b813c
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800b812a
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800b8123
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800b80f7
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18019d4b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800b814c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1801ad9a0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800b8182
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800b81b8
mov eax, 0xa
jmp 0x1800b8247
test esi, esi
je 0x1800b81da
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800b81fb
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800b81fb
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800b81f5
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800b81fb
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1800b86c4
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800b86db
cmp r8b, 0x90
je 0x1800b86db
cmp r8b, 0xcc
jne 0x1800b86fd
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800b86f9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800b86fd
add edx, r10d
cmp edx, r9d
jb 0x1800b86e9
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800b8a64
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800b8aae
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1801ad990]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1800b8ae7
cmp rbx, r14
jb 0x1800b8ae4
cmp rbx, r12
jae 0x1800b8ae4
cmp qword [rbx + 8], rsi
jne 0x1800b8c49
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800b8ad0
mov r15, rdi
cmp rdi, r14
jb 0x1800b8c03
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800b8b33
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800b8b6d
cmp dword [rbp - 0x10], 0x10000
je 0x1800b8b3d
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800b8b6d
sub r15, r13
cmp r15, r14
jae 0x1800b8b09
jmp 0x1800b8b6d
test r15, r15
je 0x1800b8b6d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800b8c0e
cmp r15, r14
jae 0x1800b8af8
test rbx, rbx
jmp 0x1800b8c01
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800b8c49
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800b8c49
cmp dword [rbp - 0x10], 0x10000
je 0x1800b8bdc
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x1800b8b99
jmp 0x1800b8c49
test rdi, rdi
je 0x1800b8c49
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800b8c0e
cmp rdi, r12
jbe 0x1800b8b75
jmp 0x1800b8c49
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800b8c1a
mov rax, qword [0x1801ad990]
mov qword [rbx], rax
mov qword [0x1801ad990], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800b9bf8
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rbx, rcx
je 0x1800b9cb2
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x1800b9cb2
movzx eax, byte [r11 + rbx + 0x100]
mov edx, dword [rbx + 0x10128]
xor rax, rdx
mov r8, qword [rbx + 0x10138]
mov r10d, dword [rbx + 0x10130]
movzx ecx, al
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor edx, dword [r8 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1012c]
imul ecx, eax, 0x8088405
mov dword [rbx + 0x10128], edx
mov edx, dword [rbx + 0x10130]
inc ecx
mov dword [rbx + 0x1012c], ecx
shr rcx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
xor edx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 0x10130], edx
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x100], al
inc r11d
cmp r11d, dword [rbx + 0xd4]
jb 0x1800b9c1e
mov r9d, dword [rbx + 0xd4]
lea r8, [rbx + 0x100]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x38]
call qword [rbx + reloc.WS2_32.dll_recv]
mov ecx, dword [rbx + 0xd4]
sub eax, ecx
neg eax
sbb eax, eax
add qword [rbx + 0x10118], rcx
mov ecx, dword [rbx + 0x84]
add qword [rbx + 0x10120], rcx
and dword [rbx + 0x84], 0
and dword [rbx + 0xd4], 0
add rsp, 0x20
pop rbx
ret