joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022f0c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140022f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140019c74
or eax, 0xffffffff
jmp 0x140022f2e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140024268
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 0x14002429a
call fcn.140019d00
mov dword [rax], socket
call fcn.140018d10
jmp 0x1400243b9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400243b9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400243b9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400242c9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400243b9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400242dd
call fcn.140024a18
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002033c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140025a50
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400243a7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140024372
mov rcx, rsi
call fcn.14002033c
cmp eax, edi
je 0x14002435d
mov rcx, rsi
call fcn.14002033c
cmp eax, 0xfffffffe
je 0x14002435d
mov rcx, rsi
call fcn.14002033c
movsxd rbx, eax
lea r14, [0x14004bb70]
mov rcx, rsi
sar rbx, 6
call fcn.14002033c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140024364
lea rdx, [0x140049410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140024372
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140024396
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140024396
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140024396
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 0x1400243bc
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 0x140024798
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.14000e9d0
sub rsp, rax
mov rax, qword [0x140049050]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002033c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400247e7
mov rax, rbp
jmp 0x1400248ef
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 + 0x4bb70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140026228
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4bb70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400248eb
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 0x1400248eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140026228
test rax, rax
js 0x1400248eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400248eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400248dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400248dd
cmp byte [rcx], 0xd
jne 0x1400248c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400248d2
cmp byte [rcx + 1], 0xa
jne 0x1400248d2
inc rcx
jmp 0x1400248d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x49460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400248a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400248ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000e370
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 0x1400255a4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004bb70]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140025602
cmp word [rdx], r12w
jne 0x140025602
or byte [rax + r8*8 + 0x38], cl
jmp 0x140025608
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140025763
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002573e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140025641
mov rcx, r9
jmp 0x140025664
cmp r9, rdx
jae 0x14002567b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140025625
jmp 0x140025763
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025738
cmp dword [rsp + 0x80], edi
je 0x140025738
mov rdx, r14
lea r11, [0x14004bb70]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140025711
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400256e4
mov word [rbx], r12w
jmp 0x14002575f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400256ed
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002575f
cmp word [rsp + 0x70], r12w
jne 0x14002571e
cmp rbx, rsi
je 0x1400256de
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140026230
cmp word [rsp + 0x70], r12w
je 0x140025763
mov word [rbx], r13w
jmp 0x14002575f
lea r11, [0x14004bb70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002575b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140025763
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140029a04
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 0x140029a34
xor eax, eax
jmp 0x140029af7
mov rbp, rbx
cmp word [rax], si
je 0x140029a59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140029a40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140029a3c
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.140028030
movsxd r14, eax
test eax, eax
jne 0x140029a97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140029a2d
mov rcx, r14
call fcn.1400221ec
mov rdi, rax
test rax, rax
jne 0x140029ab0
xor ecx, ecx
call fcn.140021d6c
jmp 0x140029a8c
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.140028030
test eax, eax
jne 0x140029ae1
mov rcx, rdi
call fcn.140021d6c
jmp 0x140029aeb
xor ecx, ecx
call fcn.140021d6c
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 0x140030a64
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.140014eac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140030aee
cmp byte [rbp - 0x21], r15b
je 0x140030ae9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140030b24
call fcn.1400225c8
test eax, eax
jne 0x140030b10
cmp byte [rbp - 0x21], r15b
je 0x140030b08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140030b24
cmp byte [rbp - 0x21], r15b
je 0x140030b21
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.140014d30
test eax, eax
jne 0x140030bc4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014eac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140030b63
cmp byte [rbp - 0x21], r15b
je 0x140030b98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140030b98
call fcn.1400225c8
test eax, eax
jne 0x140030b84
cmp byte [rbp - 0x21], r15b
je 0x140030b7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140030b98
cmp byte [rbp - 0x21], r15b
je 0x140030b95
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.140014d30
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140030bc4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140030bc7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140030bd5
mov rcx, rdi
call fcn.140021d6c
cmp byte [rbp + 0x3f], r15b
je 0x140030be4
mov rcx, qword [rbp + 0x27]
call fcn.140021d6c
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 0x1400319d4
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.140026230
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140026230
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140031b24
cmp rax, 0xffffffffffffffff
je 0x140031b24
xor edi, edi
test rbp, rbp
jle 0x140031acf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140020ee8
mov rbx, rax
test rax, rax
jne 0x140031a5c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140031ac5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001da14
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.140021a5c
cmp eax, 0xffffffff
je 0x140031aa5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140031a6c
mov edx, r15d
mov ecx, r14d
call fcn.14001da14
jmp 0x140031ac5
cmp byte [rsi + 0x38], dil
je 0x140031abc
cmp dword [rsi + 0x34], 5
jne 0x140031abc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x140031ac5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140021d6c
jmp 0x140031b38
jns 0x140031b38
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140026230
cmp rax, 0xffffffffffffffff
jne 0x140031af0
cmp byte [rsi + 0x30], dil
je 0x140031b38
mov edi, dword [rsi + 0x2c]
jmp 0x140031b38
mov ecx, r14d
call fcn.14002a408
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140031b38
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], send
jmp 0x140031b38
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140031b31
mov eax, dword [rsi + 0x2c]
jmp 0x140031b36
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140026230
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 0x180041098
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13d, dword [rsp + 0x70]
lea esi, [r8 - 0x31c5]
mov r12d, dword [rsp + 0x78]
mov ebp, edx
xor r12d, 0x70e9
xor ebp, 0x4431
mov eax, r12d
mov rbx, r9
lea edi, [r13 + 0x611]
xor eax, 0x703f
xor r13d, 0xdfa
mov dword [rsp + 0x70], edi
cmp r13d, eax
jl 0x1800411c1
lea eax, [rbp + 0x363f]
cmp esi, eax
je 0x180041168
cmp dword [0x18018d0ac], 0x36af
je 0x18004112e
mov eax, dword [r9 + 0xec]
mov ecx, dword [r9 + 0x90]
add ecx, 0xa0f02
imul eax, ecx
mov dword [r9 + 0xec], eax
mov eax, dword [0x18018d0fc]
mov dword [r9 + 0x70], eax
mov eax, dword [0x18018d01c]
sub dword [r9 + 0x70], eax
mov eax, dword [r9 + 0xec]
mov dword [r9 + 0xe8], eax
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x14]
add dword [rcx + 0xe8], eax
xor edi, 0xd72
jmp 0x1800411c1
mov r15d, edi
mov r14d, esi
xor r15d, 0x3113
add r15d, 0xffffc317
cmp esi, r15d
jle 0x1800411c1
lea edi, [rcx + 0xbd6]
mov ecx, dword [0x18018d10c]
xor ecx, edi
add ecx, r13d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x140]
or eax, esi
sub eax, r12d
xor ebp, eax
imul eax, ebp, 0x3113
movsxd rcx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add r14d, 2
cmp r14d, r15d
jg 0x180041187
mov edi, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x58]
lea eax, [rdi - 0x82b]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800412b8
Capabilities:
Encrypt data using rc4 prga

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, 0x40
movsxd rax, dword [0x180257e30]
mov rsi, r8
mov r11d, dword [0x180257e18]
mov rbp, rcx
xor r11d, dword [0x180257e78]
mov r12d, 1
movsxd rdi, edx
mov rbx, r9
movzx r14d, byte [rax + rcx]
mov r15, rdi
mov rax, qword [0x180257e80]
movzx r10d, byte [rdi + rcx]
lea r8d, [r14 + r14*2]
mov qword [rax + r8*8], r10
lea eax, [r14 + 5]
movzx edx, word [rax + rax + 0x1ba2]
lea r8d, [r14 + 8]
movzx eax, byte [rcx + 0x160b]
or edx, eax
or dword [rsi + r8*4], edx
xor edx, edx
movzx eax, word [0x180257e58]
mov cl, al
movsxd r8, r11d
add ax, r12w
mov word [0x180257e58], ax
mov rax, qword [0x180257e10]
div r8
movzx r8d, byte [0x180257e34]
xor r8d, dword [0x180257df8]
mov rdx, rax
call fcn.180047c40
movsxd rdx, eax
mov eax, edi
shl eax, 2
movsxd rcx, eax
mov qword [rbx + rcx*8], rdx
movzx eax, byte [0x180257e34]
movzx r10d, byte [0x180257e35]
movzx ecx, word [rax + rax + 0x898]
mov rax, qword [rsp + 0x88]
sub edi, dword [rax + r14*4]
sub r14d, r12d
movzx eax, word [0x180257e48]
add eax, 2
movsxd rbx, r14d
movsxd r8, edi
movzx edx, word [rax + rax + 0x1ba2]
add edx, dword [0x180257e30]
movzx eax, word [rsi + rbx*4]
movsxd r9, edx
mov edx, 0x1224
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], r9
mov r9d, 0x718
mov dword [rsp + 0x20], r10d
call fcn.180049adc
mov word [r15*2 + 0x1ba2], ax
movzx eax, byte [rbp + 0x5a7]
cmp r14d, eax
jl 0x18004142b
mov r9d, dword [0x180257e7c]
lea r8, [r15 + rbx*4]
mov eax, dword [r8]
add r14d, r12d
cdq
lea r8, [r8 - 4]
idiv r9d
mov dword [0x180257e7c], eax
mov r9d, eax
movzx ecx, byte [rbp + 0x5a7]
cmp r14d, ecx
jge 0x180041408
movzx eax, word [0x180257e00]
xor edx, edx
movzx r8d, byte [rbp + 0x141e]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
lea rcx, [rax + rax*2]
mov rax, qword [0x180257e40]
mov rdi, qword [rsp + 0x78]
mov rax, qword [rax + rcx*8 + 0x38]
div r8
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x1800492fc
Capabilities:
Encode data using xor

Disassembly:
mov r8d, r9d
mov r10d, r9d
xor r8d, 0x3113
xor r10d, 0x7522
xor edx, 0x3350
add r9d, 0x808
lea eax, [r8 + 0x38e9]
cmp r9d, eax
jle 0x1800493b4
mov rcx, qword [section..data]
xor r8d, 0x388d
mov rdx, qword [rsp + 0x28]
mov eax, dword [rcx + 0x30]
sub eax, dword [rdx + 4]
xor eax, 0x634
sub dword [rcx + 0xf0], eax
mov eax, dword [rsp + 0x30]
xor eax, 0x363f
cmp eax, r8d
je 0x1800493fb
mov eax, dword [rdx]
mov dword [rdx + 0xc], 0x169af9e3
cmp dword [0x18018d0e4], eax
jae 0x18004938c
mov ecx, dword [rdx + 0xd8]
mov rax, qword [section..data]
xor ecx, 0x103dbc55
mov dword [rax + 0x14], ecx
jmp 0x1800493a1
mov rcx, qword [section..data]
mov eax, 0xfffe10b6
sub eax, dword [0x18018d010]
add dword [rcx + 0x30], eax
mov eax, dword [rdx + 0x104]
cmp dword [rdx], eax
je 0x1800493fb
mov dword [rdx + 0x34], 0xce
jmp 0x1800493fb
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + 0x114]
imul eax, r10d
cmp r8d, eax
jne 0x1800493fb
add edx, edx
imul r11d, r10d, 0x38e9
sub dword [rcx], edx
add r8d, 4
xor dword [0x18018d010], r11d
mov eax, dword [rcx + 0x30]
and eax, 0x3113
mov dword [rcx + 0x154], eax
mov eax, dword [rcx + 0x114]
imul eax, r10d
cmp r8d, eax
je 0x1800493d1
lea eax, [r9 - 0x6d6]
ret
Function at 0x180049c54
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13d, dword [rsp + 0x80]
lea ebp, [r9 - 0x38e9]
mov r14d, r9d
lea ebx, [r8 - 0x363f]
xor r13d, 0x9fa
lea r9d, [r8 + 0xfd]
mov rsi, rdx
mov dword [rsp + 0x60], r9d
lea edi, [r14 + 0xb48]
mov eax, edi
lea r12d, [r14 - 0x269]
xor eax, 0x720e
cmp r12d, eax
jl 0x180049cce
lea eax, [rdi - 0x11ec]
cmp r14d, eax
jl 0x180049d30
add dword [rdx + 0x90], 0xfff5f0b5
mov rdx, qword [section..data]
mov eax, ebp
xor eax, 0x3724
cmp r9d, eax
jle 0x180049dd0
lea eax, [rbx + 0x3113]
cmp r14d, eax
jl 0x180049d91
xor edi, 0x7d2a
cmp r14d, edi
je 0x180049dd0
mov eax, dword [rsi + 0xf8]
mov ecx, dword [0x18018d03c]
xor eax, 0x1c9244
imul ecx, eax
mov dword [0x18018d03c], ecx
mov eax, dword [rsi + 4]
add eax, 0x5028d
mov dword [rdx + 0x148], eax
jmp 0x180049dd0
mov eax, dword [0x18018d15c]
xor eax, ebx
xor eax, 0x363f
cmp ebp, eax
ja 0x180049cce
mov eax, edi
imul eax, r9d
cmp ebp, eax
je 0x180049cce
mov r15d, dword [rdx + 4]
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0xc0]
add ecx, r12d
cmp r15d, ecx
jb 0x180049cd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [section..data]
add r15d, 2
mov ecx, dword [rdx + 0xc0]
add ecx, r12d
cmp r15d, ecx
jae 0x180049d68
mov r9d, dword [rsp + 0x60]
jmp 0x180049cd5
imul eax, r13d, 0x3724
and eax, ebx
cmp ebp, eax
jle 0x180049dd0
mov eax, dword [rdx + 0x14c]
sub eax, 0x3113
cmp ebp, eax
je 0x180049dd0
mov r8d, dword [rsi + 0xf4]
lea edx, [rdi + r13]
imul r12d, r13d
mov ecx, edi
xor r8, rcx
movsxd r9, r9d
movsxd rcx, r12d
xor rcx, r9
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbp, qword [rsp + 0x58]
xor ebx, 0x3fd3
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180049df8
Capabilities:
Encode data using xor
Get file size

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 r13
push r14
push r15
sub rsp, 0x20
mov edi, ecx
lea r14d, [r9 - 0x4df]
xor edi, 0xe0d
lea esi, [r9 - 0x3724]
xor edx, 0x7307
lea r13d, [rcx - 0x20d]
mov rbx, r8
lea eax, [rdi + 0xdb1]
cmp r14d, eax
jge 0x180049f15
lea eax, [r13 - 0x43b]
cmp r14d, eax
jl 0x180049ecf
lea eax, [rdx - 0x159]
cmp edi, eax
jge 0x180049e8a
mov eax, dword [0x18018d0ac]
xor eax, 0x1a4a
sub dword [r8 + 0x28], eax
mov eax, dword [r8 + 0x28]
xor eax, dword [0x18018d10c]
xor eax, 0x61a00
mov dword [r8 + 0x28], eax
xor esi, 0x322b
jmp 0x180049ecf
lea ebp, [rcx - 0x388d]
xor ebp, edi
cmp edi, ebp
jl 0x180049ecf
mov r15d, edx
mov eax, esi
xor r15, rax
sub r14d, edi
mov edx, dword [rbx + 0x6c]
mov ecx, dword [0x18018d160]
mov eax, r13d
xor rcx, r15
xor rdx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, dword [0x18018d064]
inc edi
imul eax, r14d
mov dword [0x18018d064], eax
cmp edi, ebp
jge 0x180049ea1
mov eax, dword [rbx + 0xf8]
cmp dword [0x18018d040], eax
jb 0x180049f15
mov r9d, dword [rbx + 0x14c]
xor ecx, ecx
add r9d, dword [0x18018d114]
mov r8d, dword [rbx + 0x38]
xor r9d, 0xba1b54a4
mov edx, dword [rbx + 0x28]
sub r8d, 0x118ff9
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
add rax, 0x6000
mov qword [rbx + 0xb0], rax
mov rbx, qword [rsp + 0x40]
lea eax, [rsi - 0x66]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x18004a61c
Capabilities:
Encode data using xor
Get disk information

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, 0x20
lea ebp, [r8 - 0x388d]
mov rbx, rdx
mov eax, ebp
lea r14d, [r9 - 0x3113]
xor eax, 0x3680
lea esi, [r8 - 0x151]
lea edi, [r8 - 0x169]
cmp r14d, eax
jg 0x18004a67e
mov rax, qword [section..data]
mov ecx, dword [rax + 0x2c]
xor ecx, dword [rdx + 0x48]
xor ecx, 0x77a72
mov dword [rdx + 0x48], ecx
add edi, 0x1f7
jmp 0x18004a6bf
mov eax, dword [rdx + 0xa4]
and eax, dword [rdx + 8]
cmp dword [rdx + 0x6c], eax
jb 0x18004a6bf
movsxd rax, ebp
movsxd rcx, edi
xor rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov r8d, dword [rbx]
mov ecx, esi
imul r8d, dword [0x18018d154]
mov edx, esi
or edx, dword [rbx + 8]
sub ecx, r14d
add ecx, esi
add r8d, dword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
lea eax, [rsi + 0x1df]
cmp ebp, eax
jge 0x18004a78d
mov rcx, qword [section..data]
lea eax, [rbp + 0x3a56]
cmp edi, eax
jge 0x18004a754
mov eax, dword [rcx + 0xc4]
cmp dword [rcx + 0x134], eax
je 0x18004a707
mov eax, dword [rbx + 0xf8]
xor eax, dword [rbx + 0x24]
add eax, 0x87c
mov dword [rbx + 0xf0], eax
mov rcx, qword [section..data]
cmp dword [rbx + 0x154], 0xfa97
je 0x18004a72e
mov eax, dword [0x18018d0a8]
xor eax, dword [0x18018d07c]
add eax, 0x134868
xor dword [rbx + 0x20], eax
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x148]
add eax, 0xa24b7
add dword [rbx + 0x14c], eax
cmp dword [rbx + 0x134], 0x76
jae 0x18004a78d
add dword [rbx + 0x148], 0xffe2af71
jmp 0x18004a78d
mov eax, dword [rcx + 0xe4]
xor eax, dword [rbx + 0x20]
imul eax, eax, 0x391b
cmp dword [rbx + 0xa4], eax
jbe 0x18004a78d
mov eax, esi
mov edx, ebp
or eax, edi
je 0x18004a78d
mov r8d, dword [rbx + 4]
mov ecx, dword [rcx + 8]
add r8d, ecx
xor esi, r8d
add edx, 4
mov eax, esi
or eax, edi
add eax, ebp
cmp edx, eax
jne 0x18004a77d
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 0x811]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret