joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e160
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400db100]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.1400345dc
mov rbx, rax
test rax, rax
je 0x14002e240
test rsi, rsi
je 0x14002e1eb
cmp byte [rsi], bpl
je 0x14002e1eb
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x14002e1c8
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14002e380
mov dword [rsp + 0x60], eax
jmp 0x14002e1e6
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x140084c80]
cmp qword [rbx + 8], rbp
je 0x14002e219
mov rcx, rbx
call fcn.14002e380
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002e250
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r12d
jne 0x14002e284
call fcn.14002d580
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r12d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x14002e2e9
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14002e2df
dec rax
je 0x14002e2d1
cmp rax, 2
je 0x14002e2c5
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x14002e364
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x14002e364
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x14002e364
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x14002e364
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x14002e331
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r12d
add eax, ebp
cdqe
jmp 0x14002e367
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, r11
mov rcx, rsi
mov dword [rbx + 0x14], r11d
cmovg rdi, r11
mov dword [rbx + 0x18], r11d
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbp + rdi]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14002e380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x14002e3ca
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x14002e406
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14002e3ff
dec edx
je 0x14002e3f7
cmp edx, 2
je 0x14002e3f1
mov rdx, rsi
jmp 0x14002e454
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14002e45c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14002e45c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14002e45c
mov rcx, rbx
call fcn.14002d580
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14002e449
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x14002f558
Capabilities:
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x14002f57a
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov ebx, eax
call qword [sym.imp.USER32.DLL_CloseClipboard]
movsxd rax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14002f584
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x14002f61a
lea rsi, [0x140084363]
test rdi, rdi
cmovne rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov ecx, 0x2002
inc eax
movsxd rbp, eax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14002f614
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14002f614
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.USER32.DLL_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002fa88
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400db160], eax
add rsp, 0x28
ret
Function at 0x14002faec
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14002fb61
mov eax, dword [rcx + 0xf4]
mov dword [rcx + 0x108], eax
mov eax, dword [rcx + 0xf8]
mov dword [rcx + 0x10c], eax
call qword [rbx + 0xb0]
mov rdi, rax
test rax, rax
jne 0x14002fb61
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14002fb39
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1400d8f00]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400db160]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400db170], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002fc70
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400db170]
test rbx, rbx
je 0x14002fcca
mov rcx, rbx
call qword [rbx + 0xb8]
mov r11, qword [rbx + 0xe0]
test r11, r11
je 0x14002fca2
mov edx, 1
mov rcx, rbx
call r11
mov rcx, qword [0x1400d8f00]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400db160]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400db170], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140031534
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400d8f00]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400db160]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400db170], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x14002ff14]
mov qword [rbx], rax
lea rax, [0x14002fffc]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x1400300ac]
mov qword [rbx + 0x10], rax
lea rax, [0x140030270]
mov qword [rbx + 0x18], rax
lea rax, [0x140030378]
mov qword [rbx + 0x20], rax
lea rax, [0x1400303ec]
mov qword [rbx + 0x28], rax
lea rax, [0x140030434]
mov qword [rbx + 0x30], rax
lea rax, [0x140030448]
mov qword [rbx + 0x38], rax
lea rax, [fcn.14003045c]
mov qword [rbx + 0x40], rax
lea rax, [0x140030890]
mov qword [rbx + 0x48], rax
lea rax, [fcn.140030634]
mov qword [rbx + 0x50], rax
lea rax, [0x1400308a8]
mov qword [rbx + 0x58], rax
lea rax, [0x140030a0c]
mov qword [rbx + 0x60], rax
lea rax, [0x140030b88]
mov qword [rbx + 0x68], rax
lea rax, [0x140030128]
mov qword [rbx + 0x70], rax
lea rax, [0x140030c6c]
mov qword [rbx + 0x78], rax
lea rax, [0x14002ff44]
mov qword [rbx + 0x80], rax
lea rax, [0x140030d5c]
mov qword [rbx + 0x88], rax
lea rax, [0x140030eb0]
mov qword [rbx + 0x90], rax
lea rax, [0x140030f30]
mov qword [rbx + 0x98], rax
lea rax, [0x140031024]
mov qword [rbx + 0xa0], rax
lea rax, [0x140031210]
mov qword [rbx + 0xa8], rax
lea rax, [0x1400313b0]
mov qword [rbx + 0xb0], rax
lea rax, [0x140031498]
mov qword [rbx + 0xb8], rax
lea rax, [0x14003135c]
mov qword [rbx + 0xc0], rax
lea rax, [0x140031300]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400571a0
Capabilities:
Encode data using xor

Disassembly:
mov rdx, rcx
test rcx, rcx
je 0x14005725e
mov rax, qword [rcx]
xor r8d, r8d
lea r11, [0x140085000]
mov byte [rax + 0x16], r8b
mov rax, qword [rcx]
mov byte [rax + 0x17], r8b
mov rax, qword [rcx]
mov byte [rax + 0x18], r8b
mov rax, qword [rcx]
mov byte [rax + 0x19], r8b
mov eax, dword [rcx + 8]
test eax, eax
jle 0x140057203
mov r9, qword [rcx]
mov r10d, eax
nop
movzx eax, byte [r9]
mov ecx, r8d
inc r9
shr rcx, 0x18
xor rcx, rax
mov eax, r8d
mov r8d, dword [r11 + rcx*4]
shl eax, 8
xor r8d, eax
dec r10
jne 0x1400571e0
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x140057234
mov r9, qword [rdx + 0x10]
mov r10d, eax
movzx eax, byte [r9]
mov ecx, r8d
inc r9
shr rcx, 0x18
xor rcx, rax
mov eax, r8d
mov r8d, dword [r11 + rcx*4]
shl eax, 8
xor r8d, eax
dec r10
jne 0x140057211
mov rax, qword [rdx]
mov ecx, r8d
mov byte [rax + 0x16], r8b
mov rax, qword [rdx]
shr ecx, 8
mov byte [rax + 0x17], cl
mov rax, qword [rdx]
mov ecx, r8d
shr ecx, 0x10
shr r8d, 0x18
mov byte [rax + 0x18], cl
mov rax, qword [rdx]
mov byte [rax + 0x19], r8b
repz ret
Function at 0x14006c1a8
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1400d8f00]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400db160]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400db170], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.140075398
mov rbx, qword [rsp + 0x30]
lea rax, [0x14006c15c]
lea r11, [0x14006c0f8]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14006adbc]
mov qword [rdi + 0xb0], r11
mov qword [rdi + 0x20], rax
lea rax, [0x14006af98]
mov qword [rdi + 0x60], rax
lea rax, [0x14006b0f0]
mov qword [rdi + 0xc8], rax
lea rax, [0x14006b150]
mov qword [rdi + 0xc0], rax
lea rax, [0x14006bb80]
mov qword [rdi + 0x68], rax
lea rax, [0x14006b9b8]
mov qword [rdi + 0x48], rax
lea rax, [0x14006b9e4]
mov qword [rdi + 0x50], rax
lea rax, [0x14006ba14]
mov qword [rdi + 0x58], rax
lea rax, [0x14006bf14]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14006da00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
mov r10d, dword [rsp + 0x68]
movsxd rbp, dword [rcx + 0x160]
mov ebx, r8d
mov r14, rdx
mov r11, rcx
test r10d, r10d
je 0x14006daca
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov r12d, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r15, eax
mov eax, ebp
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg r12d
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r15
add r8, r14
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x14006daae
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
add r8, 4
xor byte [rdx], al
add rdx, rbp
dec rdi
jne 0x14006da8a
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x14006dac3
add ecx, r12d
jmp 0x14006dac5
add ecx, ebx
test r10d, r10d
jne 0x14006da5e
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret
Function at 0x14006f0cc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
mov r11d, dword [rsp + 0x68]
movsxd rbp, dword [rcx + 0x160]
mov r14, rdx
mov ebx, r8d
mov rdx, rcx
test r11d, r11d
je 0x14006f198
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov r12d, ebx
lea r10d, [rax + rax*2]
mov eax, ebp
imul ecx, dword [rsp + 0x58]
movsxd r15, r10d
mov r10d, dword [rsp + 0x48]
imul eax, r9d
movsxd rdi, eax
neg r12d
mov qword [rsp + 0x28], rdi
mov eax, dword [rdx + 0x158]
movsxd r9, ecx
add r9, r15
add r9, r14
imul eax, r10d
movsxd r8, eax
add r8, qword [rdx + 0x150]
add r8, rdi
cmp dword [rsp + 0x60], 0
jle 0x14006f17d
mov edi, dword [rsp + 0x60]
mov al, byte [r9 + 2]
xor byte [r8 + 2], al
mov al, byte [r9 + 1]
xor byte [r8 + 1], al
mov al, byte [r9]
add r9, 3
xor byte [r8], al
add r8, rbp
dec rdi
jne 0x14006f156
mov rdi, qword [rsp + 0x28]
dec r11d
inc r10d
cmp dword [rdx + 0x174], 0
jne 0x14006f191
add ecx, r12d
jmp 0x14006f193
add ecx, ebx
test r11d, r11d
jne 0x14006f12b
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret
Function at 0x1415c5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1415c51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415c5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415c506f
add dl, dl
jne 0x1415c5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415c50f6
xor eax, eax
add dl, dl
jne 0x1415c50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415c51ad
add dl, dl
jne 0x1415c50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415c50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415c50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415c50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415c50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415c507e
mov eax, 1
add dl, dl
jne 0x1415c5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415c5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415c50fb
sub eax, ebx
mov ebx, 1
jne 0x1415c514c
mov ecx, 1
add dl, dl
jne 0x1415c512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415c513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415c5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415c507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415c5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415c5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415c515d
cmp eax, 0x7d00
jae 0x1415c519b
cmp eax, 0x500
jb 0x1415c5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415c507e
cmp eax, 0x7f
ja 0x1415c519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415c507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415c51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1415c507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x211d413c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x211d413d8
mov eax, 1
add rsp, 0x38
ret
mov rax, qword [0x212a28760]
xor r9d, r9d
lea r8, [sym.RunInjectorThreadProxy_void_]
xor edx, edx
mov qword [rax], rcx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x211d41910
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x212a28580]
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x211d41980
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x212a2b064]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x211d41b30
mov rax, qword [0x212a2b068]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x211d419cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x211d41a57
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x211d419b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x211d41b8d
mov rax, qword [0x212a2b068]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x212a2b068]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x211d41b72
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x211d41a50
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x211d41ae0
add dword [0x212a2b064], 1
cmp ebx, 8
jae 0x211d41a88
test bl, 4
jne 0x211d41b40
test ebx, ebx
je 0x211d41a79
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x211d41b60
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x211d41a79
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x211d41aba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x212a2b068]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x211d41a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x212a285f8]
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x211d419d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x211d41a79
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x211d41a79
mov rax, qword [0x212a2b068]
mov edx, dword [rbp + 8]
lea rcx, [0x212a285c0]
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, [0x212a285a0]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x211d41e90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x212a2b0a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x212a2b080]
test rbx, rbx
je 0x211d41ee4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x211d41edb
test r12, r12
je 0x211d41edb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x211d41ec0
lea rcx, [0x212a2b0a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x211d42110
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x211d42120
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x211d42130
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x211d42175
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x211d4216c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x211d42177
add rax, 0x28
cmp rax, r9
jne 0x211d42158
xor eax, eax
ret

Function at 0x211d42220
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x212a286e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x211d42299
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x211d42299
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x211d42296
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x211d4228d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x211d42299
add r8, 0x28
cmp r8, r9
jne 0x211d42278
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x211d42380
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x212a286e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x211d423ef
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x211d423ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x211d423ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x211d423e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x211d423f8
add rax, 0x28
cmp rax, r9
jne 0x211d423d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x211d42410
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x212a286e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x211d42488
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x211d42488
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x211d42488
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x211d42488
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x211d4247c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x211d42490
add rdx, 0x28
cmp rdx, r10
jne 0x211d42468
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x211d424a0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x211d424ae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x211d42485
test r8d, r8d
jg 0x211d42498
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret