joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024504
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 0x140024534
xor eax, eax
jmp 0x1400245f7
mov rbp, rbx
cmp word [rax], si
je 0x140024559
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140024540
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002453c
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.140022b04
movsxd r14, eax
test eax, eax
jne 0x140024597
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002452d
mov rcx, r14
call fcn.14001b994
mov rdi, rax
test rax, rax
jne 0x1400245b0
xor ecx, ecx
call fcn.14001b958
jmp 0x14002458c
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.140022b04
test eax, eax
jne 0x1400245e1
mov rcx, rdi
call fcn.14001b958
jmp 0x1400245eb
xor ecx, ecx
call fcn.14001b958
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 0x14002725c
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.14001d0fc
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 0x1400272fd
cmp ebx, dword [rsp + 0x30]
je 0x1400272f6
test esi, esi
je 0x1400272f6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400272d1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400272de
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400272bb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400272e2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400272ff
mov eax, 1
jmp 0x1400272ff
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a1b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400178d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002a23e
cmp byte [rbp - 0x21], r15b
je 0x14002a239
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002a274
call fcn.14001e46c
test eax, eax
jne 0x14002a260
cmp byte [rbp - 0x21], r15b
je 0x14002a258
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002a274
cmp byte [rbp - 0x21], r15b
je 0x14002a271
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140017f64
test eax, eax
jne 0x14002a314
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400178d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002a2b3
cmp byte [rbp - 0x21], r15b
je 0x14002a2e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002a2e8
call fcn.14001e46c
test eax, eax
jne 0x14002a2d4
cmp byte [rbp - 0x21], r15b
je 0x14002a2cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002a2e8
cmp byte [rbp - 0x21], r15b
je 0x14002a2e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140017f64
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002a314
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002a317
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002a325
mov rcx, rdi
call fcn.14001b958
cmp byte [rbp + 0x3f], r15b
je 0x14002a334
mov rcx, qword [rbp + 0x27]
call fcn.14001b958
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14002bfc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002bfe8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002bfe8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003f64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003fae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003fae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003fae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003fae
cmp dword [rcx + 0x84], 0xe
jbe 0x140003fae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003fb0
xor al, al
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r8d, r8d
mov rbp, rdx
mov r9d, dword [rax + rcx + 0x88]
add r9, rcx
mov esi, dword [r9 + 0x1c]
mov r11d, dword [r9 + 0x20]
mov r10d, dword [r9 + 0x24]
add rsi, rcx
add r11, rcx
add r10, rcx
test edx, 0xffff0000
jne 0x18000104e
movzx eax, dx
sub eax, dword [r9 + 0x10]
jmp 0x18000108d
mov edx, dword [r9 + 0x18]
jmp 0x180001083
mov eax, dword [r11]
mov rdi, rbp
dec edx
add rax, rcx
sub rdi, rax
movzx r9d, byte [rax]
movzx ebx, byte [rax + rdi]
sub r9d, ebx
jne 0x180001076
inc rax
test ebx, ebx
jne 0x180001062
test r9d, r9d
je 0x180001089
add r11, 4
add r10, 2
test edx, edx
jne 0x180001054
jmp 0x180001094
movzx eax, word [r10]
mov r8d, dword [rsi + rax*4]
add r8, rcx
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rax, r8
ret
Function at 0x140019010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400190a0
cmp r10, r11
jb 0x140019116
cmp r10, rdx
ja 0x14001912a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400190a2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140019080
jmp 0x140019104
ja 0x1400190aa
mov r11, r10
cmp rax, r8
jne 0x140019044
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400190e0
mov rdi, r8
sub ecx, edx
jns 0x1400190fb
jmp 0x140019106
cmp r8, rsi
je 0x14001913b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140019106
xor al, 1
cmp rdi, rsi
jne 0x1400190c0
jmp 0x140019106
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1412f7488]
mov rcx, r11
mov rdx, r10
call fcn.140050d70
ud2
lea r8, [0x1412f7488]
mov rcx, r10
call fcn.140050af0
ud2
lea rcx, [0x1412fbb28]
lea r8, [0x1412f74a0]
mov edx, 0x2b
call fcn.140050b70
ud2
Function at 0x1400200b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14002010b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002010b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140020126
cmp eax, 0x42
jne 0x14002010b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400201d6
cmp byte [r9 + r11], 0x5f
jne 0x1400201d6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002023e
mov rcx, rsi
xor edx, edx
call fcn.14001b6d0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001b6d0
test al, al
jne 0x1400202d1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140020162
lea rdx, [0x1412fb3fb]
mov r8d, 1
call fcn.1400170f0
test al, al
jne 0x1400202d1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002011a
xor r14d, r14d
lea rbx, [0x1412fb7de]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140020194
cmp byte [rax + rcx], 0x45
je 0x1400202fa
sub r14, 1
jb 0x1400201b9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400201b9
mov r8d, 2
mov rdx, rbx
call fcn.1400170f0
test al, al
jne 0x1400202d1
mov rcx, rsi
call fcn.140020310
test al, al
jne 0x1400202d1
mov rax, qword [rsi]
test rax, rax
jne 0x140020180
jmp 0x14002011a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140020298
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140020232
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002021c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002020b
add dl, 0xa9
jmp 0x14002021a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140020298
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140020298
movzx edx, bl
add rax, rdx
jae 0x1400201e0
jmp 0x140020298
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140020298
cmp rax, rcx
jae 0x140020295
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400202d9
cmp qword [rsi + 0x20], 0
je 0x140020306
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400200b0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14002011c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400202e8
lea rax, [0x1412fb7a9]
lea rdx, [0x1412fb790]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400170f0
test al, al
je 0x1400202e8
mov dil, 2
jmp 0x14002011a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400202a3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002011a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002011a
xor edi, edi
jmp 0x14002011a
Function at 0x140024b60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1412fe1e8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140024bd3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140024c0a
test eax, eax
js 0x140024be4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140024bfd
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1412fe248]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023810
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400238b0
mov ecx, 7
int 0x29
ud2
Function at 0x140027f80
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 0x140027fb0
test ecx, ecx
jne 0x140028000
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140027fbc
test ecx, ecx
jne 0x140028000
mov rcx, rdi
call fcn.140027e60
movzx eax, al
test bpl, bpl
jne 0x140028007
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140027ff3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140028178]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140027ff3.2
xor eax, eax
test bpl, bpl
je 0x140027fcc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140028159
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14002803a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400280b9
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 0x140028080
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14002809b
inc rax
dec rdi
cmp rax, 1
jne 0x140028060
jmp 0x1400280b9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14002809b
cmp ebx, 0x5c
je 0x14002809b
inc rax
dec rdi
cmp rax, 1
jne 0x140028080
jmp 0x1400280b9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140028167
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400280e3
mov al, 9
cmp rdx, 2
je 0x1400280e7
cmp rdx, 1
jne 0x1400280f7
cmp byte [r8], 0x2e
jne 0x1400280f7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400280f7
mov al, 0xa
jmp 0x1400280f7
cmp byte [r8], 0x2e
jne 0x1400280f7
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.0x140027ff3.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.0x140027ff3.2
mov ecx, 2
jmp case.0x140027ff3.2
lea r8, [0x1412fd390]
call fcn.140050a70
ud2
lea r8, [0x1412fd3a8]
call fcn.140050a70
ud2
Function at 0x140028570
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140025610
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x1400286f7
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140028630
jmp 0x14002861f
jae 0x140028709
cmp r8, 0x201
jae 0x140028630
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140028688
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14002865f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140051a80
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f8]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x400], r13
mov rbx, rdi
mov r12, qword [rbp + 0x418]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r12
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400286b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400287ce
mov r8d, r14d
cmp r15, r8
jne 0x140028610
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400287ff
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002861f
jmp 0x140028630
lea rcx, [rbp - 0x50]
call fcn.140022b70
mov byte [rsi + 0x18], 2
jmp 0x140028798
cmp rsi, r8
jb 0x140028819
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400267d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x14002875f
mov rcx, qword [0x14130ebb8]
xor edx, edx
mov r8, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [rbp + 0x3e8], 2
jne 0x1400287ad
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.140022b70
cmp qword [rbp + 0x408], 0
je 0x140028798
mov rcx, qword [0x14130ebb8]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140028782
jmp 0x140028798
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d0], rax
mov byte [rbp + 0x3e8], 2
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
jne 0x140028749
jmp 0x14002875f
lea rcx, [0x1412fc4e0]
lea r8, [0x1412feaa8]
mov edx, 0x28
call fcn.140050b70
jmp 0x14002882e
lea rax, [0x1412feac0]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140050af0
ud2
Function at 0x14002c770
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1412fe1e8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002c7dc
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002c7eb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002c823
cmp eax, 0x103
je 0x14002c82d
test eax, eax
js 0x14002c808
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002c823
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1412fe248]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023810
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400238b0
mov ecx, 7
int 0x29
ud2

Function at 0x14002dc20
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140025610
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14002dcd7
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14002c8a0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002dcd7
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002dca9
test rsi, rsi
je 0x14002dcd5
mov rcx, qword [0x14130ebb8]
xor esi, esi
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002dcd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14002dcd0
mov rcx, qword [0x14130ebb8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rbx
jmp 0x14002dcd7
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400388c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140025610
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140038936
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400387b0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140038944
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038964
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140038955
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.140022b70
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x140038955
mov rcx, qword [0x14130ebb8]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14003a6b0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14130ead0]
mov rcx, qword [0x14130ebb8]
test rcx, rcx
jne 0x14003a6fc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003a7ca
mov rcx, rax
mov qword [0x14130ebb8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003a7ca
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003ac00]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003a7bc
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x14003a795
cmp qword [rax + 0x10], 0x11
jae 0x14003a77e
mov r8, qword [rbp - 0x20]
jmp 0x14003a786
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14130ebb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14130ebb8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400508e0
ud2