joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000913d
Capabilities:
Set environment variable

Disassembly:
jmp 0x140017e80
sub rsp, 0x48
lea rdx, [0x1401de708]
lea rcx, str.MY_VAR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x140017ec8
lea rdx, [0x1401de730]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017f0f
lea rdx, [0x1401de780]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret

Function at 0x140009174
Capabilities:
Get file size

Disassembly:
jmp 0x140017700
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x1401de348]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400177ff
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
je 0x1400177ac
lea rdx, [0x1401de378]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.140003aad
lea rdx, [0x1401de360]
mov rcx, rax
call fcn.140001c2b
mov qword [rsp + 0x58], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x58]
call fcn.140004b47
nop
jmp 0x1400177f3
lea rdx, [0x1401de388]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140003aad
mov qword [rsp + 0x68], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x68]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x78
ret

Function at 0x140009188
Capabilities:
Set current directory

Disassembly:
jmp 0x140017cf0
sub rsp, 0x48
lea rcx, [0x1401de5e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140017d31
lea rdx, [0x1401de5f8]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017d78
lea rdx, [0x1401de638]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret
Function at 0x140009192
Capabilities:
Write file on windows

Disassembly:
jmp 0x140017980
sub rsp, 0x88
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x1401de408]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140017aad
lea rax, [0x1401de420]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400043fe
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140017a5a
lea rdx, [0x1401de450]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140003aad
lea rdx, [0x1401de430]
mov rcx, rax
call fcn.140001c2b
mov qword [rsp + 0x68], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x68]
call fcn.140004b47
nop
jmp 0x140017aa1
lea rdx, [0x1401de460]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140003aad
mov qword [rsp + 0x78], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x78]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x88
ret
Function at 0x1400091a6
Capabilities:
Terminate process

Disassembly:
jmp 0x140018c50
sub rsp, 0x38
lea rdx, [0x1401ded88]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x20], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x20]
call fcn.140004b47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1400091b5
Capabilities:
Delete directory

Disassembly:
jmp 0x140017b60
sub rsp, 0x48
lea rcx, str.NewDirectory
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140017ba1
lea rdx, [0x1401de508]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017be8
lea rdx, [0x1401de538]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret

Function at 0x1400091bf
Capabilities:
Get common file path

Disassembly:
jmp 0x140017c00
sub rsp, 0x268
mov rax, qword [0x140232bc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140017c7c
lea rdx, [0x1401de588]
lea rcx, [0x1402361e0]
call fcn.140004bb0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140004bb0
lea rdx, str.__GetCurrentDirectory_.
mov rcx, rax
call fcn.140004bb0
mov qword [rsp + 0x28], rax
lea rdx, [0x140004877]
mov rcx, qword [rsp + 0x28]
call fcn.140006b1d
nop
jmp 0x140017cc3
lea rdx, [0x1401de5b8]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400047f0
add rsp, 0x268
ret

Function at 0x1400091d8
Capabilities:
Check if file exists

Disassembly:
jmp 0x1400170f0
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140003805
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14001712c
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14001712c
mov dword [rsp + 0x24], 1
jmp 0x140017134
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x1400091dd
Capabilities:
Check if file exists

Disassembly:
jmp 0x140017090
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140003805
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400170cc
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x1400170cc
mov dword [rsp + 0x24], 1
jmp 0x1400170d4
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1400091f1
Capabilities:
Read file on windows

Disassembly:
jmp 0x140017810
sub rsp, 0x108
mov rax, qword [0x140232bc0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, str.example.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140017954
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x80
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140017901
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x80
jae 0x1400178a9
jmp 0x1400178af
call fcn.1400063de
nop
mov rax, qword [rsp + 0x50]
mov byte [rsp + rax + 0x70], 0
lea rdx, [0x1401de3d8]
lea rcx, [0x140235f40]
call fcn.140001c2b
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140001c2b
lea rdx, str.__ReadFile_.
mov rcx, rax
call fcn.140001c2b
mov qword [rsp + 0x58], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x58]
call fcn.140004b47
nop
jmp 0x140017948
lea rdx, [0x1401de3f0]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140003aad
mov qword [rsp + 0x68], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x68]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400047f0
add rsp, 0x108
ret

Function at 0x1400091fb
Capabilities:
Create directory

Disassembly:
jmp 0x140017ac0
sub rsp, 0x48
xor edx, edx
lea rcx, [0x1401de478]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140017b03
lea rdx, [0x1401de498]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017b4a
lea rdx, [0x1401de4c8]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret
Function at 0x140016e50
Capabilities:
Create process on windows

Disassembly:
jmp 0x140016e50
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov dword [rsp + 0x80], WSASetLastError
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x100]
call fcn.140001a46
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140016f20
lea rdx, str.CreateProcess_failed:
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140003aad
mov qword [rsp + 0x60], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x60]
call fcn.140004b47
nop
jmp 0x140016f37
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0xf0
pop rdi
ret

Function at 0x140017090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140017090
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140003805
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400170cc
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x1400170cc
mov dword [rsp + 0x24], 1
jmp 0x1400170d4
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x1400170f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1400170f0
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140003805
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14001712c
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14001712c
mov dword [rsp + 0x24], 1
jmp 0x140017134
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x140017150
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140017150
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x140232bc0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14001718b
xor al, al
jmp 0x1400171ee
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400171e1
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x290]
call fcn.140003832
movzx eax, al
test eax, eax
je 0x1400171ce
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400171ee
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400171a6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400047f0
add rsp, 0x288
ret

Function at 0x140017660
Capabilities:
Delete file

Disassembly:
jmp 0x140017660
sub rsp, 0x48
lea rcx, [0x1401de2f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400176a1
lea rdx, [0x1401de308]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x1400176e8
lea rdx, [0x1401de330]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret

Function at 0x140017700
Capabilities:
Get file size

Disassembly:
jmp 0x140017700
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x1401de348]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400177ff
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
je 0x1400177ac
lea rdx, [0x1401de378]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.140003aad
lea rdx, [0x1401de360]
mov rcx, rax
call fcn.140001c2b
mov qword [rsp + 0x58], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x58]
call fcn.140004b47
nop
jmp 0x1400177f3
lea rdx, [0x1401de388]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140003aad
mov qword [rsp + 0x68], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x68]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x78
ret
Function at 0x140017810
Capabilities:
Read file on windows

Disassembly:
jmp 0x140017810
sub rsp, 0x108
mov rax, qword [0x140232bc0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, str.example.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140017954
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x80
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140017901
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x80
jae 0x1400178a9
jmp 0x1400178af
call fcn.1400063de
nop
mov rax, qword [rsp + 0x50]
mov byte [rsp + rax + 0x70], 0
lea rdx, [0x1401de3d8]
lea rcx, [0x140235f40]
call fcn.140001c2b
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140001c2b
lea rdx, str.__ReadFile_.
mov rcx, rax
call fcn.140001c2b
mov qword [rsp + 0x58], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x58]
call fcn.140004b47
nop
jmp 0x140017948
lea rdx, [0x1401de3f0]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140003aad
mov qword [rsp + 0x68], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x68]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400047f0
add rsp, 0x108
ret

Function at 0x140017980
Capabilities:
Write file on windows

Disassembly:
jmp 0x140017980
sub rsp, 0x88
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x1401de408]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140017aad
lea rax, [0x1401de420]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400043fe
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140017a5a
lea rdx, [0x1401de450]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.140003aad
lea rdx, [0x1401de430]
mov rcx, rax
call fcn.140001c2b
mov qword [rsp + 0x68], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x68]
call fcn.140004b47
nop
jmp 0x140017aa1
lea rdx, [0x1401de460]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140003aad
mov qword [rsp + 0x78], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x78]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x88
ret
Function at 0x140017ac0
Capabilities:
Create directory

Disassembly:
jmp 0x140017ac0
sub rsp, 0x48
xor edx, edx
lea rcx, [0x1401de478]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140017b03
lea rdx, [0x1401de498]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017b4a
lea rdx, [0x1401de4c8]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret

Function at 0x140017b60
Capabilities:
Delete directory

Disassembly:
jmp 0x140017b60
sub rsp, 0x48
lea rcx, str.NewDirectory
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140017ba1
lea rdx, [0x1401de508]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017be8
lea rdx, [0x1401de538]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret

Function at 0x140017c00
Capabilities:
Get common file path

Disassembly:
jmp 0x140017c00
sub rsp, 0x268
mov rax, qword [0x140232bc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140017c7c
lea rdx, [0x1401de588]
lea rcx, [0x1402361e0]
call fcn.140004bb0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140004bb0
lea rdx, str.__GetCurrentDirectory_.
mov rcx, rax
call fcn.140004bb0
mov qword [rsp + 0x28], rax
lea rdx, [0x140004877]
mov rcx, qword [rsp + 0x28]
call fcn.140006b1d
nop
jmp 0x140017cc3
lea rdx, [0x1401de5b8]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400047f0
add rsp, 0x268
ret
Function at 0x140017cf0
Capabilities:
Set current directory

Disassembly:
jmp 0x140017cf0
sub rsp, 0x48
lea rcx, [0x1401de5e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140017d31
lea rdx, [0x1401de5f8]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017d78
lea rdx, [0x1401de638]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret

Function at 0x140017d90
Capabilities:
Query environment variable

Disassembly:
jmp 0x140017d90
sub rsp, 0x258
mov rax, qword [0x140232bc0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
lea rcx, [0x1401de660]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140017e14
lea rdx, [0x1401de6a8]
lea rcx, [0x1402361e0]
call fcn.140004bb0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140004bb0
lea rdx, str.__GetEnvironmentVariable_.
mov rcx, rax
call fcn.140004bb0
mov qword [rsp + 0x28], rax
lea rdx, [0x140004877]
mov rcx, qword [rsp + 0x28]
call fcn.140006b1d
nop
jmp 0x140017e5b
lea rdx, [0x1401de6e0]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400047f0
add rsp, 0x258
ret

Function at 0x140017e80
Capabilities:
Set environment variable

Disassembly:
jmp 0x140017e80
sub rsp, 0x48
lea rdx, [0x1401de708]
lea rcx, str.MY_VAR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x140017ec8
lea rdx, [0x1401de730]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x28], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x28]
call fcn.140004b47
nop
jmp 0x140017f0f
lea rdx, [0x1401de780]
lea rcx, [0x140236090]
call fcn.140001c2b
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140003aad
mov qword [rsp + 0x38], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x38]
call fcn.140004b47
nop
add rsp, 0x48
ret

Function at 0x140018c50
Capabilities:
Terminate process

Disassembly:
jmp 0x140018c50
sub rsp, 0x38
lea rdx, [0x1401ded88]
lea rcx, [0x140235f40]
call fcn.140001c2b
mov qword [rsp + 0x20], rax
lea rdx, [0x14000141f]
mov rcx, qword [rsp + 0x20]
call fcn.140004b47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]