joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a1f4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400223c8
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400588d0], rbx
jne 0x14002a2fa
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14002a3cf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a3cf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400588d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400588d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400588e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400588f0], rax
test rax, rax
je 0x14002a2f1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400588e8], rax
jmp 0x14002a301
mov rax, qword [0x1400588e8]
jmp 0x14002a308
mov rax, qword [0x1400588e8]
mov r11, qword [0x1400588f0]
cmp rax, rdi
je 0x14002a370
cmp r11, rdi
je 0x14002a370
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400588f0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002a370
test rax, rax
je 0x14002a370
call rsi
test rax, rax
je 0x14002a36a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002a36a
test byte [rsp + 0x38], 1
jne 0x14002a370
bts ebp, 0x15
jmp 0x14002a3ae
mov rcx, qword [0x1400588d8]
cmp rcx, rdi
je 0x14002a3ae
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a3ae
call rax
mov rbx, rax
test rax, rax
je 0x14002a3ae
mov rcx, qword [0x1400588e0]
cmp rcx, rdi
je 0x14002a3ae
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a3ae
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400588d0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a3cf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002a3d1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14002bd03
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400393e8]
jne 0x140029bda
rol rcx, 0x10
test cx, 0xffff
jne 0x140029bd6
repz ret
ror rcx, 0x10
jmp 0x14002bc5c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400589c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140058ab8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14002bce1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400589c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14002bd03
mov rax, qword [rsp + 0x88]
mov qword [0x140058ab8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140058a58], rax
mov rax, qword [0x140058ab8]
mov qword [0x140058930], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140058a40], rax
mov dword [0x140058920], 0xc0000409
mov dword [0x140058924], 1
mov rax, qword [0x1400393e8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400393f0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400589b8], eax
mov ecx, 1
call fcn.1400297a8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140033ab8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400589b8], 0
jne 0x14002bd8a
mov ecx, 1
call fcn.1400297a8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140011594
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011384
Function at 0x140016360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140016392
call fcn.14000dcc8
mov dword [rax], 0x16
call fcn.14000b4b8
jmp 0x1400164b1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400164b1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400164b1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400163c1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400164b1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400163d5
call fcn.140017b10
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001539c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140017140
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001649f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001646a
mov rcx, rsi
call fcn.14001539c
cmp eax, edi
je 0x140016455
mov rcx, rsi
call fcn.14001539c
cmp eax, 0xfffffffe
je 0x140016455
mov rcx, rsi
call fcn.14001539c
movsxd rbx, eax
lea r14, [0x1400373b0]
mov rcx, rsi
sar rbx, 6
call fcn.14001539c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001645c
lea rdx, [0x1400353d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001646a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001648e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001648e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001648e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400164b4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400167dc
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.1400055a0
sub rsp, rax
mov rax, qword [0x140035020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001539c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001682b
mov rax, rbp
jmp 0x140016933
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x373b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140017918
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x373b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001692f
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 0x14001692f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140017918
test rax, rax
js 0x14001692f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001692f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140016921
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140016921
cmp byte [rcx], 0xd
jne 0x140016907
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140016916
cmp byte [rcx + 1], 0xa
jne 0x140016916
inc rcx
jmp 0x140016916
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400168e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140016933
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140004f40
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016c94
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400373b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140016cf2
cmp word [rdx], r12w
jne 0x140016cf2
or byte [rax + r8*8 + 0x38], cl
jmp 0x140016cf8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140016e53
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140016e2e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140016d31
mov rcx, r9
jmp 0x140016d54
cmp r9, rdx
jae 0x140016d6b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140016d15
jmp 0x140016e53
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016e28
cmp dword [rsp + 0x80], edi
je 0x140016e28
mov rdx, r14
lea r11, [0x1400373b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140016e01
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140016dd4
mov word [rbx], r12w
jmp 0x140016e4f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140016ddd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140016e4f
cmp word [rsp + 0x70], r12w
jne 0x140016e0e
cmp rbx, rsi
je 0x140016dce
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140017920
cmp word [rsp + 0x70], r12w
je 0x140016e53
mov word [rbx], r13w
jmp 0x140016e4f
lea r11, [0x1400373b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140016e4b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140016e53
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001b6a0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001b6d0
xor eax, eax
jmp 0x14001b793
mov rbp, rbx
cmp word [rax], si
je 0x14001b6f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b6dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b6d8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140019ccc
movsxd r14, eax
test eax, eax
jne 0x14001b733
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b6c9
mov rcx, r14
call fcn.140017b7c
mov rdi, rax
test rax, rax
jne 0x14001b74c
xor ecx, ecx
call fcn.140014534
jmp 0x14001b728
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140019ccc
test eax, eax
jne 0x14001b77d
mov rcx, rdi
call fcn.140014534
jmp 0x14001b787
xor ecx, ecx
call fcn.140014534
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001fff4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000dce8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002007e
cmp byte [rbp - 0x21], r15b
je 0x140020079
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400200b4
call fcn.1400148b0
test eax, eax
jne 0x1400200a0
cmp byte [rbp - 0x21], r15b
je 0x140020098
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400200b4
cmp byte [rbp - 0x21], r15b
je 0x1400200b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010390
test eax, eax
jne 0x140020154
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dce8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400200f3
cmp byte [rbp - 0x21], r15b
je 0x140020128
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020128
call fcn.1400148b0
test eax, eax
jne 0x140020114
cmp byte [rbp - 0x21], r15b
je 0x14002010d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020128
cmp byte [rbp - 0x21], r15b
je 0x140020125
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010390
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020154
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020157
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020165
mov rcx, rdi
call fcn.140014534
cmp byte [rbp + 0x3f], r15b
je 0x140020174
mov rcx, qword [rbp + 0x27]
call fcn.140014534
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001a20
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
or ebx, 0xffffffff
lock xadd dword [0x140004018], ebx
dec ebx
jne 0x140001a76
lea ecx, [rbx + 4]
call fcn.140001468
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], ebx
lea r8, [0x1400019f0]
mov r9, rax
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x493e0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140001a71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a76
call fcn.1400015e0
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140002a0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002a58
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002a50
cmp dword [rcx + 0x3c], edx
jl 0x140002a50
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002a50
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002a58
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400030ec
Capabilities:
Encode data using xor

Disassembly:
push GetSystemTimeAsFileTime
clc
pop rcx
nop
mov eax, 0x9237fe73
lea edx, [rsi + rbp*8 - 0x61ae64e4]
mov dh, 0xf4
lea edx, [rcx]
jmp 0x140003118
mov eax, esi
lea eax, [rax]
lea edx, [rdx - 0x3e87f7ae]
lea edx, [rcx]
nop
mov eax, edi
xchg dl, al
mov dh, 0x8c
mov eax, 0x9364b413
adc word [rcx + 0x3a201], 0x5a77
jmp 0x14000316d
test spl, 0xd
sub ecx, 2
xchg dh, dl
mov edx, 0x774b7d76
not dl
xchg edx, eax
mov dh, bl
jmp 0x1400031b0
add edx, 0x7252e0
inc al
dec al
add ah, 0xe8
cmp edx, edx
not dl
nop
and sil, bl
not edx
xchg edx, edx
mov dl, 0xee
clc
xchg edx, eax
lea eax, [rbx]
clc
and edx, ebx
xchg edx, edx
jmp 0x140003149
not dl
jge 0x140003118
xchg al, ah
dec dh
sbb eax, eax
jmp loc.140040aca
Function at 0x140001070
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000110a
nop dword [rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400010f4
add rax, 2
test ecx, ecx
jne 0x1400010e0
test edx, edx
je 0x140001136
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400010d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400017d0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov eax, 1
jmp 0x140001115
Function at 0x140002cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r14d, r14d
mov ebx, r14d
mov dword [rsp + 0x60], r14d
lea edi, [rax + 0x1388]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140002d4a
mov r8d, 4
mov qword [rsp + 0x20], r14
sub r8d, ebx
lea rdx, [rbx + rsi]
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002d64
mov eax, dword [rsp + 0x60]
mov ecx, 0xa
add rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rbx, 4
jb 0x140002d04
cmp rbx, 4
sete al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov edi, eax
call fcn.140012278
mov rcx, rax
mov dword [rsp + 0x20], edi
mov r9d, 4
lea rdx, str.ReadFile__zd__zd__error_error_code__d_n
mov r8, rbx
call fcn.140001010
xor al, al
jmp 0x140002d51

Function at 0x140002da0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0x3e8]
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x78]
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002e42
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140002e42
cmp dword [rsp + 0x78], 0
jbe 0x140002e52
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140002e2a
movzx eax, byte [rsp + 0x70]
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x140002e37
lea r8, [rsp + 0x70]
mov rcx, rbx
call fcn.14000aa90
mov dword [rsp + 0x78], ebp
cmp byte [rsp + 0x70], 0
jne 0x140002de0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002de0
Function at 0x140002e60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r15d, r15d
mov dword [rsp + 0x60], r15d
mov ebx, r15d
lea edi, [rax + 0x1388]
test rsi, rsi
je 0x140002ee2
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140002ee2
mov r8d, esi
mov qword [rsp + 0x20], r15
sub r8d, ebx
lea rdx, [rbx + rbp]
lea r9, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002f01
mov eax, dword [rsp + 0x60]
mov ecx, 0xa
add rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rbx, rsi
jb 0x140002ea0
cmp rbx, rsi
sete al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov edi, eax
call fcn.140012278
mov rcx, rax
mov dword [rsp + 0x20], edi
mov r9, rsi
lea rdx, str.WriteCount__zd__zd__error_error_code__d_n
mov r8, rbx
call fcn.140001010
xor al, al
jmp 0x140002ee8
Function at 0x14000c8c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c912
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c912
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c912
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c912
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c912
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c914
xor al, al
add rsp, 0x28
ret

Function at 0x140016804
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400165f4
Function at 0x14001b7fc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001b82c
xor eax, eax
jmp 0x14001b8ef
mov rbp, rbx
cmp word [rax], si
je 0x14001b851
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b838
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b834
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001b74c
movsxd r14, eax
test eax, eax
jne 0x14001b88f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b825
mov rcx, r14
call fcn.140017e0c
mov rdi, rax
test rax, rax
jne 0x14001b8a8
xor ecx, ecx
call fcn.140017134
jmp 0x14001b884
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001b74c
test eax, eax
jne 0x14001b8d9
mov rcx, rdi
call fcn.140017134
jmp 0x14001b8e3
xor ecx, ecx
call fcn.140017134
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret