joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000368c
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140047180]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x1400073d0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
mov rax, cr8
test al, al
jne 0x140003808
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov eax, 1
mov edx, 0x80000000
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x14000380d
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov qword [rbp + 0x47], rax
lea rdx, [rbp - 0x19]
movups xmmword [rbp + 0x37], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x14000382e
mov eax, dword [rbp + 0x3f]
mov r8d, 0x416c6374
mov edx, eax
mov dword [0x14004b244], eax
xor ecx, ecx
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140003801
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140007000
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
xor r9d, r9d
and dword [rbp - 0x1d], 0
xor r8d, r8d
and dword [rbp - 0x21], 0
xor edx, edx
mov qword [rsp + 0x38], rax
mov eax, dword [0x14004b244]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov qword [0x14004b250], rbx
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x14000380d
mov rcx, qword [0x14004b250]
mov edx, 0x416c6374
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000380d
mov qword [0x14004b250], rbx
mov eax, 0xc0000001
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140006f10
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000380d
Function at 0x14000418c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x14004b280], r14
mov dword [rbp + 0x30], r14d
je 0x1400041ca
test rcx, rcx
je 0x1400042e1
mov eax, dword [0x14004b288]
mov dword [rcx], eax
jmp 0x1400042e1
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
test rdx, rdx
je 0x140004210
mov ecx, 0x7fff
mov rax, rdx
mov r8d, 2
cmp word [rax], r14w
je 0x1400041f5
add rax, r8
sub rcx, 1
jne 0x1400041e4
jmp 0x140004210
add cx, cx
mov qword [rbp - 8], rdx
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, r8w
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x1400042ea
mov r8d, dword [rbp + 0x30]
lea r9, [rbp + 0x30]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400042ea
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140007000
mov r8d, dword [rbp + 0x30]
lea r9, [rbp + 0x30]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x1400042d1
mov r8d, dword [rbx]
mov edx, r14d
test r8d, r8d
je 0x1400042d1
lea rcx, [rbx + 0x20]
mov r9, qword [rcx - 8]
cmp rsi, r9
jb 0x14000429b
mov eax, dword [rcx]
add rax, r9
cmp rsi, rax
jb 0x1400042ab
inc edx
add rcx, 0x128
cmp edx, r8d
jae 0x1400042d1
jmp 0x140004288
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x14004b280], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x14004b288], eax
test rdi, rdi
je 0x1400042d1
mov dword [rdi], eax
test rbx, rbx
je 0x1400042e1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x14004b280]
jmp 0x1400042ec
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140005b10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140047180]
xor rax, rsp
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x1400075b0]
mov eax, dword [0x1400075e0]
mov rdi, rcx
movups xmm1, xmmword [0x1400075c0]
mov dword [rsp + 0x70], eax
xor ebp, ebp
movzx eax, word [0x1400075e4]
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
mov rsi, rdx
mov ebx, ebp
movups xmm0, xmmword [0x1400075d0]
mov word [rsp + 0x74], ax
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
call fcn.140004b8c
mov qword [0x14004b2f8], rax
test rax, rax
jne 0x140005b92
mov eax, 0xc0000001
jmp 0x140005cbb
call fcn.140004c98
test al, al
je 0x140005cb9
mov rcx, qword [rdi + 0x28]
lea rdx, [0x140007410]
call fcn.1400044b8
test eax, eax
jns 0x140005bba
mov ebx, 0xc0000182
jmp 0x140005bed
lea rdx, [0x14004b500]
lea rcx, [0x14004b300]
call fcn.140002118
lea r8, [0x140004c00]
mov rdx, rsi
mov rcx, rdi
call fcn.140001c08
call fcn.140002e4c
test al, al
jne 0x140005c11
mov ebx, 0xc0000001
mov rax, qword [0x14004b700]
test rax, rax
je 0x140005cb9
mov rcx, qword [0x14004b700]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140005cb9
call fcn.140001f4c
mov rcx, rax
call fcn.14000678c
test eax, eax
lea rdx, [0x14004b760]
mov rdi, rdx
mov ecx, 0x1000
setns byte [0x140050954]
xor eax, eax
rep stosb byte [rdi], al
mov rdi, qword [rsi + 8]
movzx eax, word [rdi]
lea rdi, [rdi + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140005c3e
mov rcx, rsi
call fcn.140005118
call fcn.1400061e4
lea rax, [0x1400053a0]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
lea rcx, [0x14004b2a0]
mov edi, 0x1fffff
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
lea rax, [0x140004df0]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
lea rcx, [0x14004b298]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006f10
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006548
Capabilities:
Register network filter via wfp api

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x140047180]
xor rax, rsp
mov qword [rbp + 0xe8], rax
xor edx, edx
lea rcx, [rbp + 0x54]
lea r8d, [rdx + 0x54]
call fcn.140007000
mov eax, dword [0x140007700]
lea rdx, [rbp + 0x50]
movups xmm0, xmmword [0x1400083f0]
mov rcx, qword [0x140050948]
xor r9d, r9d
and dword [rbp + 0x70], 0
xor r8d, r8d
mov dword [rbp + 0xb0], eax
movzx eax, word [0x140007704]
mov word [rbp + 0xb4], ax
mov eax, dword [0x140007710]
mov dword [rbp + 0xb8], eax
movzx eax, word [0x140007714]
mov word [rbp + 0xbc], ax
lea rax, [rbp + 0xb0]
movdqu xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0xb8]
movups xmm0, xmmword [0x1400083e0]
mov qword [rbp + 0x68], rax
movdqu xmmword [rbp + 0x90], xmm0
call sub.fwpkclnt.sys_FwpmCalloutAdd0
mov ebx, eax
test eax, eax
je 0x140006615
mov rcx, qword [0x140050948]
call sub.fwpkclnt.sys_FwpmTransactionAbort0
mov eax, ebx
jmp 0x140006769
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x44]
call fcn.140007000
mov eax, dword [0x140007720]
lea rdx, [rsp + 0x30]
movups xmm0, xmmword [0x140008400]
mov rcx, qword [0x140050948]
xor r8d, r8d
and dword [rsp + 0x50], 0
mov dword [rbp + 0xc0], eax
movzx eax, word [0x140007724]
mov word [rbp + 0xc4], ax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x40], rax
movabs rax, 0x7200660073
mov qword [rbp + 0xe0], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x48], rax
mov eax, 0xffff
mov word [rsp + 0x70], ax
movdqu xmmword [rsp + 0x30], xmm0
call sub.fwpkclnt.sys_FwpmSubLayerAdd0
mov ebx, eax
test eax, eax
jne 0x140006602
or qword [rsp + 0x20], 0xffffffffffffffff
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0xc8
call fcn.140007000
movzx eax, word [0x140007738]
lea r9, [0x140050958]
movsd xmm0, qword [0x140007730]
lea rdx, [rbp - 0x80]
movups xmm1, xmmword [0x1400083f0]
mov rcx, qword [0x140050948]
xor r8d, r8d
and dword [rbp - 0x10], ebx
mov word [rbp + 0xd8], ax
lea rax, [rbp + 0xd0]
mov qword [rbp - 0x70], rax
mov eax, dword [0x140007710]
mov dword [rbp + 0xc8], eax
movzx eax, word [0x140007714]
movsd qword [rbp + 0xd0], xmm0
movups xmm0, xmmword [0x140008400]
mov word [rbp + 0xcc], ax
lea rax, [rbp + 0xc8]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x20]
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x18], rax
movups xmm0, xmmword [0x1400083e0]
mov dword [rbp], 0x5003
mov dword [rbp - 0x20], 4
movdqu xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp + 4], xmm1
call sub.fwpkclnt.sys_FwpmFilterAdd0
mov ebx, eax
test eax, eax
jne 0x140006602
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.140006f10
mov rbx, qword [rsp + 0x200]
add rsp, 0x1f0
pop rbp
ret
Function at 0x140006850
Capabilities:
Delete network filter via wfp api

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140050948]
test rcx, rcx
je 0x1400068a0
mov rdx, qword [0x140050958]
test rdx, rdx
je 0x140006871
call sub.fwpkclnt.sys_FwpmFilterDeleteById0
mov rcx, qword [0x140050948]
lea rdx, [0x140008400]
call sub.fwpkclnt.sys_FwpmSubLayerDeleteByKey0
mov ecx, dword [0x140050950]
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov rcx, qword [0x140050948]
test rcx, rcx
je 0x1400068a0
call sub.fwpkclnt.sys_FwpmEngineClose0
add rsp, 0x28
ret

Function at 0x140006bdc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x18]
mov dword [rbp + 0x28], edi
mov qword [rbp - 0x20], rdi
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140006b80
test eax, eax
js 0x140006cae
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000034
je 0x140006c9d
cmp dword [rbp + 0x28], edi
je 0x140006c9d
mov edx, dword [rbp + 0x28]
lea ecx, [rdi + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
je 0x140006c9d
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140006c9d
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
mov eax, dword [rbp + 0x28]
lea rdx, [rbp - 0x18]
mov r9, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140006c9d
mov qword [rsi], rbx
jmp 0x140006ca2
mov edi, 0xc0000001
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x140002d30
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x140029008]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp qword [0x14002ac78], 0
lea rax, [rbp + 0x1f]
mov rbx, qword [rcx + 8]
mov rdi, rcx
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x69], 0x10
mov dword [rbp - 0x65], 0x10
je 0x140002f33
cmp dword [0x14002ac70], 0
je 0x140002f33
cmp dword [rcx], 0x14
jb 0x140002f23
test rbx, rbx
je 0x140002f23
lea rcx, [rbp - 0x39]
mov qword [rsp + 0x110], r14
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [0x14002ac70]
lea rcx, [rbp - 0x39]
mov rdx, qword [0x14002ac78]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x10
lea rcx, [rbp - 0x39]
mov rdx, rbx
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [rdi]
lea r14, [rbx + 0x10]
sub eax, 0x10
mov qword [rbp - 0x51], r14
lea rdx, [rbp - 0x69]
mov dword [rbp - 0x55], eax
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x59], eax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x140002f13
mov qword [rsp + 0x108], rsi
lea rdx, [rbp - 0x79]
mov esi, dword [rdi]
mov ecx, 0xffffff7c
sub esi, 0x14
mov qword [rsp + 0x118], r15
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x140002f05
mov rax, qword [rbp - 0x79]
lea rdx, [rbp - 0x71]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x140002f05
mov rax, qword [rbp - 0x79]
lea r15, [rbx + 0x14]
mov rcx, qword [rbp - 0x71]
mov r8, r15
mov edx, esi
call qword [rax + 0x18]
mov rax, qword [rbp - 0x79]
lea rdx, [rbp - 0x49]
mov rcx, qword [rbp - 0x71]
call qword [rax + 0x20]
mov rdx, qword [rbp - 0x79]
lea rcx, [rbp - 0x71]
mov ebx, eax
call qword [rdx + 0x28]
test ebx, ebx
js 0x140002f05
mov r8d, dword [r14]
mov edx, dword [rbp - 0x49]
cmp edx, r8d
jne 0x140002ec8
mov r14, qword [rdi + 8]
mov ecx, 0x40
mov edx, esi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi + 8], rax
test rax, rax
je 0x140002ed4
mov r8d, ebx
mov rdx, r15
mov rcx, rax
call fcn.140005640
mov rcx, r14
mov dword [rdi], esi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x140002ed6
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.140003220
xor eax, eax
mov rsi, qword [rsp + 0x108]
mov r15, qword [rsp + 0x118]
mov r14, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140003770
add rsp, 0xe0
pop rdi
pop rbx
pop rbp
ret
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_Unable_to_calculate_CRC32_n
call fcn.140003220
jmp 0x140002ed4
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_RtlEncryptDecryptRC4_n
call fcn.140003220
xor eax, eax
jmp 0x140002ee6
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_No_valid_data_n
call fcn.140003220
xor eax, eax
jmp 0x140002eee
lea rcx, str._x__ProcessGetNCChangesReply_decrypt:_No_Session_Key_n
call fcn.140003220
xor eax, eax
jmp 0x140002eee
Function at 0x140003330
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140029008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rsp + 0xb0]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
xor ebx, ebx
lea rax, [rsp + 0x40]
mov rdi, rdx
mov qword [rsp + 0x28], rax
mov rsi, r8
mov qword [rsp + 0x20], rbx
mov rbp, rcx
mov dword [rsp + 0x44], ebx
mov rdx, rcx
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140003420
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003420
mov edx, dword [rsp + 0x44]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140003420
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140003414
mov r8, qword [rdi]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x30], rdx
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov rcx, r14
mov qword [rsp + 0x28], rdx
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test eax, eax
jne 0x140003422
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003770
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000d250
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d040
Function at 0x140013354
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 0x140013384
xor eax, eax
jmp 0x140013447
mov rbp, rbx
cmp word [rax], si
je 0x1400133a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013390
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001338c
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.1400132a4
movsxd r14, eax
test eax, eax
jne 0x1400133e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001337d
mov rcx, r14
call fcn.14001023c
mov rdi, rax
test rax, rax
jne 0x140013400
xor ecx, ecx
call fcn.14000eab8
jmp 0x1400133dc
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.1400132a4
test eax, eax
jne 0x140013431
mov rcx, rdi
call fcn.14000eab8
jmp 0x14001343b
xor ecx, ecx
call fcn.14000eab8
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 0x140017e1c
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.140007540
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140017ea6
cmp byte [rbp - 0x21], r15b
je 0x140017ea1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017edc
call fcn.14000ed0c
test eax, eax
jne 0x140017ec8
cmp byte [rbp - 0x21], r15b
je 0x140017ec0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017edc
cmp byte [rbp - 0x21], r15b
je 0x140017ed9
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.140011a20
test eax, eax
jne 0x140017f7c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007540
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017f1b
cmp byte [rbp - 0x21], r15b
je 0x140017f50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140017f50
call fcn.14000ed0c
test eax, eax
jne 0x140017f3c
cmp byte [rbp - 0x21], r15b
je 0x140017f35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140017f50
cmp byte [rbp - 0x21], r15b
je 0x140017f4d
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.140011a20
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017f7c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140017f7f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017f8d
mov rcx, rdi
call fcn.14000eab8
cmp byte [rbp + 0x3f], r15b
je 0x140017f9c
mov rcx, qword [rbp + 0x27]
call fcn.14000eab8
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 0x14001137a
Capabilities:
Terminate process

Disassembly:
jmp 0x1400180d0
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 0x14001146a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019420
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019440
xor al, al
jmp 0x1400194c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019453
xor al, al
jmp 0x1400194c1
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 0x14001947d
xor al, al
jmp 0x1400194c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019491
xor al, al
jmp 0x1400194c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400194a3
xor al, al
jmp 0x1400194c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400194bf
xor al, al
jmp 0x1400194c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140017220
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011681
movzx eax, al
test eax, eax
jne 0x140017240
mov ecx, 7
call fcn.140011541
nop
mov byte [rsp + 0x20], 0
call fcn.140011582
mov byte [rsp + 0x21], al
cmp dword [0x140024b78], 1
jne 0x140017264
mov ecx, 7
call fcn.140011541
nop
jmp 0x1400172bc
cmp dword [0x140024b78], 0
jne 0x1400172b7
mov dword [0x140024b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.1400112e4
test eax, eax
je 0x140017298
mov eax, 0xff
jmp 0x1400173c1
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011564
mov dword [0x140024b78], 2
jmp 0x1400172bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011528
call fcn.140011492
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140017319
mov rcx, qword [rsp + 0x30]
call fcn.140011258
movzx eax, al
test eax, eax
je 0x140017319
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 [0x14002b020]
nop
call fcn.1400114d8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001734d
mov rcx, qword [rsp + 0x38]
call fcn.140011258
movzx eax, al
test eax, eax
je 0x14001734d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011627
nop
call fcn.140017470
mov dword [rsp + 0x28], eax
call fcn.14001146a
movzx eax, al
test eax, eax
jne 0x14001736c
mov ecx, dword [rsp + 0x28]
call fcn.140011078
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001737b
call fcn.140011636
nop
xor edx, edx
mov cl, 1
call fcn.140011230
mov eax, dword [rsp + 0x28]
jmp 0x1400173c1
add rsp, 0x68
ret