joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180018410
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1804d0870]
mov edi, ecx
cmp byte [rbx + 0x4a7d], 0
jne 0x180018462
cmp byte [rbx + 0x4a7e], 0
jne 0x180018462
movsx r9d, word [rbx + 0x5ba2]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1800043d0
test dil, 1
je 0x18001858f
jmp 0x1800184ed
movss xmm1, dword [rbx + 0x389c]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x1801a19e0]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x1801a19c0]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47e8], rax
mov dword [rbx + 0x47d4], 1
movss dword [rbx + 0x47e0], xmm0
movss dword [rbx + 0x47e4], xmm1
movss xmm0, dword [rbx + 0x3904]
mulss xmm0, dword [0x1801a1848]
or dword [rbx + 0x47d0], 0x41
movss dword [rbx + 0x4830], xmm0
movsx r9d, word [rbx + 0x5ba2]
call fcn.1800043d0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180018540
lea r11, [0x180191aa0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180018523
cmp byte [r8], r9b
jne 0x180018523
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 0x180018510
not ecx
call fcn.18000cd00
test rax, rax
je 0x18001858f
cmp byte [rax + 0xb6], 0
je 0x18001858f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5ba2]
movsx r9d, word [rbx + 0x5ba2]
call fcn.1800043d0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.18000f8a0
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x18001ebc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdx, [rcx + 1]
mov r14, qword [0x1804d0870]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x18001ec24
lea r10, [0x180191aa0]
cmp r8b, 0x23
jne 0x18001ec07
cmp byte [rdx], r8b
jne 0x18001ec07
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x18001ebf4
mov eax, dword [r14 + 0x5c00]
xor edi, edi
mov qword [rsp + 0x30], rbp
not ebx
mov qword [rsp + 0x38], rsi
test eax, eax
jle 0x18001ec84
mov esi, edi
mov ebp, edi
test rsi, rsi
js 0x18001ec4a
cmp edi, eax
jl 0x18001ec63
mov r8d, 0x711
lea rdx, str.C:Users_vsVideosPrincipal_Timgui.h
lea rcx, str.i___0__i___Size
call fcn.180133758
mov rax, qword [r14 + 0x5c08]
cmp dword [rax + rbp + 8], ebx
je 0x18001eca1
mov eax, dword [r14 + 0x5c00]
inc edi
inc rsi
add rbp, 0x48
cmp edi, eax
jl 0x18001ec41
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edi, edi
js 0x18001ecae
cmp edi, dword [r14 + 0x5c00]
jl 0x18001ecc7
mov r8d, 0x711
lea rdx, str.C:Users_vsVideosPrincipal_Timgui.h
lea rcx, str.i___0__i___Size
call fcn.180133758
movsxd rax, edi
lea rcx, [rax + rax*8]
mov rax, qword [r14 + 0x5c08]
lea rax, [rax + rcx*8]
jmp 0x18001ec86
Function at 0x180050db0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1804d0870]
mov edx, 0x210
call fcn.180013860
cmp byte [rax], 0
je 0x180050e54
mov rcx, qword [0x1804d0870]
mov edx, 0x210
call fcn.180003450
cmp byte [rax + 8], 0
jne 0x180050e54
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180050e54
cmp qword [0x1804d0870], 0
jne 0x180050e1c
mov r8d, 0x1031
lea rdx, str.C:Users_vsVideosPrincipal_Timgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.180133758
mov rbx, qword [0x1804d0870]
cmp byte [rbx + 0x37b9], 0
je 0x180050e40
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180003bc0
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov rcx, qword [0x1804d0870]
mov edx, 0x214
call fcn.180013860
cmp byte [rax], 0
je 0x180050ef2
mov rcx, qword [0x1804d0870]
mov edx, 0x214
call fcn.180003450
cmp byte [rax + 8], 0
jne 0x180050ef2
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180050ef2
cmp qword [0x1804d0870], 0
jne 0x180050eba
mov r8d, 0x1031
lea rdx, str.C:Users_vsVideosPrincipal_Timgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.180133758
mov rbx, qword [0x1804d0870]
cmp byte [rbx + 0x37b9], 0
je 0x180050ede
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180003bc0
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov rcx, qword [0x1804d0870]
mov edx, 0x212
call fcn.180013860
cmp byte [rax], 0
je 0x180050f90
mov rcx, qword [0x1804d0870]
mov edx, 0x212
call fcn.180003450
cmp byte [rax + 8], 0
jne 0x180050f90
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180050f90
cmp qword [0x1804d0870], 0
jne 0x180050f58
mov r8d, 0x1031
lea rdx, str.C:Users_vsVideosPrincipal_Timgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.180133758
mov rbx, qword [0x1804d0870]
cmp byte [rbx + 0x37b9], 0
je 0x180050f7c
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180003bc0
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov rcx, qword [0x1804d0870]
mov edx, 0x216
call fcn.180013860
cmp byte [rax], 0
je 0x180051030
mov rcx, qword [0x1804d0870]
mov edx, 0x216
call fcn.180003450
cmp byte [rax + 8], 0
jne 0x180051030
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180051030
mov rbx, qword [0x1804d0870]
test rbx, rbx
jne 0x180050fff
mov r8d, 0x1031
lea rdx, str.C:Users_vsVideosPrincipal_Timgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.180133758
mov rbx, qword [0x1804d0870]
cmp byte [rbx + 0x37b9], 0
je 0x18005101c
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180003bc0
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x180055610
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180055677
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180055632
mov ecx, dword [r10]
jmp 0x180055798
cmp ecx, 0x270
jb 0x180055798
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x1800556b0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x180055710
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x180055d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x1804f64b0]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call fcn.180157060
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x180055e51
mov rax, qword [rdi]
test rax, rax
jne 0x180055daa
mov r8d, 0x4f
lea rdx, str.C:Users_vsVideosPrincipal_Texamplesexample_win32_directx11DiscordSDK_srcconnection_win.cpp
lea rcx, str.self
call fcn.180133758
jmp 0x180055e01
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x180055e01
test rsi, rsi
jne 0x180055dd4
mov r8d, 0x56
lea rdx, str.C:Users_vsVideosPrincipal_Texamplesexample_win32_directx11DiscordSDK_srcconnection_win.cpp
lea rcx, [0x18019a158]
call fcn.180133758
jmp 0x180055e01
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x180055e01
cmp dword [rsp + 0x40], ebx
je 0x180055e51
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x180055e20
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x180055e20
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18005a9e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18005aa20
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180506c20]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18005aa5e
cmp rsi, r14
jb 0x18005aa56
cmp rsi, r15
jae 0x18005aa56
cmp qword [rsi + 8], 0
jne 0x18005ac27
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18005aa41
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18005aaf2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18005aae9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005aae9
cmp dword [rsp + 0x70], 0x10000
je 0x18005ab6b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18005aae9
sub rbx, rbp
cmp rbx, r14
jae 0x18005aab0
test rsi, rsi
jne 0x18005abd0
cmp rdi, r15
ja 0x18005ac0f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18005ac0f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005ac0f
cmp dword [rsp + 0x70], 0x10000
je 0x18005aba1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18005ab22
jmp 0x18005ac0f
test rbx, rbx
je 0x18005aae9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18005abd0
cmp rbx, r14
jae 0x18005aa90
jmp 0x18005aaf2
test rdi, rdi
je 0x18005ac0f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18005abd0
cmp rdi, r15
jbe 0x18005ab00
jmp 0x18005ac0f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18005abe0
mov rax, qword [0x180506c20]
mov qword [rsi], rax
mov qword [0x180506c20], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18005b610
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
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 qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18005b7ca
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18005b759
mov edi, 1
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18005b713
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18005b713
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18005b713
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18005b6d2
mov rcx, qword [0x1804d0890]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18005b73c
jmp 0x18005b703
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18005b703
mov rcx, qword [0x1804d0890]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18005b73c
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18005b680
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18005b759
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18005b759
mov rcx, qword [0x1804d0890]
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 0x18005b7ca
cmp qword [rbx], r15
je 0x18005b7c5
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18005b7c5
nop dword [rax]
nop dword [rax + rax]
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 0x18005b7be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18005b480
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18005b780
mov eax, r15d
jmp 0x18005b7cf
mov eax, 9
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x18005b7f0
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 [0x180506c10]
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 0x18005b854
mov eax, 0xa
jmp 0x18005b8e7
test esi, esi
je 0x18005b876
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 0x18005b899
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18005b899
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18005b892
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18005b899
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 0x18005b900
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x180506c1c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18005b947
mov rax, qword [0x180506c10]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18005b954
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18005b930
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18005b947
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18005b610
mov edi, eax
test eax, eax
jne 0x18005ba3f
mov r9d, dword [0x180506c1c]
cmp ebx, r9d
jae 0x18005b9cc
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180506c10]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18005b9c5
mov edx, esi
mov ecx, ebx
call fcn.18005b7f0
mov edi, eax
test eax, eax
jne 0x18005b9cc
mov r9d, dword [0x180506c1c]
inc ebx
cmp ebx, r9d
jb 0x18005b990
cmp qword [rsp + 0x20], 0
je 0x18005ba3d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005ba29
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 0x18005ba1a
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 0x18005b9f0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1804d0890]
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 0x18005bd30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1804d0888], ebp
je 0x18005bd87
cmp rbx, 0x20
jae 0x18005bd70
xor ecx, ecx
jmp 0x18005bd72
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1804d0888], ebp
jne 0x18005bd66
cmp qword [0x1804d0890], r15
je 0x18005be83
test rdi, rdi
jne 0x18005bda7
mov ecx, esi
call fcn.18005b900
mov edi, eax
jmp 0x18005be88
mov ecx, dword [0x180506c1c]
mov ebx, r15d
test ecx, ecx
je 0x18005bdcf
mov rdx, qword [0x180506c10]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x18005bdd9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18005bdc0
mov edi, 4
jmp 0x18005be88
cmp ebx, 0xffffffff
je 0x18005bdcf
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18005be7a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18005b610
mov edi, eax
test eax, eax
jne 0x18005be88
mov edx, esi
mov ecx, ebx
call fcn.18005b7f0
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x18005be88
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005be64
mov rbx, qword [rsp + 0x20]
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 0x18005be5a
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 0x18005be30
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1804d0890]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18005be88
neg esi
sbb edi, edi
add edi, 6
jmp 0x18005be88
mov edi, 2
xchg dword [0x1804d0888], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x18005e180
Capabilities:
Enumerate processes

Disassembly:
push rsi
sub rsp, 0x150
mov rsi, rdx
test rdx, rdx
jne 0x18005e19c
xor eax, eax
add rsp, 0x150
pop rsi
ret
mov qword [rsp + 0x160], rbx
xor edx, edx
mov qword [rsp + 0x168], rbp
mov ecx, 2
mov qword [rsp + 0x170], rdi
xor edi, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x18005e221
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.1801349c4
test eax, eax
jne 0x18005e20f
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jbe 0x18005e20f
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x18005e1f0
mov rbp, qword [rsp + 0x168]
mov eax, edi
mov rdi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rsi
ret

Function at 0x18005e250
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, r9
mov r15, qword [rsp + 0x90]
mov rcx, r15
call fcn.180137bb8
mov rsi, rax
test eax, eax
jg 0x18005e28f
xor al, al
jmp 0x18005e36f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r12d, r12d
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
call fcn.18005fbc0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
jne 0x18005e2c6
xor dil, dil
jmp 0x18005e331
mov ebp, r12d
sub rdi, rbx
sar rdi, 3
test rdi, rdi
je 0x18005e32e
movsxd r14, esi
mov rsi, rbx
nop dword [rax + rax]
mov edx, dword [rsi]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, r14
mov rcx, qword [0x1804f1c68]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8, r15
mov rdx, qword [rsi]
mov rcx, qword [0x1804f1c68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc ebp
lea rsi, [rsi + 8]
movsxd rax, ebp
cmp rax, rdi
jb 0x18005e2e0
mov dil, 1
test rbx, rbx
je 0x18005e36b
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rax, rbx
cmp rdx, 0x1000
jb 0x18005e363
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005e38e
mov rcx, rbx
call fcn.1801170ac
movzx eax, dil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.180133c08
int3
Function at 0x18005ffd0
Capabilities:
Check for debugger via api

Disassembly:
sub rsp, 0x28
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1800657e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x4a], 0
je 0x180065803
xor eax, eax
nop dword [rax]
lea ecx, [rax + 5]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x49
jb 0x1800657f0
mov byte [rdx + 0x4a], 0
lea rcx, [0x1804cee20]
call fcn.18007c830
lea rax, [0x1804cee20]
add rsp, 0x28
ret