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

Disassembly:
mov eax, 0x69385de6
add eax, dword [0x14051ff94]
cmp ecx, eax
jne 0x140381f46
test edx, edx
je 0x140381fbc
movzx eax, byte [0x14051f83b]
cmp al, 0xf5
je 0x140381f3e
mov cl, 0x46
nop word cs:[rax + rax]
mov al, 0x64
lock cmpxchg byte [0x14051f83b], cl
je 0x14038201c
movzx edx, byte [0x14051ffa0]
add dl, 0x83
cmp al, dl
jne 0x140381f20
lea rax, [0x14051f830]
ret
test edx, edx
je 0x140381fec
movzx eax, byte [0x14051f7c8]
nop word cs:[rax + rax]
cmp al, 9
je 0x140382079
movzx ecx, byte [0x14051ffa0]
mov edx, ecx
xor dl, 0xf6
mov eax, ecx
and al, 0x76
add al, al
add al, dl
add cl, 0x63
lock cmpxchg byte [0x14051f7c8], cl
jne 0x140381f60
xor eax, eax
lea rcx, [0x14051f7b0]
lea rdx, [0x140427440]
nop dword [rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x17
jg 0x140382071
inc rax
jmp 0x140381fa0
movzx eax, byte [0x14051f82d]
cmp al, 0x17
je 0x140381fe4
mov cl, 0x33
nop dword [rax]
mov al, 0x8e
lock cmpxchg byte [0x14051f82d], cl
je 0x140382091
cmp al, 0x17
jne 0x140381fd0
lea rax, [0x14051f820]
ret
movzx eax, byte [0x14051f68b]
cmp al, 0xa0
je 0x140382014
mov cl, 0x6b
nop dword [rax]
mov al, 0xcc
lock cmpxchg byte [0x14051f68b], cl
je 0x1403820cc
cmp al, 0xa0
jne 0x140382000
lea rax, [0x14051f670]
ret
xor eax, eax
lea rcx, [0x14051f830]
lea rdx, [0x1404274c0]
mov r8d, 0x69385df1
nop word cs:[rax + rax]
movzx r9d, byte [rax + rdx]
mov r10d, r9d
xor r10b, r9b
not r10b
and r10b, byte [rax + rcx]
xor r10b, r9b
mov byte [rax + rcx], r10b
lea r9d, [rax + 1]
mov r10d, dword [0x14051ff94]
add r10d, r8d
cmp r9d, r10d
jge 0x140382081
inc rax
jmp 0x140382040
mov al, 9
xchg byte [0x14051f7c8], al
lea rax, [0x14051f7b0]
ret
mov al, 0xf5
xchg byte [0x14051f83b], al
lea rax, [0x14051f830]
ret
xor eax, eax
lea rcx, [0x14051f820]
lea rdx, [0x1404274b0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x140382144
inc rax
jmp 0x1403820b0
xor eax, eax
lea rcx, [0x14051f670]
lea rdx, [0x140427310]
nop dword [rax]
cdqe
movzx r8d, byte [rax + rdx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rax + rcx]
xor r9b, r8b
mov byte [rax + rcx], r9b
mov r8d, dword [0x14051ff94]
mov r9d, r8d
xor r9d, 0x7c829033
and r8d, 0x7c829033
lea r8d, [r9 + r8*2]
mov r9d, r8d
xor r9d, 0xecb5cdb4
and r8d, 0x6cb5cdb4
lea r8d, [r9 + r8*2]
add eax, r8d
cmp eax, 0x1b
jl 0x1403820e0
mov al, 0xa0
xchg byte [0x14051f68b], al
lea rax, [0x14051f670]
ret
mov al, 0x17
xchg byte [0x14051f82d], al
lea rax, [0x14051f820]
ret
Function at 0x1403865e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, r9d
xor eax, 0x4729455e
add eax, dword [0x1405202b8]
cmp ecx, eax
jne 0x140386618
movzx eax, byte [0x14052024a]
cmp al, 0x58
je 0x140386610
mov cl, 0x78
nop
mov al, 0xb5
lock cmpxchg byte [0x14052024a], cl
je 0x140386648
cmp al, 0x58
jne 0x140386600
lea rax, [0x140520230]
ret
movzx eax, byte [0x1405201cb]
cmp al, 0xda
je 0x140386640
mov cl, 0x27
nop word cs:[rax + rax]
mov al, 0x78
lock cmpxchg byte [0x1405201cb], cl
je 0x140386699
cmp al, 0xda
jne 0x140386630
lea rax, [0x1405201c0]
ret
xor edx, edx
lea rax, [0x140520230]
lea rcx, [0x1404276f0]
xor r9d, 0x472945b4
nop
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
mov r8d, dword [0x1405202b8]
add r8d, r9d
cmp edx, r8d
jl 0x140386660
mov al, 0x58
xchg byte [0x14052024a], al
lea rax, [0x140520230]
ret
xor eax, eax
lea rcx, [0x1405201c0]
lea rdx, [0x140427680]
nop dword [rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xa
jg 0x1403866c8
inc rax
jmp 0x1403866b0
mov al, 0xda
xchg byte [0x1405201cb], al
lea rax, [0x1405201c0]
ret
Function at 0x1403866e0
Capabilities:
Encode data using xor

Disassembly:
mov r8d, dword [rsp + 0x28]
test ecx, ecx
je 0x14038678d
test edx, edx
je 0x1403867cc
movzx eax, byte [0x140520202]
nop dword [rax]
cmp al, 0xfe
je 0x140386785
movzx ecx, byte [0x1405202bc]
mov eax, r8d
xor al, 0xa5
mov edx, eax
xor dl, cl
and al, cl
add al, al
add al, dl
mov edx, r8d
xor dl, 0x2a
add dl, cl
lock cmpxchg byte [0x140520202], dl
jne 0x140386700
xor eax, eax
lea rcx, [0x1405201f0]
lea rdx, [0x1404276b0]
xor r8d, 0x7623cf96
nop word [rax + rax]
cdqe
movzx r9d, byte [rax + rdx]
mov r10d, r9d
xor r10b, r9b
not r10b
and r10b, byte [rax + rcx]
xor r10b, r9b
mov byte [rax + rcx], r10b
mov r9d, dword [0x1405202b8]
add r9d, r8d
add eax, r9d
cmp eax, 0x12
jl 0x140386750
mov al, 0xfe
xchg byte [0x140520202], al
lea rax, [0x1405201f0]
ret
test edx, edx
je 0x14038684c
movzx eax, byte [0x140520283]
cmp al, 0xea
je 0x1403867c4
mov cl, 0xdb
nop word cs:[rax + rax]
mov al, 0xa4
lock cmpxchg byte [0x140520283], cl
je 0x140386884
cmp al, 0xea
jne 0x1403867b0
lea rax, [0x140520260]
ret
movzx eax, byte [0x1405201bd]
nop word cs:[rax + rax]
cmp al, 0x59
je 0x1403868df
movzx ecx, byte [0x1405202bc]
mov eax, r8d
xor al, 0xbc
add al, cl
mov edx, r8d
xor dl, 0xf3
mov r9d, edx
xor r9b, cl
and dl, cl
add dl, dl
add dl, r9b
lock cmpxchg byte [0x1405201bd], dl
jne 0x1403867e0
xor eax, eax
lea rcx, [0x1405201b0]
lea rdx, [0x140427670]
nop word cs:[rax + rax]
movzx r9d, byte [rax + rdx]
add byte [rax + rcx], r9b
lea r9d, [rax + 1]
cmp r9d, 0xc
jg 0x1403868cd
inc rax
jmp 0x140386830
movzx eax, byte [0x1405202a9]
cmp al, 0x3d
je 0x14038687c
mov cl, 0xc9
nop dword [rax]
mov al, 0xb9
lock cmpxchg byte [0x1405202a9], cl
je 0x1403868e7
mov edx, r8d
xor dl, 0x85
add dl, byte [0x1405202bc]
cmp al, dl
jne 0x140386860
lea rax, [0x1405202a0]
ret
xor eax, eax
lea rcx, [0x140520260]
lea rdx, [0x140427720]
xor r8d, 0x7623cf96
nop dword [rax + rax]
cdqe
movzx r9d, byte [rax + rdx]
xor byte [rax + rcx], r9b
mov r9d, dword [0x1405202b8]
add r9d, r8d
add eax, r9d
cmp eax, 0x23
jl 0x1403868a0
mov al, 0xea
xchg byte [0x140520283], al
lea rax, [0x140520260]
ret
xor r8b, 0x69
add r8b, byte [0x1405202bc]
xchg byte [0x1405201bd], r8b
lea rax, [0x1405201b0]
ret
xor eax, eax
lea rcx, [0x1405202a0]
lea rdx, [0x140427760]
nop word [rax + rax]
movzx r8d, byte [rax + rdx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rax + rcx]
xor r9b, r8b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
cmp r8d, 8
jg 0x140386928
inc rax
jmp 0x140386900
mov al, 0x3d
xchg byte [0x1405202a9], al
lea rax, [0x1405202a0]
ret
Function at 0x180001030
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x180053220]
mov r9, rdx
not ecx
cmp r8, 4
jb 0x1800010a9
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
add r9, 4
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x180001050
test r8, r8
je 0x1800010cd
nop
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x1800010b0
not ecx
mov eax, ecx
ret
Function at 0x180006f10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180006f71
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x180006f30
mov ecx, dword [r10]
jmp 0x18000705a
cmp ecx, 0x4e0
jb 0x18000705a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180006f90
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180006fe0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180011ff0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18001204d
lea rbx, [0x180054a80]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180012034
cmp r10, 2
jb 0x180012034
cmp byte [r9], r8b
jne 0x180012034
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180012010
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001208f
lea rbx, [0x180054a80]
cmp r8b, 0x23
jne 0x180012073
cmp byte [r9], r8b
jne 0x180012073
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180012060
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1800121f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18001220a
mov qword [r8], 0
lea rdx, [0x180052898]
call fcn.1800120a0
mov rbx, rax
test rax, rax
jne 0x18001222a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180012301
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180012301
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180012301
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180012301
cmp rdi, 0xffffffffffffffff
je 0x180012301
mov rax, qword [0x180066060]
test rax, rax
je 0x18001229e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180012301
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]
mov rcx, rbx
cmp rax, rdi
je 0x1800122ee
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180066060]
test rax, rax
je 0x1800122e3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18001230a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800122fc
mov qword [r14], rdi
mov rax, rsi
jmp 0x18001230c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180015790
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x180054a80]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x180066060]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3f00], ebx
jne 0x180015826
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.180028300
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800190c0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180019110
lea r11, [0x180054a80]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800190f3
cmp byte [r8], r9b
jne 0x1800190f3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800190e0
mov rcx, qword [0x180066060]
not eax
movsxd rdx, dword [rcx + 0x3e98]
mov r9, qword [rcx + 0x3ea0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180019171
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180019169
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18001916c
mov rdx, r8
test rdx, rdx
jne 0x180019140
cmp r9, r10
je 0x180019180
cmp dword [r9], eax
jne 0x180019180
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180026b00
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 + 0x5c38], 0
lea rbx, [rcx + 0x5c40]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180026ba7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x180026b5a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180029460
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180012680
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c48]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180066058]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180026baf
mov rcx, rbx
call fcn.180012680
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180027030
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180066060]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180027093
mov qword [rsp], rbx
lea rbx, [0x180054a80]
nop dword [rax]
cmp r9b, 0x23
jne 0x180027073
cmp byte [r8], r9b
jne 0x180027073
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180027060
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bb0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x1800270c7
mov r10, qword [r10 + 0x5bb8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x1800270ce
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x1800270b4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180049080
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180065010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x1800490cf
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180066260]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004910d
cmp rsi, r14
jb 0x180049105
cmp rsi, r15
jae 0x180049105
cmp qword [rsi + 8], 0
jne 0x1800492d7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800490f0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800491a2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180049199
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180049199
cmp dword [rsp + 0x40], 0x10000
je 0x18004921b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180049199
sub rbx, rbp
cmp rbx, r14
jae 0x180049160
test rsi, rsi
jne 0x180049280
cmp rdi, r15
ja 0x1800492bf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
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 0x1800492bf
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800492bf
cmp dword [rsp + 0x40], 0x10000
je 0x180049251
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800491d2
jmp 0x1800492bf
test rbx, rbx
je 0x180049199
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 0x180049280
cmp rbx, r14
jae 0x180049140
jmp 0x1800491a2
test rdi, rdi
je 0x1800492bf
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 0x180049280
cmp rdi, r15
jbe 0x1800491b0
jmp 0x1800492bf
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 0x180049290
mov rax, qword [0x180066260]
mov qword [rsi], rax
mov qword [0x180066260], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004fa20
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180049cf0
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 [0x180065010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov edi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180049e99
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180049e36
lea edi, [r15 + 1]
nop
cmp dword [rsp + 0x20], 0x10
jb 0x180049df0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180049df0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180049df0
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180049db2
mov rcx, qword [0x180066078]
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 0x180049e19
jmp 0x180049de3
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180049de3
mov rcx, qword [0x180066078]
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 0x180049e19
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 qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180049d60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180049e36
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180049e36
mov rcx, qword [0x180066078]
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 0x180049e99
cmp qword [rbx], r15
je 0x180049e94
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180049e94
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180049e8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180049b40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180049e51
mov eax, r15d
jmp 0x180049e9e
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004fa20
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180049ec0
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, 0x30
mov rax, qword [0x180065010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180066250]
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 0x180049f33
mov eax, 0xa
jmp 0x180049fc2
test esi, esi
je 0x180049f55
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 0x180049f78
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180049f78
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180049f71
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180049f78
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
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]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004fa20
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret