joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020f58
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d65c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d65c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400210a8
cmp rax, 0xffffffffffffffff
je 0x1400210a8
xor edi, edi
test rbp, rbp
jle 0x140021053
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400124ac
mov rbx, rax
test rax, rax
jne 0x140020fe0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140021049
mov edx, 0x8000
mov ecx, r14d
call fcn.14000e1d0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140017708
cmp eax, 0xffffffff
je 0x140021029
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140020ff0
mov edx, r15d
mov ecx, r14d
call fcn.14000e1d0
jmp 0x140021049
cmp byte [rsi + 0x38], dil
je 0x140021040
cmp dword [rsi + 0x34], 5
jne 0x140021040
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140021049
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400119cc
jmp 0x1400210bc
jns 0x1400210bc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d65c
cmp rax, 0xffffffffffffffff
jne 0x140021074
cmp byte [rsi + 0x30], dil
je 0x1400210bc
mov edi, dword [rsi + 0x2c]
jmp 0x1400210bc
mov ecx, r14d
call fcn.1400168d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400210bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400210bc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400210b5
mov eax, dword [rsi + 0x2c]
jmp 0x1400210ba
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d65c
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, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180006a50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180006a81
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x180006afb
mov rdi, r14
mov rcx, rbx
call fcn.18000b120
test rax, rax
jle 0x180006ad3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.18006cc40
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180006aeb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180006af3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180006a95
sub r14, rdi
jmp 0x180006bdf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180006b12
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180006b14
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180006b46
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18006cc40
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180006bdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180006b81
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x180006bbd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180050cc4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180006bdc
cmp rbp, rax
ja 0x180006b90
test rbp, rbp
je 0x180006bdc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180050cc4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18000d110
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test ebx, ebx
je 0x18000d16c
cmp ebx, 1
jne 0x18000d175
lea rax, [rsp + 0x48]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x18000d190]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.18000cfd0
mov byte [rax + 1], 0
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180014840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x180096984], 0
lea rdi, [0x180096980]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x180014918
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x180014870
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x18001494e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x180014930
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x18001498f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x180014973
cmp byte [r8], r9b
jne 0x180014973
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 [rdi + rdx*4]
test r9b, r9b
jne 0x180014960
not eax
pop rdi
ret

Function at 0x180014f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x180014f29
mov dword [r8], 0
lea rdx, [0x180083008]
call fcn.180014d30
mov rbx, rax
test rax, rax
jne 0x180014f48
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call fcn.18005057c
test eax, eax
jne 0x180015023
mov rcx, rbx
call fcn.180052080
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x180015023
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.18005057c
test eax, eax
jne 0x180015023
mov rcx, qword [0x18008ff20]
lea eax, [rbp + 1]
inc dword [rcx + 0x34c]
mov rdx, qword [rcx + 0xe8]
movsxd rcx, eax
call rdx
mov rsi, rax
test rax, rax
je 0x180015023
mov r9, rbx
mov qword [rsp + 0x40], r14
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.180050cc4
mov rcx, rbx
cmp rax, rbp
je 0x18001500c
call fcn.180051424
mov rax, qword [0x18008ff20]
mov rcx, rsi
dec dword [rax + 0x34c]
call qword [rax + 0xf0]
xor eax, eax
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov byte [rbp + rsi], al
call fcn.180051424
test rdi, rdi
je 0x18001501e
mov dword [rdi], ebp
mov rax, rsi
jmp 0x180014ff2
mov rcx, rbx
call fcn.180051424
xor eax, eax
jmp 0x180014ff7
Function at 0x1800384d0
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x18008f2c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x180096808], 0
jne 0x1800384f4
call fcn.180038030
mov rcx, qword [0x1800967c0]
lea rdx, [rsp + 0x40]
mov rdi, qword [0x18008ff20]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x48]
lea rcx, [rsp + 0x38]
sub eax, dword [rsp + 0x40]
movd xmm1, eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
xorps xmm1, xmm1
sub rax, qword [0x1800967b0]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1800967b8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x38]
mov qword [0x1800967b0], rax
movzx ecx, byte [rdi + 0x132]
cmp cl, 1
mov byte [rdi + 0x120], 0
sete al
cmp byte [rdi + 0x131], 1
mov byte [rdi + 0x11d], al
sete al
cmp byte [rdi + 0x133], 1
mov byte [rdi + 0x11e], al
sete al
mov byte [rdi + 0x11f], al
cmp cl, 1
jne 0x1800385ed
movss xmm1, dword [rdi + 0x118]
mulss xmm1, dword [0x18008353c]
movss xmm0, dword [0x180083584]
addss xmm1, dword [rdi + 0x98]
comiss xmm0, xmm1
ja 0x1800385e5
movss xmm0, dword [0x1800835a0]
minss xmm0, xmm1
movss dword [rdi + 0x98], xmm0
lea rcx, [0x1800966a0]
call fcn.18003fe70
test eax, eax
jne 0x180038704
cmp dword [0x1800966ec], 0x7fffffff
je 0x1800386ef
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
xor ebp, ebp
mov qword [rsp + 0x80], rsi
mov ebx, ebp
lea rsi, [0x180096830]
nop
movzx eax, byte [rsi]
and al, 0x88
cmp al, 0x88
jne 0x1800386a8
xor edx, edx
mov word [rsp + 0x30], bp
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], ebp
mov edx, eax
lea r8, [0x180096830]
mov ecx, ebx
call qword [sym.imp.USER32.dll_ToAscii]
movzx r8d, word [rsp + 0x30]
test eax, eax
jne 0x18003866f
mov r8d, ebp
lea rax, [rdi + 0x322]
mov ecx, ebp
mov rdx, rbp
cmp word [rax], cx
je 0x180038697
lea rax, [rax + 2]
inc rdx
lea ecx, [rcx + 1]
cmp word [rax], bp
jne 0x180038680
lea eax, [rcx + 1]
cmp eax, 0x11
jge 0x1800386a8
mov word [rdi + rdx*2 + 0x322], r8w
mov word [rdi + rdx*2 + 0x324], bp
inc ebx
inc rsi
cmp ebx, 0x100
jb 0x180038630
mov rsi, qword [rsp + 0x80]
lea rcx, [0x1800966a0]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
call fcn.18003fe78
call fcn.180015e60
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800408b0
add rsp, 0x60
pop rdi
ret
mov ecx, 6
mov dword [0x1800966ec], 0x7ffffffe
call fcn.18003fdc0
int3
mov ecx, 5
call fcn.18003fdc0
int3
Function at 0x18003b0b0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov edx, 4
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x18003b1f4
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x18003b1f4
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
movsxd rcx, ebx
mov eax, 2
mul rcx
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
mov rcx, rax
call fcn.180040dd8
mov rsi, rax
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, str.METAL_GEAR_SOLID_V:_THE_PHANTOM_PAIN
mov rcx, rsi
call fcn.180055090
xor edi, edi
mov r14d, edi
test eax, eax
sete r14b
lea ecx, [rbp + 0x19]
call fcn.180040d70
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18003b177
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x18003b21a
jmp 0x18003b17a
mov rbx, rdi
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x18003b20f
mov rsi, qword [rbx + 8]
test rsi, rsi
jne 0x18003b1a0
mov rcx, qword [rbx]
call fcn.180041b20
mov rsi, rax
mov qword [rbx + 8], rax
call fcn.1800017d0
mov r8, rsi
lea rdx, str.Window_found_with_title:__s
mov rcx, rax
call fcn.1800107c0
nop
lock xadd dword [rbx + 0x10], ebp
cmp ebp, 1
jne 0x18003b1f9
mov rcx, qword [rbx]
test rcx, rcx
je 0x18003b1d3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18003b1e5
call fcn.180040d60
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.180040d60
jmp 0x18003b1f9
xor edi, edi
mov r14d, edi
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.180041b10
nop
mov ecx, 0x8007000e
call fcn.180041b10
int3
Function at 0x18003b650
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180096f3c]
mov ebx, edi
test ecx, ecx
je 0x18003b78b
mov rax, qword [0x180096f30]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18003b6a8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003b680
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18003b78b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18003b9d0
mov r8d, dword [0x180096f3c]
cmp ebx, r8d
jae 0x18003b718
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180096f30]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18003b711
mov edx, esi
mov ecx, ebx
call fcn.18003b8c0
mov edi, eax
test eax, eax
jne 0x18003b718
mov r8d, dword [0x180096f3c]
inc ebx
cmp ebx, r8d
jb 0x18003b6e0
cmp qword [rsp + 0x20], 0
je 0x18003b78b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003b777
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003b768
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 0x18003b740
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180090fc8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003b8c0
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 [0x180096f30]
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 0x18003b924
mov eax, 0xa
jmp 0x18003b9b7
test esi, esi
je 0x18003b946
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 0x18003b969
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18003b969
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18003b962
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18003b969
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 0x18003b9d0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18008f2c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003bafa
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18003baf1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18003bad4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003bad4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003bad4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18003ba92
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180090fc8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18003baf1
jmp 0x18003bac7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18003bac7
mov rcx, qword [0x180090fc8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003baf1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
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, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18003ba40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18003bb53
cmp dword [rbx + 0xc], esi
jbe 0x18003bb53
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003bb4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18003bf40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18003bb10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800408b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18003c0f0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18003c15f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18003c148
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003c13c
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 0x18003c110
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180090fc8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18003c220
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 0x18003c260
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180096f20]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003c29e
cmp rsi, r14
jb 0x18003c296
cmp rsi, r15
jae 0x18003c296
cmp qword [rsi + 8], 0
jne 0x18003c467
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18003c281
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 0x18003c332
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 0x18003c329
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 0x18003c329
cmp dword [rsp + 0x70], 0x10000
je 0x18003c3ab
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18003c329
sub rbx, rbp
cmp rbx, r14
jae 0x18003c2f0
test rsi, rsi
jne 0x18003c410
cmp rdi, r15
ja 0x18003c44f
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 0x18003c44f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003c44f
cmp dword [rsp + 0x70], 0x10000
je 0x18003c3e1
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 0x18003c362
jmp 0x18003c44f
test rbx, rbx
je 0x18003c329
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 0x18003c410
cmp rbx, r14
jae 0x18003c2d0
jmp 0x18003c332
test rdi, rdi
je 0x18003c44f
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 0x18003c410
cmp rdi, r15
jbe 0x18003c340
jmp 0x18003c44f
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 0x18003c420
mov rax, qword [0x180096f20]
mov qword [rsi], rax
mov qword [0x180096f20], 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 0x180051e00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180041630
sub rsp, rax
mov rax, qword [0x18008f2c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005c140
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180051e4f
mov rax, rbp
jmp 0x180051f57
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x92780]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005d348
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x92780]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180051f53
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180051f53
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005d348
test rax, rax
js 0x180051f53
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180051f53
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180051f45
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180051f45
cmp byte [rcx], 0xd
jne 0x180051f2b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180051f3a
cmp byte [rcx + 1], 0xa
jne 0x180051f3a
inc rcx
jmp 0x180051f3a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8f710]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180051f0d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180051f57
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800408b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret