joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400118f7
Capabilities:
Delete service
Stop service

Disassembly:
jmp 0x140018f00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x1400488c0]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14005111a]
call fcn.140011b1d
nop
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rcx, qword [rbp + 0x120]
mov qword [rcx], rax
mov rax, qword [rbp + 0x120]
cmp qword [rax], 0
jne 0x140018f78
xor al, al
jmp 0x140019030
mov r8d, 0xf01ff
lea rdx, str.mysteriousDriver
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x120]
cmp qword [rax + 8], 0
jne 0x140018fc3
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor al, al
jmp 0x140019030
lea r8, [rbp + 8]
mov edx, 1
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140018ff6
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14001900b
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor al, al
jmp 0x140019030
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002c630]
call fcn.140011929
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.140011546
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011a14
Capabilities:
Get common file path

Disassembly:
jmp 0x14001fca0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14001fce8
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
ja 0x14001fce8
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x14001fcff
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
add rsp, 0x48
ret
Function at 0x140011c12
Capabilities:
Start service

Disassembly:
jmp 0x140018c40
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14005111a]
call fcn.140011b1d
nop
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rcx, qword [rbp + 0x100]
mov qword [rcx], rax
mov rax, qword [rbp + 0x100]
cmp qword [rax], 0
jne 0x140018c8e
xor al, al
jmp 0x140018d32
mov r8d, 0xf01ff
lea rdx, str.mysteriousDriver
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rcx, qword [rbp + 0x100]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x100]
cmp qword [rax + 8], 0
jne 0x140018cd9
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor al, al
jmp 0x140018d32
xor r8d, r8d
xor edx, edx
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140018d0d
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor al, al
jmp 0x140018d32
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov al, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140022070
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011b9a
movzx eax, al
test eax, eax
jne 0x140022090
mov ecx, 7
call fcn.14001193d
nop
mov byte [rsp + 0x20], 0
call fcn.140011988
mov byte [rsp + 0x21], al
cmp dword [0x140049608], 1
jne 0x1400220b4
mov ecx, 7
call fcn.14001193d
nop
jmp 0x14002210c
cmp dword [0x140049608], 0
jne 0x140022107
mov dword [0x140049608], 1
lea rdx, [0x14002b660]
lea rcx, [0x14002b330]
call fcn.140011528
test eax, eax
je 0x1400220e8
mov eax, 0xff
jmp 0x140022211
lea rdx, [0x14002b220]
lea rcx, [section..rdata]
call fcn.14001196f
mov dword [0x140049608], 2
jmp 0x14002210c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011915
call fcn.1400117d5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140022169
mov rcx, qword [rsp + 0x30]
call fcn.140011429
movzx eax, al
test eax, eax
je 0x140022169
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140052020]
nop
call fcn.14001185c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14002219d
mov rcx, qword [rsp + 0x38]
call fcn.140011429
movzx eax, al
test eax, eax
je 0x14002219d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011adc
nop
call fcn.1400222c0
mov dword [rsp + 0x28], eax
call fcn.140011799
movzx eax, al
test eax, eax
jne 0x1400221bc
mov ecx, dword [rsp + 0x28]
call fcn.1400110f0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400221cb
call fcn.140011af5
nop
xor edx, edx
mov cl, 1
call fcn.1400113de
mov eax, dword [rsp + 0x28]
jmp 0x140022211
add rsp, 0x68
ret

Function at 0x140c4d266
Capabilities:
Authenticate hmac

Disassembly:
lea rsp, [rsp + 0x40]
jmp fcn.140c101d9
mov word [rbp + riz], r11w
push 0xffffffffae99c423
jmp 0x140c29682
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140015170
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012ca0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012cc0
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012cd3
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012cfd
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d11
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d23
xor al, al
jmp 0x140012d41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d3f
xor al, al
jmp 0x140012d41
mov al, 1
add rsp, 0x38
ret

Function at 0x140011aa0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011384
movzx eax, al
test eax, eax
jne 0x140011ac0
mov ecx, 7
call fcn.140011302
nop
mov byte [rsp + 0x20], 0
call fcn.140011316
mov byte [rsp + 0x21], al
cmp dword [0x140764a20], 1
jne 0x140011ae4
mov ecx, 7
call fcn.140011302
nop
jmp 0x140011b3c
cmp dword [0x140764a20], 0
jne 0x140011b37
mov dword [0x140764a20], 1
lea rdx, [0x140019660]
lea rcx, [0x140019330]
call fcn.140011195
test eax, eax
je 0x140011b18
mov eax, 0xff
jmp 0x140011c41
lea rdx, [0x140019220]
lea rcx, [section..rdata]
call fcn.14001130c
mov dword [0x140764a20], 2
jmp 0x140011b3c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112f3
call fcn.14001128a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140011b99
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011b99
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14076b020]
nop
call fcn.1400112bc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140011bcd
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011bcd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011343
nop
call fcn.140011cf0
mov dword [rsp + 0x28], eax
call fcn.140011267
movzx eax, al
test eax, eax
jne 0x140011bec
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140011bfb
call fcn.14001134d
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140011c41
add rsp, 0x68
ret
Function at 0x446ee0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x010fd8d0]
test rcx, rcx
jne 0x446f04
xor ecx, ecx
xor edx, edx
jmp 0x446f19
call fcn.00461dc0
mov rcx, rbx
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], r14
mov rsi, qword [r14 + 0x30]
inc dword [rsi + 0xd8]
mov qword [r14 + 0x10], 0xfffffffffffffade
mov byte [r14 + 0xb7], 1
call fcn.00446e80
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x70], rcx
mov rdx, qword [rsp + 0x60]
mov qword [rax + 0x78], rdx
mov ebx, 2
mov ecx, 3
call fcn.004407a0
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x70]
cmp qword [rcx], rdx
ja 0x446f86
nop dword [rax + rax]
cmp qword [rcx + 8], rdx
jae 0x446fc2
movups xmmword [rsp + 0x40], xmm15
lea rax, [0x004471e0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x40]
mov qword [rsp], rax
call fcn.00472f20
xorps xmm15, xmm15
mov r14, qword [0x010fdc10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x10]
test rax, rax
je 0x44702b
movups xmmword [rsp + 0x28], xmm15
mov qword [rsp + 0x38], 0
lea rcx, [0x00447160]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp], rax
nop
call fcn.00472f20
xorps xmm15, xmm15
mov r14, qword [0x010fdc10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00446e80
mov rcx, qword [rsp + 0x20]
mov al, byte [0x0106e038]
test al, al
je 0x44706b
lea rax, [0x00b98ce0]
mov qword [rsp], rax
call fcn.00472f20
xorps xmm15, xmm15
mov r14, qword [0x010fdc10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00446e80
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
cmp dword [rax + 0x2298], 0
nop
je 0x4470b8
lea rax, fcn.00442020
mov qword [rsp], rax
call fcn.00472f20
xorps xmm15, xmm15
mov r14, qword [0x010fdc10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00446e80
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x30]
mov rdx, qword [rax + 0xa0]
mov edx, dword [rdx + 0x14]
mov dword [rax + 0x388], edx
mov rax, qword [rcx + 0x30]
mov rax, qword [rax + 0xa0]
mov qword [rax + 0x38], 0
mov rdx, qword [rcx + 0x30]
mov rbx, rax
mov qword [rdx + 0xb0], rax
mov rax, qword [rcx + 0x30]
mov qword [rax + 0xa0], 0
mov eax, 2
xchg dword [rbx + 4], eax
mov al, byte [0x0106e028]
test al, al
je 0x447144
lea rax, [0x00b98cd8]
mov qword [rsp], rax
call fcn.00472f20
xorps xmm15, xmm15
mov r14, qword [0x010fdc10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call fcn.00446e80
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x30]
dec dword [rax + 0xd8]
add rsp, 0x50
pop rbp
ret
Function at 0x59c1e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x59c3c0
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
cmp rsi, 2
jne 0x59c256
cmp word [rdi], 0x7069
jne 0x59c2b2
mov qword [rsp], r8
mov qword [rsp + 8], r9
mov byte [rsp + 0x10], 0x3a
call fcn.00403500
xorps xmm15, xmm15
mov r14, qword [0x010fdc10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
setg al
mov rbx, qword [rsp + 0x68]
mov ecx, eax
mov rax, qword [rsp + 0x60]
jmp 0x59c2b4
cmp rsi, 3
jne 0x59c2b2
cmp word [rdi], 0x6374
jne 0x59c269
cmp byte [rdi + 2], 0x70
je 0x59c276
cmp word [rdi], 0x6475
jne 0x59c2b2
cmp byte [rdi + 2], 0x70
jne 0x59c2b2
mov qword [rsp], r8
mov qword [rsp + 8], r9
mov byte [rsp + 0x10], 0x5b
call fcn.00403500
xorps xmm15, xmm15
mov r14, qword [0x010fdc10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
setg al
mov rbx, qword [rsp + 0x68]
mov ecx, eax
mov rax, qword [rsp + 0x60]
jmp 0x59c2b4
xor ecx, ecx
test cl, cl
je 0x59c2c5
mov rdx, rax
mov rcx, rbx
nop
jmp 0x59c366
mov rsi, rax
mov rcx, rbx
jmp 0x59c2e8
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov rbx, qword [rsp + 0x30]
dec rbx
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
test rbx, rbx
jle 0x59c32b
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rax
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rbx, qword [rax + 8]
mov qword [rsp + 0x38], rbx
mov rsi, qword [fcn.0059c080]
lea rdx, fcn.0059c080
mov rax, rcx
call rsi
test al, al
je 0x59c2cd
mov rcx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x38]
jmp 0x59c337
test rcx, rcx
jbe 0x59c341
mov rcx, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rcx
add rsp, 0x50
pop rbp
nop
ret
xor eax, eax
mov rcx, rax
call fcn.00475320
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov rbx, qword [rsp + 0x30]
dec rbx
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
test rbx, rbx
jle 0x59c3a0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rax
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov rbx, qword [rax + 8]
mov qword [rsp + 0x40], rbx
mov rax, rcx
call fcn.0059c080
test al, al
jne 0x59c34b
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
jmp 0x59c3ac
test rcx, rcx
jbe 0x59c3b5
mov rcx, qword [rdx]
mov rbx, qword [rdx + 8]
mov rax, rcx
add rsp, 0x50
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.00475320
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.00473040
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.0059c1e0
Function at 0x140002a64
Capabilities:
Parse pe header

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

Function at 0x140005714
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005783
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005783
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005783
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005783
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005783
cmp dword [rcx + 0x84], 0xe
jbe 0x140005783
cmp dword [rcx + 0xf8], 0
je 0x140005783
mov ecx, ebx
call fcn.140005834
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005610
nop
cmp dword [rbp + 0x20], 0
je 0x1400057d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400057dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005714

Function at 0x140005918
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005783
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005783
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005783
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005783
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005783
cmp dword [rcx + 0x84], 0xe
jbe 0x140005783
cmp dword [rcx + 0xf8], 0
je 0x140005783
mov ecx, ebx
call fcn.140005834
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005610
nop
cmp dword [rbp + 0x20], 0
je 0x1400057d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400057dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005714
Function at 0x14000c468
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140025680]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14000c4bf
cmp word [rdx], r13w
jne 0x14000c4bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000c4c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000c5e9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000c60a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000c4fd
mov rdx, r9
mov word [rbx], cx
jmp 0x14000c524
cmp r9, r8
jae 0x14000c534
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14000c4de
jmp 0x14000c5e9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000c5de
cmp dword [rsp + 0x80], esi
je 0x14000c5de
lea r8, [0x140025680]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000c5b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000c586
mov word [rbx], r13w
jmp 0x14000c5e6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14000c593
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000c5e6
cmp word [rsp + 0x70], r13w
jne 0x14000c5c3
cmp rbx, r14
je 0x14000c580
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400140f0
cmp word [rsp + 0x70], r13w
je 0x14000c5e9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140025680]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000c5e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000c5e9
Function at 0x14000ea84
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 0x14000eab4
xor eax, eax
jmp 0x14000eb77
mov rbp, rbx
cmp word [rax], si
je 0x14000ead9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000eac0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000eabc
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.14000e9a4
movsxd r14, eax
test eax, eax
jne 0x14000eb17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000eaad
mov rcx, r14
call fcn.14000ac58
mov rdi, rax
test rax, rax
jne 0x14000eb30
xor ecx, ecx
call fcn.140009eec
jmp 0x14000eb0c
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.14000e9a4
test eax, eax
jne 0x14000eb61
mov rcx, rdi
call fcn.140009eec
jmp 0x14000eb6b
xor ecx, ecx
call fcn.140009eec
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 0x140015100
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.14000da74
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001518a
cmp byte [rbp - 0x21], r15b
je 0x140015185
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400151c0
call fcn.14000ff80
test eax, eax
jne 0x1400151ac
cmp byte [rbp - 0x21], r15b
je 0x1400151a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400151c0
cmp byte [rbp - 0x21], r15b
je 0x1400151bd
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.14000d054
test eax, eax
jne 0x140015260
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000da74
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400151ff
cmp byte [rbp - 0x21], r15b
je 0x140015234
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140015234
call fcn.14000ff80
test eax, eax
jne 0x140015220
cmp byte [rbp - 0x21], r15b
je 0x140015219
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140015234
cmp byte [rbp - 0x21], r15b
je 0x140015231
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.14000d054
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015260
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015263
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015271
mov rcx, rdi
call fcn.140009eec
cmp byte [rbp + 0x3f], r15b
je 0x140015280
mov rcx, qword [rbp + 0x27]
call fcn.140009eec
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