joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002914
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a67a0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400a65d0
lea rcx, [rsp + 0x40]
call fcn.1400a6750
movzx eax, al
test eax, eax
jne 0x1400a67e8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0x70]
jmp 0x1400a69b9
lea rcx, [rsp + 0x40]
call fcn.1400a6720
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400a66c0
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.1400a6720
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.1400032c4
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400a688e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0x80]
jmp 0x1400a69b9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400026e4
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400025d6
lea rcx, [rsp + 0x48]
call fcn.1400022d9
movzx eax, al
test eax, eax
jne 0x1400a68f5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001730
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0x88]
jmp 0x1400a69b9
lea rcx, [rsp + 0x48]
call fcn.140002bad
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400a6720
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.1400032c4
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400a698b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001730
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0xa0]
jmp 0x1400a69b9
lea rcx, [rsp + 0x48]
call fcn.1400025b3
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001730
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x14000291e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140021d20
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400216f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140021d61
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 [0x14012b020]
jmp 0x140021d67
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400029a0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400b4410
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.1400b3340
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400b4477
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 [0x14012b030]
jmp 0x1400b4499
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140002289
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 0x1400029af
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1400c0b60
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14011b080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400c0b86
jmp 0x1400c0c03
mov rcx, qword [rbp + 0x30]
call fcn.1400024dc
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400c0b9f
jmp 0x1400c0c03
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400c0bbc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001870
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.140001c12
test eax, eax
jne 0x1400c0c03
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140002676
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140002c7a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400dda30
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400dda54
xor eax, eax
jmp 0x1400ddaa2
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x1400dda7c
xor eax, eax
jmp 0x1400ddaa2
mov rax, qword [rsp + 8]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x20b
je 0x1400dda9d
xor eax, eax
jmp 0x1400ddaa2
mov eax, 1
add rsp, 0x28
ret

Function at 0x140002dd8
Capabilities:
Set environment variable

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

Disassembly:
jmp 0x140008a60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140008a80
xor al, al
jmp 0x140008b01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140008a93
xor al, al
jmp 0x140008b01
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 0x140008abd
xor al, al
jmp 0x140008b01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140008ad1
xor al, al
jmp 0x140008b01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140008ae3
xor al, al
jmp 0x140008b01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140008aff
xor al, al
jmp 0x140008b01
mov al, 1
add rsp, 0x38
ret
Function at 0x14000323d
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400dd8a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
jmp 0x1400dd8fe
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x1400dd93d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x38], rax
jb 0x1400dd93b
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x38], rax
jae 0x1400dd93b
mov rax, qword [rsp + 8]
jmp 0x1400dd93f
jmp 0x1400dd8e8
xor eax, eax
add rsp, 0x28
ret

Function at 0x140003436
Capabilities:
Terminate process

Disassembly:
jmp 0x1400960c0
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 0x1400960ee
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140003ae9
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 0x140003b48
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x140021e60
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400217b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140021ea9
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 [0x14012b020]
jmp 0x140021eb8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140003c7e
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400c3a10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14000217b
lea rcx, [rsp + 0x48]
call fcn.14000217b
call fcn.1400028c4
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140001fc8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400c3a7f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140002419
lea rcx, [rsp + 0x78]
call fcn.140002419
mov eax, dword [rsp + 0x24]
jmp 0x1400c3b10
call fcn.1400028c4
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140001fc8
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400c3ac6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140002419
lea rcx, [rsp + 0x78]
call fcn.140002419
mov eax, dword [rsp + 0x2c]
jmp 0x1400c3b10
lea rcx, [rsp + 0x48]
call fcn.14000210d
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14000210d
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.140002419
lea rcx, [rsp + 0x78]
call fcn.140002419
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140021df0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140021df0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140021770
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140021e2f
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 [0x14012b020]
jmp 0x140021e39
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14009d150
Capabilities:
Print debug messages

Disassembly:
jmp 0x14009d150
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 0x1400a67a0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a67a0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400a65d0
lea rcx, [rsp + 0x40]
call fcn.1400a6750
movzx eax, al
test eax, eax
jne 0x1400a67e8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0x70]
jmp 0x1400a69b9
lea rcx, [rsp + 0x40]
call fcn.1400a6720
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400a66c0
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.1400a6720
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.1400032c4
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400a688e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0x80]
jmp 0x1400a69b9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400026e4
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400025d6
lea rcx, [rsp + 0x48]
call fcn.1400022d9
movzx eax, al
test eax, eax
jne 0x1400a68f5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001730
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0x88]
jmp 0x1400a69b9
lea rcx, [rsp + 0x48]
call fcn.140002bad
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400a6720
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.1400032c4
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400a698b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001730
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0xa0]
jmp 0x1400a69b9
lea rcx, [rsp + 0x48]
call fcn.1400025b3
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001730
lea rcx, [rsp + 0x40]
call fcn.1400a6600
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400a6a50
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a6a50
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400a65d0
lea rcx, [rsp + 0x20]
call fcn.1400a6620
movzx eax, al
test eax, eax
jne 0x1400a6a95
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400a6600
mov rax, qword [rsp + 0x40]
jmp 0x1400a6b8f
lea rcx, [rsp + 0x20]
call fcn.1400a6720
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400a66c0
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.1400026e4
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400021a3
lea rcx, [rsp + 0x28]
call fcn.140002996
movzx eax, al
test eax, eax
jne 0x1400a6b2f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400034d6
lea rcx, [rsp + 0x20]
call fcn.1400a6600
mov rax, qword [rsp + 0x50]
jmp 0x1400a6b8f
lea rcx, [rsp + 0x20]
call fcn.1400a6720
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140003dd7
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.14000267b
lea rcx, [rsp + 0x28]
call fcn.1400042d2
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400034d6
lea rcx, [rsp + 0x20]
call fcn.1400a6600
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400a8900
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400a8900
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 0x1400b4410
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400b4410
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.1400b3340
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400b4477
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 [0x14012b030]
jmp 0x1400b4499
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140002289
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 0x1400c3a10
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400c3a10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14000217b
lea rcx, [rsp + 0x48]
call fcn.14000217b
call fcn.1400028c4
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140001fc8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400c3a7f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140002419
lea rcx, [rsp + 0x78]
call fcn.140002419
mov eax, dword [rsp + 0x24]
jmp 0x1400c3b10
call fcn.1400028c4
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140001fc8
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400c3ac6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140002419
lea rcx, [rsp + 0x78]
call fcn.140002419
mov eax, dword [rsp + 0x2c]
jmp 0x1400c3b10
lea rcx, [rsp + 0x48]
call fcn.14000210d
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14000210d
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.140002419
lea rcx, [rsp + 0x78]
call fcn.140002419
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400d1730
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.140001870
sub rsp, rax
mov rax, qword [0x14011b080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14011dba0]
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 0x1400d1922
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 0x1400d1876
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400d1876
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 0x1400d185b
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 0x1400d17f8
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 0x1400d18e2
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 0x1400d1941
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 0x1400d191d
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 0x1400d1941
jmp 0x1400d17ce
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.140002676
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400d19f0
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.140001870
sub rsp, rax
mov rax, qword [0x14011b080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14011dba0]
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 0x1400d1bfd
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 0x1400d1b49
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400d1b49
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 0x1400d1b29
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 0x1400d1ab8
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 0x1400d1bbd
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 0x1400d1c1c
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 0x1400d1bf8
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 0x1400d1c1c
jmp 0x1400d1a8e
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.140002676
add rsp, 0x1498
pop rdi
pop rsi
ret