joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180353fb0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
lea rcx, [0x1805f03bb]
call fcn.1802680d0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x2c]
call fcn.180354030
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 4], ecx
mov rcx, rsp
lea rdx, [0x1804e6d90]
call fcn.180267ea0
add rsp, 0x70
pop rdi
ret

Function at 0x180367680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x1805f09a6]
call fcn.1802680d0
mov eax, dword [rsp + 0x70]
mov ecx, 1
mov dword [rsp + 0x3c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x3c]
shl eax, cl
dec eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x1803676fd
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
movzx ecx, al
mov eax, dword [rsp + 0x68]
shr eax, cl
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x28], eax
jae 0x18036779c
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x68]
and ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x24]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x28], 0
jne 0x180367730
mov byte [rsp + 0x40], 0x7b
jmp 0x180367735
mov byte [rsp + 0x40], 0x7c
movzx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.18033d540
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180367755
mov eax, dword [rsp + 0x30]
jmp 0x1803677c8
xor eax, eax
test eax, eax
jne 0x180367722
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x80]
call fcn.1803653e0
mov r8, 0xffffffffffffffff
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call fcn.18033d580
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x180367791
mov eax, dword [rsp + 0x34]
jmp 0x1803677c8
xor eax, eax
test eax, eax
jne 0x18036775b
jmp 0x1803676d2
xor eax, eax
cmp eax, 0x7d
je 0x1803677c6
mov dl, 0x7d
mov rcx, qword [rsp + 0x60]
call fcn.18033d540
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1803677c0
mov eax, dword [rsp + 0x38]
jmp 0x1803677c8
xor eax, eax
test eax, eax
jne 0x1803677a3
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x180378810
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x1805f0de5]
call fcn.1802680d0
nop
cmp qword [rsp + 0x30], 0
jne 0x180378849
mov r8d, 0xa9
lea rdx, [0x18057e7b0]
lea rcx, [0x18057e800]
call fcn.180393130
nop
xor eax, eax
test eax, eax
jne 0x180378827
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x48], 0
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
movabs rdx, 0x6a09e667f3bcc908
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
movabs rdx, 0xbb67ae8584caa73b
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
movabs rdx, 0x3c6ef372fe94f82b
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0x30]
movabs rdx, 0xa54ff53a5f1d36f1
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 4
mov rcx, qword [rsp + 0x30]
movabs rdx, 0x510e527fade682d1
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x30]
movabs rdx, 0x9b05688c2b3e6c1f
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 6
mov rcx, qword [rsp + 0x30]
movabs rdx, 0x1f83d9abfb41bd6b
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 7
mov rcx, qword [rsp + 0x30]
movabs rdx, 0x5be0cd19137e2179
mov qword [rcx + rax + 8], rdx
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x18037a340
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x1805f0e16]
call fcn.1802680d0
nop
cmp qword [rsp + 0x30], 0
jne 0x18037a379
mov r8d, 0xc6
lea rdx, [0x18057e9f0]
lea rcx, [0x18057ea40]
call fcn.180393130
nop
xor eax, eax
test eax, eax
jne 0x18037a357
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x5be0cd19
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1803808f0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x1805f0e47]
call fcn.1802680d0
nop
cmp qword [rsp + 0x30], 0
jne 0x180380929
mov r8d, 0x9f
lea rdx, [0x18057ec30]
lea rcx, [0x18057ec78]
call fcn.180393130
nop
xor eax, eax
test eax, eax
jne 0x180380907
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0xc3d2e1f0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x1c], 0
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180381c20
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x1805f0e78]
call fcn.1802680d0
nop
cmp qword [rsp + 0x30], 0
jne 0x180381c59
mov r8d, 0xe3
lea rdx, [0x18057eef0]
lea rcx, [0x18057ef38]
call fcn.180393130
nop
xor eax, eax
test eax, eax
jne 0x180381c37
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 8], 0x10325476
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x18], 0
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180384540
Capabilities:
Hash data using tiger

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f0ea9]
call fcn.1802680d0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rax]
xor rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shr rax, 0
movzx eax, al
lea rcx, [0x1804f7900]
lea rdx, [0x1804f7900]
mov r8, qword [rsp + 0x20]
shr r8, 0x10
movzx r8d, r8b
mov rdx, qword [rdx + r8*8 + 0x800]
mov rax, qword [rcx + rax*8]
xor rax, rdx
lea rcx, [0x1804f7900]
mov rdx, qword [rsp + 0x20]
shr rdx, 0x20
movzx edx, dl
xor rax, qword [rcx + rdx*8 + 0x1000]
lea rcx, [0x1804f7900]
mov rdx, qword [rsp + 0x20]
shr rdx, 0x30
movzx edx, dl
xor rax, qword [rcx + rdx*8 + 0x1800]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
lea rax, [0x1804f7900]
mov rcx, qword [rsp + 0x20]
shr rcx, 8
movzx ecx, cl
lea rdx, [0x1804f7900]
mov r8, qword [rsp + 0x20]
shr r8, 0x18
movzx r8d, r8b
mov rdx, qword [rdx + r8*8 + 0x1000]
mov rax, qword [rax + rcx*8 + 0x1800]
xor rax, rdx
lea rcx, [0x1804f7900]
mov rdx, qword [rsp + 0x20]
shr rdx, 0x28
movzx edx, dl
xor rax, qword [rcx + rdx*8 + 0x800]
mov rcx, qword [rsp + 0x20]
shr rcx, 0x38
movzx ecx, cl
lea rdx, [0x1804f7900]
xor rax, qword [rdx + rcx*8]
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 5
je 0x1803846b4
cmp dword [rsp + 0x28], 7
je 0x1803846cc
cmp dword [rsp + 0x28], 9
je 0x1803846e4
jmp 0x1803846fa
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
jmp 0x1803846fa
mov rax, qword [rsp + 0x20]
shl rax, 3
sub rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
jmp 0x1803846fa
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
lea rax, [rax + rcx*8]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
add rsp, 0x30
pop rdi
ret
Function at 0x180393740
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, [0x1805f1738]
call fcn.1802680d0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0xf0000020
mov r9d, 1
lea r8, [0x1805843d0]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1803937ce
mov dword [rsp + 0x20], 0xf0000028
mov r9d, 1
lea r8, [0x180584400]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1803937ce
xor eax, eax
jmp 0x18039380b
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
jne 0x1803937fc
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x68]
jmp 0x18039380b
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180509370]
call fcn.180267ea0
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x180398dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rcx, [0x1805f1b73]
call fcn.1802680d0
nop
cmp dword [rsp + 0x60], 0
je 0x180398fbb
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 4]
cmp dword [rax + 8], ecx
jne 0x180398f59
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0xc], 0
jne 0x180398e81
mov dword [rsp + 0x20], 0
jmp 0x180398e36
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x20], eax
jge 0x180398e7f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
inc eax
and eax, 0xff
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0x14], al
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
test eax, eax
je 0x180398e7d
jmp 0x180398e7f
jmp 0x180398e2c
jmp 0x180398ee4
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 4]
dec eax
mov dword [rsp + 0x20], eax
jmp 0x180398e9b
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x20], eax
jl 0x180398ee4
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
inc eax
and eax, 0xff
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx + 0x14], al
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax + 0x14]
test eax, eax
je 0x180398ee2
jmp 0x180398ee4
jmp 0x180398e91
mov rax, qword [rsp + 0x68]
add rax, 0x138
mov rcx, qword [rsp + 0x68]
add rcx, 0xa4
mov rdx, qword [rsp + 0x68]
add rdx, 0x14
mov qword [rsp + 0x28], rdx
mov r8, qword [rsp + 0x68]
movsxd r8, dword [r8]
imul r8, r8, 0xc0
mov qword [rsp + 0x30], r8
lea r9, [0x1805a0880]
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x28]
mov rcx, rax
mov rax, qword [rsp + 0x30]
call qword [r9 + rax + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x180398f4d
mov eax, dword [rsp + 0x24]
jmp 0x180398fbd
mov rax, qword [rsp + 0x68]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x68]
movsxd rcx, dword [rcx + 8]
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rdx + rcx + 0xa4]
xor eax, ecx
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x60]
dec eax
mov dword [rsp + 0x60], eax
jmp 0x180398df6
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1803aae90
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x18057d580]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rcx, [0x1805f29ae]
call fcn.1802680d0
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x1803ab0ef
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1803ab0e3
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x38]
cmp rax, 0x10
jb 0x1803ab06c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x44], eax
jne 0x1803ab06c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
je 0x1803ab06c
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x1803aafb4
mov rax, qword [rsp + 0x90]
mov dword [rax + 8], 0x80
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x1805a3da8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x1803aafaf
mov dword [rsp + 0x20], 0
jmp 0x1803ab08b
jmp 0x1803ab037
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x1803ab037
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl rax, 2
mov r9, rax
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1805a3da8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1803ab027
mov dword [rsp + 0x20], 0
jmp 0x1803ab08b
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1803aaf1d
cmp dword [rsp + 0x20], 0
je 0x1803ab0a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1803ab0a5
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x1803ab0e3
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
je 0x1803ab0e3
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1805a3da8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x90]
mov qword [rax], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x18050d730]
call fcn.180267ea0
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180268310
add rsp, 0x80
pop rdi
ret
Function at 0x1803ab130
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f29ae]
call fcn.1802680d0
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.1803aae90
test eax, eax
jne 0x1803ab196
mov dword [rsp + 0x20], 9
jmp 0x1803ab219
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1803ab219
mov dword [rsp + 0x24], 0
jmp 0x1803ab1b5
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x24], eax
jae 0x1803ab219
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1803ab217
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1803aac60
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1803ab1ab
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x1803ab230
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f29ae]
call fcn.1802680d0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1803ab2ce
mov dword [rsp + 0x20], 0
jmp 0x1803ab265
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1803ab2b6
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1803ab2b4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1803ab25b
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1805a3da8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x30
pop rdi
ret
Function at 0x1803ab2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
lea rcx, [0x1805f29ae]
call fcn.1802680d0
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x1805a3de0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1803ab372
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1803ab39b
mov eax, 0xa
jmp 0x1803ab4d7
cmp dword [rsp + 0x88], 0
je 0x1803ab409
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1803ab407
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x1803ab457
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1803ab43a
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1803daa00
nop
jmp 0x1803ab457
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1803daa00
nop
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18050d790]
call fcn.180267ea0
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1803aca70
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f2b02]
call fcn.1802680d0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1803acad6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1803acad6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1803acad6
xor eax, eax
jmp 0x1803acb22
mov dword [rsp + 0x20], 1
jmp 0x1803acaea
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x20], eax
jae 0x1803acb1d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1803acb1b
xor eax, eax
jmp 0x1803acb22
jmp 0x1803acae0
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1803b0440
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1805f2bc2]
call fcn.1802680d0
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
mov eax, dword [rax]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
shr ecx, 8
mov rdx, qword [rsp + 0x48]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
imul eax, dword [rax + 4], 0x8088405
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
shr eax, 0x18
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 8]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 8]
shr ecx, 8
mov rdx, qword [rsp + 0x48]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret