joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036780
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14005f040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400d2380]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003699e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003699e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1400d2380]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140036854
movsx rdx, word [r8 + 0x6120]
lea rax, [r8 + 0x6124]
mov r9d, dword [r8 + 0x3f88]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140036849
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6120], cx
movsx rax, cx
lea rax, [rax*8 + 0x6124]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6118]
test rdi, rdi
je 0x140036871
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140036874
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140056c48]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400368b7
mov rsi, qword [r8 + 0x90]
jmp 0x1400368ba
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400368e5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1400d2380]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003695e
inc rbx
cmp rbx, 5
jl 0x140036940
jmp 0x14003698a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400369a0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004e700
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140046980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14005f040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov r14, rcx
call fcn.140017020
movss xmm0, dword [rdi + 4]
lea r9, [rsp + 0x30]
movss xmm1, dword [rdi]
lea rdx, [rsp + 0x20]
movss dword [rsp + 0x24], xmm0
lea rcx, str.ColorButton
movss xmm0, dword [rdi + 8]
xor r8d, r8d
movss dword [rsp + 0x28], xmm0
movss dword [rsp + 0x20], xmm1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 0x3f800000
call fcn.140049280
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140017cc0
test al, al
je 0x140046aa2
xor ecx, ecx
call fcn.14000d250
test al, al
je 0x140046aa2
mov qword [rsp + 0x80], rbp
lea rcx, str.ColorPickerPopup
mov rbp, qword [0x1400d2380]
xor edx, edx
mov byte [0x1400d23f8], 1
mov rbx, qword [rbp + 0x4040]
movsxd rax, dword [rbx + 0x108]
mov r8, qword [rbx + 0x110]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140008c60
mov rcx, qword [rbx]
mov esi, eax
cmp dword [rcx + 0x4094], eax
jne 0x140046a72
lea r8, str.ColorPickerPopup
mov edx, 0xb
mov ecx, eax
call fcn.140022370
test byte [rbp + 0x607c], 4
mov rbp, qword [rsp + 0x80]
je 0x140046a99
mov r8d, esi
lea rdx, str.ColorPickerPopup
lea rcx, str._popup__OpenPopup___s_____0x_08X__n
call fcn.140021f60
xor edx, edx
mov ecx, esi
call fcn.14001b380
mov rbx, qword [0x1400d2380]
mov eax, dword [rbx + 0x4b38]
cmp dword [rbx + 0x4b28], eax
jg 0x140046ac6
mov dword [rbx + 0x4a50], 0
jmp 0x140046bd6
mov rbx, qword [rbx + 0x4040]
lea rcx, str.ColorPickerPopup
xor edx, edx
movsxd rax, dword [rbx + 0x108]
mov r8, qword [rbx + 0x110]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140008c60
mov rcx, qword [rbx]
mov esi, eax
cmp dword [rcx + 0x4094], eax
jne 0x140046b0e
lea r8, str.ColorPickerPopup
mov edx, 0xb
mov ecx, eax
call fcn.140022370
mov ecx, esi
call fcn.14001b900
test al, al
je 0x140046bd6
movss xmm0, dword [rdi]
lea rdx, [rsp + 0x30]
movss xmm1, dword [rdi + 4]
xor r9d, r9d
movss dword [rsp + 0x30], xmm0
mov r8d, 2
movss xmm0, dword [rdi + 8]
mov rcx, r14
movss dword [rsp + 0x38], xmm0
movss dword [rsp + 0x34], xmm1
mov dword [rsp + 0x3c], 0x3f800000
call fcn.140046e80
test al, al
je 0x140046b7f
movss xmm0, dword [rsp + 0x30]
movss xmm1, dword [rsp + 0x34]
movss dword [rdi], xmm0
movss xmm0, dword [rsp + 0x38]
movss dword [rdi + 8], xmm0
movss dword [rdi + 4], xmm1
mov rbx, qword [0x1400d2380]
mov rcx, qword [rbx + 0x4040]
cmp qword [rbx + 0x4b68], rcx
jne 0x140046bba
cmp byte [rbx + 0x4c09], 0
je 0x140046bba
cmp dword [rbx + 0x4bb8], 0
jne 0x140046bba
mov eax, dword [rbx + 0x4c0c]
and eax, 0xfffffff2
or eax, 2
mov dword [rbx + 0x4c0c], eax
test dword [rcx + 0x14], 0x1000000
je 0x140046bca
mov byte [rbx + 0x3f96], 1
call fcn.140015fd0
mov byte [rbx + 0x3f96], 0
mov rax, qword [0x1400d2380]
mov rcx, qword [rax + 0x4040]
movzx eax, byte [0x1400d23f8]
dec dword [rcx + 0x108]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14004e700
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14004ddb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
mov rax, qword [0x14005f040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [0x1400d1be0], 0
mov rbx, qword [0x1400d23d0]
je 0x14004dfbd
mov qword [r11 + 8], rsi
xor esi, esi
mov qword [r11 + 0x10], rdi
nop word [rax + rax]
xor edx, edx
lea rcx, [0x1400572b8]
call qword [sym.imp.USER32.dll_FindWindowA]
mov rdi, rax
test rax, rax
je 0x14004dfa6
mov rcx, qword [rbx + 0x50]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], esi
call qword [sym.imp.USER32.dll_GetWindowDisplayAffinity]
cmp byte [0x1400d1c5d], sil
je 0x14004de34
cmp dword [rsp + 0x40], esi
jne 0x14004de47
mov edx, 0x11
jmp 0x14004de3d
cmp dword [rsp + 0x40], 0x11
jne 0x14004de47
xor edx, edx
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongA]
cmp byte [0x1400d1be1], sil
je 0x14004de6e
cmp eax, 0x80088
je 0x14004de8a
mov r8d, 0x80088
jmp 0x14004de7b
cmp eax, 0x800a8
je 0x14004de8a
mov r8d, 0x800a8
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x1400d1c60]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x14004debd
cmp byte [0x1400d2410], sil
jne 0x14004debd
cmp byte [0x1400d1be1], sil
mov byte [0x1400d2410], 1
sete byte [0x1400d1be1]
jmp 0x14004dee0
mov ecx, dword [0x1400d1c60]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
jne 0x14004dee0
cmp byte [0x1400d2410], sil
je 0x14004dee0
mov byte [0x1400d2410], sil
xorps xmm0, xmm0
mov qword [rsp + 0x48], rsi
lea rdx, [rsp + 0x50]
mov rcx, rdi
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x1400d1bf0]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jne 0x14004df56
mov eax, dword [0x1400d1bfc]
cmp dword [rsp + 0x5c], eax
jne 0x14004df56
mov eax, dword [0x1400d1bf4]
cmp dword [rsp + 0x54], eax
jne 0x14004df56
cmp ecx, dword [0x1400d1bf8]
jne 0x14004df56
cmp r8d, dword [0x1400d1c00]
jne 0x14004df56
cmp r9d, dword [0x1400d1c04]
je 0x14004df8c
movups xmm0, xmmword [rsp + 0x50]
mov rax, rcx
mov dword [rsp + 0x30], 8
shr rax, 0x20
xor edx, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
movaps xmmword [0x1400d1bf0], xmm0
mov qword [0x1400d1c00], r8
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1400d1be0], sil
jne 0x14004ddf0
jmp 0x14004dfad
mov byte [0x1400d1be0], sil
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004e700
add rsp, 0x70
pop rbx
ret
Function at 0x14004f350
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004f39a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004f39a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004f39a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004f39a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004f39a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004f39c
xor al, al
add rsp, 0x28
ret
Function at 0x18000d4e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18000d50f
and qword [r8], 0
call fcn.18000d5f4
mov rbx, rax
test rax, rax
je 0x18000d5d7
mov rcx, rax
call fcn.18000d470
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000d5ce
mov rax, qword [0x1800cfd48]
test rax, rax
je 0x18000d547
inc dword [rax + 0xf4]
mov rdx, qword [0x1800cfd58]
lea rcx, [rdi + rbp]
call qword [0x1800ce1a0]
mov rsi, rax
test rax, rax
je 0x18000d5ce
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x18000d5a6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800cfd48]
test rax, rax
je 0x18000d594
dec dword [rax + 0xf4]
mov rdx, qword [0x1800cfd58]
mov rcx, rsi
call qword [0x1800ce1a8]
jmp 0x18000d5d7
test ebp, ebp
jle 0x18000d5b8
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000d5c9
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000d5d9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18000e0c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18000e0f2
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x180058c50]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18000e0cf
not r8d
mov eax, r8d
ret

Function at 0x18000e0fc
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000e156
mov r11b, 0x23
lea rbx, [0x180058c50]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x18000e140
cmp rdx, 2
jb 0x18000e140
cmp byte [r10], r11b
jne 0x18000e140
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x18000e11e
jmp 0x18000e197
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000e197
mov r11b, 0x23
lea rbx, [0x180058c50]
cmp dl, r11b
jne 0x18000e17b
cmp byte [r10], r11b
jne 0x18000e17b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x18000e169
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x180010114
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c58], 0
lea rbx, [rcx + 0x5c60]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800101ad
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x180010165
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001c7dc
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18001bdf8
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c58]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1800cfd50]
movsxd r8, eax
mov rax, qword [rdi + 0x5c68]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1800101b5
mov rcx, rbx
call fcn.18001bdf8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180017224
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800cfd48]
mov rbx, rcx
and dword [rax + 0x5bbc], 0
test rcx, rcx
je 0x18001728d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.180017298
lea rdx, [0x18005a65c]
mov rcx, rbx
mov rdi, rax
call fcn.18000d5f4
mov rbx, rax
test rax, rax
je 0x18001728d
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 rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800471c4
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, 0x30
mov rax, qword [0x1800cf540]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1800d0cf0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x180047209
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x20]
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 0x18004723f
mov eax, 0xa
jmp 0x1800472ce
test esi, esi
je 0x180047261
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 0x180047282
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180047282
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18004727c
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180047282
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
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 rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180055b00
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180047330
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 [0x1800cf540]
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 sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800474cc
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18004746e
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x18004742a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18004742a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18004742a
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1800473ec
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800d0100]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x180047452
jmp 0x18004741d
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x18004741d
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x1800d0100]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180047452
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 sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18004739a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18004746e
mov esi, ebx
cmp qword [rdi], rbx
je 0x18004746e
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800d0100]
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 0x1800474cc
cmp qword [rdi], rbx
je 0x1800474d1
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800474d1
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 0x1800474c3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.180047710
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x180047487
jmp 0x1800474d1
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180055b00
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800478ac
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 0x180047910
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800478fe
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 0x1800478f7
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 0x1800478cb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800d0100]
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 0x180047c84
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180047c9b
cmp r8b, 0x90
je 0x180047c9b
cmp r8b, 0xcc
jne 0x180047cbd
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180047cb9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180047cbd
add edx, r10d
cmp edx, r9d
jb 0x180047ca9
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180050bf0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
cmp byte [0x1800d0642], bpl
je 0x180050dce
mov rax, qword [0x1800d0678]
test rax, rax
jne 0x180050cbf
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbx, qword [rax]
mov rdx, rbx
mov r8, qword [rdx + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x180050ca4
mov r10d, dword [r9 + 0x18]
test r10d, r10d
je 0x180050ca4
mov esi, dword [r9 + 0x20]
dec r10d
mov r11d, 0x811c9dc5
lea rax, [rsi + r10*4]
mov ecx, dword [rax + r8]
add rcx, r8
mov al, byte [rcx]
inc rcx
test al, al
je 0x180050c9f
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rcx]
inc rcx
test al, al
jne 0x180050c7c
cmp r11d, 0x95466b05
je 0x180050db0
test r10d, r10d
jne 0x180050c5f
mov rax, qword [rdx]
mov rdx, rax
cmp rax, rbx
je 0x180050cb5
cmp qword [rax + 0x30], rbp
jne 0x180050c3a
mov rax, rbp
mov qword [0x1800d0678], rax
mov ecx, dword [0x1800d0664]
call rax
test ax, ax
je 0x180050dce
mov rax, qword [0x1800d0140]
mov rcx, qword [rax]
test rcx, rcx
je 0x180050dce
mov r11, qword [rcx + 8]
test r11, r11
je 0x180050dce
mov rax, qword [0x1800d0148]
mov r8, qword [rax]
test r8, r8
je 0x180050dce
mov r8, qword [r8 + 0x18]
test r8, r8
je 0x180050dce
mov r9d, ebp
mov r10, rbp
movsxd rax, r9d
cmp rax, qword [r8 + 0x108]
jae 0x180050dce
mov rdx, qword [r8 + 0x100]
test rdx, rdx
je 0x180050da4
mov rdx, qword [r10 + rdx]
test rdx, rdx
je 0x180050da4
cmp rdx, r11
je 0x180050da4
mov eax, dword [0x1800d016c]
mov ecx, dword [rax + rdx]
test ecx, ecx
je 0x180050da4
and ecx, 0x1fc000
cmp ecx, 0x8000
je 0x180050da4
movsd xmm0, qword [r11 + 0x90]
movss xmm2, dword [r11 + 0x98]
movsd qword [rsp + 0x20], xmm0
movss xmm1, dword [rsp + 0x24]
addss xmm1, dword [0x180058b10]
movss xmm0, dword [rsp + 0x20]
mov dword [rdx + 0x280], 0x3dcccccd
unpcklps xmm0, xmm1
movsd qword [rdx + 0x90], xmm0
movss dword [rdx + 0x98], xmm2
inc r9d
add r10, 0x10
jmp 0x180050d16
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + r10*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
jmp 0x180050cb8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret