joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c1a
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400232b0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140022c00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400232f9
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 [0x140189020]
jmp 0x140023308
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140003cb0
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400cfd80
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14000218a
lea rcx, [rsp + 0x48]
call fcn.14000218a
call fcn.1400028e7
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140001fd7
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400cfdef
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140002432
lea rcx, [rsp + 0x78]
call fcn.140002432
mov eax, dword [rsp + 0x24]
jmp 0x1400cfe80
call fcn.1400028e7
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140001fd7
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400cfe36
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140002432
lea rcx, [rsp + 0x78]
call fcn.140002432
mov eax, dword [rsp + 0x2c]
jmp 0x1400cfe80
lea rcx, [rsp + 0x48]
call fcn.14000211c
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14000211c
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.140002432
lea rcx, [rsp + 0x78]
call fcn.140002432
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140007d60
Capabilities:
Create process on windows
Create process suspended

Disassembly:
jmp 0x140007d60
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x7f0
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x158
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x818]
mov rax, qword [0x140177ec0]
xor rax, rbp
mov qword [rbp + 0x798], rax
mov byte [rbp + 0x784], 0
lea rcx, [0x140188168]
call fcn.140003e8b
nop
mov qword [rbp + 0xc8], 0
cmp qword [rbp + 0x7d0], 0
je 0x140007de1
mov rcx, qword [rbp + 0x7d0]
call fcn.1400024f5
test rax, rax
jne 0x140007df3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0xc8], rax
jmp 0x140007eaf
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14000329c
nop
mov dword [rbp + 0x10], 0x68
mov byte [rbp + 0x784], 1
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.14000329c
nop
mov r9, qword [rbp + 0x7d0]
lea r8, [0x1400eb33c]
mov edx, 0x400
lea rcx, [rbp + 0xf0]
call fcn.140001d7a
nop
mov byte [rbp + 0x784], 1
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140007ea1
jmp 0x140007f11
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140007ebb
jmp 0x140007f11
cmp byte [rbp + 0x784], 0
jne 0x140007ed1
lea rcx, [0x1400eb230]
call fcn.140001785
nop
movsxd rax, dword [rbp + 0x7c8]
lea rcx, [rbp + 0x750]
lea rdx, [rbp + 0x98]
mov rdi, rcx
mov rsi, rdx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov r9, rax
mov r8, qword [rbp + 0x7c0]
lea rdx, [rbp + 0x750]
mov rcx, qword [rbp + 0xc8]
call fcn.140001f23
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x1400eb300]
call fcn.14000364d
mov rcx, qword [rbp + 0x798]
xor rcx, rbp
call fcn.140002699
lea rsp, [rbp + 0x7a0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400086a0
Capabilities:
Resume thread

Disassembly:
jmp 0x1400086a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x778]
mov rax, qword [0x140177ec0]
xor rax, rbp
mov qword [rbp + 0x728], rax
lea rcx, [0x1401883c9]
call fcn.140003e8b
nop
mov dword [rbp + 0x40], 0x100002
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x758]
mov rcx, qword [rax + 8]
call sub.ntdll.dll_NtGetContextThread
test eax, eax
je 0x140008715
jmp 0x140008750
mov rax, qword [rbp + 0x760]
mov qword [rbp + 0x90], rax
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x758]
mov rcx, qword [rax + 8]
call sub.ntdll.dll_NtSetContextThread
test eax, eax
je 0x14000873d
jmp 0x140008750
xor edx, edx
mov rax, qword [rbp + 0x758]
mov rcx, qword [rax + 8]
call sub.ntdll.dll_NtResumeThread
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x1400eb600]
call fcn.14000364d
mov rcx, qword [rbp + 0x728]
xor rcx, rbp
call fcn.140002699
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret
Function at 0x140023240
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140023240
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140022bc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002327f
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 [0x140189020]
jmp 0x140023289
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14009ce20
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009ce20
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.14009bd50
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14009ce87
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 [0x140189030]
jmp 0x14009cea9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14000229d
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 0x1400a8ad0
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x1400b0e60
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400b0c90
lea rcx, [rsp + 0x40]
call fcn.1400b0e10
movzx eax, al
test eax, eax
jne 0x1400b0ea8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x70]
jmp 0x1400b1079
lea rcx, [rsp + 0x40]
call fcn.1400b0de0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400b0d80
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.1400b0de0
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.1400032ec
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400b0f4e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x80]
jmp 0x1400b1079
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140002707
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400025f4
lea rcx, [rsp + 0x48]
call fcn.1400022ed
movzx eax, al
test eax, eax
jne 0x1400b0fb5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001735
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x88]
jmp 0x1400b1079
lea rcx, [rsp + 0x48]
call fcn.140002bd0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400b0de0
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.1400032ec
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400b104b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001735
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0xa0]
jmp 0x1400b1079
lea rcx, [rsp + 0x48]
call fcn.1400025d1
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001735
lea rcx, [rsp + 0x40]
call fcn.1400b0cc0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400b1110
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400b1110
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400b0c90
lea rcx, [rsp + 0x20]
call fcn.1400b0ce0
movzx eax, al
test eax, eax
jne 0x1400b1155
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x40]
jmp 0x1400b124f
lea rcx, [rsp + 0x20]
call fcn.1400b0de0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400b0d80
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.140002707
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400021b2
lea rcx, [rsp + 0x28]
call fcn.1400029b4
movzx eax, al
test eax, eax
jne 0x1400b11ef
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400034fe
lea rcx, [rsp + 0x20]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x50]
jmp 0x1400b124f
lea rcx, [rsp + 0x20]
call fcn.1400b0de0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140003e04
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.14000269e
lea rcx, [rsp + 0x28]
call fcn.140004318
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400034fe
lea rcx, [rsp + 0x20]
call fcn.1400b0cc0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400b2fc0
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400b2fc0
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 0x1400c0690
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.140001875
sub rsp, rax
mov rax, qword [0x140177ec0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14017a970]
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 0x1400c0882
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 0x1400c07d6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400c07d6
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 0x1400c07bb
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 0x1400c0758
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 0x1400c0842
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 0x1400c08a1
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 0x1400c087d
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 0x1400c08a1
jmp 0x1400c072e
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.140002699
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400c0950
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.140001875
sub rsp, rax
mov rax, qword [0x140177ec0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14017a970]
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 0x1400c0b5d
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 0x1400c0aa9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400c0aa9
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 0x1400c0a89
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 0x1400c0a18
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 0x1400c0b1d
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 0x1400c0b7c
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 0x1400c0b58
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 0x1400c0b7c
jmp 0x1400c09ee
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.140002699
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400cfd80
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400cfd80
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14000218a
lea rcx, [rsp + 0x48]
call fcn.14000218a
call fcn.1400028e7
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140001fd7
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400cfdef
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140002432
lea rcx, [rsp + 0x78]
call fcn.140002432
mov eax, dword [rsp + 0x24]
jmp 0x1400cfe80
call fcn.1400028e7
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140001fd7
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400cfe36
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140002432
lea rcx, [rsp + 0x78]
call fcn.140002432
mov eax, dword [rsp + 0x2c]
jmp 0x1400cfe80
lea rcx, [rsp + 0x48]
call fcn.14000211c
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14000211c
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.140002432
lea rcx, [rsp + 0x78]
call fcn.140002432
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001fb00]
mov dword [rax], 1
mov rax, qword [0x14001fb10]
mov dword [rax], 1
mov rax, qword [0x14001fb20]
mov dword [rax], 1
mov rax, qword [0x14001fa90]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007d80
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400420c0]
test rcx, rcx
je 0x140007dbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007de0
mov rcx, qword [0x1400420c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400430e0], 0
jne 0x140007df8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400420c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007dae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001e3c2]
mov qword [rsp + 0x20], 0
lea rdi, [0x140043100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007ec4
test al, 0x10
je 0x140007dc4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007dc4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007e70
jmp 0x140007dc4

Function at 0x14000e530
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015b10
sub rsp, rax
mov eax, dword [0x140047100]
mov rsi, rcx
test eax, eax
je 0x14000e5d0
xor ebx, ebx
lea rdi, [0x140045100]
test eax, eax
jg 0x14000e56c
jmp 0x14000e580
add rbx, 1
cmp dword [0x140047100], ebx
jle 0x14000e580
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e560
jmp 0x14000e5b7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e595
cmp word [rsi + 2], 0x3a
je 0x14000e5b7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e620
movsxd rbx, dword [0x140047100]
cmp ebx, 0x3ff
jle 0x14000e638
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e65a
movsxd rbx, dword [0x140047100]
mov rcx, rdi
lea rdi, [0x140045100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140047100]
add eax, 1
mov dword [0x140047100], eax
jmp 0x14000e551
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e5a4
xor eax, eax
jmp 0x14000e5bc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140047100], 1
mov rdx, rax
lea rax, [0x140045100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e5b7
mov rcx, rbx
call fcn.140007cc0
nop
nop word cs:[rax + rax]
nop