joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eac52
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x14013bbe0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4c8]
mov rax, qword [0x140356040]
xor rax, rbp
mov qword [rbp + 0x460], rax
lea rcx, [0x1403753c8]
call fcn.1400ef22f
nop
mov qword [rbp + 8], 0x2000
mov rcx, qword [rbp + 8]
call fcn.1400eca34
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14013bc79
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x490]
call fcn.1400ef31f
test eax, eax
jne 0x14013bc97
lea rcx, str.EnumProcessModulesEx_failed
call fcn.1400ed0ba
nop
mov rcx, qword [rbp + 0x28]
call fcn.1400eb2dd
nop
xor eax, eax
jmp 0x14013bda7
mov dword [rbp + 0x64], 0
jmp 0x14013bca8
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
movsxd rax, dword [rbp + 0x64]
mov qword [rbp + 0x458], rax
mov ecx, dword [rbp + 0x44]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rbp + 0x458]
cmp rcx, rax
jae 0x14013bd9b
movsxd rax, dword [rbp + 0x64]
mov r9d, 0x104
lea r8, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rbp + 0x490]
call fcn.1400ef86a
test eax, eax
jne 0x14013bd0a
lea rcx, str.GetModuleBaseName_failed
call fcn.1400ed0ba
nop
jmp 0x14013bca0
mov rdx, qword [rbp + 0x498]
lea rcx, [rbp + 0x90]
call fcn.1400eeff0
test eax, eax
jne 0x14013bd96
movsxd rax, dword [rbp + 0x64]
mov r9d, 0x18
lea r8, [rbp + 0x2b8]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rbp + 0x490]
call fcn.1400eab44
test eax, eax
jne 0x14013bd65
lea rcx, str.GetModuleInformation_failed
call fcn.1400ed0ba
nop
mov rcx, qword [rbp + 0x28]
call fcn.1400eb2dd
nop
xor eax, eax
jmp 0x14013bda7
mov rax, qword [rbp + 0x4a0]
mov rcx, qword [rbp + 0x2b8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x4a8]
mov ecx, dword [rbp + 0x2c0]
mov dword [rax], ecx
mov rcx, qword [rbp + 0x28]
call fcn.1400eb2dd
nop
mov eax, 1
jmp 0x14013bda7
jmp 0x14013bca0
mov rcx, qword [rbp + 0x28]
call fcn.1400eb2dd
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402e2fd0]
call fcn.1400ee136
mov rax, rdi
mov rcx, qword [rbp + 0x460]
xor rcx, rbp
call fcn.1400ebf3f
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret
Function at 0x1400ebbf2
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401e10c0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401e10dd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401e1138
test al, 7
jne 0x1401e10d0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401e10f1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401e1162
test dh, dh
je 0x1401e115c
shr rdx, 0x10
test dl, dl
je 0x1401e1156
test dh, dh
je 0x1401e1150
shr rdx, 0x10
test dl, dl
je 0x1401e114a
test dh, dh
je 0x1401e1144
shr edx, 0x10
test dl, dl
je 0x1401e113e
test dh, dh
jne 0x1401e10f1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400ebc2e
Capabilities:
Query environment variable

Disassembly:
jmp 0x14029b2e0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14029ae60
lea rcx, [rsp + 0x20]
call fcn.14029aeb0
movzx eax, al
test eax, eax
jne 0x14029b325
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14029ae90
mov rax, qword [rsp + 0x40]
jmp 0x14029b41f
lea rcx, [rsp + 0x20]
call fcn.14029afb0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14029af50
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400ec057
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400eb486
lea rcx, [rsp + 0x28]
call fcn.1400ec5fc
movzx eax, al
test eax, eax
jne 0x14029b3bf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400ede7f
lea rcx, [rsp + 0x20]
call fcn.14029ae90
mov rax, qword [rsp + 0x50]
jmp 0x14029b41f
lea rcx, [rsp + 0x20]
call fcn.14029afb0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400ef108
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400ebf62
lea rcx, [rsp + 0x28]
call fcn.1400efc98
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400ede7f
lea rcx, [rsp + 0x20]
call fcn.14029ae90
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400ebe90
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14013b420
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xa58
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1ce
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa78]
mov rax, qword [0x140356040]
xor rax, rbp
mov qword [rbp + 0xa28], rax
lea rcx, [0x1403753c8]
call fcn.1400ef22f
nop
xor edx, edx
mov ecx, 2
call fcn.1400ebe7c
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14013b493
lea rcx, str.CreateToolhelp32Snapshot_failed
call fcn.1400ed0ba
nop
jmp 0x14013b5f3
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400ecb10
test eax, eax
jne 0x14013b4c8
lea rcx, str.Process32First_failed
call fcn.1400ed0ba
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14013b5f3
lea rax, str.__utility_sub_typenetwork.mojom.NetworkService
mov qword [rbp + 0x288], rax
mov rdx, qword [rbp + 0xa50]
lea rcx, [rbp + 0x5c]
call fcn.1400ebfee
test eax, eax
jne 0x14013b5d3
lea rax, [rbp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x430
rep stosb byte [rdi], al
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x6f8], rax
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rbp + 0x6f8]
call fcn.1400eb46d
test eax, eax
je 0x14013b5c5
mov qword [rbp + 0x718], 0
lea r8, [rbp + 0x718]
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rbp + 0x6f8]
call fcn.1400eb378
test eax, eax
je 0x14013b5b8
lea rax, [rbp + 0x718]
test rax, rax
je 0x14013b5b8
mov rdx, qword [rbp + 0x288]
mov rcx, qword [rbp + 0x718]
call fcn.1400e9e4c
test rax, rax
je 0x14013b5b8
mov edx, dword [rbp + 0x38]
lea rcx, str.___Found_browser_process:__d_n
call fcn.1400ebe54
nop
lea rcx, str.____Process_owner:
call fcn.1400ebe54
nop
mov rcx, qword [rbp + 0x6f8]
call fcn.1400eb14d
nop
lea rcx, [0x1402e3498]
call fcn.1400ebe54
nop
mov rcx, qword [rbp + 0x718]
call fcn.1400eb2dd
nop
mov rcx, qword [rbp + 0x6f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400ee3f7
test eax, eax
jne 0x14013b4d6
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x1402e2ea0]
call fcn.1400ee136
mov rcx, qword [rbp + 0xa28]
xor rcx, rbp
call fcn.1400ebf3f
lea rsp, [rbp + 0xa38]
pop rdi
pop rbp
ret
Function at 0x1400ec223
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401de5a0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401ddf20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401de5df
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140376020]
jmp 0x1401de5e9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400ec502
Capabilities:
Query environment variable

Disassembly:
jmp 0x14029b030
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14029ae60
lea rcx, [rsp + 0x40]
call fcn.14029afe0
movzx eax, al
test eax, eax
jne 0x14029b078
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14029ae90
mov rax, qword [rsp + 0x70]
jmp 0x14029b249
lea rcx, [rsp + 0x40]
call fcn.14029afb0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14029af50
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14029afb0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400eda06
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14029b11e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14029ae90
mov rax, qword [rsp + 0x80]
jmp 0x14029b249
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400ec057
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400ebdcd
lea rcx, [rsp + 0x48]
call fcn.1400eb701
movzx eax, al
test eax, eax
jne 0x14029b185
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400e9f2d
lea rcx, [rsp + 0x40]
call fcn.14029ae90
mov rax, qword [rsp + 0x88]
jmp 0x14029b249
lea rcx, [rsp + 0x48]
call fcn.1400ecaf2
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14029afb0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400eda06
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14029b21b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400e9f2d
lea rcx, [rsp + 0x40]
call fcn.14029ae90
mov rax, qword [rsp + 0xa0]
jmp 0x14029b249
lea rcx, [rsp + 0x48]
call fcn.1400ebd78
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400e9f2d
lea rcx, [rsp + 0x40]
call fcn.14029ae90
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400ec520
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401de4d0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401ddea0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401de511
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140376020]
jmp 0x1401de517
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400ec606
Capabilities:
Get geographical location

Disassembly:
jmp 0x140283250
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140282180
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402832b7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140376030]
jmp 0x1402832d9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400eb666
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400ec624
Capabilities:
Terminate process

Disassembly:
jmp 0x1401bb9d0
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 0x1400eca7a
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402a8890
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140356040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402a88b6
jmp 0x1402a8933
mov rcx, qword [rbp + 0x30]
call fcn.1400ebbf2
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402a88cf
jmp 0x1402a8933
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402a88ec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ea1a8
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400ea905
test eax, eax
jne 0x1402a8933
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400ebf3f
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400ecf61
Capabilities:
Set environment variable

Disassembly:
jmp 0x14029d190
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400ed362
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401bcf30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401bcf50
xor al, al
jmp 0x1401bcfd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401bcf63
xor al, al
jmp 0x1401bcfd1
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 0x1401bcf8d
xor al, al
jmp 0x1401bcfd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401bcfa1
xor al, al
jmp 0x1401bcfd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401bcfb3
xor al, al
jmp 0x1401bcfd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401bcfcf
xor al, al
jmp 0x1401bcfd1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400edd21
Capabilities:
Terminate process

Disassembly:
jmp 0x1401df590
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401df5be
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400eeb1d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400eebb8
Capabilities:
Print debug messages

Disassembly:
jmp 0x14027f6c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400eed3e
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401de610
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401ddf60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401de659
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140376020]
jmp 0x1401de668
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400eee8d
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402b7680
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400eb427
lea rcx, [rsp + 0x48]
call fcn.1400eb427
call fcn.1400ec453
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400eb03f
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402b76ef
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400eba5d
lea rcx, [rsp + 0x78]
call fcn.1400eba5d
mov eax, dword [rsp + 0x24]
jmp 0x1402b7780
call fcn.1400ec453
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400eb03f
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1402b7736
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400eba5d
lea rcx, [rsp + 0x78]
call fcn.1400eba5d
mov eax, dword [rsp + 0x2c]
jmp 0x1402b7780
lea rcx, [rsp + 0x48]
call fcn.1400eb319
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400eb319
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400eba5d
lea rcx, [rsp + 0x78]
call fcn.1400eba5d
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1402aab40
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400ea1a8
sub rsp, rax
mov rax, qword [0x140356040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14035aaf0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402aad32
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1402aac86
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402aac86
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1402aac6b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402aac08
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402aacf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402aad51
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1402aad2d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402aad51
jmp 0x1402aabde
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400ebf3f
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1402aae00
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400ea1a8
sub rsp, rax
mov rax, qword [0x140356040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14035aaf0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402ab00d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1402aaf59
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402aaf59
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1402aaf39
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1402aaec8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402aafcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402ab02c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1402ab008
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402ab02c
jmp 0x1402aae9e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400ebf3f
add rsp, 0x1498
pop rdi
pop rsi
ret