joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dd16c
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14012ccd0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
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 [0x14032f080]
xor rax, rbp
mov qword [rbp + 0xa28], rax
lea rcx, [0x14034d3c2]
call fcn.1400e2180
xor edx, edx
mov ecx, 2
call fcn.1400dee81
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14012cd4d
lea rcx, str.CreateToolhelp32Snapshot_failed
call fcn.1400e006f
xor eax, eax
jmp 0x14012ceea
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400dfad9
test eax, eax
jne 0x14012cd82
lea rcx, str.Process32First_failed
call fcn.1400e006f
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14012ceea
lea rax, str.__utility_sub_typenetwork.mojom.NetworkService
mov qword [rbp + 0x288], rax
mov rdx, qword [rbp + 0xa50]
lea rcx, [rbp + 0x5c]
call fcn.1400defe9
test eax, eax
jne 0x14012cec9
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.1400de445
test eax, eax
je 0x14012cebc
mov qword [rbp + 0x718], 0
lea r8, [rbp + 0x718]
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rbp + 0x6f8]
call fcn.1400de355
test eax, eax
je 0x14012cebc
lea rax, [rbp + 0x718]
test rax, rax
je 0x14012cebc
mov rdx, qword [rbp + 0x288]
mov rcx, qword [rbp + 0x718]
call fcn.1400dce3d
test rax, rax
je 0x14012ceb0
mov edx, dword [rbp + 0x38]
lea rcx, str.___Found_browser_process:__d_n
call fcn.1400dee54
lea rcx, str.____Process_owner:
call fcn.1400dee54
mov rcx, qword [rbp + 0x6f8]
call fcn.1400de12f
lea rcx, [0x1402bd008]
call fcn.1400dee54
mov rax, qword [rbp + 0xa58]
mov ecx, dword [rbp + 0x38]
mov dword [rax], ecx
mov rax, qword [rbp + 0xa60]
mov rcx, qword [rbp + 0x6f8]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x718]
call fcn.1400de2bf
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14012ceea
mov rcx, qword [rbp + 0x718]
call fcn.1400de2bf
mov rcx, qword [rbp + 0x6f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400e136b
test eax, eax
jne 0x14012cd90
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1402bc8f0]
call fcn.1400e10af
mov rax, rdi
mov rcx, qword [rbp + 0xa28]
xor rcx, rbp
call fcn.1400def3f
lea rsp, [rbp + 0xa38]
pop rdi
pop rbp
ret
Function at 0x1400ddc4d
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x14012d1f0
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 [0x14032f080]
xor rax, rbp
mov qword [rbp + 0x460], rax
lea rcx, [0x14034d3c2]
call fcn.1400e2180
mov qword [rbp + 8], 0x2000
mov rcx, qword [rbp + 8]
call fcn.1400df9fd
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14012d288
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.1400e2270
test eax, eax
jne 0x14012d2a4
lea rcx, str.EnumProcessModulesEx_failed
call fcn.1400e006f
mov rcx, qword [rbp + 0x28]
call fcn.1400de2bf
xor eax, eax
jmp 0x14012d3af
mov dword [rbp + 0x64], 0
jmp 0x14012d2b5
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 0x14012d3a4
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.1400e27b1
test eax, eax
jne 0x14012d316
lea rcx, str.GetModuleBaseName_failed
call fcn.1400e006f
jmp 0x14012d2ad
mov rdx, qword [rbp + 0x498]
lea rcx, [rbp + 0x90]
call fcn.1400e1f46
test eax, eax
jne 0x14012d39f
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.1400ddb44
test eax, eax
jne 0x14012d36f
lea rcx, str.GetModuleInformation_failed
call fcn.1400e006f
mov rcx, qword [rbp + 0x28]
call fcn.1400de2bf
xor eax, eax
jmp 0x14012d3af
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.1400de2bf
mov eax, 1
jmp 0x14012d3af
jmp 0x14012d2ad
mov rcx, qword [rbp + 0x28]
call fcn.1400de2bf
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402bcb40]
call fcn.1400e10af
mov rax, rdi
mov rcx, qword [rbp + 0x460]
xor rcx, rbp
call fcn.1400def3f
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret
Function at 0x1400debfc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401bb1d0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401bb1ed
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401bb248
test al, 7
jne 0x1401bb1e0
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 0x1401bb201
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401bb272
test dh, dh
je 0x1401bb26c
shr rdx, 0x10
test dl, dl
je 0x1401bb266
test dh, dh
je 0x1401bb260
shr rdx, 0x10
test dl, dl
je 0x1401bb25a
test dh, dh
je 0x1401bb254
shr edx, 0x10
test dl, dl
je 0x1401bb24e
test dh, dh
jne 0x1401bb201
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 0x1400dec33
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402753f0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140274f70
lea rcx, [rsp + 0x20]
call fcn.140274fc0
movzx eax, al
test eax, eax
jne 0x140275435
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140274fa0
mov rax, qword [rsp + 0x40]
jmp 0x14027552f
lea rcx, [rsp + 0x20]
call fcn.1402750c0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140275060
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.1400df052
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400de45e
lea rcx, [rsp + 0x28]
call fcn.1400df5e3
movzx eax, al
test eax, eax
jne 0x1402754cf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400e0e02
lea rcx, [rsp + 0x20]
call fcn.140274fa0
mov rax, qword [rsp + 0x50]
jmp 0x14027552f
lea rcx, [rsp + 0x20]
call fcn.1402750c0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400e2054
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.1400def62
lea rcx, [rsp + 0x28]
call fcn.1400e2be4
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400e0e02
lea rcx, [rsp + 0x20]
call fcn.140274fa0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400dee95
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14012ca60
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 [0x14032f080]
xor rax, rbp
mov qword [rbp + 0xa28], rax
lea rcx, [0x14034d3c2]
call fcn.1400e2180
xor edx, edx
mov ecx, 2
call fcn.1400dee81
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14012cad1
lea rcx, str.CreateToolhelp32Snapshot_failed
call fcn.1400e006f
jmp 0x14012cc28
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400dfad9
test eax, eax
jne 0x14012cb04
lea rcx, str.Process32First_failed
call fcn.1400e006f
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14012cc28
lea rax, str.__utility_sub_typenetwork.mojom.NetworkService
mov qword [rbp + 0x288], rax
mov rdx, qword [rbp + 0xa50]
lea rcx, [rbp + 0x5c]
call fcn.1400defe9
test eax, eax
jne 0x14012cc09
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.1400de445
test eax, eax
je 0x14012cbfc
mov qword [rbp + 0x718], 0
lea r8, [rbp + 0x718]
lea rdx, [rbp + 0x2b0]
mov rcx, qword [rbp + 0x6f8]
call fcn.1400de355
test eax, eax
je 0x14012cbf0
lea rax, [rbp + 0x718]
test rax, rax
je 0x14012cbf0
mov rdx, qword [rbp + 0x288]
mov rcx, qword [rbp + 0x718]
call fcn.1400dce3d
test rax, rax
je 0x14012cbf0
mov edx, dword [rbp + 0x38]
lea rcx, str.___Found_browser_process:__d_n
call fcn.1400dee54
lea rcx, str.____Process_owner:
call fcn.1400dee54
mov rcx, qword [rbp + 0x6f8]
call fcn.1400de12f
lea rcx, [0x1402bd008]
call fcn.1400dee54
mov rcx, qword [rbp + 0x718]
call fcn.1400de2bf
mov rcx, qword [rbp + 0x6f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400e136b
test eax, eax
jne 0x14012cb12
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
lea rdx, [0x1402bca10]
call fcn.1400e10af
mov rcx, qword [rbp + 0xa28]
xor rcx, rbp
call fcn.1400def3f
lea rsp, [rbp + 0xa38]
pop rdi
pop rbp
ret
Function at 0x1400df223
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401b83b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401b7d30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401b83ef
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 [0x14034e020]
jmp 0x1401b83f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400df4e9
Capabilities:
Query environment variable

Disassembly:
jmp 0x140275140
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140274f70
lea rcx, [rsp + 0x40]
call fcn.1402750f0
movzx eax, al
test eax, eax
jne 0x140275188
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140274fa0
mov rax, qword [rsp + 0x70]
jmp 0x140275359
lea rcx, [rsp + 0x40]
call fcn.1402750c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140275060
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.1402750c0
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.1400e0984
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14027522e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140274fa0
mov rax, qword [rsp + 0x80]
jmp 0x140275359
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400df052
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400dedd2
lea rcx, [rsp + 0x48]
call fcn.1400de6e3
movzx eax, al
test eax, eax
jne 0x140275295
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400dcf19
lea rcx, [rsp + 0x40]
call fcn.140274fa0
mov rax, qword [rsp + 0x88]
jmp 0x140275359
lea rcx, [rsp + 0x48]
call fcn.1400dfabb
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402750c0
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.1400e0984
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14027532b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400dcf19
lea rcx, [rsp + 0x40]
call fcn.140274fa0
mov rax, qword [rsp + 0xa0]
jmp 0x140275359
lea rcx, [rsp + 0x48]
call fcn.1400ded7d
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400dcf19
lea rcx, [rsp + 0x40]
call fcn.140274fa0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400df507
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401b82e0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401b7cb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401b8321
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 [0x14034e020]
jmp 0x1401b8327
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400df5ed
Capabilities:
Get geographical location

Disassembly:
jmp 0x14025d360
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.14025c290
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14025d3c7
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 [0x14034e030]
jmp 0x14025d3e9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400de643
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 0x1400df60b
Capabilities:
Terminate process

Disassembly:
jmp 0x1401949c0
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]
add rsp, 0x28
ret
Function at 0x1400dfa43
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402829a0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14032f080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402829c6
jmp 0x140282a43
mov rcx, qword [rbp + 0x30]
call fcn.1400debfc
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402829df
jmp 0x140282a43
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402829fc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400dd194
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.1400dd900
test eax, eax
jne 0x140282a43
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400def3f
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400dff16
Capabilities:
Set environment variable

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

Disassembly:
jmp 0x140195f00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140195f20
xor al, al
jmp 0x140195fa1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140195f33
xor al, al
jmp 0x140195fa1
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 0x140195f5d
xor al, al
jmp 0x140195fa1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140195f71
xor al, al
jmp 0x140195fa1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140195f83
xor al, al
jmp 0x140195fa1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140195f9f
xor al, al
jmp 0x140195fa1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400e0c9f
Capabilities:
Terminate process

Disassembly:
jmp 0x1401b96a0
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 0x1401b96ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400e1a78
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 0x1400e1b13
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402597d0
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 0x1400e1c8f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401b8420
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401b7d70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401b8469
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 [0x14034e020]
jmp 0x1401b8478
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400e1de3
Capabilities:
Set environment variable

Disassembly:
jmp 0x140291790
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400de3ff
lea rcx, [rsp + 0x48]
call fcn.1400de3ff
call fcn.1400df453
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400de021
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402917ff
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400dea62
lea rcx, [rsp + 0x78]
call fcn.1400dea62
mov eax, dword [rsp + 0x24]
jmp 0x140291890
call fcn.1400df453
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400de021
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140291846
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400dea62
lea rcx, [rsp + 0x78]
call fcn.1400dea62
mov eax, dword [rsp + 0x2c]
jmp 0x140291890
lea rcx, [rsp + 0x48]
call fcn.1400de2fb
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400de2fb
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.1400dea62
lea rcx, [rsp + 0x78]
call fcn.1400dea62
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140284c50
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.1400dd194
sub rsp, rax
mov rax, qword [0x14032f080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140333af0]
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 0x140284e42
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 0x140284d96
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140284d96
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 0x140284d7b
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 0x140284d18
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 0x140284e02
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 0x140284e61
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 0x140284e3d
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 0x140284e61
jmp 0x140284cee
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.1400def3f
add rsp, 0x1498
pop rdi
pop rsi
ret