joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018ff00
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
call fcn.140189bc0
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x48]
call fcn.140189ae0
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
call fcn.140189a90
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14018ff6c
call fcn.1401901c0
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x2c], 0xffffffff
lea rcx, [rsp + 0x48]
call fcn.140189b40
mov eax, dword [rsp + 0x2c]
jmp 0x14019000e
lea rcx, [rsp + 0x78]
call fcn.140189ae0
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc8]
call fcn.140189a90
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14018ffc5
call fcn.1401901c0
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov dword [rsp + 0x30], 0xffffffff
lea rcx, [rsp + 0x78]
call fcn.140189b40
lea rcx, [rsp + 0x48]
call fcn.140189b40
mov eax, dword [rsp + 0x30]
jmp 0x14019000e
lea rcx, [rsp + 0x78]
call fcn.140183bb0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
call fcn.140183bb0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.1401befd0
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x78]
call fcn.140189b40
lea rcx, [rsp + 0x48]
call fcn.140189b40
mov eax, dword [rsp + 0x34]
add rsp, 0xb8
ret
Function at 0x1401ae350
Capabilities:
Get geographical location

Disassembly:
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.1401ad740
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401ae3b7
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 [0x1401e6a20]
jmp 0x1401ae3d9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1401ae7b0
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 0x1401b0300
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.1401d8990
sub rsp, rax
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140342d20]
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, recv
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 0x1401b04f2
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 0x1401b0446
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401b0446
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 0x1401b042b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
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 0x1401b03c8
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 0x1401b04b2
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, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401b0511
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 0x1401b04ed
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401b0511
jmp 0x1401b039e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400753c0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401b0530
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.1401d8990
sub rsp, rax
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140342d20]
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, recv
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 0x1401b073d
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 0x1401b0689
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401b0689
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 0x1401b0669
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, reloc.WS2_32.dll_listen
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 0x1401b05f8
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 0x1401b06fd
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, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401b075c
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 0x1401b0738
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401b075c
jmp 0x1401b05ce
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400753c0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401b9970
Capabilities:
Print debug messages

Disassembly:
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 0x1401bbb10
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401bbb3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140190100
mov eax, 0xffffffff
jmp 0x1401bbb3e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401c3110
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140088c20
lea rcx, [rsp + 0x40]
call fcn.1401c30d0
movzx eax, al
test eax, eax
jne 0x1401c3158
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401c2fe0
mov rax, qword [rsp + 0x70]
jmp 0x1401c3329
lea rcx, [rsp + 0x40]
call fcn.140091470
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401c3080
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.140091470
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.1401c05d0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401c31fe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401c2fe0
mov rax, qword [rsp + 0x80]
jmp 0x1401c3329
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14018d0e0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140088c20
lea rcx, [rsp + 0x48]
call fcn.1400aed40
movzx eax, al
test eax, eax
jne 0x1401c3265
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400aed20
lea rcx, [rsp + 0x40]
call fcn.1401c2fe0
mov rax, qword [rsp + 0x88]
jmp 0x1401c3329
lea rcx, [rsp + 0x48]
call fcn.140091470
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140091470
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.1401c05d0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401c32fb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400aed20
lea rcx, [rsp + 0x40]
call fcn.1401c2fe0
mov rax, qword [rsp + 0xa0]
jmp 0x1401c3329
lea rcx, [rsp + 0x48]
call fcn.14015b310
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400aed20
lea rcx, [rsp + 0x40]
call fcn.1401c2fe0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1401c3340
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140088c20
lea rcx, [rsp + 0x20]
call fcn.1401c3000
movzx eax, al
test eax, eax
jne 0x1401c3385
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401c2fe0
mov rax, qword [rsp + 0x40]
jmp 0x1401c347f
lea rcx, [rsp + 0x20]
call fcn.140091470
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401c3080
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.14018d0e0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140088c20
lea rcx, [rsp + 0x28]
call fcn.1400aed40
movzx eax, al
test eax, eax
jne 0x1401c341f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400aed20
lea rcx, [rsp + 0x20]
call fcn.1401c2fe0
mov rax, qword [rsp + 0x50]
jmp 0x1401c347f
lea rcx, [rsp + 0x20]
call fcn.140091470
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140091470
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.14015bc10
lea rcx, [rsp + 0x28]
call fcn.14015b310
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400aed20
lea rcx, [rsp + 0x20]
call fcn.1401c2fe0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1401c4bb0
Capabilities:
Set environment variable

Disassembly:
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 0x1401cd5b0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x1401cd609
lea rcx, [rsp + 0x50]
call fcn.1401cd550
jmp 0x1401cd6dc
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, str.minkernelcrtsucrt_srcdesktopcrtmiscdrive.cpp
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.14018cfd0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140088c20
lea rcx, [rsp + 0x38]
call fcn.140091470
test rax, rax
jne 0x1401cd671
call fcn.1401901c0
mov dword [rax], recv
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.1400aed20
mov eax, dword [rsp + 0x40]
jmp 0x1401cd6dc
lea rcx, [rsp + 0x38]
call fcn.140091470
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1401cd6b8
call fcn.1401901c0
mov dword [rax], recv
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.1400aed20
mov eax, dword [rsp + 0x48]
jmp 0x1401cd6dc
lea rcx, [rsp + 0x38]
call fcn.140091470
mov rcx, rax
call fcn.1401cd550
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.1400aed20
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400753c0
add rsp, 0x270
pop rdi
ret
Function at 0x1401d46f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.140189ae0
lea rcx, [rsp + 0xb8]
call fcn.140189ae0
lea rcx, [rsp + 0x88]
call fcn.140189ae0
call fcn.140189bc0
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.140189a90
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1401d4792
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.140189b40
lea rcx, [rsp + 0xb8]
call fcn.140189b40
lea rcx, [rsp + 0xe8]
call fcn.140189b40
mov eax, dword [rsp + 0x54]
jmp 0x1401d4938
call fcn.140189bc0
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.140189a90
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1401d47f2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.140189b40
lea rcx, [rsp + 0xb8]
call fcn.140189b40
lea rcx, [rsp + 0xe8]
call fcn.140189b40
mov eax, dword [rsp + 0x5c]
jmp 0x1401d4938
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x1401d4878
call fcn.140189bc0
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.140189a90
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1401d4866
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.140189b40
lea rcx, [rsp + 0xb8]
call fcn.140189b40
lea rcx, [rsp + 0xe8]
call fcn.140189b40
mov eax, dword [rsp + 0x64]
jmp 0x1401d4938
lea rcx, [rsp + 0x88]
call fcn.140183bb0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.140183bb0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.140183bb0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.140189b40
lea rcx, [rsp + 0xb8]
call fcn.140189b40
lea rcx, [rsp + 0xe8]
call fcn.140189b40
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x1401d5950
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140189ae0
lea rcx, [rsp + 0x48]
call fcn.140189ae0
call fcn.140189bc0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140189a90
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401d59bf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140189b40
lea rcx, [rsp + 0x78]
call fcn.140189b40
mov eax, dword [rsp + 0x24]
jmp 0x1401d5a50
call fcn.140189bc0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140189a90
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1401d5a06
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140189b40
lea rcx, [rsp + 0x78]
call fcn.140189b40
mov eax, dword [rsp + 0x2c]
jmp 0x1401d5a50
lea rcx, [rsp + 0x48]
call fcn.140183bb0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140183bb0
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.140189b40
lea rcx, [rsp + 0x78]
call fcn.140189b40
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret

Function at 0x1401d60e0
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x60], 0x1a
jbe 0x1401d61ad
call fcn.140190190
mov dword [rax], reloc.WS2_32.dll_ntohs
xor eax, eax
test eax, eax
je 0x1401d611d
mov dword [rsp + 0x34], 1
jmp 0x1401d6125
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1401d616e
lea rax, str.__Invalid_Drive_Index___0_
mov qword [rsp + 0x28], rax
lea rax, [0x1401e6da0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, Ordinal_33
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
mov ecx, 2
call fcn.1401882d0
cmp eax, 1
jne 0x1401d616e
int3
cmp dword [rsp + 0x38], 0
jne 0x1401d61ad
call fcn.1401901c0
mov dword [rax], reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], 0
mov r9d, Ordinal_33
lea r8, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
lea rdx, str.is_valid_drive
lea rcx, str.__Invalid_Drive_Index___0_
call fcn.140188b80
xor eax, eax
jmp 0x1401d6212
cmp dword [rsp + 0x60], 0
jne 0x1401d61bb
mov eax, 1
jmp 0x1401d6212
mov eax, dword [rsp + 0x60]
add eax, 0x40
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x40], ax
mov eax, Ordinal_60
mov word [rsp + 0x42], ax
mov eax, 0x5c
mov word [rsp + 0x44], ax
xor eax, eax
mov word [rsp + 0x46], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1401d6209
cmp dword [rsp + 0x3c], 1
jne 0x1401d620d
xor eax, eax
jmp 0x1401d6212
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400753c0
add rsp, 0x58
ret
Function at 0x100001a60
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100004100]
jne 0x100001a7b
rol rcx, 0x10
test cx, 0xffff
jne 0x100001a77
ret 0
ror rcx, 0x10
jmp 0x100001dfc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000044f0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000045e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100001e81
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000044f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100001ea3
mov rax, qword [rsp + 0x88]
mov qword [0x1000045e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100004588], rax
mov rax, qword [0x1000045e8]
mov qword [0x100004460], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100004570], rax
mov dword [0x100004450], 0xc0000409
mov dword [0x100004454], 1
mov rax, qword [0x100004100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100004108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001240]
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, 0x88
ret

Function at 0x100001c98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001ce5
cmp rcx, 0xffffffffffffffff
je 0x100001ce5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100001cdd
cmp dword [rcx + 0x3c], edx
jl 0x100001cdd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100001cdd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001ce5
mov rax, rdx
add rsp, 0x18
ret

Function at 0x100001f50
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
mov eax, 0xffffffff
cmp edx, eax
je 0x100001f9a
mov eax, edx
mov ebx, 0xfffffffe
and al, 1
je 0x100001f88
and edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x38
ret