joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140167c24
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140167c43
call fcn.140174d7c
jmp 0x140167cf8
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140150578
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140167c8e
cmp byte [rbp - 0x38], 0
je 0x140167cc3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140167cc3
call fcn.140170868
test eax, eax
jne 0x140167caf
cmp byte [rbp - 0x38], al
je 0x140167ca7
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140167cc3
cmp byte [rbp - 0x38], 0
je 0x140167cc0
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14015be48
test eax, eax
je 0x140167cdc
or ebx, 0xffffffff
jmp 0x140167ce7
mov rcx, qword [rbp - 0x20]
call fcn.140174d7c
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140167cf6
mov rcx, qword [rbp - 0x20]
call fcn.14016fc74
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140169980
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1401699bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401691f0
call fcn.14016927c
mov eax, dword [rax]
jmp 0x140169a32
cmp rdi, qword [rbx + 0x18]
ja 0x1401699c7
mov qword [rbx + 0x20], rdi
jmp 0x140169a30
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1401699de
mov rcx, qword [rbx + 0x10]
call fcn.14016fc74
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.1401704e8
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140169a32
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1401699a5
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14016b2a0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140150578
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x14016b2eb
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x14016b31f
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14016b31f
call fcn.140170868
xor ebx, ebx
test eax, eax
jne 0x14016b30d
cmp byte [rbp - 0x48], bl
je 0x14016b306
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x14016b31f
cmp byte [rbp - 0x48], bl
je 0x14016b31d
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14015be48
mov esi, eax
test eax, eax
je 0x14016b35b
call fcn.14016927c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x14016b3b4
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14015be48
mov edi, eax
test eax, eax
je 0x14016b397
call fcn.14016927c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x14016b3a6
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1401757fc
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x14016b3b4
mov rcx, qword [rbp - 0x50]
call fcn.14016fc74
cmp byte [rbp - 8], bl
je 0x14016b3c2
mov rcx, qword [rbp - 0x20]
call fcn.14016fc74
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14016be38
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.140148660
sub rsp, rax
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140163ff4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14016be87
mov rax, rbp
jmp 0x14016bf8f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x21e780]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140166220
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x21e780]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14016bf8b
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 0x14016bf8b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140166220
test rax, rax
js 0x14016bf8b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14016bf8b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14016bf7d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14016bf7d
cmp byte [rcx], 0xd
jne 0x14016bf63
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14016bf72
cmp byte [rcx + 1], 0xa
jne 0x14016bf72
inc rcx
jmp 0x14016bf72
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x21b250]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14016bf45
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14016bf8f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140147af0
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 0x140175100
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140175120
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401691f0
or eax, 0xffffffff
jmp 0x140175122
xor eax, eax
add rsp, 0x28
ret

Function at 0x1401751c0
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.140166228
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140166228
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140175310
cmp rax, 0xffffffffffffffff
je 0x140175310
xor edi, edi
test rbp, rbp
jle 0x1401752bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140172eb0
mov rbx, rax
test rax, rax
jne 0x140175248
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401752b1
mov edx, 0x8000
mov ecx, r14d
call fcn.14016951c
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.140163ce4
cmp eax, 0xffffffff
je 0x140175291
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140175258
mov edx, r15d
mov ecx, r14d
call fcn.14016951c
jmp 0x1401752b1
cmp byte [rsi + 0x38], dil
je 0x1401752a8
cmp dword [rsi + 0x34], 5
jne 0x1401752a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401752b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14016fc74
jmp 0x140175324
jns 0x140175324
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140166228
cmp rax, 0xffffffffffffffff
jne 0x1401752dc
cmp byte [rsi + 0x30], dil
je 0x140175324
mov edi, dword [rsi + 0x2c]
jmp 0x140175324
mov ecx, r14d
call fcn.1401667bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140175324
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140175324
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14017531d
mov eax, dword [rsi + 0x2c]
jmp 0x140175322
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140166228
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 0x14017541c
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.140150578
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401754a6
cmp byte [rbp - 0x21], r15b
je 0x1401754a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401754dc
call fcn.140170868
test eax, eax
jne 0x1401754c8
cmp byte [rbp - 0x21], r15b
je 0x1401754c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401754dc
cmp byte [rbp - 0x21], r15b
je 0x1401754d9
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.14015be48
test eax, eax
jne 0x14017557c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140150578
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14017551b
cmp byte [rbp - 0x21], r15b
je 0x140175550
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140175550
call fcn.140170868
test eax, eax
jne 0x14017553c
cmp byte [rbp - 0x21], r15b
je 0x140175535
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140175550
cmp byte [rbp - 0x21], r15b
je 0x14017554d
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.14015be48
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14017557c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14017557f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14017558d
mov rcx, rdi
call fcn.14016fc74
cmp byte [rbp + 0x3f], r15b
je 0x14017559c
mov rcx, qword [rbp + 0x27]
call fcn.14016fc74
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 0x140175690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401756c2
call fcn.14016927c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14014e6a8
jmp 0x1401757e1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401757e1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401757e1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401756f1
lock or dword [rcx + 0x14], 0x10
jmp 0x1401757e1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140175705
call fcn.14017b550
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140163ff4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140165450
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401757cf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14017579a
mov rcx, rsi
call fcn.140163ff4
cmp eax, edi
je 0x140175785
mov rcx, rsi
call fcn.140163ff4
cmp eax, 0xfffffffe
je 0x140175785
mov rcx, rsi
call fcn.140163ff4
movsxd rbx, eax
lea r14, [0x14021e780]
mov rcx, rsi
sar rbx, 6
call fcn.140163ff4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14017578c
lea rdx, [0x14021b500]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14017579a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401757be
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401757be
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401757be
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401757e4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140176f00
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 0x140176f30
xor eax, eax
jmp 0x140176ff3
mov rbp, rbx
cmp word [rax], si
je 0x140176f55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140176f3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140176f38
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.14016ffa8
movsxd r14, eax
test eax, eax
jne 0x140176f93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140176f29
mov rcx, r14
call fcn.1401704e8
mov rdi, rax
test rax, rax
jne 0x140176fac
xor ecx, ecx
call fcn.14016fc74
jmp 0x140176f88
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.14016ffa8
test eax, eax
jne 0x140176fdd
mov rcx, rdi
call fcn.14016fc74
jmp 0x140176fe7
xor ecx, ecx
call fcn.14016fc74
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 0x140177010
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140177097
mov rsi, rbx
cmp word [rax], bp
je 0x140177056
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140177040
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14017703c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401704e8
mov rdi, rax
test rax, rax
je 0x140177084
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140149f10
mov rbp, rdi
xor ecx, ecx
call fcn.14016fc74
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140179b44
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140179b64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401691f0
or eax, 0xffffffff
jmp 0x140179b66
xor eax, eax
add rsp, 0x28
ret
Function at 0x140180260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x1401e3940]
mov rbx, rdx
mov r11, rcx
not r8d
cmp rdx, 8
jbe 0x140180366
mov qword [rsp + 0x10], rdi
test cl, 7
je 0x1401802af
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
test r11b, 7
jne 0x140180290
mov rdi, rbx
and ebx, 7
and rdi, 0xfffffffffffffff8
add rdi, r11
cmp r11, rdi
jae 0x140180361
nop word [rax + rax]
xor r8d, dword [r11]
mov r10d, dword [r11 + 4]
add r11, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x1401802d0
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x14018038d
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
sub rbx, 1
jne 0x140180370
mov rbx, qword [rsp + 0x18]
not r8d
mov eax, r8d
pop rsi
ret
Function at 0x1401828e0
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rcx], 0x4000400
mov r10, rcx
mov ecx, edx
mov r9d, 0x400
mov qword [rsp + 0x40], rcx
test edx, edx
je 0x14018295d
lea rax, [r10 + 8]
nop dword [rax]
nop dword [rax + rax]
mov dword [rax - 4], 0x4000400
mov dword [rax], 0x4000400
mov dword [rax + 4], 0x4000400
mov dword [rax + 8], 0x4000400
mov dword [rax + 0xfc], 0x4000400
mov dword [rax + 0x100], 0x4000400
mov dword [rax + 0x104], 0x4000400
mov dword [rax + 0x108], 0x4000400
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x140182910
movzx eax, r9w
lea rdi, [r10 + 0x204]
mov ecx, 0x100
rep stosw word [rdi], ax
test r8b, r8b
jne 0x140182acc
test edx, edx
je 0x140182acc
mov qword [rsp + 0x48], rbx
xor ebx, ebx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
lea rsi, [0x1401e7b50]
mov qword [rsp + 0x18], r12
mov qword [rsp + 0x10], r13
lea r13, [r10 + 0x4808]
mov qword [rsp + 8], r14
mov qword [rsp], r15
lea r15, [r10 + 0x404]
nop word [rax + rax]
mov ebp, dword [r10 + 0x4804]
lea rdi, [0x1401e7b50]
mov dword [r13], ebp
movzx ecx, word [r10]
mov eax, ecx
xor rcx, 0x7f0
shr rcx, 4
shr rax, 4
movzx edx, byte [rcx + rdi]
movzx esi, byte [rax + rsi]
movzx ecx, word [r10 + 2]
mov eax, ecx
mov dword [rsp + 0x50], esi
shr rax, 4
xor rcx, 0x7f0
shr rcx, 4
movzx r14d, byte [rax + rdi]
xor eax, eax
movzx r12d, byte [rcx + rdi]
add r14d, edx
add r12d, edx
test ebp, ebp
je 0x140182a88
mov r11, r15
cmp eax, 8
jae 0x140182ad2
xor r9d, r9d
lea r8d, [rax + 8]
lea rsi, [0x1401e7b50]
nop dword [rax]
mov edx, r8d
shr r8d, 1
and edx, 1
mov ecx, r8d
add rcx, rbx
movzx edi, word [r10 + rcx*2 + 4]
mov ecx, edx
neg ecx
shr rdi, 4
shr rcx, 4
and ecx, 0x7f
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140182a40
mov ecx, dword [rsp + 0x50]
inc eax
add ecx, r9d
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140182a22
lea rsi, [0x1401e7b50]
add r13, 4
add r15, 0x440
add rbx, 8
sub qword [rsp + 0x40], 1
jne 0x1401829c0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp eax, ebp
jae 0x140182a88
lea r11, [r15 + rax*4]
lea rsi, [0x1401e7b50]
cmp eax, 0x10
jae 0x140182b3d
xor r9d, r9d
mov r8d, eax
nop dword [rax]
mov edx, r8d
shr r8d, 1
and edx, 1
mov ecx, r8d
add rcx, rbx
movzx edi, word [r10 + rcx*2 + 0x104]
mov ecx, edx
neg ecx
shr rdi, 4
shr rcx, 4
and ecx, 0x7f
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140182af0
lea ecx, [r9 + r14]
inc eax
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140182ae1
jmp 0x140182a8f
lea r11, [r15 + rax*4]
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
lea r8d, [rax + 0xf0]
nop word [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx edi, word [r10 + r8*2 + 0x204]
and ecx, 0x7f
shr rdi, 4
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140182b60
lea ecx, [r9 + r12]
inc eax
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140182b50
jmp 0x140182a8f
Function at 0x140182bb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
lea r9, [0x1401e7b50]
mov ebp, edx
mov r11, rcx
mov dword [rcx + rbp*4 + 0x4808], esi
lea r12, [r11 + 0x404]
movzx edx, word [rcx]
movzx ecx, word [rcx + 2]
mov eax, edx
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
movzx r14d, byte [rax + r9]
mov eax, ecx
movzx r8d, byte [rdx + r9]
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
movzx r13d, byte [rcx + r9]
add r15d, r8d
imul rax, rbp, 0x440
add r13d, r8d
xor r9d, r9d
add r12, rax
test esi, esi
je 0x140182d99
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x140182cbf
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x1401e7b50]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x140182c70
mov eax, dword [rsp + 0x38]
inc r9d
add eax, r10d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x140182c48
jmp 0x140182d8f
cmp r9d, esi
jae 0x140182d8f
lea rdi, [r12 + r9*4]
lea r14, [0x1401e7b50]
cmp r9d, 0x10
jae 0x140182d3c
xor r10d, r10d
lea rbx, [rbp*8]
mov r8d, r9d
nop word [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x140182cf0
lea eax, [r10 + r15]
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x140182cd3
jmp 0x140182d8f
lea rbx, [r12 + r9*4]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 0x7f
shr r8, 4
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x140182d50
lea eax, [r10 + r13]
inc r9d
mov dword [rbx], eax
add rbx, 4
cmp r9d, esi
jb 0x140182d40
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret