joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d6f0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x11be0]
mov eax, 0x11ce0
call fcn.1400ad480
sub rsp, rax
mov r10, qword [rbp + 0x11c10]
mov rdi, rcx
movzx ecx, word [rdx]
mov r11d, 0xffdf
lea eax, [rcx - 0x41]
test r11w, ax
jne 0x14007d7a4
cmp word [rdx + 2], 0
jne 0x14007d7a4
cmp word [r8], 0
jne 0x14007d7a4
cmp word [r9], 0
jne 0x14007d7a4
cmp word [r10], 0
jne 0x14007d7a4
mov qword [rsp + 0x11cf0], rbx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
test rax, rax
je 0x14007d773
cmp byte [rdi + 0x122], 0
jne 0x14007d773
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowVisible]
xor ecx, ecx
test eax, eax
cmove rbx, rcx
cmp byte [rbp + 0x11c20], 0
je 0x14007d788
test rbx, rbx
je 0x14007d788
mov qword [rdi + 0xf0], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x11cf0]
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
test cx, cx
jne 0x14007d7d4
cmp word [r8], cx
jne 0x14007d7d4
cmp word [r9], cx
jne 0x14007d7d4
cmp word [r10], cx
jne 0x14007d7d4
mov rcx, rdi
call fcn.14007d950
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
xor ecx, ecx
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], r9
lea rax, [0x1400bbf7c]
mov r9, r8
mov dword [rsp + 0x30], ecx
mov r8, rdx
mov byte [rbp + 0x1781], cl
mov dword [rbp + 0x1784], ecx
xorps xmm0, xmm0
mov qword [rbp + 0x1788], rcx
mov rdx, rdi
mov dword [rbp + 0x17a0], ecx
mov qword [rbp + 0x17a8], rcx
mov qword [rbp + 0x17b8], rcx
mov qword [rbp + 0x17c0], rcx
lea rcx, [rsp + 0x30]
mov qword [rbp + 0xf48], rax
movdqa xmmword [rbp + 0x1790], xmm0
call fcn.14007e6f0
test eax, eax
je 0x14007d8f6
test byte [rsp + 0x30], 2
movzx eax, byte [rbp + 0x11c18]
mov byte [rbp + 0x1781], al
mov rax, qword [rbp + 0x11c28]
mov qword [rbp + 0x1798], rax
mov eax, dword [rbp + 0x11c30]
mov dword [rbp + 0x17a0], eax
je 0x14007d909
mov rax, qword [rbp + 0xf68]
cmp rax, 0xffff
je 0x14007d8cb
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14007d8f6
cmp byte [rdi + 0x122], 0
jne 0x14007d8c4
mov rcx, qword [rbp + 0xf68]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x14007d8c4
mov rcx, qword [rbp + 0xf68]
lea edx, [rax - 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jae 0x14007d8f6
mov rax, qword [rbp + 0xf68]
cmp qword [rbp + 0x17c0], rax
je 0x14007d8e5
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x17c0], rax
call fcn.14007eb50
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007ec40
test rax, rax
jne 0x14007d91b
xor eax, eax
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
lea rdx, [rsp + 0x30]
lea rcx, [0x14007d9e0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [rbp + 0x11c20], 0
mov rax, qword [rbp + 0x1788]
je 0x14007d937
test rax, rax
je 0x14007d937
mov qword [rdi + 0xf0], rax
mov rdi, qword [rsp + 0x11cf8]
add rsp, 0x11ce0
pop rbp
ret
Function at 0x14007eb50
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x14007ec33
mov eax, dword [rbx]
test eax, eax
je 0x14007ec33
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x14007eb8f
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x14007ebad
mov r8d, 0x7fff
lea rdx, [rbx + 0x189c]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14007ebad
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x14007ebc6
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x14007ec04
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14007ec04
movzx r9d, byte [rbx + 0x1850]
lea rdx, [rbx + 0x11a9c]
mov ecx, dword [rsp + 0x30]
call fcn.1400529f0
test eax, eax
jne 0x14007ec04
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x14007ec33
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x14007f3c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400ad480
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14007f47a
xor r9d, r9d
mov byte [rsp + 0x18a0], dl
lea rcx, [0x1400bbf7c]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov byte [rsp + 0x1871], r9b
lea rcx, [0x14007fbf0]
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
movdqa xmmword [rsp + 0x1880], xmm0
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x14007f47a
mov rax, qword [0x1400ebaa8]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14007f47a
mov edx, 1
call fcn.140001800
mov eax, 1
add rsp, 0x11cd8
ret
Function at 0x14007f780
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x11ce0
call fcn.1400ad480
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx esi, dl
mov rbx, rcx
jne 0x14007f7b6
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rsi
ret
mov qword [rsp + 0x11cf0], rbp
xor ebp, ebp
cmp qword [0x1400f42f8], rcx
mov byte [rcx], 0
je 0x14007f7d9
mov qword [0x1400f42f8], rcx
mov dword [0x1400f42f4], ebp
cmp qword [0x1400f4300], rbp
jne 0x14007f7fc
mov ecx, 0xfa0
call fcn.140075bf0
mov qword [0x1400f4300], rax
test rax, rax
je 0x14007f973
mov qword [rsp + 0x11cf8], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1400ebaa8]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.14007f990
mov ecx, dword [0x1400f42f4]
test rax, rax
lea rax, [0x1400bbf7c]
mov dword [rsp + 0x30], ebp
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [0x1400f42f4], ecx
mov dword [rsp + 0x1884], ebp
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test sil, sil
je 0x14007f87c
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x14007f884
mov byte [rsp + 0x1881], 1
mov rax, qword [0x1400f4300]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x18a0], ecx
lea rcx, [0x14007fab0]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x14007f93a
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [0x14007e410]
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov r10, qword [rsp + 0x28]
test r10, r10
je 0x14007f902
mov rcx, qword [rsp + 0x1888]
call fcn.14007f170
mov qword [rsp + 0x1888], r10
jmp 0x14007f90a
mov r10, qword [rsp + 0x1888]
mov rcx, r10
call fcn.14007d120
mov rcx, qword [rsp + 0x1888]
call fcn.14007f170
mov rcx, qword [0x1400ebaa8]
mov ecx, dword [rcx + 0x74]
cmp ecx, 0xffffffff
jle 0x14007f966
mov edx, 1
call fcn.140001800
jmp 0x14007f966
mov eax, dword [0x1400f42f4]
test eax, eax
je 0x14007f966
cmp eax, 1
mov dword [0x1400f42f4], ebp
setg al
test al, al
je 0x14007f966
mov rcx, rdi
call fcn.14007f170
xor edx, edx
mov rcx, rbx
call fcn.14007f780
mov rdi, qword [rsp + 0x11cf8]
mov eax, 1
mov rbp, qword [rsp + 0x11cf0]
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rsi
ret
Function at 0x140093ca0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140093d31
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140093d31
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140093d31
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140093d15
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140093d0f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140093d17
add rdx, 0x28
jmp 0x140093cf4
xor edx, edx
test rdx, rdx
jne 0x140093d20
xor al, al
jmp 0x140093d37
test dword [rdx + 0x24], 0x80000000
je 0x140093d2d
xor al, al
jmp 0x140093d37
mov al, 1
jmp 0x140093d37
xor al, al
jmp 0x140093d37
add rsp, 0x18
ret

Function at 0x14009c0b8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14009be8c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009be8c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009be8c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009be8c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009be8c
cmp dword [rcx + 0x84], 0xe
jbe 0x14009be8c
cmp dword [rcx + 0xf8], esi
je 0x14009be8c
mov ecx, r14d
call fcn.14009bfd4
mov ecx, 2
call fcn.1400a5274
nop
cmp byte [0x1400eea90], 0
jne 0x14009bf56
mov r15d, 1
mov eax, r15d
xchg dword [0x1400eea84], eax
test ebx, ebx
jne 0x14009beff
mov rdi, qword [0x1400eb018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400eea88]
cmp rcx, rax
je 0x14009bef6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140014a30]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400eeab8]
jmp 0x14009bf0b
cmp ebx, r15d
jne 0x14009bf11
lea rcx, [0x1400eead0]
call fcn.1400a1b20
nop
test ebx, ebx
jne 0x14009bf28
lea rdx, [0x1400b3ef8]
lea rcx, [0x1400b3ed8]
call fcn.1400a2228
lea rdx, [0x1400b3f08]
lea rcx, [0x1400b3f00]
call fcn.1400a2228
movzx eax, byte [0x1400eea90]
test esi, esi
cmove eax, r15d
mov byte [0x1400eea90], al
jmp 0x14009bf56
mov ecx, 2
call fcn.1400a52c8
test esi, esi
jne 0x14009bf6d
mov ecx, r14d
call fcn.14009bf88
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14009be1c
Function at 0x1414d2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1414d21df
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 0x1414d2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414d206f
add dl, dl
jne 0x1414d2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414d20f6
xor eax, eax
add dl, dl
jne 0x1414d20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414d21ad
add dl, dl
jne 0x1414d20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1414d20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1414d207e
mov eax, 1
add dl, dl
jne 0x1414d2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414d20fb
sub eax, ebx
mov ebx, 1
jne 0x1414d214c
mov ecx, 1
add dl, dl
jne 0x1414d212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1414d213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414d2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414d207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1414d2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1414d2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414d215d
cmp eax, 0x7d00
jae 0x1414d219b
cmp eax, 0x500
jb 0x1414d2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414d207e
cmp eax, 0x7f
ja 0x1414d219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414d207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1414d21d2
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 0x1414d207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140885058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408851df
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 0x140885089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14088506f
add dl, dl
jne 0x140885096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408850f6
xor eax, eax
add dl, dl
jne 0x1408850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408851ad
add dl, dl
jne 0x1408850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14088507e
mov eax, 1
add dl, dl
jne 0x140885106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140885113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408850fb
sub eax, ebx
mov ebx, 1
jne 0x14088514c
mov ecx, 1
add dl, dl
jne 0x14088512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14088513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140885123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140885168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140885175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14088515d
cmp eax, 0x7d00
jae 0x14088519b
cmp eax, 0x500
jb 0x140885196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088507e
cmp eax, 0x7f
ja 0x14088519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408851d2
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 0x14088507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001990
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 fcn.1400027d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400027d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140001a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400083e4]
mov r12, rcx
test ebx, ebx
jle 0x140001b30
mov rax, qword [0x1400083e8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001a4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001ad5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001a30
mov rcx, r12
call fcn.140002480
mov rsi, rax
test rax, rax
je 0x140001b52
mov rax, qword [0x1400083e8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400025b0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400083e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001ace
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ae0
add dword [0x1400083e4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400083e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001990
nop dword [rax]
xor ebx, ebx
jmp 0x140001a58
mov rax, qword [0x1400083e8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001990
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001990
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020d0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140008440]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008420]
test rbx, rbx
je 0x14000212c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002123
test r12, r12
je 0x140002123
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002108
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002450
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
lea rdi, [rsp + 0x20]
mov ecx, 0x98
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x290]
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1400024ed
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1400024ed
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x1400024eb
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400024fd
jmp 0x1400024a9
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000c258]
call fcn.140007250
mov rax, rdi
add rsp, 0x280
pop rdi
ret
Function at 0x140004a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
je 0x140004a95
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140004a9c
mov al, 1
jmp 0x140004c38
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xa8], rax
call fcn.1400057e0
mov dword [rsp + 0xb0], eax
mov edx, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xe0]
call qword [rsp + 0xa8]
mov dword [rsp + 0xa0], eax
call fcn.1400057e0
mov dword [rsp + 0xa4], eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa4]
call fcn.1400057f0
movzx eax, al
test eax, eax
je 0x140004b0b
xor al, al
jmp 0x140004c38
mov qword [rsp + 0x30], 0x20
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x74
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x48]
mov rdx, rcx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140004b8d
cmp dword [rsp + 0xc0], 1
je 0x140004b99
cmp dword [rsp + 0xc0], 3
je 0x140004c26
jmp 0x140004c36
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jbe 0x140004bf4
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x98]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rsp + 0x98], rax
je 0x140004bf4
xor al, al
jmp 0x140004c38
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140004c11
mov dword [rsp + 0xc4], 1
jmp 0x140004c1c
mov dword [rsp + 0xc4], 0
movzx eax, byte [rsp + 0xc4]
jmp 0x140004c38
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140004c38
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000cb90]
call fcn.140007250
mov rax, rdi
add rsp, 0xd0
pop rdi
ret
Function at 0x140006cb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140006cea
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140006dd8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x140006d80
cmp qword [rsp + 0x28], 0
jle 0x140006d80
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x140006d2a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140005720
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140006dc8
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140006dc8
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret