joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180038ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x180038d42
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, 0x100
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x1800828d0]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x180038baa
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x180038bc9
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x180038ce0
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x180038c10
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x180038c13
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.180033cd0
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.180036760
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x180038c00
jmp 0x180038ce7
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, 0x100
sub qword [rsp + 0x60], 1
jne 0x180038b60
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x18003c350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18003c4e3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
jbe 0x18003c3c2
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18003bf20
mov r8d, dword [rdi + 0x80]
mov r9d, esi
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
call fcn.18003b690
lea rcx, [rdi + 0x80]
call fcn.1800319d0
jmp 0x18003c4cf
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.18003a4c0
movzx edx, word [rdi + 0x48]
mov rax, qword [rdi + 0x38]
movss xmm1, dword [rbx]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rbx + 4]
mov rax, qword [rdi + 0x58]
mov word [rax], dx
mov rax, qword [rdi + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rdi + 0x58]
mov word [rax + 4], cx
mov rax, qword [rdi + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rdi + 0x58]
mov word [rax + 8], cx
mov rax, qword [rdi + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rdi + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rdi + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rdi + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rdi + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rbx]
mov rax, qword [rdi + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rdi + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rdi + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rdi + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rdi + 0x50], 0x50
add dword [rdi + 0x48], 4
add qword [rdi + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18004fe70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180043be0
sub rsp, rax
mov rax, qword [0x18008d020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005858c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004febf
mov rax, rbp
jmp 0x18004ffc7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x8fb50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005f3b0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x8fb50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004ffc3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004ffc3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005f3b0
test rax, rax
js 0x18004ffc3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004ffc3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004ffb5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004ffb5
cmp byte [rcx], 0xd
jne 0x18004ff9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004ffaa
cmp byte [rcx + 1], 0xa
jne 0x18004ffaa
inc rcx
jmp 0x18004ffaa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8d410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004ff7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004ffc7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180042cf0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800586ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800586c2
mov al, 1
jmp 0x180058722
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800586d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180058720
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800628cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180058720
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180058720
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180058720
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180058722
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005e750
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18008fb50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18005e7a7
cmp word [rdx], r13w
jne 0x18005e7a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005e7ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005e8d1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005e8f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005e7e5
mov rdx, r9
mov word [rbx], cx
jmp 0x18005e80c
cmp r9, r8
jae 0x18005e81c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18005e7c6
jmp 0x18005e8d1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005e8c6
cmp dword [rsp + 0x80], esi
je 0x18005e8c6
lea r8, [0x18008fb50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005e89e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005e86e
mov word [rbx], r13w
jmp 0x18005e8ce
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18005e87b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005e8ce
cmp word [rsp + 0x70], r13w
jne 0x18005e8ab
cmp rbx, r14
je 0x18005e868
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005f3b8
cmp word [rsp + 0x70], r13w
je 0x18005e8d1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18008fb50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005e8cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005e8d1
Function at 0x180062110
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180062140
xor eax, eax
jmp 0x180062203
mov rbp, rbx
cmp word [rax], si
je 0x180062165
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18006214c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180062148
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800609b4
movsxd r14, eax
test eax, eax
jne 0x1800621a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180062139
mov rcx, r14
call fcn.18005cd8c
mov rdi, rax
test rax, rax
jne 0x1800621bc
xor ecx, ecx
call fcn.18005adcc
jmp 0x180062198
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800609b4
test eax, eax
jne 0x1800621ed
mov rcx, rdi
call fcn.18005adcc
jmp 0x1800621f7
xor ecx, ecx
call fcn.18005adcc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180064f78
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180058bb0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180065019
cmp ebx, dword [rsp + 0x30]
je 0x180065012
test esi, esi
je 0x180065012
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180064fed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180064ffa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180064fd7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180064ffe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18006501b
mov eax, 1
jmp 0x18006501b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180069038
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18005f3b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005f3b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180069188
cmp rax, 0xffffffffffffffff
je 0x180069188
xor edi, edi
test rbp, rbp
jle 0x180069133
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18005aa04
mov rbx, rax
test rax, rax
jne 0x1800690c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180069129
mov edx, 0x8000
mov ecx, r14d
call fcn.180068ebc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18005c434
cmp eax, 0xffffffff
je 0x180069109
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800690d0
mov edx, r15d
mov ecx, r14d
call fcn.180068ebc
jmp 0x180069129
cmp byte [rsi + 0x38], dil
je 0x180069120
cmp dword [rsi + 0x34], 5
jne 0x180069120
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180069129
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005adcc
jmp 0x18006919c
jns 0x18006919c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005f3b8
cmp rax, 0xffffffffffffffff
jne 0x180069154
cmp byte [rsi + 0x30], dil
je 0x18006919c
mov edi, dword [rsi + 0x2c]
jmp 0x18006919c
mov ecx, r14d
call fcn.1800628cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006919c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18006919c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180069195
mov eax, dword [rsi + 0x2c]
jmp 0x18006919a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005f3b8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14002a50a
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14002a511
test al, 1
je 0x14002a530
test al, 2
jne 0x14002a545
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400893e0]
mov edx, 0x23
jmp 0x14002a558
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400893a0]
mov edx, 0x25
call fcn.140080870
ud2

Function at 0x14003de5c
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsi + 0x20]
add rsp, 0x50
pop rsi
ret

Function at 0x14004f560
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14004f5f0
jmp 0x14004f5df
jae 0x14004f6b0
cmp r8, 0x201
jae 0x14004f5f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14004f648
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14004f61f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14007fc30
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14004f671
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14004f718
mov r8d, r14d
cmp r15, r8
jne 0x14004f5d0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004f73b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14004f5df
jmp 0x14004f5f0
cmp rsi, r8
jb 0x14004f755
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400541b0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14004f701
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140006af0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14004f6e9
jmp 0x14004f701
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str._3_t_
mov edx, 0x28
call fcn.140080870
jmp 0x14004f76a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140080da0
ud2
Function at 0x140050630
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140050640
mov rcx, rdx
mov rdx, r8
jmp fcn.140050650
mov rcx, rdx
mov rdx, r8
jmp fcn.14005c710

Function at 0x140054bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140054c00
test ecx, ecx
jne 0x140054c50
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140054c0c
test ecx, ecx
jne 0x140054c50
mov rcx, rdi
call fcn.140054ab0
movzx eax, al
test bpl, bpl
jne 0x140054c57
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140054c43.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140054dc8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140054c43.2
xor eax, eax
test bpl, bpl
je 0x140054c1c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140054da9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140054c8a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140054d09
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140054cd0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140054ceb
inc rax
dec rdi
cmp rax, 1
jne 0x140054cb0
jmp 0x140054d09
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140054ceb
cmp ebx, 0x5c
je 0x140054ceb
inc rax
dec rdi
cmp rax, 1
jne 0x140054cd0
jmp 0x140054d09
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140054db7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140054d33
mov al, 9
cmp rdx, 2
je 0x140054d37
cmp rdx, 1
jne 0x140054d47
cmp byte [r8], 0x2e
jne 0x140054d47
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140054d47
mov al, 0xa
jmp 0x140054d47
cmp byte [r8], 0x2e
jne 0x140054d47
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140054c43.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140054c43.2
mov ecx, 2
jmp case.0x140054c43.2
lea r8, str.library_std_srcpath.rs
call fcn.140080d20
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140080d20
ud2
Function at 0x140058510
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14007d550
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x14005fa20]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400586fe
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1400585d7
cmp dword [rbp + 0xfec], 0
jne 0x140058713
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x140058713
cmp ebx, 0x1000
ja 0x14005875e
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x140058743
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x140058706
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x140058680
cmp dword [rbp + 0xfec], 0
jne 0x14005870c
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x140058620
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1400585d7
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x140058713
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0xfd0], rbx
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.140080e20
jmp 0x140058778
mov ecx, ebx
mov qword [rbp + 0xfd0], rcx
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
call fcn.140080da0
ud2