joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140418cd4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140418d58
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140418d58
dec r8
sub rdx, 1
jne 0x140418d3e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14041a440
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14041a48a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14041a48a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14041a48a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14041a48a
cmp dword [rcx + 0x84], 0xe
jbe 0x14041a48a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14041a48c
xor al, al
add rsp, 0x28
ret
Function at 0x1404319dc
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.140419e10
sub rsp, rax
mov rax, qword [0x14049b328]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140445bc4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140431a2b
mov rax, rbp
jmp 0x140431b33
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 + 0x4a1e60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140437afc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4a1e60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140431b2f
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 0x140431b2f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140437afc
test rax, rax
js 0x140431b2f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140431b2f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140431b21
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140431b21
cmp byte [rcx], 0xd
jne 0x140431b07
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140431b16
cmp byte [rcx + 1], 0xa
jne 0x140431b16
inc rcx
jmp 0x140431b16
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x49b570]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140431ae9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140431b33
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140419de0
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 0x140436b88
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 [0x14049b328]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1404745b0]
mov rbp, rcx
call fcn.140448310
xor edi, edi
test rax, rax
je 0x140436c6e
mov ebx, edi
call fcn.140428e78
mov r14d, dword [rax]
call fcn.140428e78
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14044825c
mov rsi, rax
test rax, rax
je 0x140436bff
call fcn.140428e78
mov dword [rax], r14d
jmp 0x140436c29
call fcn.140428e78
cmp dword [rax], 0x22
jne 0x140436c66
call fcn.140428e78
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14044825c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140436c66
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140436c2d
cmp rax, 3
je 0x140436c48
mov rcx, rsi
call fcn.140436ae4
test al, al
je 0x140436c59
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140436c59
mov dil, 1
mov rcx, rbx
call fcn.14042890c
mov al, dil
jmp 0x140436c70
mov rcx, rbx
call fcn.14042890c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140419de0
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 0x1404382d8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14043830f
call fcn.140428e78
mov dword [rax], socket
call fcn.140428d0c
xor eax, eax
jmp 0x14043839d
mov rdx, r9
mov rcx, r8
call fcn.140438274
mov rbx, rax
test rax, rax
je 0x14043839a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1404381a0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140438387
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140428dec
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14043836e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14043837d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140442f84
jmp 0x14043839a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140438397
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14043e4c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14043e2c0
Function at 0x1404413e8
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, [0x1404a1e60]
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 0x14044143f
cmp word [rdx], r13w
jne 0x14044143f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140441444
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140441569
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14044158a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14044147d
mov rdx, r9
mov word [rbx], cx
jmp 0x1404414a4
cmp r9, r8
jae 0x1404414b4
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 0x14044145e
jmp 0x140441569
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 0x14044155e
cmp dword [rsp + 0x80], esi
je 0x14044155e
lea r8, [0x1404a1e60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140441536
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140441506
mov word [rbx], r13w
jmp 0x140441566
mov ecx, reloc.WS2_32.dll_listen
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 0x140441513
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140441566
cmp word [rsp + 0x70], r13w
jne 0x140441543
cmp rbx, r14
je 0x140441500
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140437b04
cmp word [rsp + 0x70], r13w
je 0x140441569
mov ecx, reloc.WS2_32.dll_listen
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, [0x1404a1e60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140441563
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140441569
Function at 0x1404469c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1404469de
mov al, 1
jmp 0x140446a3e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1404469ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140446a3c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140447c90
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140446a3c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140446a3c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140446a3c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140446a3e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140447da0
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.140437b04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140437b04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140447ef0
cmp rax, 0xffffffffffffffff
je 0x140447ef0
xor edi, edi
test rbp, rbp
jle 0x140447e9b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140442f0c
mov rbx, rax
test rax, rax
jne 0x140447e28
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140447e91
mov edx, 0x8000
mov ecx, r14d
call fcn.14043f5b4
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.1404427a0
cmp eax, 0xffffffff
je 0x140447e71
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140447e38
mov edx, r15d
mov ecx, r14d
call fcn.14043f5b4
jmp 0x140447e91
cmp byte [rsi + 0x38], dil
je 0x140447e88
cmp dword [rsi + 0x34], 5
jne 0x140447e88
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140447e91
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140442f84
jmp 0x140447f04
jns 0x140447f04
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140437b04
cmp rax, 0xffffffffffffffff
jne 0x140447ebc
cmp byte [rsi + 0x30], dil
je 0x140447f04
mov edi, dword [rsi + 0x2c]
jmp 0x140447f04
mov ecx, r14d
call fcn.140447c90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140447f04
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 0x140447f04
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140447efd
mov eax, dword [rsi + 0x2c]
jmp 0x140447f02
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140437b04
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 0x14044b5bc
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 0x14044b5ec
xor eax, eax
jmp 0x14044b6af
mov rbp, rbx
cmp word [rax], si
je 0x14044b611
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14044b5f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14044b5f4
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.14044873c
movsxd r14, eax
test eax, eax
jne 0x14044b64f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14044b5e5
mov rcx, r14
call fcn.14044499c
mov rdi, rax
test rax, rax
jne 0x14044b668
xor ecx, ecx
call fcn.140442f84
jmp 0x14044b644
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.14044873c
test eax, eax
jne 0x14044b699
mov rcx, rdi
call fcn.140442f84
jmp 0x14044b6a3
xor ecx, ecx
call fcn.140442f84
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 0x14044b6cc
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 0x14044b753
mov rsi, rbx
cmp word [rax], bp
je 0x14044b712
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14044b6fc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14044b6f8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14044499c
mov rdi, rax
test rax, rax
je 0x14044b740
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14041bc20
mov rbp, rdi
xor ecx, ecx
call fcn.140442f84
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 0x14044e72c
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.1404443f0
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 0x14044e7cd
cmp ebx, dword [rsp + 0x30]
je 0x14044e7c6
test esi, esi
je 0x14044e7c6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14044e7a1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14044e7ae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14044e78b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14044e7b2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14044e7cf
mov eax, 1
jmp 0x14044e7cf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14044ee14
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14044ee34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140428dec
or eax, 0xffffffff
jmp 0x14044ee36
xor eax, eax
add rsp, 0x28
ret

Function at 0x140450f10
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14049b328]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140450f5a
call fcn.140428e58
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140428e78
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140428d0c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140419de0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140450f65
lea eax, [rbx + 1]
jmp 0x140450f47
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 0x140450f45
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140450f47
Function at 0x1404517e4
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.14042cf68
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14045186e
cmp byte [rbp - 0x21], r15b
je 0x140451869
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1404518a4
call fcn.1404432e0
test eax, eax
jne 0x140451890
cmp byte [rbp - 0x21], r15b
je 0x140451888
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1404518a4
cmp byte [rbp - 0x21], r15b
je 0x1404518a1
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.140435600
test eax, eax
jne 0x140451944
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14042cf68
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1404518e3
cmp byte [rbp - 0x21], r15b
je 0x140451918
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140451918
call fcn.1404432e0
test eax, eax
jne 0x140451904
cmp byte [rbp - 0x21], r15b
je 0x1404518fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140451918
cmp byte [rbp - 0x21], r15b
je 0x140451915
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.140435600
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140451944
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140451947
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140451955
mov rcx, rdi
call fcn.140442f84
cmp byte [rbp + 0x3f], r15b
je 0x140451964
mov rcx, qword [rbp + 0x27]
call fcn.140442f84
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 0x140452860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140452888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140452888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001a750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a7e0
cmp r11, r10
ja 0x14001a856
cmp r10, rdx
ja 0x14001a86a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a7e2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a7c0
jmp 0x14001a844
ja 0x14001a7ea
mov r11, r10
cmp rax, r8
jne 0x14001a784
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a820
mov rdi, r8
sub ecx, edx
jns 0x14001a83b
jmp 0x14001a846
cmp r8, rsi
je 0x14001a87b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a846
xor al, 1
cmp rdi, rsi
jne 0x14001a800
jmp 0x14001a846
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413b9bf8]
mov rcx, r11
mov rdx, r10
call fcn.1400514f0
ud2
lea r8, [0x1413b9bf8]
mov rcx, r10
call fcn.1400512c0
ud2
lea rcx, [0x1413be298]
lea r8, [0x1413b9be0]
mov edx, 0x2b
call fcn.140051330
ud2

Function at 0x140020030
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017dc0
cmp rax, rcx
je 0x140020055
cmp rdx, 4
jae 0x140020058
xor eax, eax
xor r8d, r8d
jmp 0x1400200f0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140053720]
movdqa xmm3, xmmword [0x140053530]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140020080
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140020107
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400200f0
ret
Function at 0x140021080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400210db
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400210db
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400210f6
cmp eax, 0x42
jne 0x1400210db
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400211a6
cmp byte [r9 + r11], 0x5f
jne 0x1400211a6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002120e
mov rcx, rsi
xor edx, edx
call fcn.14001c7e0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001c7e0
test al, al
jne 0x1400212a1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021132
lea rdx, [0x1413bdb93]
mov r8d, 1
call fcn.140018350
test al, al
jne 0x1400212a1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400210ea
xor r14d, r14d
lea rbx, [0x1413bdf48]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140021164
cmp byte [rax + rcx], 0x45
je 0x1400212ca
sub r14, 1
jb 0x140021189
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021189
mov r8d, 2
mov rdx, rbx
call fcn.140018350
test al, al
jne 0x1400212a1
mov rcx, rsi
call fcn.14001e030
test al, al
jne 0x1400212a1
mov rax, qword [rsi]
test rax, rax
jne 0x140021150
jmp 0x1400210ea
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140021268
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140021202
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400211ec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400211db
add dl, 0xa9
jmp 0x1400211ea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140021268
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140021268
movzx edx, bl
add rax, rdx
jae 0x1400211b0
jmp 0x140021268
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140021268
cmp rax, rcx
jae 0x140021265
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400212a9
cmp qword [rsi + 0x20], 0
je 0x1400212c3
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140021080
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400210ec
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400212b8
lea rax, [0x1413bdef8]
lea rdx, [0x1413bdf08]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140018350
test al, al
je 0x1400212b8
mov dil, 2
jmp 0x1400210ea
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140021273
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400210ea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400210ea