joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180167620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x180167849
mov qword [r11 + 0x20], rsi
lea rsi, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x180167682
cmp r8, rbp
jae 0x180167826
movzx edx, byte [r8]
test dl, dl
je 0x180167826
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x26cbf0]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x1801676b8
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x1801676d1
movzx r13d, byte [rax]
jmp 0x1801676d4
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x1801676e3
movzx r12d, byte [rax]
jmp 0x1801676e6
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x1801676f5
movzx r15d, byte [rax]
jmp 0x1801676f8
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x26cc10]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x26cc40]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x26cc28]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x26cc58]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x180167803
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x18016780d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x180167826
mov word [rdi], si
add rdi, 2
lea rsi, [0x180000000]
cmp rdi, qword [rsp + 8]
jb 0x180167670
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x18016785f
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180168fa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53f8], 0
lea rbx, [rcx + 0x5400]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180169043
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x180168ff6
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.180176fa0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180176970
mov eax, dword [rbx]
lea rcx, [0x18031de18]
mov r9, qword [rdi + 0x53f8]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x5408]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18016904b
mov rcx, rbx
call fcn.180176970
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18016c2d0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x30
mov rdx, qword [0x18031de10]
movss xmm0, dword [0x180219838]
mov rsi, rdx
comiss xmm0, dword [rdx + 0x4230]
ja 0x18016c571
cmp qword [rdx + 0x4228], 0
mov qword [rsp + 0x50], rdi
jne 0x18016c365
mov r10d, 0xffffffff
lea r8, [0x18026d221]
mov ecx, r10d
lea r11, [0x18026bbd0]
mov r9b, 0x23
nop
cmp r9b, 0x23
jne 0x18016c333
cmp byte [r8], r9b
jne 0x18016c333
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18016c320
not ecx
call fcn.1801658f0
mov qword [rsi + 0x4228], rax
mov rdx, qword [0x18031de10]
mov rax, qword [rdx + 0x40a8]
mov dword [rsp + 0x28], 0x7f7fffff
mov dword [rsp + 0x2c], 0x7f7fffff
movups xmm0, xmmword [rsp + 0x20]
mov rcx, qword [rax]
xor eax, eax
movss xmm2, dword [rcx + 0xc]
movss xmm1, dword [rcx + 0x10]
or dword [rdx + 0x3fa8], 0x10
mulss xmm1, dword [0x18020d0d4]
mov qword [rdx + 0x3ff8], rax
mulss xmm2, dword [0x18020d0d4]
mov qword [rdx + 0x4000], rax
movss xmm0, xmm2
shufps xmm0, xmm0, 0xe1
movss xmm0, xmm1
shufps xmm0, xmm0, 0xe1
movups xmmword [rdx + 0x3fe4], xmm0
lea rdx, [rsp + 0x40]
mov rax, qword [0x18031de10]
movss xmm1, dword [rcx + 0x10]
movss xmm2, dword [rcx + 0xc]
mulss xmm1, dword [0x18020d0dc]
mulss xmm2, dword [0x18020d0dc]
addss xmm1, dword [rcx + 8]
addss xmm2, dword [rcx + 4]
or dword [rax + 0x3fa8], 1
mov ecx, 2
mov dword [rax + 0x3fc0], 0x3f000000
movss dword [rax + 0x3fbc], xmm1
mov dword [rax + 0x3fc4], 0x3f000000
movss dword [rax + 0x3fb8], xmm2
mov dword [rax + 0x3fac], 1
movss xmm0, dword [rsi + 0x37e8]
movss xmm1, dword [rsi + 0x37ec]
addss xmm0, xmm0
addss xmm1, xmm1
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm1
call fcn.18016e750
xor edx, edx
lea rcx, str.NavWindowingList
mov r8d, 0xc1347
call fcn.18015f020
mov eax, dword [rsi + 0x3e50]
sub eax, 1
movsxd rdi, eax
js 0x18016c55d
mov qword [rsp + 0x48], rbx
nop word [rax + rax]
mov rax, qword [rsi + 0x3e58]
mov rbx, qword [rax + rdi*8]
cmp byte [rbx + 0x97], 0
je 0x18016c54e
cmp rbx, qword [rbx + 0x358]
jne 0x18016c54e
test dword [rbx + 0xc], 0x80000
jne 0x18016c54e
mov r10, qword [rbx]
mov rcx, r10
cmp r10, 0xffffffffffffffff
jae 0x18016c4f2
nop
movzx edx, byte [rcx]
test dl, dl
je 0x18016c4ed
lea rax, [rcx + 1]
cmp dl, 0x23
jne 0x18016c4e4
cmp byte [rax], dl
je 0x18016c4ed
mov rcx, rax
cmp rax, 0xffffffffffffffff
jb 0x18016c4d0
cmp r10, rcx
jne 0x18016c52b
mov eax, dword [rbx + 0xc]
bt eax, 0x1a
jae 0x18016c504
lea r10, str._Popup_
jmp 0x18016c52b
bt eax, 0xa
jae 0x18016c524
lea rdx, str.MainMenuBar
mov rcx, r10
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
lea r10, str._Main_menu_bar_
test eax, eax
je 0x18016c52b
lea r10, str._Untitled_
cmp qword [rsi + 0x4218], rbx
lea r9, [rsp + 0x40]
mov rcx, r10
mov qword [rsp + 0x40], 0
sete dl
xor r8d, r8d
call fcn.180184820
sub rdi, 1
jns 0x18016c490
mov rbx, qword [rsp + 0x48]
call fcn.180164110
mov ecx, 1
call fcn.18016dd60
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180171aa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18031de10]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5394], ecx
test rbx, rbx
je 0x180171b0f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180171b20
lea rdx, [0x18026d248]
mov rcx, rbx
mov rdi, rax
call fcn.180166cb0
mov rbx, rax
test rax, rax
je 0x180171b0a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x180175490
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x18031de10]
cmp byte [rbx + 0x5391], 0
jne 0x1801755ec
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1801755e5
lea rdx, [0x18026d244]
mov qword [rsp + 0x40], rdi
call fcn.180166cb0
mov rdi, rax
test rax, rax
je 0x1801755e0
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1801755cd
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1801755cd
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1801755cd
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1801755cd
cmp rsi, 0xffffffffffffffff
je 0x1801755cd
mov rax, qword [0x18031de10]
test rax, rax
je 0x180175557
inc dword [rax + 0xf4]
mov rdx, qword [0x18031de20]
mov rcx, rsi
call qword [0x1802f4240]
mov rbp, rax
test rax, rax
je 0x1801755cd
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x180175593
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1801755a9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1801755a9
mov rdx, rsi
mov rcx, rbp
call fcn.180168ab0
mov rax, qword [0x18031de10]
test rax, rax
je 0x1801755bb
dec dword [rax + 0xf4]
mov rdx, qword [0x18031de20]
mov rcx, rbp
call qword [0x1802f4248]
jmp 0x1801755d6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5391], 1
movss xmm0, dword [rbx + 0x5394]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18017562f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5394], xmm0
jb 0x18017562f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18017561e
call fcn.180171aa0
jmp 0x180175625
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5394], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18019d5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18031de10]
mov rcx, qword [rax + 0x4310]
mov r10, qword [rax + 0x3ea0]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x278]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x218], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x278]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x278]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp 0x18018fe00

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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18031de10]
mov rcx, qword [rax + 0x4310]
mov r9, qword [rax + 0x3ea0]
movups xmm0, xmmword [r9 + 0x218]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x278]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x218], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x278]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x207]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x278]
add rsp, 0x38
jmp 0x18018fe00
Function at 0x18019e1e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18031e49c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18019e227
mov rax, qword [0x18031e490]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18019e234
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18019e210
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18019e227
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18019e560
mov edi, eax
test eax, eax
jne 0x18019e31f
mov r9d, dword [0x18031e49c]
cmp ebx, r9d
jae 0x18019e2ac
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18031e490]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18019e2a5
mov edx, esi
mov ecx, ebx
call fcn.18019e450
mov edi, eax
test eax, eax
jne 0x18019e2ac
mov r9d, dword [0x18031e49c]
inc ebx
cmp ebx, r9d
jb 0x18019e270
cmp qword [rsp + 0x20], 0
je 0x18019e31d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18019e309
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18019e2fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18019e2d0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18031de70]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x18019e450
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18031e490]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18019e4b4
mov eax, 0xa
jmp 0x18019e547
test esi, esi
je 0x18019e4d6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18019e4f9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18019e4f9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18019e4f2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18019e4f9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18019e560
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 [0x1802f4d40]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18019e70a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18019e6a5
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x18019e660
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18019e660
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18019e660
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18019e622
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18031de70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18019e688
jmp 0x18019e653
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18019e653
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rbx + 8], eax
mov rcx, qword [0x18031de70]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18019e688
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18019e5d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18019e6a5
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18019e6a5
mov rcx, qword [0x18031de70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18019e70a
cmp qword [rbx], r15
je 0x18019e705
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18019e705
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18019e6fe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18019ed00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18019e6c0
mov eax, r15d
jmp 0x18019e70f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801a0f40
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18019e730
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x18031de68], edi
je 0x18019e781
nop
cmp rbx, 0x20
jae 0x18019e76a
xor ecx, ecx
jmp 0x18019e76c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18031de68], edi
jne 0x18019e760
cmp qword [0x18031de70], rbp
je 0x18019e8af
mov r8d, dword [0x18031e49c]
mov ebx, r15d
test r8d, r8d
je 0x18019e8b4
mov rdx, qword [0x18031e490]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x18019e7cc
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x18019e7b0
jmp 0x18019e8b4
cmp ebx, 0xffffffff
je 0x18019e8b4
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.18019e560
mov ebp, eax
test eax, eax
jne 0x18019e8b4
mov r8d, dword [0x18031e49c]
cmp ebx, r8d
jae 0x18019e844
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18031e490]
movzx r9d, byte [rdx + rcx + 0x20]
movzx ecx, r9b
shr cl, 1
xor cl, r9b
test cl, 2
je 0x18019e83d
mov edx, r9d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.18019e450
mov ebp, eax
test eax, eax
jne 0x18019e844
mov r8d, dword [0x18031e49c]
inc ebx
cmp ebx, r8d
jb 0x18019e800
cmp qword [rsp + 0x20], r15
je 0x18019e8b4
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18019e899
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18019e88a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18019e860
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18031de70]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18019e8b4
mov ebp, 2
xchg dword [0x18031de68], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18019eeb0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
jmp 0x18019eeb0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov edi, edx
mov r14d, esi
mov ebx, esi
xor eax, eax
mov rbp, rcx
mov r15d, 1
lock cmpxchg dword [0x18031de68], r15d
je 0x18019ef0a
cmp rbx, 0x20
jae 0x18019eef1
xor ecx, ecx
jmp 0x18019eef4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18031de68], r15d
jne 0x18019eee7
cmp qword [0x18031de70], rsi
je 0x18019efa5
test rbp, rbp
jne 0x18019ef5b
cmp dword [0x18031e49c], esi
mov r8d, esi
jbe 0x18019efab
shl dil, 2
nop
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x18031e490]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, dil
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x18031e49c]
jb 0x18019ef30
jmp 0x18019efab
mov edx, dword [0x18031e49c]
mov eax, esi
test edx, edx
je 0x18019ef80
mov r8, qword [0x18031e490]
mov rcx, r8
cmp rbp, qword [rcx]
je 0x18019ef88
inc eax
add rcx, 0x38
cmp eax, edx
jb 0x18019ef71
mov r14d, 4
jmp 0x18019efab
cmp eax, 0xffffffff
je 0x18019ef80
shl dil, 2
imul rcx, rax, 0x38
xor dil, byte [rcx + r8 + 0x20]
and dil, 4
xor byte [rcx + r8 + 0x20], dil
jmp 0x18019efab
mov r14d, 2
xchg dword [0x18031de68], esi
mov rsi, qword [rsp + 0x50]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18019efd0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18019f041
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18019f02a
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18019f01e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18019eff0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18031de70]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret