joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800fc610
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1801605c0], ebp
je 0x1800fc667
cmp rbx, 0x20
jae 0x1800fc650
xor ecx, ecx
jmp 0x1800fc652
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801605c0], ebp
jne 0x1800fc646
cmp qword [0x1801605c8], r15
je 0x1800fc761
test rdi, rdi
jne 0x1800fc687
mov ecx, esi
call fcn.1800fc150
mov ebp, eax
jmp 0x1800fc766
mov ecx, dword [0x18016114c]
mov ebx, r15d
test ecx, ecx
je 0x1800fc6af
mov r8, qword [0x180161140]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800fc6b9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800fc6a0
mov ebp, 4
jmp 0x1800fc766
cmp ebx, 0xffffffff
je 0x1800fc6af
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800fc758
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800fbe70
mov edx, esi
mov ecx, ebx
call fcn.1800fc020
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800fc766
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800fc742
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800fc738
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800fc710
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801605c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800fc766
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800fc766
mov ebp, 2
xchg dword [0x1801605c0], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800ff140
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x180155060]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x20], rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rbp - 0x78], xmm1
movups xmmword [rbp - 0x68], xmm1
movups xmmword [rbp - 0x58], xmm1
mov dword [rbp - 0x48], 0x6a09e667
mov dword [rbp - 0x44], 0xbb67ae85
mov dword [rbp - 0x40], 0x3c6ef372
mov dword [rbp - 0x3c], 0xa54ff53a
mov dword [rbp - 0x38], 0x510e527f
mov dword [rbp - 0x34], 0x9b05688c
mov dword [rbp - 0x30], 0x1f83d9ab
mov dword [rbp - 0x2c], 0x5be0cd19
xor eax, eax
mov qword [rsp + 0x30], rax
mov r14d, dword [rdx + 0x10]
mov r12, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1800ff1fd
mov r12, qword [rdx]
mov ebx, 0x40
cmp r14d, ebx
cmovb ebx, r14d
mov r8d, ebx
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.180109d40
mov ecx, dword [rsp + 0x34]
add ecx, r14d
cmp ecx, 0x40
jae 0x1800ff22b
mov dword [rsp + 0x34], ecx
jmp 0x1800ff28a
sub r14d, ebx
mov edi, r14d
shr edi, 6
add rbx, r12
mov r8d, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1800fe8b0
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1800fe8b0
and r14d, 0x3f
mov r8d, r14d
mov edx, edi
shl edx, 6
add rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180109d40
mov dword [rsp + 0x34], r14d
shl edi, 6
mov ecx, dword [rsp + 0x30]
add ecx, 0x40
add ecx, edi
mov dword [rsp + 0x30], ecx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800fef00
mov byte [rbp + 0x40], 0
lea rbx, [rbp - 0x20]
lea rdi, [rbp]
mov r14d, 0x20
nop word [rax + rax]
movzx r8d, byte [rbx]
lea rdx, [0x180066c8c]
mov rcx, rdi
call fcn.1800d4540
add rdi, 2
lea rbx, [rbx + 1]
sub r14, 1
jne 0x1800ff2b0
xor ebx, ebx
mov qword [r15], rbx
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], 0xf
mov byte [r15], bl
lea rax, [rbp]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800ff2f0
lea rdx, [rbp]
mov rcx, r15
call fcn.180071a80
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800ff33d
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1800ff338
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800ff376
mov rcx, r8
call fcn.1801074bc
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rax, r15
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180107460
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18010e2e4
int3
Function at 0x18011122c
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.180108350
sub rsp, rax
mov rax, qword [0x180155060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180125e34
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18011127b
mov rax, rbp
jmp 0x180111383
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 + 0x15f900]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180126fbc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x15f900]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18011137f
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 0x18011137f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180126fbc
test rax, rax
js 0x18011137f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18011137f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180111371
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180111371
cmp byte [rcx], 0xd
jne 0x180111357
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180111366
cmp byte [rcx + 1], 0xa
jne 0x180111366
inc rcx
jmp 0x180111366
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x155450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180111339
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180111383
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180107460
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 0x180116db8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x180155060]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x18000cc58]
mov rbp, rcx
call fcn.18012b380
xor edi, edi
test rax, rax
je 0x180116e9e
mov ebx, edi
call fcn.180117548
mov r14d, dword [rax]
call fcn.180117548
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.18012b2cc
mov rsi, rax
test rax, rax
je 0x180116e2f
call fcn.180117548
mov dword [rax], r14d
jmp 0x180116e59
call fcn.180117548
cmp dword [rax], 0x22
jne 0x180116e96
call fcn.180117548
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.18012b2cc
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x180116e96
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x180116e5d
cmp rax, 3
je 0x180116e78
mov rcx, rsi
call fcn.180116d14
test al, al
je 0x180116e89
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180116e89
mov dil, 1
mov rcx, rbx
call fcn.180110d78
mov al, dil
jmp 0x180116ea0
mov rcx, rbx
call fcn.180110d78
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180107460
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180127068
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, [0x18015f900]
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 0x1801270bf
cmp word [rdx], r13w
jne 0x1801270bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801270c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801271e9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18012720a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801270fd
mov rdx, r9
mov word [rbx], cx
jmp 0x180127124
cmp r9, r8
jae 0x180127134
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 0x1801270de
jmp 0x1801271e9
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 0x1801271de
cmp dword [rsp + 0x80], esi
je 0x1801271de
lea r8, [0x18015f900]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801271b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180127186
mov word [rbx], r13w
jmp 0x1801271e6
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 0x180127193
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801271e6
cmp word [rsp + 0x70], r13w
jne 0x1801271c3
cmp rbx, r14
je 0x180127180
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180126fc4
cmp word [rsp + 0x70], r13w
je 0x1801271e9
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, [0x18015f900]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801271e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801271e9
Function at 0x180127e6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180127e82
mov al, 1
jmp 0x180127ee2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180127e93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180127ee0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18012ba1c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180127ee0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180127ee0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180127ee0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180127ee2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18012a070
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18012a090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801174bc
or eax, 0xffffffff
jmp 0x18012a092
xor eax, eax
add rsp, 0x28
ret
Function at 0x18012fe3c
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 0x18012fe6c
xor eax, eax
jmp 0x18012ff2f
mov rbp, rbx
cmp word [rax], si
je 0x18012fe91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18012fe78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18012fe74
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.18012a114
movsxd r14, eax
test eax, eax
jne 0x18012fecf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18012fe65
mov rcx, r14
call fcn.180124b34
mov rdi, rax
test rax, rax
jne 0x18012fee8
xor ecx, ecx
call fcn.180124af8
jmp 0x18012fec4
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.18012a114
test eax, eax
jne 0x18012ff19
mov rcx, rdi
call fcn.180124af8
jmp 0x18012ff23
xor ecx, ecx
call fcn.180124af8
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 0x18012ff4c
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 0x18012ffd3
mov rsi, rbx
cmp word [rax], bp
je 0x18012ff92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18012ff7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18012ff78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180124b34
mov rdi, rax
test rax, rax
je 0x18012ffc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180109d40
mov rbp, rdi
xor ecx, ecx
call fcn.180124af8
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 0x180133030
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.180122ea0
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 0x1801330d1
cmp ebx, dword [rsp + 0x30]
je 0x1801330ca
test esi, esi
je 0x1801330ca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801330a5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801330b2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18013308f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801330b6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801330d3
mov eax, 1
jmp 0x1801330d3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180135a24
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180155060]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x180135a6e
call fcn.180117528
mov dword [rax], 0xf
call fcn.180117548
mov dword [rax], 0xd
call fcn.18010e2c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180107460
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x180135a79
lea eax, [rbx + 1]
jmp 0x180135a5b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x180135a59
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x180135a5b

Function at 0x180137b2c
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.18011253c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180137bb6
cmp byte [rbp - 0x21], r15b
je 0x180137bb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180137bec
call fcn.180128404
test eax, eax
jne 0x180137bd8
cmp byte [rbp - 0x21], r15b
je 0x180137bd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180137bec
cmp byte [rbp - 0x21], r15b
je 0x180137be9
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.1801158ac
test eax, eax
jne 0x180137c8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18011253c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180137c2b
cmp byte [rbp - 0x21], r15b
je 0x180137c60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180137c60
call fcn.180128404
test eax, eax
jne 0x180137c4c
cmp byte [rbp - 0x21], r15b
je 0x180137c45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180137c60
cmp byte [rbp - 0x21], r15b
je 0x180137c5d
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.1801158ac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180137c8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180137c8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180137c9d
mov rcx, rdi
call fcn.180124af8
cmp byte [rbp + 0x3f], r15b
je 0x180137cac
mov rcx, qword [rbp + 0x27]
call fcn.180124af8
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 0x180138b78
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.180126fc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180126fc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180138cc8
cmp rax, 0xffffffffffffffff
je 0x180138cc8
xor edi, edi
test rbp, rbp
jle 0x180138c73
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180124a80
mov rbx, rax
test rax, rax
jne 0x180138c00
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180138c69
mov edx, 0x8000
mov ecx, r14d
call fcn.1801389fc
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.1801298d4
cmp eax, 0xffffffff
je 0x180138c49
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180138c10
mov edx, r15d
mov ecx, r14d
call fcn.1801389fc
jmp 0x180138c69
cmp byte [rsi + 0x38], dil
je 0x180138c60
cmp dword [rsi + 0x34], 5
jne 0x180138c60
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180138c69
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180124af8
jmp 0x180138cdc
jns 0x180138cdc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180126fc4
cmp rax, 0xffffffffffffffff
jne 0x180138c94
cmp byte [rsi + 0x30], dil
je 0x180138cdc
mov edi, dword [rsi + 0x2c]
jmp 0x180138cdc
mov ecx, r14d
call fcn.18012ba1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180138cdc
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 0x180138cdc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180138cd5
mov eax, dword [rsi + 0x2c]
jmp 0x180138cda
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180126fc4
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 0x1801cf8b9
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], 0x7099be87
push rbp
push r12
push r11
movabs r12, 0x507c4ede3bb77e61
mov r12, qword [rsp + 8]
call fcn.1801d7a57
and al, 5
adc al, 0x5c
and byte [rbp - 0x2c5bed6b], dh
insb byte [rdi], dx
movabs al, byte [0x485bf6c3b4eda3f2]
xor eax, 0x2f5c19bc
add bh, bh
adc al, 0xa4
push 0xffffffffa41250ab
cmp byte [rbx], ch
sub dword [rsp + riz*4], ebx
mov al, 0x2b
invalid
Function at 0x180200e4d
Capabilities:
Encode data using xor

Disassembly:
push r11
movabs r11, 0x195639a8201704c8
jae 0x18028df22
push r10
sub rcx, rcx
jne 0x1801e5b16
test rcx, 0x4bb119c1
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 0x18], 0xffffffff9598099a
call 0x1801e5b16
mov r11, qword [rsp]
movabs r10, 0x482546686b8b158c
movsxd r10, r10d
not r10w
sub r10w, 0x3dfd
and r10d, r10d
mov r10d, 0x53582334
mov r10, qword [rsp + 0x10]
call fcn.1802dc494
scasb al, byte [rdi]
sal dword es:[rsi + riz*2 - 0x5bd433ab], 0x46
fst qword [0x1432b3b2e]
push rsi
fstp dword [rbx + 0x13]
mov r9, rbx
movabs dword [0x5a71e45bcdf27f8c], eax
invalid

Function at 0x18023189b
Capabilities:
Encode data using xor

Disassembly:
jo 0x1802318ab
push qword [rsp + 0x48]
popfq
lea rsp, [rsp + 0x68]
call fcn.18049e491

Function at 0x180233200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rsi, qword [rsp + 8]
bswap r10
bswap edx
mov r10, qword [rsp + 0x18]
xor byte [rsp + 0x20], 0x92
add dword [rsp + 0x20], 0x41ae29c8
mov qword [rsp + 0x20], 0x442c0511
sub word [rsp + 0x20], 0x5830
and word [rsp + 0x20], 0x3e19
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x38]
call fcn.1804b5224
pop rdx
or bl, byte [0x15010c6c7]
or dword [rax - 0x299dee8], eax
jg 0x180233206
ret

Function at 0x1802f2186
Capabilities:
Encode data using xor

Disassembly:
mov r11, qword [rsp + 0x10]
call fcn.1803a94d1
or al, 0x82
sub byte [rsi - 0x58f464fc], cl
invalid

Function at 0x18032b07a
Capabilities:
Encode data using xor

Disassembly:
push rbp
call fcn.1801c56c7
sbb al, 0x51
fild dword [rcx - 0x4de15f78]
invalid

Function at 0x18038c1d2
Capabilities:
Encode data using xor

Disassembly:
setl bpl
add qword [rsp + 0x18], 0x7fae87cc
neg bp
add qword [rsp], 0x7fc829aa
add rbp, 0x5330ca9
lea rbp, [rbp*2 + 0x1a686566]
xor rbp, 0x2ff355ef
sub al, 0x6d
push 0x481a
xor ebp, 0x2ff355ef
mov rbp, qword [rsp + 8]
jo 0x18038c1f2
call fcn.1802f50e7
xor dword [rbx + 0x7b], ebx
and al, 0x2b
jmp 0x18038c1f4

Function at 0x18039ae71
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x60]
popfq
lea rsp, [rsp + 0x70]
call fcn.180406026

Function at 0x1803b6e30
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp + 0x20], 0x370167e0
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x40]
call fcn.1804aec95

Function at 0x1803ce982
Capabilities:
Encode data using xor

Disassembly:
cmp r11w, 0x67bf
call fcn.1803f691b
jno 0x18024618d
push rax
mov bl, 0xe4
xchg al, al
xor eax, 0xc286e982
sub al, 0x1a
jns 0x1803ce98d
invalid

Function at 0x1803e78ec
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4887e8de
mov dword [rsp + 8], 0xd8345ceb
mov qword [rsp + 8], 0xffffffffd8345ceb
pushfq
add qword [rsp + 8], 0x7fdedeb4
push qword [rsp]
popfq
lea rsp, [rsp + 0x10]
call fcn.1804d3eb1
stosd dword [rdi], eax
xchg dword [rcx + rdi*2 + 0x7c], edx
fcmovnbe st(0), st(3)
lodsb al, byte [rsi]
xchg byte [rcx - 0x79572e88], bl
leave
xor bl, al
test eax, 0xd5929586
push rbx
jns 0x1803e78e7
test esi, 0x9e517952
sbb dword [rdi + 0x79], 0xffffffb8
invalid
Function at 0x1803f991d
Capabilities:
Encode data using xor

Disassembly:
sbb eax, ebp
invalid
call fcn.1803b0ca4
add byte [rbx + 0x10], ch
adc byte [rcx + 0x4f], 0x4f
jrcxz 0x1803f99aa
sti
xchg byte [rbx - 0x147b8019], ch
mov bl, 0xe9
jg 0x1803f991c
invalid
invalid