joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f950
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x68], rcx
mov rbx, qword [r8 + 0x10]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rbx
lea r12, [rsp + 0x48]
mov r14d, 0xffffffff
mov r15d, 0xffffffff
lea r13, [rsp + 0x2c]
mov rbp, rbx
mov qword [rsp + 0x60], rbx
cmp rbx, rbp
jne 0x44fa85
jmp 0x44fa55
add rbx, rax
jmp 0x44fa4c
call sub.KERNEL32.dll_GetLastError
mov byte [rsp + 0x78], 0
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x70], 1
mov ecx, eax
call fcn.00447a20
cmp al, 8
je 0x44fadf
lea rax, [rsp + 0x78]
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
mov qword [rsp + 0x40], 1
movzx eax, byte [rsp + 0x48]
cmp al, 1
je 0x44fa20
cmp al, 2
jne 0x44fa30
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10]
cmp al, 0xf
je 0x44fa41
jmp 0x44fb02
movzx eax, byte [rsp + 0x49]
cmp al, 0xf
je 0x44fa41
jmp 0x44fb02
mov ecx, dword [rsp + 0x4c]
call fcn.00447a20
cmp al, 0xf
jne 0x44fb02
mov rcx, r12
call fcn.0044e990
mov rbp, rbx
mov rbp, qword [rsi + 0x10]
cmp rbx, rbp
jne 0x44fa85
mov r8d, 0x20
mov r9b, 1
mov rcx, rsi
mov rdx, rbp
call fcn.00459720
cmp al, 2
jne 0x44fb50
mov rdx, qword [rsi + 8]
mov qword [rsi + 0x10], rdx
cmp rdx, rbp
jb 0x44fb5b
mov rbp, rdx
mov r8, rbp
sub r8, rbx
jb 0x44fb3e
mov rdx, qword [rsi]
add rdx, rbx
mov dword [rsp + 0x2c], 0
cmp r8, r14
cmovae r8d, r15d
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
mov r9, r13
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x44f9c0
mov eax, dword [rsp + 0x2c]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
test rax, rax
jne 0x44f9b0
jmp 0x44faf1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x78]
call fcn.0044e990
mov qword [rsp + 0x38], rbx
mov rbp, rbx
sub rbp, qword [rsp + 0x60]
xor ecx, ecx
jmp 0x44fb16
mov qword [rsp + 0x38], rbx
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov ecx, 1
mov rax, qword [rsp + 0x68]
mov qword [rax], rcx
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rdx
mov qword [rsi + 0x10], rbx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x38], rbx
mov rcx, rbx
mov rdx, rbp
call fcn.0048b4e0
test al, 1
jne 0x44fb6a
call fcn.00481da0
mov qword [rsp + 0x38], rbp
mov rcx, rbp
call fcn.0048b4e0
lea rcx, [0x004cc738]
call fcn.00488de0
Function at 0x4523f0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x70
mov rsi, rcx
mov rcx, qword [rsp + 0xa0]
mov eax, 0xffffffff
cmp r9, rax
mov eax, 0xffffffff
cmovb eax, r9d
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], ecx
shr rcx, 0x20
mov dword [rsp + 0x64], ecx
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x34]
mov rdx, r8
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x452470
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x34]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x4524ab
call sub.KERNEL32.dll_GetLastError
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x38], 1
cmp eax, 0x26
jne 0x45249d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
call fcn.0044e990
jmp 0x4524ab
movups xmm0, xmmword [rcx]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x70
pop rsi
ret

Function at 0x456c30
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, r8d
mov rsi, rcx
cmp dword [rdx], 1
mov edx, 0x17
mov ecx, 2
cmove ecx, edx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r8d, r8d
xor r9d, r9d
mov edx, eax
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x456c8a
mov rdi, rax
mov edx, 1
xor r8d, r8d
mov rcx, rax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x456ca0
mov cl, 3
jmp 0x456cb9
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x456d02
call sub.KERNEL32.dll_GetLastError
movzx ecx, word [rsp + 0x45]
mov word [rsp + 0x42], cx
mov cl, byte [rsp + 0x47]
mov byte [rsp + 0x44], cl
xor ecx, ecx
mov dl, byte [rsp + 0x44]
mov byte [rsp + 0x40], dl
movzx edx, word [rsp + 0x42]
mov word [rsp + 0x3e], dx
cmp cl, 3
jne 0x456cdd
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x456d02
mov byte [rsi + 8], cl
mov cl, byte [rsp + 0x40]
mov byte [rsi + 0xb], cl
movzx ecx, word [rsp + 0x3e]
mov word [rsi + 9], cx
mov dword [rsi + 0xc], eax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x4573c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0xe0
mov rsi, rcx
mov r10d, dword [rsp + 0x110]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov eax, 0x7fffffff
cmovb eax, r9d
mov rcx, qword [rdx]
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov rdx, r8
mov r8d, eax
mov r9d, r10d
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x457486
mov ecx, dword [rsp + 0x3c]
movzx edx, word [rsp + 0x60]
cmp edx, 0x17
je 0x4574ee
movzx edx, dx
cmp edx, 2
jne 0x4574ca
cmp ecx, 0x10
jb 0x45757e
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
xor ecx, ecx
jmp 0x457510
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x45751b
mov eax, dword [rsp + 0x3c]
movzx ecx, word [rsp + 0x60]
cmp ecx, 0x17
je 0x457530
movzx ecx, cx
cmp ecx, 2
jne 0x4574ca
cmp eax, 0x10
jb 0x45757e
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
xor eax, eax
jmp 0x45754e
lea r8, str.invalid_argument
lea rcx, [rsp + 0x40]
mov dl, 0xb
mov r9d, 0x10
call fcn.00446060
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 8], xmm0
jmp 0x457527
cmp ecx, 0x1c
jb 0x457598
movups xmm0, xmmword [rsp + 0x6c]
movups xmmword [rsp + 0x4c], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
mov ecx, 1
cdqe
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], ecx
jmp 0x457559
call sub.WS2_32.dll_WSAGetLastError
mov byte [rsi + 8], 0
mov dword [rsi + 0xc], eax
mov qword [rsi], 1
jmp 0x457572
cmp eax, 0x1c
jb 0x457598
movups xmm0, xmmword [rsp + 0x6c]
movups xmmword [rsp + 0x4c], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
mov eax, 1
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], eax
movups xmm0, xmmword [rsp + 0x4c]
movups xmmword [rsi + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x14], xmm0
mov qword [rsi], 0
mov rax, rsi
add rsp, 0xe0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___TcpStreamaddr
lea r8, str.libstd_sys_common_net.rs
mov edx, 0x42
call fcn.00441160
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.libstd_sys_common_net.rs
mov edx, 0x43
call fcn.00441160
Function at 0x457600
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x40
mov r10, rdx
mov rsi, rcx
xor ecx, ecx
cmp qword [r8], 1
jne 0x45766c
mov rax, qword [r8 + 8]
mov ecx, 0x3e8
mul rcx
mov ecx, 0xffffffff
jo 0x45766c
mov r8d, dword [r8 + 0x10]
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x45766c
imul ecx, edx, 0xf4240
xor r11d, r11d
sub r8d, ecx
setne r11b
lea rdx, [rax + r11]
mov ecx, 0xffffffff
cmp rdx, rcx
mov ecx, 0xffffffff
cmovae edx, ecx
add rax, r11
jb 0x45766c
mov ecx, edx
test edx, edx
je 0x4576d0
mov dword [rsp + 0x30], ecx
mov rcx, qword [r10]
mov dword [rsp + 0x20], 4
lea rax, [rsp + 0x30]
mov edx, 0xffff
mov r8d, r9d
mov r9, rax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x45769a
mov byte [rsi], 3
jmp 0x4576c7
call sub.WS2_32.dll_WSAGetLastError
movzx ecx, word [rsp + 0x2d]
mov word [rsp + 0x2a], cx
mov cl, byte [rsp + 0x2f]
mov byte [rsp + 0x2c], cl
mov byte [rsi], 0
mov cl, byte [rsp + 0x2c]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x2a]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rax, rsi
add rsp, 0x40
pop rsi
ret
lea r8, str.cannot_set_a_0_duration_timeoutconnection_timed_out.pipe__rust_anonymous_pipe1__..
lea rcx, [rsp + 0x30]
mov dl, 0xb
mov r9d, 0x1f
call fcn.00446060
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x4576c7
Function at 0x4585b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rax, [rdx + 0x20]
mov qword [rsp + 0x68], rax
lea rax, [0x004cc590]
mov qword [rsp + 0x30], rax
cmp qword [rdx + 0x20], 0
jne 0x45870a
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx + 0x18]
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x4585f3
lea rax, [rbx + 0x10]
jmp 0x458618
mov rdx, qword [rbx + 0x10]
mov r8d, 0x10
mov r9b, 1
mov rcx, rbx
call fcn.00459720
cmp al, 2
jne 0x458785
lea rax, [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rax, qword [rax]
cmp rdx, rax
jne 0x458641
mov r8d, 1
mov r9b, 1
mov rcx, rbx
call fcn.00459720
cmp al, 2
jne 0x458785
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
sub rdx, rax
add rax, qword [rbx]
mov rbx, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rdx, rcx
mov r8d, 0xffffffff
cmovb r8d, edx
mov dword [rsp + 0x70], 0
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov rdx, rax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x45868e
mov eax, dword [rsp + 0x70]
mov ecx, 2
test rax, rax
jne 0x4586ec
jmp 0x4586d2
call sub.KERNEL32.dll_GetLastError
mov byte [rsp + 0x38], 0
movzx ecx, word [rsp + 0x30]
mov word [rsp + 0x39], cx
mov cl, byte [rsp + 0x32]
mov byte [rsp + 0x3b], cl
mov dword [rsp + 0x3c], eax
cmp eax, 0x6d
je 0x4586be
cmp eax, 0x3e5
jne 0x4586d8
xor ebx, ebx
jmp 0x4586c3
mov ebx, 1
lea rcx, [rsp + 0x38]
call fcn.0044e990
test rbx, rbx
je 0x4586e5
mov byte [rsi + 1], 0
jmp 0x4586f8
mov rax, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov al, 1
jmp 0x4586fa
mov ecx, 1
xor eax, eax
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x28], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [0x00454170]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
lea rax, [0x004cc5a8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 3
lea rax, [0x004cc3b0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 2
lea rdx, str.libstd_syswindowspipe.rs
lea rcx, [rsp + 0x38]
call fcn.00440ea0
test al, 1
jne 0x458790
call fcn.00481da0
lea rcx, [0x004cc738]
call fcn.00488de0
Function at 0x45f580
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov dword [rsp + 0x2c], 0
mov eax, 0xffffffff
cmp r9, rax
mov eax, 0xffffffff
cmovb eax, r9d
mov rcx, qword [rdx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r8
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x45f5df
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x45f623
call sub.KERNEL32.dll_GetLastError
lea rdi, [rsp + 0x38]
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x30], 1
mov ecx, eax
call fcn.00447a20
cmp al, 8
jne 0x45f615
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rdi
call fcn.0044e990
jmp 0x45f623
movups xmm0, xmmword [rdi]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x45f630
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x28], 0
mov eax, 0xffffffff
cmp r9, rax
mov eax, 0xffffffff
cmovb eax, r9d
mov rcx, qword [rdx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov rdx, r8
mov r8d, eax
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x45f67d
mov eax, dword [rsp + 0x28]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x45f69e
call sub.KERNEL32.dll_GetLastError
mov byte [rsi + 8], 0
mov cl, byte [rsp + 0x2f]
mov byte [rsi + 0xb], cl
movzx ecx, word [rsp + 0x2d]
mov word [rsi + 9], cx
mov dword [rsi + 0xc], eax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x4634a0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov dword [rsp + 0x3c], r8d
mov rcx, qword [rdx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
xor edx, edx
mov r8d, 4
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x4634d4
mov byte [rsi], 3
jmp 0x463501
call sub.WS2_32.dll_WSAGetLastError
movzx ecx, word [rsp + 0x39]
mov word [rsp + 0x36], cx
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x38], cl
mov byte [rsi], 0
mov cl, byte [rsp + 0x38]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x36]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x463680
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
movzx eax, r8b
mov dword [rsp + 0x2c], eax
mov rcx, qword [rdx]
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x4636b3
call sub.KERNEL32.dll_GetLastError
mov byte [rsi], 0
mov dword [rsi + 4], eax
jmp 0x4636b6
mov byte [rsi], 3
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x4687a0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x220
mov rax, qword [rcx]
test byte [rax], 1
mov byte [rax], 0
je 0x468810
lea rsi, [rsp + 0x88]
xor edx, edx
mov r8d, 0x198
mov rcx, rsi
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x24]
mov qword [rsp + 0x28], rcx
lea rcx, [0x004cdba8]
mov qword [rsp + 0x30], rcx
test eax, eax
jne 0x46881e
lea rdx, [0x004ca4d0]
mov ecx, 1
call fcn.0047d0a0
nop
add rsp, 0x220
pop rsi
ret
lea rcx, [0x004cd390]
call fcn.00488de0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rax, [0x0045a1e0]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
lea rax, [0x004cd810]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 3
lea rax, [0x004cd840]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 2
lea rdx, str.libstd_syswindows_net.rs
lea rcx, [rsp + 0x58]
call fcn.00440ea0

Function at 0x46ca10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x46ca2d
mov rcx, rsi
call fcn.004474e0
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46ca86
mov rdi, rax
test rax, rax
jne 0x46ca8a
mov ecx, 0x18
mov edx, 8
call fcn.00409e90
test rax, rax
je 0x46ca99
mov rbx, rax
mov qword [rax], rsi
mov rdi, rax
add rdi, 8
mov qword [rax + 8], 0
mov rcx, qword [rsi]
test rcx, rcx
jne 0x46ca7c
mov rcx, rsi
call fcn.004474e0
mov rcx, rax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
jmp 0x46ca8e
xor edi, edi
jmp 0x46ca8e
add rdi, 8
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0x18
mov edx, 8
call fcn.00481e70
ud2

Function at 0x46d7b0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x2c], 0
call sub.KERNEL32.dll_GetCommandLineW
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
movsxd rcx, dword [rsp + 0x2c]
mov qword [rsi], 0
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x470c00
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
lea rcx, [rsp + 0x48]
mov rdx, r8
mov r8, r9
call fcn.00447c40
cmp qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
jne 0x470c2e
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
jmp 0x470c9f
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x470c57
mov byte [rsi], 3
jmp 0x470c84
call sub.KERNEL32.dll_GetLastError
movzx ecx, word [rsp + 0x48]
mov word [rsp + 0x2c], cx
mov cl, byte [rsp + 0x4a]
mov byte [rsp + 0x2e], cl
mov byte [rsi], 0
mov cl, byte [rsp + 0x2e]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x2c]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x470c9f
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00409ea0
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x470f80
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
lea rcx, [rsp + 0x48]
call fcn.00447c40
cmp qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
jne 0x470fa8
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
jmp 0x471017
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x470fcf
mov byte [rsi], 3
jmp 0x470ffc
call sub.KERNEL32.dll_GetLastError
movzx ecx, word [rsp + 0x48]
mov word [rsp + 0x2c], cx
mov cl, byte [rsp + 0x4a]
mov byte [rsp + 0x2e], cl
mov byte [rsi], 0
mov cl, byte [rsp + 0x2e]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x2c]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x471017
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00409ea0
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x4711d0
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
lea rcx, [rsp + 0x48]
call fcn.00447c40
cmp qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
jne 0x4711f8
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
jmp 0x471267
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x47121f
mov byte [rsi], 3
jmp 0x47124c
call sub.KERNEL32.dll_GetLastError
movzx ecx, word [rsp + 0x48]
mov word [rsp + 0x2c], cx
mov cl, byte [rsp + 0x4a]
mov byte [rsp + 0x2e], cl
mov byte [rsi], 0
mov cl, byte [rsp + 0x2e]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x2c]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x471267
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00409ea0
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x471ed0
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.00447c40
cmp qword [rsp + 0x50], 1
lea rax, [rsp + 0x58]
jne 0x471efc
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
jmp 0x471f6d
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov edx, ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x471f25
mov byte [rsi], 3
jmp 0x471f52
call sub.KERNEL32.dll_GetLastError
movzx ecx, word [rsp + 0x50]
mov word [rsp + 0x2c], cx
mov cl, byte [rsp + 0x52]
mov byte [rsp + 0x2e], cl
mov byte [rsi], 0
mov cl, byte [rsp + 0x2e]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x2c]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x471f6d
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00409ea0
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x4734d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov dword [rsp + 0x2c], 0
mov eax, 0xffffffff
cmp r9, rax
mov eax, 0xffffffff
cmovb eax, r9d
mov rcx, qword [rdx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r8
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x47352f
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x473573
call sub.KERNEL32.dll_GetLastError
lea rdi, [rsp + 0x38]
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x30], 1
mov ecx, eax
call fcn.00447a20
cmp al, 8
jne 0x473565
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rdi
call fcn.0044e990
jmp 0x473573
movups xmm0, xmmword [rdi]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x475b30
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x475b48
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [0x004464f0]
mov qword [rsp + 0x38], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x004ce9f8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.libstd_syswindowsos.rsp
lea rcx, [rsp + 0x40]
call fcn.00440ea0
Function at 0x476190
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, r9
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.00447c40
cmp qword [rsp + 0x40], 1
lea rax, [rsp + 0x48]
jne 0x4761c2
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
jmp 0x4762b9
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.00447c40
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
cmp qword [rsp + 0x80], 1
lea rax, [rsp + 0x88]
jne 0x476239
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x4762b9
add rdx, rdx
mov rcx, qword [rsp + 0x20]
mov r8d, 2
jmp 0x4762b4
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x476268
mov byte [rsi], 3
jmp 0x476283
call sub.KERNEL32.dll_GetLastError
mov byte [rsi], 0
mov cl, byte [rsp + 0x42]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x40]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x47629e
add rdx, rdx
mov r8d, 2
mov rcx, rbx
call fcn.00409ea0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x4762b9
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00409ea0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x476300
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
lea rcx, [rsp + 0x38]
call fcn.00447c40
cmp qword [rsp + 0x38], 1
lea rax, [rsp + 0x40]
jne 0x476328
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
jmp 0x476387
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x476351
mov byte [rsi], 3
jmp 0x47636c
call sub.KERNEL32.dll_GetLastError
mov byte [rsi], 0
mov cl, byte [rsp + 0x3a]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x38]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x476387
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00409ea0
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret