joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c83ac
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c8197
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c8197
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8197
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8197
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8197
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8197
cmp dword [rcx + 0xf8], 0
je 0x1400c8197
mov ecx, ebx
call fcn.1400c82b4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c7ef8
nop
cmp dword [rbp + 0x20], 0
je 0x1400c81e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c81f0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c8128

Function at 0x1400d6fec
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.1400be60c
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1400d7037
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1400d706b
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d706b
call fcn.1400e2eb4
xor ebx, ebx
test eax, eax
jne 0x1400d7059
cmp byte [rbp - 0x48], bl
je 0x1400d7052
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1400d706b
cmp byte [rbp - 0x48], bl
je 0x1400d7069
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.1400d5ff4
mov esi, eax
test eax, eax
je 0x1400d70a7
call fcn.140092280
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1400d7100
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.1400d5ff4
mov edi, eax
test eax, eax
je 0x1400d70e3
call fcn.140092280
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400d70f2
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1400f2c00
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1400d7100
mov rcx, qword [rbp - 0x50]
call fcn.1400de200
cmp byte [rbp - 8], bl
je 0x1400d710e
mov rcx, qword [rbp - 0x20]
call fcn.1400de200
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 0x1400dfefc
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, [0x140138230]
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 0x1400dff5a
cmp word [rdx], r12w
jne 0x1400dff5a
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400dff60
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400e00bb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400e0096
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400dff99
mov rcx, r9
jmp 0x1400dffbc
cmp r9, rdx
jae 0x1400dffd3
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 0x1400dff7d
jmp 0x1400e00bb
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 0x1400e0090
cmp dword [rsp + 0x80], edi
je 0x1400e0090
mov rdx, r14
lea r11, [0x140138230]
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 0x1400e0069
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400e003c
mov word [rbx], r12w
jmp 0x1400e00b7
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 0x1400e0045
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400e00b7
cmp word [rsp + 0x70], r12w
jne 0x1400e0076
cmp rbx, rsi
je 0x1400e0036
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400def6c
cmp word [rsp + 0x70], r12w
je 0x1400e00bb
mov word [rbx], r13w
jmp 0x1400e00b7
lea r11, [0x140138230]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400e00b3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400e00bb
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 0x1400e206c
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 0x1400e209e
call fcn.140092280
mov dword [rax], 0x16
call fcn.1400de788
jmp 0x1400e21bd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400e21bd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400e21bd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400e20cd
lock or dword [rcx + 0x14], 0x10
jmp 0x1400e21bd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400e20e1
call fcn.1400ef6e8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400de87c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400e04a0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400e21ab
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400e2176
mov rcx, rsi
call fcn.1400de87c
cmp eax, edi
je 0x1400e2161
mov rcx, rsi
call fcn.1400de87c
cmp eax, 0xfffffffe
je 0x1400e2161
mov rcx, rsi
call fcn.1400de87c
movsxd rbx, eax
lea r14, [0x140138230]
mov rcx, rsi
sar rbx, 6
call fcn.1400de87c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400e2168
lea rdx, [0x1401365d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400e2176
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400e219a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400e219a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400e219a
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 0x1400e21c0
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 0x1400e21d8
Capabilities:
Read file on windows

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
mov rbx, rcx
test rcx, rcx
jne 0x1400e1e7a
call fcn.140092280
mov dword [rax], 0x16
call fcn.1400de788
jmp 0x1400e1fca
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400e1fca
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400e1fca
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400e1ea9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400e1fca
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400e1ebd
call fcn.1400ef6e8
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400e1ecd
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400e1ed0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400de87c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400e04a0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400e1fb8
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400e1f63
mov rcx, rbx
call fcn.1400de87c
cmp eax, 0xffffffff
je 0x1400e1f4e
mov rcx, rbx
call fcn.1400de87c
cmp eax, 0xfffffffe
je 0x1400e1f4e
mov rcx, rbx
call fcn.1400de87c
movsxd rdi, eax
lea rsi, [0x140138230]
mov rcx, rbx
sar rdi, 6
call fcn.1400de87c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400e1f55
lea rdx, [0x1401365d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400e1f63
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400e1f87
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400e1f87
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400e1f87
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1400e1fa5
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1400e1fb0
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400e1fcf
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400e1e44
Function at 0x1400f2bd0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400f2bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400921f4
or eax, 0xffffffff
jmp 0x1400f2bf2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400f7d40
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 0x1400f7d70
xor eax, eax
jmp 0x1400f7e33
mov rbp, rbx
cmp word [rax], si
je 0x1400f7d95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f7d7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f7d78
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.1400f06dc
movsxd r14, eax
test eax, eax
jne 0x1400f7dd3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f7d69
mov rcx, r14
call fcn.1400e3dfc
mov rdi, rax
test rax, rax
jne 0x1400f7dec
xor ecx, ecx
call fcn.1400de200
jmp 0x1400f7dc8
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.1400f06dc
test eax, eax
jne 0x1400f7e1d
mov rcx, rdi
call fcn.1400de200
jmp 0x1400f7e27
xor ecx, ecx
call fcn.1400de200
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 0x1400f7e50
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 0x1400f7ed7
mov rsi, rbx
cmp word [rax], bp
je 0x1400f7e96
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f7e80
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f7e7c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e3dfc
mov rdi, rax
test rax, rax
je 0x1400f7ec4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400809f0
mov rbp, rdi
xor ecx, ecx
call fcn.1400de200
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 0x140101c5c
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.1400def6c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400def6c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140101dac
cmp rax, 0xffffffffffffffff
je 0x140101dac
xor edi, edi
test rbp, rbp
jle 0x140101d57
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400de180
mov rbx, rax
test rax, rax
jne 0x140101ce4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140101d4d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400da358
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.1400e989c
cmp eax, 0xffffffff
je 0x140101d2d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140101cf4
mov edx, r15d
mov ecx, r14d
call fcn.1400da358
jmp 0x140101d4d
cmp byte [rsi + 0x38], dil
je 0x140101d44
cmp dword [rsi + 0x34], 5
jne 0x140101d44
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140101d4d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400de200
jmp 0x140101dc0
jns 0x140101dc0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400def6c
cmp rax, 0xffffffffffffffff
jne 0x140101d78
cmp byte [rsi + 0x30], dil
je 0x140101dc0
mov edi, dword [rsi + 0x2c]
jmp 0x140101dc0
mov ecx, r14d
call fcn.1400f8eac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140101dc0
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 0x140101dc0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140101db9
mov eax, dword [rsi + 0x2c]
jmp 0x140101dbe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400def6c
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 0x1401057bc
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.1400be60c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140105846
cmp byte [rbp - 0x21], r15b
je 0x140105841
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14010587c
call fcn.1400e2eb4
test eax, eax
jne 0x140105868
cmp byte [rbp - 0x21], r15b
je 0x140105860
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14010587c
cmp byte [rbp - 0x21], r15b
je 0x140105879
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.1400d5ff4
test eax, eax
jne 0x14010591c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400be60c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401058bb
cmp byte [rbp - 0x21], r15b
je 0x1401058f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401058f0
call fcn.1400e2eb4
test eax, eax
jne 0x1401058dc
cmp byte [rbp - 0x21], r15b
je 0x1401058d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401058f0
cmp byte [rbp - 0x21], r15b
je 0x1401058ed
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.1400d5ff4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14010591c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14010591f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14010592d
mov rcx, rdi
call fcn.1400de200
cmp byte [rbp + 0x3f], r15b
je 0x14010593c
mov rcx, qword [rbp + 0x27]
call fcn.1400de200
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 0x140107844
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
or r8d, 0xffffffff
xor r9d, r9d
mov r10, rdx
mov rbx, rcx
test rdx, rdx
je 0x140107891
movzx eax, byte [r9 + rbx]
mov r11d, 8
xor r8d, eax
mov eax, r8d
mov ecx, r8d
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
mov r8d, edx
xor r8d, ecx
sub r11, 1
jne 0x140107869
inc r9
cmp r9, r10
jb 0x14010785b
mov rbx, qword [rsp + 8]
not r8d
mov eax, r8d
ret
Function at 0x1401078f0
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov rax, qword [0x1401361e0]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x234
xor bl, bl
xor edi, edi
call fcn.140081310
and qword [rsp + 0x20], rdi
cmp qword [0x140138bf8], rdi
mov dword [rsp + 0x30], 0x238
jne 0x140107a1d
call fcn.1401078a0
test al, al
je 0x14010795f
mov bl, 1
jmp 0x140107a0a
xor edx, edx
lea ecx, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14010797a
mov bl, 2
jmp 0x140107a0a
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x1401079f0
mov bl, 3
jmp 0x140107a0a
lea rcx, [rsp + 0x60]
call fcn.1400920f0
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140107844
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x34], eax
mov r8d, 0x238
call fcn.1400809f0
mov rax, qword [0x140138bf8]
test rax, rax
jne 0x140107a4e
mov qword [0x140138bf8], rsi
and qword [rsi + 0x250], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
je 0x140107a6b
lea r8, [rsp + 0x20]
mov edx, 0x258
mov ecx, 1
call fcn.140107634
test al, al
je 0x140107990
mov bl, 4
call fcn.1401078a0
test rdi, rdi
je 0x140107a1d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14007f590
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rax, qword [rax + 0x250]
mov qword [rsi + 0x250], rax
cmp qword [rax + 0x250], 0
jne 0x140107a47
mov qword [rax + 0x250], rsi
jmp 0x1401079d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x140107a0f
mov bl, 6
jmp 0x140107a0a
Function at 0x408280
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x005c10a8], 0
je 0x408338
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.00410380
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x005980d8]
call fcn.00410380
mov rcx, rsi
mov rdx, qword [0x005980d8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.00410380
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40834b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x409630
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x409642
call fcn.00409610
add rsp, 0x28
ret

Function at 0x409650
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x450
mov rbp, rsp
mov byte [rbp + 0x27], cl
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
nop
xor esi, esi
movzx rax, byte [rbp + 0x27]
test al, al
je 0x4096e3
movzx rax, byte [rbp + 0x27]
movzx ax, al
add ax, 0x40
mov word [rbp + 0x448], ax
mov word [rbp + 0x44a], 0x3a
mov word [rbp + 0x44c], 0
mov ecx, 0x104
lea rdx, [rbp + 0x38]
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
jbe 0x4096d7
lea rcx, [rbp + 0x30]
mov edx, esi
sub edx, 1
call fcn.00411160
mov rcx, qword [rbp + 0x30]
call fcn.00410ef0
mov ecx, esi
mov rdx, rax
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 0x448]
call sub.kernel32.dll_SetCurrentDirectoryW
mov ecx, 0x104
lea rdx, [rbp + 0x240]
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
cmp ebx, 0x104
ja 0x409716
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x240]
mov r8d, 0x104
call fcn.00410fb0
jmp 0x40973a
mov rcx, qword [rbp + 0x28]
mov edx, ebx
sub edx, 1
call fcn.00411160
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410ef0
mov ecx, ebx
mov rdx, rax
call sub.kernel32.dll_GetCurrentDirectoryW
movzx rax, byte [rbp + 0x27]
test al, al
je 0x409767
cmp esi, 0x104
jbe 0x40975e
mov rcx, qword [rbp + 0x30]
call fcn.00410ef0
mov rcx, rax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x409767
lea rcx, [rbp + 0x38]
call sub.kernel32.dll_SetCurrentDirectoryW
nop
lea rcx, [rbp + 0x30]
call fcn.0040fb50
lea rsp, [rbp + 0x450]
pop rbx
pop rsi
pop rbp
ret