joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x180047080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r8
mov r15, rcx
call fcn.180004280
test al, al
jne 0x18000468f
mov eax, 0xffffffff
jmp 0x180004893
mov dword [rbp - 0x79], 0x30
xor r14d, r14d
mov qword [rbp - 0x69], r14
mov dword [rbp - 0x61], r14d
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x59], r14
mov eax, dword [rbx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov dword [rbp + 0x1f], eax
mov byte [rbp + 0x23], al
mov dword [rbp - 1], 0x616d696e
mov word [rbp + 3], 0x6564
mov word [rbp - 6], 0x3d
mov dword [rbp - 0x19], 0x4d463944
mov dword [rbp - 0x15], 0x58466645
mov dword [rbp - 0x11], 0x416c7978
mov dword [rbp - 0xd], 0x75534a2b
mov word [rbp - 9], 0x7a64
mov byte [rbp - 7], 0x63
movups xmmword [rbp - 0x49], xmm0
lea ecx, [rax + 0x15]
call fcn.18000eb74
mov rdi, rax
mov qword [rbp - 0x49], rax
lea rsi, [rax + 0x15]
mov qword [rbp - 0x39], rsi
lea r8d, [r14 + 0x15]
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.180031aa0
mov qword [rbp - 0x41], rsi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rax
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
lea ecx, [rax + 0x15]
call fcn.18000eb74
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
lea rbx, [rax + 0x15]
mov qword [rsp + 0x30], rbx
lea r8d, [r14 + 0x15]
mov rdx, rdi
mov rcx, rax
call fcn.180031aa0
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x31]
call fcn.180002760
nop
lea rdx, [rbp - 1]
mov r14, qword [rbp - 0x31]
mov rcx, r14
call fcn.1800034f0
mov rcx, rax
call fcn.180003c60
mov rbx, rax
test rax, rax
jne 0x1800047c1
lea rdx, str.qpMLkBwsxWzbuX
lea rcx, [0x1800488a0]
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3a0
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x79]
mov edx, 0x1fffff
mov rcx, r15
call rbx
mov ebx, eax
lea rdx, str.JWmjnpNPLSTzQHfYedDCoustw
lea rcx, [0x180048780]
call fcn.18000a0f0
mov rcx, rax
mov edx, ebx
call fcn.180006f00
mov rcx, rax
call fcn.18000a3a0
lea rdx, str.IEirVlwTckmtDvCoeQRNgdyhLupbABMjKZzGOsxHnYaPqf
lea rcx, [0x180048780]
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3a0
mov rcx, qword [0x180049f88]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
nop
test r14, r14
je 0x18000485a
mov rdx, qword [rbp - 0x21]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x180004851
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800048b6
mov rcx, r14
call fcn.18000eb40
nop
test rdi, rdi
je 0x18000488e
sub rsi, rdi
cmp rsi, 0x1000
jb 0x180004883
add rsi, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1800048bc
mov rdi, rcx
mov rdx, rsi
mov rcx, rdi
call fcn.18000eb40
mov eax, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18000eb20
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180018bc4
nop
call fcn.180018bc4
int3
Function at 0x1800056a0
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 0x1800056c2
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 0x18000573c
mov rdi, r14
mov rcx, rbx
call fcn.180009020
test rax, rax
jle 0x180005714
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.180031aa0
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 0x18000572c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180005734
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800056d6
sub r14, rdi
jmp 0x18000581f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180005753
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180005755
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180005787
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180031aa0
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 0x18000581c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800057c2
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 0x1800057fd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001a404
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000581c
cmp rbp, rax
ja 0x1800057d0
test rbp, rbp
je 0x18000581c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001a404
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 0x1800239ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800239c2
mov al, 1
jmp 0x180023a22
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800239d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180023a20
mov ecx, dword [rcx + 0x18]
nop
call fcn.180029e70
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180023a20
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180023a20
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180023a20
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180023a22
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180025040
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.18000f630
sub rsp, rax
mov rax, qword [0x180047080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180021374
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002508f
mov rax, rbp
jmp 0x180025197
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 + 0x49960]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180024c7c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x49960]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180025193
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 0x180025193
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180024c7c
test rax, rax
js 0x180025193
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180025193
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180025185
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180025185
cmp byte [rcx], 0xd
jne 0x18002516b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002517a
cmp byte [rcx + 1], 0xa
jne 0x18002517a
inc rcx
jmp 0x18002517a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x474c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002514d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180025197
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000eb20
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 0x1800252c0
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, [0x180049960]
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 0x180025317
cmp word [rdx], r13w
jne 0x180025317
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002531c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180025441
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180025462
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180025355
mov rdx, r9
mov word [rbx], cx
jmp 0x18002537c
cmp r9, r8
jae 0x18002538c
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 0x180025336
jmp 0x180025441
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 0x180025436
cmp dword [rsp + 0x80], esi
je 0x180025436
lea r8, [0x180049960]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002540e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800253de
mov word [rbx], r13w
jmp 0x18002543e
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 0x1800253eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002543e
cmp word [rsp + 0x70], r13w
jne 0x18002541b
cmp rbx, r14
je 0x1800253d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180024c84
cmp word [rsp + 0x70], r13w
je 0x180025441
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, [0x180049960]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002543b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180025441
Function at 0x1800294b4
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 0x1800294e4
xor eax, eax
jmp 0x1800295a7
mov rbp, rbx
cmp word [rax], si
je 0x180029509
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800294f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800294ec
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.180027b9c
movsxd r14, eax
test eax, eax
jne 0x180029547
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800294dd
mov rcx, r14
call fcn.18001ffe0
mov rdi, rax
test rax, rax
jne 0x180029560
xor ecx, ecx
call fcn.18001f2d8
jmp 0x18002953c
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.180027b9c
test eax, eax
jne 0x180029591
mov rcx, rdi
call fcn.18001f2d8
jmp 0x18002959b
xor ecx, ecx
call fcn.18001f2d8
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 0x18002dc78
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.1800218c4
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 0x18002dd19
cmp ebx, dword [rsp + 0x30]
je 0x18002dd12
test esi, esi
je 0x18002dd12
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002dced
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002dcfa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002dcd7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002dcfe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002dd1b
mov eax, 1
jmp 0x18002dd1b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180030d4c
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.180024c84
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180024c84
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180030e9c
cmp rax, 0xffffffffffffffff
je 0x180030e9c
xor edi, edi
test rbp, rbp
jle 0x180030e47
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001f260
mov rbx, rax
test rax, rax
jne 0x180030dd4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180030e3d
mov edx, 0x8000
mov ecx, r14d
call fcn.180030bd0
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.18002470c
cmp eax, 0xffffffff
je 0x180030e1d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180030de4
mov edx, r15d
mov ecx, r14d
call fcn.180030bd0
jmp 0x180030e3d
cmp byte [rsi + 0x38], dil
je 0x180030e34
cmp dword [rsi + 0x34], 5
jne 0x180030e34
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180030e3d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001f2d8
jmp 0x180030eb0
jns 0x180030eb0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180024c84
cmp rax, 0xffffffffffffffff
jne 0x180030e68
cmp byte [rsi + 0x30], dil
je 0x180030eb0
mov edi, dword [rsi + 0x2c]
jmp 0x180030eb0
mov ecx, r14d
call fcn.180029e70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180030eb0
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 0x180030eb0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180030ea9
mov eax, dword [rsi + 0x2c]
jmp 0x180030eae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180024c84
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 0x1800316d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800316f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800316f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x142016058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1420161df
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 0x142016089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14201606f
add dl, dl
jne 0x142016096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1420160f6
xor eax, eax
add dl, dl
jne 0x1420160a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1420161ad
add dl, dl
jne 0x1420160b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420160c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420160d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420160dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1420160ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14201607e
mov eax, 1
add dl, dl
jne 0x142016106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142016113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1420160fb
sub eax, ebx
mov ebx, 1
jne 0x14201614c
mov ecx, 1
add dl, dl
jne 0x14201612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14201613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142016123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14201607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142016168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142016175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14201615d
cmp eax, 0x7d00
jae 0x14201619b
cmp eax, 0x500
jb 0x142016196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14201607e
cmp eax, 0x7f
ja 0x14201619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14201607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1420161d2
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 0x14201607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001b78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bc2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bc4
xor al, al
add rsp, 0x28
ret
Function at 0x1800029d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 8
test rcx, rcx
je 0x180002baa
test r8, r8
je 0x180002baa
mov dword [r8 + 0xf0], socket
lea r11, [0x180058830]
mov r10d, dword [rcx]
mov dword [r8], r10d
mov eax, dword [rcx + 4]
mov dword [r8 + 4], eax
mov eax, dword [rcx + 8]
mov dword [r8 + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [r8 + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [r8 + 0x10], eax
mov eax, dword [rcx + 0x14]
mov dword [r8 + 0x14], eax
mov eax, dword [rcx + 0x18]
mov dword [r8 + 0x18], eax
mov eax, dword [rcx + 0x1c]
mov dword [r8 + 0x1c], eax
mov edx, eax
movzx eax, al
mov qword [rsp], rbx
lea rbx, [0x18005781c]
movzx r9d, byte [rax + r11]
mov eax, edx
shl r9d, 8
shr rax, 0x18
movzx eax, byte [rax + r11]
xor r9d, eax
mov eax, edx
shl r9d, 8
shr rax, 0x10
movzx ecx, al
shr rdx, 8
movzx eax, byte [rcx + r11]
xor r9d, eax
movzx eax, dl
shl r9d, 8
movzx ecx, byte [rax + r11]
xor r9d, ecx
xor r9d, r10d
lea r10, [0x180057804]
xor r9d, 1
mov dword [r8 + 0x20], r9d
xor r9d, dword [r8 + 4]
mov dword [r8 + 0x24], r9d
xor r9d, dword [r8 + 8]
mov dword [r8 + 0x28], r9d
xor r9d, dword [r8 + 0xc]
mov dword [r8 + 0x2c], r9d
lea r9, [r8 + 0x30]
nop dword [rax]
mov edx, dword [r9 - 4]
lea r9, [r9 + 0x20]
mov eax, edx
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movzx r8d, byte [rcx + r11]
movzx eax, byte [rax + r11]
shl eax, 8
xor r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r11]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + r11]
mov eax, dword [r9 - 0x3c]
xor r8d, ecx
xor r8d, dword [r9 - 0x40]
mov ecx, dword [r9 - 0x38]
xor eax, r8d
mov dword [r9 - 0x1c], eax
xor ecx, eax
mov eax, dword [r9 - 0x34]
mov dword [r9 - 0x20], r8d
xor eax, ecx
mov dword [r9 - 0x14], eax
mov dword [r9 - 0x18], ecx
mov edx, dword [r9 - 0x14]
movzx eax, dl
movzx r8d, byte [rax + r11]
mov eax, edx
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r11]
xor r8d, eax
mov eax, edx
shr rax, 0x10
movzx ecx, al
shl r8d, 8
shr rdx, 8
movzx eax, byte [rcx + r11]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + r11]
xor r8d, ecx
xor r8d, dword [r9 - 0x30]
xor r8d, dword [r10]
add r10, 4
mov dword [r9 - 0x10], r8d
mov eax, dword [r9 - 0x2c]
xor eax, r8d
mov dword [r9 - 0xc], eax
mov ecx, dword [r9 - 0x28]
xor ecx, eax
mov dword [r9 - 8], ecx
mov eax, dword [r9 - 0x24]
xor eax, ecx
mov dword [r9 - 4], eax
cmp r10, rbx
jne 0x180002ab0
xor eax, eax
mov rbx, qword [rsp]
add rsp, 8
ret
or eax, 0xffffffff
add rsp, 8
ret
Function at 0x180002bc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.1800029d0
test eax, eax
js 0x180002d34
mov qword [rsp + 0x30], rsi
xor r10d, r10d
lea rsi, [rbx + 0xf0]
mov eax, dword [rsi]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x180002c4d
lea r8, [rbx + 8]
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop dword [rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x180002c00
mov r11d, 1
cmp dword [rsi], r11d
jle 0x180002d2d
mov qword [rsp + 0x38], rdi
lea rbx, [rbx + 0x10]
xor edi, edi
nop word [rax + rax]
mov edx, dword [rbx + rdi*4]
mov r10d, edx
and r10d, 0x80808080
mov eax, r10d
shr eax, 7
sub r10d, eax
mov eax, edx
and eax, 0xff7f7f7f
and r10d, 0x1b1b1b1b
add eax, eax
xor r10d, eax
mov r9d, r10d
and r9d, 0x80808080
mov eax, r9d
shr eax, 7
sub r9d, eax
mov eax, r10d
and eax, 0xff7f7f7f
and r9d, 0x1b1b1b1b
add eax, eax
xor r9d, eax
mov r8d, r9d
and r8d, 0x80808080
mov eax, r8d
shr eax, 7
sub r8d, eax
mov eax, r9d
and eax, 0xff7f7f7f
and r8d, 0x1b1b1b1b
add eax, eax
xor r8d, eax
mov ecx, r8d
xor ecx, edx
mov edx, ecx
mov eax, ecx
xor edx, r9d
rol ecx, 8
rol edx, 0x10
xor eax, r10d
rol eax, 0x18
xor edx, eax
xor edx, ecx
xor edx, r8d
xor edx, r9d
xor edx, r10d
mov dword [rbx + rdi*4], edx
inc rdi
cmp rdi, 4
jl 0x180002c70
inc r11d
cmp r11d, dword [rsi]
jl 0x180002c61
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret