joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800082e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180008302
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000837c
mov rdi, r14
mov rcx, rbx
call fcn.18000abf0
test rax, rax
jle 0x180008354
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180054990
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 0x18000836c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180008374
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180008316
sub r14, rdi
jmp 0x18000845f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180008393
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180008395
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800083c7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180054990
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 0x18000845c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180008402
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 0x18000843d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800394e4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000845c
cmp rbp, rax
ja 0x180008410
test rbp, rbp
je 0x18000845c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800394e4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x18001fe80
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x180020024
cmp r9, 4
jb 0x18001feca
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x18001feb0
xor r11d, r11d
test r9, r9
je 0x180020024
cmp r9, 8
jb 0x18001fffd
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x18001fefc
cmp rdx, r8
jae 0x18001fffd
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x18001ff11
cmp rdx, r10
jae 0x18001fffd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x18001ffb7
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x18001ff50
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x18001ffef
mov rdx, r9
and rdx, 0xfffffffffffffff8
mov rbx, r10
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rdx
jb 0x18001ffd0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x180020024
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x180020010
add rsp, 8
ret

Function at 0x180024988
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800249c2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800249c7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180024a10
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18005d2d0]
cmp byte [rcx + rax], 0
je 0x180024a10
dec r8
sub rdx, 1
jne 0x1800249f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800383ec
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 0x18003829f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003829f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003829f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003829f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003829f
cmp dword [rcx + 0x84], 0xe
jbe 0x18003829f
cmp dword [rcx + 0xf8], 0
je 0x18003829f
mov ecx, ebx
call fcn.180038350
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.18003812c
nop
cmp dword [rbp + 0x20], 0
je 0x1800382ed
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800382f8
int3
xor r8d, r8d
xor edx, edx
jmp 0x180038230

Function at 0x180043f18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180043f2e
mov al, 1
jmp 0x180043f8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180043f3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180043f8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18004ec10
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180043f8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180043f8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180043f8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180043f8e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180045588
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.180026740
sub rsp, rax
mov rax, qword [0x18007a240]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180042d64
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800455d7
mov rax, rbp
jmp 0x1800456df
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 + 0x7fde0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800451c4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x7fde0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800456db
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 0x1800456db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800451c4
test rax, rax
js 0x1800456db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800456db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800456cd
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800456cd
cmp byte [rcx], 0xd
jne 0x1800456b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800456c2
cmp byte [rcx + 1], 0xa
jne 0x1800456c2
inc rcx
jmp 0x1800456c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7a680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180045695
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800456df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180025bf0
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 0x180045808
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, [0x18007fde0]
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 0x18004585f
cmp word [rdx], r13w
jne 0x18004585f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180045864
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180045989
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800459aa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004589d
mov rdx, r9
mov word [rbx], cx
jmp 0x1800458c4
cmp r9, r8
jae 0x1800458d4
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 0x18004587e
jmp 0x180045989
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 0x18004597e
cmp dword [rsp + 0x80], esi
je 0x18004597e
lea r8, [0x18007fde0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180045956
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180045926
mov word [rbx], r13w
jmp 0x180045986
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 0x180045933
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180045986
cmp word [rsp + 0x70], r13w
jne 0x180045963
cmp rbx, r14
je 0x180045920
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800451cc
cmp word [rsp + 0x70], r13w
je 0x180045989
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, [0x18007fde0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180045983
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180045989
Function at 0x18004a4f0
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 0x18004a520
xor eax, eax
jmp 0x18004a5e3
mov rbp, rbx
cmp word [rax], si
je 0x18004a545
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004a52c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004a528
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.1800477a0
movsxd r14, eax
test eax, eax
jne 0x18004a583
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004a519
mov rcx, r14
call fcn.180041b08
mov rdi, rax
test rax, rax
jne 0x18004a59c
xor ecx, ecx
call fcn.180041acc
jmp 0x18004a578
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.1800477a0
test eax, eax
jne 0x18004a5cd
mov rcx, rdi
call fcn.180041acc
jmp 0x18004a5d7
xor ecx, ecx
call fcn.180041acc
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 0x180051d7c
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.1800451cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800451cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180051ecc
cmp rax, 0xffffffffffffffff
je 0x180051ecc
xor edi, edi
test rbp, rbp
jle 0x180051e77
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180043c40
mov rbx, rax
test rax, rax
jne 0x180051e04
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180051e6d
mov edx, 0x8000
mov ecx, r14d
call fcn.180051c00
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.180044c10
cmp eax, 0xffffffff
je 0x180051e4d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180051e14
mov edx, r15d
mov ecx, r14d
call fcn.180051c00
jmp 0x180051e6d
cmp byte [rsi + 0x38], dil
je 0x180051e64
cmp dword [rsi + 0x34], 5
jne 0x180051e64
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180051e6d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180041acc
jmp 0x180051ee0
jns 0x180051ee0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800451cc
cmp rax, 0xffffffffffffffff
jne 0x180051e98
cmp byte [rsi + 0x30], dil
je 0x180051ee0
mov edi, dword [rsi + 0x2c]
jmp 0x180051ee0
mov ecx, r14d
call fcn.18004ec10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180051ee0
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 0x180051ee0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180051ed9
mov eax, dword [rsi + 0x2c]
jmp 0x180051ede
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800451cc
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 0x180054120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x180054220
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x18007ae80]
cmp ecx, 0xffffffff
jne 0x18005423e
xor esi, esi
jmp 0x180054247
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x18005433b
cmp qword [rsi + 0x30], 0
jne 0x18005426d
cmp qword [rsi + 0x18], 0
je 0x180054314
mov rbx, qword [rsi + 0x18]
jmp 0x180054280
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1800542d4
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800542b7
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x180054280
cmp qword [rsi + 0x30], 0
je 0x18005425c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1800542fc
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800542fc
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1800535c0
cmp qword [rsi + 0x30], 0
jne 0x1800542e0
jmp 0x180054255
lea rdx, [0x180053f20]
lea rcx, [0x180080580]
call fcn.180053a90
mov ecx, dword [0x18007ae80]
cmp ecx, 0xffffffff
je 0x18005433b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x18005436d
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x18005436d
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180054440
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180054468
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180054468
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003d90
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov r11, rcx
mov rdx, qword [rax + 0x18]
mov r10, qword [rdx + 0x20]
test r10, r10
je 0x180003e14
nop dword [rax]
mov r9, qword [r10 + 0x50]
test r9, r9
je 0x180003e14
movzx r8d, word [r10 + 0x48]
xor eax, eax
cmp word [r9], ax
je 0x180003e07
test r8d, r8d
je 0x180003e07
movzx edx, word [r9]
add r9, 2
cmp dx, 0x61
lea ecx, [rdx - 0x20]
cmovb cx, dx
shl eax, 4
movzx ecx, cx
add ecx, eax
mov edx, ecx
mov eax, ecx
and edx, 0xf0000000
je 0x180003dfd
mov ecx, edx
not edx
shr ecx, 0x18
xor eax, ecx
and eax, edx
dec r8d
cmp word [r9], 0
jne 0x180003dc6
cmp eax, dword [r11]
je 0x180003e17
mov r10, qword [r10]
test r10, r10
jne 0x180003db0
xor eax, eax
ret
mov rax, qword [r10 + 0x20]
ret

Function at 0x180003e20
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x180021010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
call fcn.180003d90
test rax, rax
jne 0x180003f4b
mov eax, dword [rbx]
mov qword [rsp + 0x70], rsi
cmp eax, 0xb9f5b9c
je 0x180003eb9
cmp eax, 0xc068d9c
je 0x180003e68
xor eax, eax
jmp 0x180003f46
xor esi, esi
mov dword [rbp - 0x28], 0x65004b
mov edx, 0xaadf0c7
mov word [rbp - 0xc], si
mov ecx, 0xb9f5b9c
mov dword [rbp - 0x24], 0x6e0072
mov dword [rbp - 0x20], 0x6c0065
mov dword [rbp - 0x1c], 0x610062
mov dword [rbp - 0x18], 0x650073
mov dword [rbp - 0x14], 0x64002e
mov dword [rbp - 0x10], 0x6c006c
call fcn.180004200
lea rcx, [rbp - 0x28]
call rax
jmp 0x180003f46
mov rax, qword gs:[0x60]
mov qword [rsp + 0x78], rdi
mov rcx, qword [rax + 0x18]
mov r10, qword [rcx + 0x20]
test r10, r10
je 0x180003f3f
xor esi, esi
mov r8, qword [r10 + 0x50]
test r8, r8
je 0x180003f3f
mov eax, esi
movzx r9d, word [r10 + 0x48]
cmp word [r8], si
je 0x180003f37
nop dword [rax]
test r9d, r9d
je 0x180003f30
movzx edx, word [r8]
add r8, 2
cmp dx, 0x61
lea ecx, [rdx - 0x20]
cmovb cx, dx
shl eax, 4
movzx ecx, cx
add ecx, eax
mov edx, ecx
mov eax, ecx
and edx, 0xf0000000
je 0x180003f27
mov ecx, edx
not edx
shr ecx, 0x18
xor eax, ecx
and eax, edx
dec r9d
cmp word [r8], si
jne 0x180003ef0
cmp eax, 0x90f7c8c
je 0x180003f65
mov r10, qword [r10]
test r10, r10
jne 0x180003ed6
xor eax, eax
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180004430
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
mov rdi, qword [r10 + 0x20]
test rdi, rdi
je 0x180003f3f
lea rdx, [0x18001cb70]
mov rcx, rdi
call fcn.180003ff0
lea rdx, [0x18001cb78]
mov rcx, rdi
mov rbx, rax
call fcn.180003ff0
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x28], 0x65004b
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x24], 0x6e0072
mov rdi, rax
mov dword [rbp - 0x20], 0x6c0065
mov dword [rbp - 0x1c], 0x320033
mov dword [rbp - 0x18], 0x64002e
mov dword [rbp - 0x14], 0x6c006c
mov word [rbp - 0x10], si
call rbx
lea r9, [rbp - 0x40]
xor edx, edx
lea r8, [rbp - 0x38]
xor ecx, ecx
call rdi
mov rax, qword [rbp - 0x40]
jmp 0x180003f41
Function at 0x180003ff0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x180021010]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rax, dword [rcx + 0x3c]
mov rdi, rcx
mov ecx, 0x20b
cmp word [rax + rdi + 0x18], cx
jne 0x1800040ba
mov esi, dword [rax + rdi + 0x88]
mov r14d, dword [rax + rdi + 0x8c]
add rsi, rdi
mov r10d, dword [rsi + 0x20]
mov ebx, dword [rsi + 0x24]
add r10, rdi
mov r11d, dword [rsi + 0x18]
add rbx, rdi
test r11d, r11d
je 0x1800040ba
mov ebp, dword [rdx]
xor r9d, r9d
nop dword [rax + rax]
mov r8d, dword [r10]
dec r11d
add r8, rdi
mov eax, r9d
movzx ecx, byte [r8]
test cl, cl
je 0x1800040a9
nop dword [rax]
nop dword [rax + rax]
shl eax, 4
lea r8, [r8 + 1]
movzx ecx, cl
add eax, ecx
mov edx, eax
and edx, 0xf0000000
je 0x1800040a1
mov ecx, edx
not edx
shr ecx, 0x18
xor eax, ecx
and eax, edx
movzx ecx, byte [r8]
test cl, cl
jne 0x180004080
cmp ebp, eax
je 0x1800040e1
add r10, 4
add rbx, 2
test r11d, r11d
jne 0x180004060
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180004430
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, dword [rsi + 0x1c]
movzx edx, word [rbx]
add rcx, rdi
mov r8d, dword [rcx + rdx*4]
add r8, rdi
cmp r8, rsi
jbe 0x1800041f2
lea rax, [rsi + r14]
cmp r8, rax
jae 0x1800041f2
cmp byte [r8], 0x2e
mov edx, r9d
je 0x180004146
lea r10, [rsp + 0x30]
mov rcx, r8
sub r10, r8
nop dword [rax + rax]
mov rax, rcx
sub rax, r8
cmp rax, 0x3c
jge 0x18000413d
movzx eax, byte [rcx]
inc edx
mov byte [r10 + rcx], al
inc rcx
cmp byte [rcx], 0x2e
jne 0x180004120
cmp edx, 0x3c
jge 0x1800040ba
movsxd rax, edx
lea ecx, [rdx + 2]
lea rbx, [r8 + 1]
add rbx, rax
mov word [rsp + rax + 0x30], 0x642e
movsxd rax, ecx
mov word [rsp + rax + 0x30], 0x6c6c
lea eax, [rcx + 2]
movsxd rcx, eax
cmp rcx, 0x40
jae 0x1800041fa
cmp byte [rbx], 0x23
mov byte [rsp + rcx + 0x30], r9b
mov dword [rsp + 0x20], r9d
jne 0x1800041b4
movzx eax, byte [rbx + 1]
inc rbx
test al, al
je 0x1800041af
nop
movsx eax, al
lea r9d, [r9 + r9*4]
lea r9d, [r9 - 0x18]
lea rbx, [rbx + 1]
lea r9d, [rax + r9*2]
movzx eax, byte [rbx]
test al, al
jne 0x180004190
mov dword [rsp + 0x20], r9d
lea rbx, [rsp + 0x20]
mov edx, 0xaadf0f1
mov ecx, 0xb9f5b9c
call fcn.180004200
lea rcx, [rsp + 0x30]
call rax
mov rdi, rax
test rax, rax
je 0x1800040ba
mov edx, 0xb3c1d03
mov ecx, 0xb9f5b9c
call fcn.180004200
mov rdx, rbx
mov rcx, rdi
call rax
jmp 0x1800040bc
mov rax, r8
jmp 0x1800040bc
call fcn.180004a48
int3