joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043b30
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, [0x1400725a0]
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 0x140043b8e
cmp word [rdx], r12w
jne 0x140043b8e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140043b94
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140043cef
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140043cca
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140043bcd
mov rcx, r9
jmp 0x140043bf0
cmp r9, rdx
jae 0x140043c07
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 0x140043bb1
jmp 0x140043cef
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 0x140043cc4
cmp dword [rsp + 0x80], edi
je 0x140043cc4
mov rdx, r14
lea r11, [0x1400725a0]
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 0x140043c9d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140043c70
mov word [rbx], r12w
jmp 0x140043ceb
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 0x140043c79
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140043ceb
cmp word [rsp + 0x70], r12w
jne 0x140043caa
cmp rbx, rsi
je 0x140043c6a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400447bc
cmp word [rsp + 0x70], r12w
je 0x140043cef
mov word [rbx], r13w
jmp 0x140043ceb
lea r11, [0x1400725a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140043ce7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140043cef
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 0x140047d04
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 0x140047d34
xor eax, eax
jmp 0x140047df7
mov rbp, rbx
cmp word [rax], si
je 0x140047d59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140047d40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140047d3c
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.1400464b0
movsxd r14, eax
test eax, eax
jne 0x140047d97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140047d2d
mov rcx, r14
call fcn.140040064
mov rdi, rax
test rax, rax
jne 0x140047db0
xor ecx, ecx
call fcn.14003fbe4
jmp 0x140047d8c
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.1400464b0
test eax, eax
jne 0x140047de1
mov rcx, rdi
call fcn.14003fbe4
jmp 0x140047deb
xor ecx, ecx
call fcn.14003fbe4
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 0x14004f72c
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.140032a40
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004f7b6
cmp byte [rbp - 0x21], r15b
je 0x14004f7b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004f7ec
call fcn.1400403e8
test eax, eax
jne 0x14004f7d8
cmp byte [rbp - 0x21], r15b
je 0x14004f7d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004f7ec
cmp byte [rbp - 0x21], r15b
je 0x14004f7e9
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.1400328c4
test eax, eax
jne 0x14004f88c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140032a40
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004f82b
cmp byte [rbp - 0x21], r15b
je 0x14004f860
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004f860
call fcn.1400403e8
test eax, eax
jne 0x14004f84c
cmp byte [rbp - 0x21], r15b
je 0x14004f845
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004f860
cmp byte [rbp - 0x21], r15b
je 0x14004f85d
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.1400328c4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004f88c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004f88f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004f89d
mov rcx, rdi
call fcn.14003fbe4
cmp byte [rbp + 0x3f], r15b
je 0x14004f8ac
mov rcx, qword [rbp + 0x27]
call fcn.14003fbe4
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 0x140050aa4
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.1400447bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400447bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140050bf4
cmp rax, 0xffffffffffffffff
je 0x140050bf4
xor edi, edi
test rbp, rbp
jle 0x140050b9f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140042164
mov rbx, rax
test rax, rax
jne 0x140050b2c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140050b95
mov edx, 0x8000
mov ecx, r14d
call fcn.14003c60c
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.14003f8d4
cmp eax, 0xffffffff
je 0x140050b75
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140050b3c
mov edx, r15d
mov ecx, r14d
call fcn.14003c60c
jmp 0x140050b95
cmp byte [rsi + 0x38], dil
je 0x140050b8c
cmp dword [rsi + 0x34], 5
jne 0x140050b8c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x140050b95
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003fbe4
jmp 0x140050c08
jns 0x140050c08
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400447bc
cmp rax, 0xffffffffffffffff
jne 0x140050bc0
cmp byte [rsi + 0x30], dil
je 0x140050c08
mov edi, dword [rsi + 0x2c]
jmp 0x140050c08
mov ecx, r14d
call fcn.140048a24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140050c08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
jmp 0x140050c08
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140050c01
mov eax, dword [rsi + 0x2c]
jmp 0x140050c06
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400447bc
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 0x141340058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1413401df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141340089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14134006f
add dl, dl
jne 0x141340096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413400f6
xor eax, eax
add dl, dl
jne 0x1413400a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413401ad
add dl, dl
jne 0x1413400b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413400c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413400d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413400dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413400ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14134007e
mov eax, 1
add dl, dl
jne 0x141340106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141340113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413400fb
sub eax, ebx
mov ebx, 1
jne 0x14134014c
mov ecx, 1
add dl, dl
jne 0x14134012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14134013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141340123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14134007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141340168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141340175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14134015d
cmp eax, 0x7d00
jae 0x14134019b
cmp eax, 0x500
jb 0x141340196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14134007e
cmp eax, 0x7f
ja 0x14134019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14134007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413401d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14134007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180010e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm1
xor r8d, r8d
lea rdx, [0x18011dcd0]
lea rcx, [rsp + 0x30]
call fcn.180006af0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011dcd4]
lea rcx, [rsp + 0x50]
call fcn.180006af0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x80], xmm1
xor r8d, r8d
lea rdx, [0x18011dcd8]
lea rcx, [rsp + 0x70]
call fcn.180006af0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800117c0
nop
lea r9, [fcn.180005250]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
lea rcx, [rsp + 0x30]
call fcn.1800b9920
xor esi, esi
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], rsi
mov dword [rdi + 0x28], 9
mov byte [rdi + 0x2c], sil
mov dword [rdi + 0x30], esi
mov word [rdi + 0x34], si
mov dword [rdi + 0x38], esi
mov qword [rdi + 0x3c], 1
lea rbx, [rdi + 0x48]
mov qword [rsp + 0xa8], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea r8d, [rsi + 0xe]
lea rdx, str.kernelbase.dll
mov rcx, rbx
call fcn.180006af0
nop
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], 5
mov qword [rbx + 0x38], send
mov eax, dword [0x180157898]
mov dword [rbx + 0x20], eax
movzx eax, byte [0x18015789c]
mov byte [rbx + 0x24], al
mov byte [rbx + 0x25], sil
mov byte [rdi + 0x88], sil
mov qword [rdi + 0x8c], rsi
mov qword [rdi + 0x98], rsi
mov qword [rdi + 0xa0], rsi
mov qword [rdi + 0xa8], rsi
mov qword [rdi + 0xb0], rsi
mov qword [rdi + 0xb8], rsi
mov qword [0x1803607d8], rdi
mov rax, rdi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180013130
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1803607d8]
xor ebx, ebx
mov r14, r8
mov r15, rdx
mov rdi, rcx
cmp dword [rax + 0x30], ebx
je 0x18001326e
mov qword [r11 + 8], rsi
mov qword [rbp + 0x7f], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x1800131ce
mov rsi, rdi
and rsi, 0xffffffffa0000000
je 0x1800131ce
test dil, 3
jne 0x1800131ce
lea rax, [rbp + 0x7f]
mov qword [rbp - 9], rbx
lea rdx, [rbp - 9]
mov qword [rbp + 0x17], rax
lea ecx, [rbx + 0x17]
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x33], rbx
mov dword [rbp + 0x3b], ebx
mov qword [rbp + 0x3f], 0x25
mov qword [rbp - 1], rdi
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r14
mov dword [rbp + 0x2f], ebx
call fcn.180026070
mov r14d, ebx
jmp 0x1800131e4
mov rsi, rdi
mov r14, rdi
and rsi, 0xffffffffa0000000
mov eax, 0x122
and r14d, 3
mov dword [0x180360ae8], eax
mov rax, qword [0x1803607d8]
cmp byte [rax + 0x35], bl
je 0x18001324d
mov r15, qword [rbp + 0x7f]
test r15, r15
je 0x18001324d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
je 0x18001324d
test rsi, rsi
je 0x18001324d
test r14, r14
jne 0x18001324d
xorps xmm0, xmm0
mov qword [rbp - 9], rbx
lea rdx, [rbp - 9]
movdqa xmmword [rbp + 0x17], xmm0
lea ecx, [r14 + 0x18]
mov qword [rbp + 0xf], rbx
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], rbx
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], 0x25
mov qword [rbp - 1], rdi
mov qword [rbp + 7], r15
call fcn.180026070
mov rsi, qword [rsp + 0xb0]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x30], rbx
mov r9, r15
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x180013255
Function at 0x18001fdf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
call fcn.1800200b0
nop
mov eax, dword [rsi + 0x18]
mov dword [rbp + 0x18], eax
mov eax, dword [rsi + 0x1c]
mov dword [rbp + 0x1c], eax
mov eax, dword [rsi + 0x20]
mov dword [rbp + 0x20], eax
mov eax, dword [rsi + 0x24]
mov dword [rbp + 0x24], eax
mov eax, dword [rsi + 0x28]
mov dword [rbp + 0x28], eax
movzx eax, byte [rsi + 0x2c]
mov byte [rbp + 0x2c], al
mov eax, dword [rsi + 0x30]
mov dword [rbp + 0x30], eax
movzx eax, byte [rsi + 0x34]
mov byte [rbp + 0x34], al
movzx eax, byte [rsi + 0x35]
mov byte [rbp + 0x35], al
mov eax, dword [rsi + 0x38]
mov dword [rbp + 0x38], eax
mov eax, dword [rsi + 0x3c]
mov dword [rbp + 0x3c], eax
mov eax, dword [rsi + 0x40]
mov dword [rbp + 0x40], eax
lea rdi, [rbp + 0x48]
mov qword [rsp + 0x48], rdi
lea rdx, [rsi + 0x48]
mov rcx, rdi
call fcn.1800053e0
nop
lea rcx, [rdi + 0x20]
lea rdx, [rsi + 0x68]
call fcn.180005730
nop
movzx eax, byte [rsi + 0x88]
mov byte [rbp + 0x88], al
mov eax, dword [rsi + 0x8c]
mov dword [rbp + 0x8c], eax
mov eax, dword [rsi + 0x90]
mov dword [rbp + 0x90], eax
mov rax, qword [rsi + 0x98]
mov qword [rbp + 0x98], rax
mov rax, qword [rsi + 0xa0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rsi + 0xa8]
mov qword [rbp + 0xa8], rax
mov rax, qword [rsi + 0xb0]
mov qword [rbp + 0xb0], rax
mov rax, qword [rsi + 0xb8]
mov qword [rbp + 0xb8], rax
mov rax, rbp
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001ff20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov qword [rsp + 0x50], r14
mov rdi, rdx
mov qword [rsp + 0x20], r15
mov rsi, rcx
cmp rcx, rdx
je 0x18001ff4f
mov rdx, qword [rdx]
mov r8, qword [rdi + 8]
sub r8, rdx
sar r8, 5
call fcn.180020300
mov eax, dword [rdi + 0x18]
lea r15, [rdi + 0x48]
mov dword [rsi + 0x18], eax
lea r14, [rsi + 0x48]
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x1c], eax
mov eax, dword [rdi + 0x20]
mov dword [rsi + 0x20], eax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov eax, dword [rdi + 0x28]
mov dword [rsi + 0x28], eax
movzx eax, byte [rdi + 0x2c]
mov byte [rsi + 0x2c], al
mov eax, dword [rdi + 0x30]
mov dword [rsi + 0x30], eax
movzx eax, byte [rdi + 0x34]
mov byte [rsi + 0x34], al
movzx eax, byte [rdi + 0x35]
mov byte [rsi + 0x35], al
mov eax, dword [rdi + 0x38]
mov dword [rsi + 0x38], eax
mov eax, dword [rdi + 0x3c]
mov dword [rsi + 0x3c], eax
mov eax, dword [rdi + 0x40]
mov dword [rsi + 0x40], eax
cmp r14, r15
je 0x180020007
cmp qword [r15 + 0x18], 8
mov r9, r15
mov rdx, qword [r15 + 0x10]
jb 0x18001ffb8
mov r9, qword [r15]
mov rax, qword [r14 + 0x18]
cmp rdx, rax
ja 0x18001ffff
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov rbp, r14
cmp rax, 8
jb 0x18001ffd7
mov rbp, qword [r14]
lea rbx, [rdx + rdx]
mov qword [r14 + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.1800bbe40
xor eax, eax
mov word [rbx + rbp], ax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jmp 0x180020007
mov rcx, r14
call fcn.180014600
lea rdx, [r15 + 0x20]
mov r15, qword [rsp + 0x20]
lea rcx, [r14 + 0x20]
mov r14, qword [rsp + 0x50]
cmp rcx, rdx
je 0x180020031
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x18002002c
mov rdx, qword [rdx]
call fcn.1800201a0
movzx eax, byte [rdi + 0x88]
mov byte [rsi + 0x88], al
mov eax, dword [rdi + 0x8c]
mov dword [rsi + 0x8c], eax
mov eax, dword [rdi + 0x90]
mov dword [rsi + 0x90], eax
mov rax, qword [rdi + 0x98]
mov qword [rsi + 0x98], rax
mov rax, qword [rdi + 0xa0]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi + 0xa8]
mov qword [rsi + 0xa8], rax
mov rax, qword [rdi + 0xb0]
mov qword [rsi + 0xb0], rax
mov rax, qword [rdi + 0xb8]
mov qword [rsi + 0xb8], rax
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x180022a70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180022aa1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x180022b1b
mov rdi, r14
mov rcx, rbx
call fcn.180023d30
test rax, rax
jle 0x180022af3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1800bbe40
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180022b0b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180022b13
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180022ab5
sub r14, rdi
jmp 0x180022bff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180022b32
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180022b34
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180022b66
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800bbe40
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180022bfc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180022ba1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x180022bdd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800cab28
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180022bfc
cmp rbp, rax
ja 0x180022bb0
test rbp, rbp
je 0x180022bfc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800cab28
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180027020
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
movups xmm0, xmmword [0x1801582f0]
mov eax, dword [0x180158320]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmm1, xmmword [0x180158300]
mov dword [rsp + 0x60], eax
movzx eax, word [0x180158324]
movups xmmword [rsp + 0x30], xmm0
mov qword [r11 + 8], rcx
movups xmm0, xmmword [0x180158310]
mov word [rsp + 0x64], ax
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm0
jl 0x1800271dd
movdqa xmm5, xmmword [0x18015bd50]
lea rdx, [rsp + 0x30]
movdqa xmm4, xmmword [0x18015bf40]
mov eax, 4
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x18015bd70]
movaps xmmword [r11 - 0x38], xmm8
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x48], xmm9
movdqa xmm9, xmmword [0x18015be60]
movd xmm8, eax
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov eax, ecx
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x18
jl 0x1800270d0
movaps xmm9, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xa0]
cmp eax, 0x1b
jge 0x180027221
movsxd rax, ecx
lea r8, [rsp + 0x30]
lea r8, [r8 + rax*2]
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x32
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x34
xor word [r8 - 2], ax
cmp ecx, 0x1b
jl 0x1800271f0
lea rax, [rsp + 0xc0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x18002726a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0xc0]
test rax, rax
setne al
add rsp, 0xb8
ret