joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b570
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp qword [rcx + 0x60], 0xffffffffffffffff
je 0x140004217
mov eax, dword [rcx + 0x38]
shr eax, 5
test al, 1
jne 0x140004217
mov eax, dword [rcx + 0x38]
shr eax, 7
test al, 1
jne 0x140004217
mov rdx, rcx
mov rcx, qword [rcx + 0x60]
jmp 0x14000b570
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x500
mov rax, qword [0x140489000]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x140488608]
mov rbx, rdx
mov rdi, rcx
cmp rax, 0xffffffffffffffff
jne 0x14000b5ce
xor edx, edx
lea rcx, str.kernel32
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
lea rdx, str.QueueUserAPC2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140488608], rax
test rax, rax
je 0x14000b62a
mov rcx, rbx
call fcn.140004510
test al, al
jne 0x14000b678
mov dl, 1
mov rcx, rbx
call fcn.140004590
mov r9d, 0x10001
lea rcx, [0x14000b1e0]
mov r8, rbx
mov rdx, rdi
call qword [0x140488608]
test eax, eax
jne 0x14000b678
xor edx, edx
mov rcx, rbx
call fcn.140004590
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14000b678
mov qword [0x140488608], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x14000b678
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x40100003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000b66f
mov eax, dword [rsp + 0x50]
test eax, eax
jns 0x14000b66f
test eax, 0x18000000
jne 0x14000b66f
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [0x14048e1d8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140045050
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
ret

Function at 0x14000b800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x14000b814
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b8c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14000b8e9
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret

Function at 0x14000b900
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rdx
mov qword [rsp + 0x28], 0
mov r8, rcx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14000b935
add rsp, 0x30
pop rbx
ret
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14000cd90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140489000]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movzx ebx, r8b
mov rdi, rdx
mov r8d, 0x40
lea rdx, [rsp + 0x50]
call fcn.14000c9c0
mov r8d, 0x11
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r11d, eax
lea ecx, [rax - 1]
cmp ecx, 0xf
ja 0x14000ce58
xor ecx, ecx
mov r9d, ecx
test eax, eax
je 0x14000ce51
lea r10, [rsp + 0x20]
movzx r8d, word [r10]
lea eax, [r8 - 0x30]
test bl, bl
je 0x14000ce14
cmp ax, 9
ja 0x14000ce58
lea rcx, [rcx + rcx*4]
lea rcx, [rcx - 0x18]
lea rcx, [r8 + rcx*2]
jmp 0x14000ce45
shl rcx, 4
cmp ax, 9
ja 0x14000ce24
add rcx, 0xffffffffffffffd0
jmp 0x14000ce42
lea eax, [r8 - 0x61]
cmp ax, 5
ja 0x14000ce34
add rcx, 0xffffffffffffffa9
jmp 0x14000ce42
lea eax, [r8 - 0x41]
cmp ax, 5
ja 0x14000ce58
add rcx, 0xffffffffffffffc9
add rcx, r8
inc r9d
add r10, 2
cmp r9d, r11d
jb 0x14000cdf4
mov qword [rdi], rcx
mov al, 1
jmp 0x14000ce5a
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140045050
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x140010c90
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x140489000]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x140010d7f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x140010d7f
mov rdx, qword [rsp + 0x70]
test r14, r14
je 0x140010d5a
xorps xmm0, xmm0
test rdx, rdx
js 0x140010d01
cvtsi2ss xmm0, rdx
jmp 0x140010d19
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x140469118]
test rdi, rdi
js 0x140010d33
cvtsi2ss xmm0, rdi
jmp 0x140010d4b
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
xor eax, eax
test rbx, rbx
je 0x140010d71
cmp rdx, rdi
jbe 0x140010d6b
mov qword [rbx], rax
jmp 0x140010d71
sub rdi, rdx
mov qword [rbx], rdi
test rsi, rsi
je 0x140010e48
jmp 0x140010e45
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x28]
jae 0x140010e22
test r14, r14
je 0x140010e11
mov rcx, rdx
xorps xmm0, xmm0
sub rcx, qword [rsp + 0x50]
js 0x140010dbb
cvtsi2ss xmm0, rcx
jmp 0x140010dd0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x140469118]
test rdx, rdx
js 0x140010dea
cvtsi2ss xmm0, rdx
jmp 0x140010e02
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
test rbx, rbx
je 0x140010e19
mov qword [rbx], rdx
test rsi, rsi
je 0x140010e48
xor eax, eax
jmp 0x140010e45
test r14, r14
je 0x140010e2e
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
test rbx, rbx
je 0x140010e3b
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
test rsi, rsi
je 0x140010e48
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140045050
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
Function at 0x140010e70
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x140489000]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
test rcx, rcx
je 0x140010ea8
mov byte [rcx], 0
xor ebx, ebx
mov rbp, 0xffffffffffffffff
mov r15d, ebx
mov dword [rsp + 0x30], ebx
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140010f80
cmp dword [rsp + 0x30], ebx
je 0x140010f80
mov r9d, 0x90
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x100]
xor ecx, ecx
lea edx, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140010f80
mov eax, dword [rsp + 0x110]
mov rdx, rbp
bt eax, 9
mov rcx, rbp
mov rsi, rbp
cmovb rdx, qword [rsp + 0x178]
bt eax, 8
cmovb rcx, qword [rsp + 0x170]
test al, 1
cmovne rsi, qword [rsp + 0x120]
cmp rdx, rbp
jne 0x140010f49
cmp rcx, rbp
jne 0x140010f49
cmp rsi, rbp
je 0x140010f80
cmp rdx, rcx
mov dword [rsp + 0x40], 0x40
cmovb rcx, rdx
cmp rcx, rsi
cmovb rsi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rbp, qword [rsp + 0x48]
mov r15, qword [rsp + 0x68]
cmp rsi, rbp
mov r14, qword [rsp + 0x50]
cmovb rbp, rsi
cmp rbp, 0xffffffffffffffff
mov rsi, rbx
cmovne rsi, rbp
test r15, r15
jne 0x140010fb9
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x88]
test rsi, rsi
cmovne r14, rsi
cmp r15, r14
cmovae rbx, rsi
test rbx, rbx
je 0x140010fd9
test rdi, rdi
je 0x140010fd4
mov byte [rdi], 1
mov rax, rbx
jmp 0x14001100b
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0xc0], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0xc8]
cmp qword [rsp + 0xe8], rax
cmovb rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140045050
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140011060
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140489000]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045050
add rsp, 0x78
ret
Function at 0x1400112c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov dword [0x14048eef0], eax
mov eax, dword [rsp + 0x24]
mov dword [0x14048eef4], eax
mov eax, dword [rsp + 0x48]
mov dword [0x14048eef8], eax
mov dword [rsp + 0x60], ebx
mov byte [0x14048eefd], bl
call fcn.1400124b0
test al, al
je 0x14001132e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
je 0x14001132e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14001132e
inc eax
mov byte [0x14048eefd], 1
mov dword [0x14048ef80], eax
mov byte [0x14048eefe], bl
mov word [rsp + 0x60], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessGroupAffinity]
mov edi, 1
test eax, eax
jne 0x14001136b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001136b
movzx eax, word [rsp + 0x60]
jmp 0x140011372
mov eax, edi
mov word [rsp + 0x60], ax
cmp ax, di
seta cl
call fcn.1400123a0
test al, al
je 0x14001139b
call fcn.1400110a0
test al, al
je 0x14001139b
cmp dword [0x14048ef84], edi
seta al
mov byte [0x14048eefe], al
jmp 0x1400113a2
movzx eax, byte [0x14048eefe]
test al, al
je 0x1400113f0
mov r9d, dword [0x14048ef88]
test r9, r9
je 0x140011473
lea r8, [0x14048ef00]
nop dword [rax]
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
inc rbx
mov rax, qword [rdx]
bts rax, rcx
mov qword [rdx], rax
cmp rbx, r9
jb 0x1400113c0
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x140011473
mov r9, qword [rsp + 0x60]
lea r8, [0x14048ef00]
nop dword [rax]
test r9, rdi
je 0x140011441
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rcx
mov qword [rdx], rax
rol rdi, 1
test r9, rdi
je 0x140011466
lea rdx, [rbx + 1]
mov rax, rdx
and edx, 0x3f
shr rax, 6
lea rcx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rdx
mov qword [rcx], rax
rol rdi, 1
add rbx, 2
cmp rbx, 0x40
jb 0x140011420
mov rbx, qword [rsp + 0x70]
mov al, 1
add rsp, 0x50
pop rdi
ret

Function at 0x140045720
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004576a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004576a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004576a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004576a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004576a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004576c
xor al, al
add rsp, 0x28
ret

Function at 0x14004a030
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004a058
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004a058
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140055920
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
mov qword [rsp + 0x60], r9
mov r10, qword [rcx]
mov ecx, dword [rcx + 8]
mov r11, qword [rdx]
mov ebx, ecx
and ebx, 0xfffffffc
mov esi, dword [rdx + 8]
xor edi, edi
xor ebp, ebp
test ecx, ecx
je 0x140055b44
lea r14, [0x1402c0130]
mov eax, ebx
sar eax, 2
lea eax, [rax + rax*2]
cmp esi, eax
jl 0x140055967
lea r15d, [rbx - 4]
jmp 0x14005597e
mov edx, 0x55555556
mov eax, edx
imul esi
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
shl r15d, 2
test r15d, r15d
jle 0x140055a24
movsxd rax, edi
lea rax, [r10 + rax*2]
movzx edx, word [rax]
movzx r13d, word [rax + 2]
movzx r12d, word [rax + 4]
movzx eax, word [rax + 6]
mov r9d, edx
or r9d, r13d
or r9d, r12d
or r9d, eax
test r9d, 0xffffff00
je 0x1400559bc
mov r9d, 0xffffffff
jmp 0x1400559f1
movsxd rdx, edx
movsx rdx, byte [r14 + rdx]
movsxd r9, r13d
movsx r13, byte [r14 + r9]
movsxd r9, r12d
movsx r12, byte [r14 + r9]
cdqe
movsx rax, byte [r14 + rax]
shl edx, 0x12
or eax, edx
shl r13d, 0xc
or eax, r13d
shl r12d, 6
mov r9d, eax
or r9d, r12d
test r9d, r9d
jl 0x140055b61
movsxd rax, ebp
add rax, r11
mov edx, r9d
sar edx, 0x10
mov byte [rax], dl
mov edx, r9d
sar edx, 8
mov byte [rax + 1], dl
mov byte [rax + 2], r9b
add ebp, 3
add edi, 4
cmp edi, r15d
jl 0x140055987
lea eax, [rbx - 4]
cmp r15d, eax
jne 0x140055b61
cmp edi, ebx
je 0x140055b61
lea eax, [rbx - 4]
cdqe
movzx eax, word [r10 + rax*2]
lea edx, [rbx - 3]
movsxd rdx, edx
movzx edx, word [r10 + rdx*2]
lea r9d, [rbx - 2]
movsxd r9, r9d
movzx r9d, word [r10 + r9*2]
lea r15d, [rbx - 1]
movsxd r15, r15d
movzx r10d, word [r10 + r15*2]
mov r15d, eax
or r15d, edx
or r15d, r9d
or r15d, r10d
test r15d, 0xffffff00
jne 0x140055b61
cdqe
movsx rax, byte [r14 + rax]
movsxd rdx, edx
movsx rdx, byte [r14 + rdx]
shl eax, 0x12
shl edx, 0xc
or eax, edx
cmp r10d, 0x3d
je 0x140055ae9
movsxd r9, r9d
movsx r9, byte [r14 + r9]
movsxd r10, r10d
movsx r10, byte [r14 + r10]
or r10d, eax
shl r9d, 6
mov eax, r10d
or eax, r9d
jl 0x140055b61
add esi, 0xfffffffd
cmp ebp, esi
jg 0x140055b61
movsxd rdx, ebp
add r11, rdx
mov edx, eax
sar edx, 0x10
mov byte [r11], dl
mov edx, eax
sar edx, 8
mov byte [r11 + 1], dl
mov byte [r11 + 2], al
add ebp, 3
jmp 0x140055b3d
cmp r9d, 0x3d
je 0x140055b26
movsxd r9, r9d
movsx r9, byte [r14 + r9]
mov edx, r9d
shl edx, 6
or eax, edx
jl 0x140055b61
lea edx, [rsi - 2]
cmp ebp, edx
jg 0x140055b61
mov edx, eax
sar edx, 0x10
movsxd r10, ebp
mov byte [r11 + r10], dl
sar eax, 8
lea edx, [rbp + 1]
movsxd rdx, edx
mov byte [r11 + rdx], al
add ebp, 2
jmp 0x140055b3d
test eax, eax
jl 0x140055b61
lea edx, [rsi - 1]
cmp ebp, edx
jg 0x140055b61
sar eax, 0x10
movsxd rdx, ebp
mov byte [r11 + rdx], al
inc ebp
add edi, 4
cmp ebx, ecx
jne 0x140055b61
mov dword [r8], edi
mov r9, qword [rsp + 0x60]
mov dword [r9], ebp
mov eax, 1
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [r8], edi
mov r9, qword [rsp + 0x60]
mov dword [r9], ebp
xor eax, eax
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400c7a40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x1400c7add
xor eax, eax
cmp r8d, 4
jl 0x1400c7a91
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x1400c7ad8
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x1400c7ad1
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x1400c7ac9
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x1400c7ac1
add rax, 4
test r8d, r8d
jle 0x1400c7cba
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x1400c7ad8
inc rax
test r8d, r8d
jg 0x1400c7aa0
jmp 0x1400c7cba
add eax, 3
jmp 0x1400c7cb5
add eax, 2
jmp 0x1400c7cb5
inc eax
jmp 0x1400c7cb5
jmp 0x1400c7cb5
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x1400c7bf6
add rax, 0x10
cmp rax, r10
jbe 0x1400c7b00
mov eax, r8d
test al, 7
je 0x1400c7cba
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1400c7cba
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x1400c7cac
mov ecx, 0x20
jmp 0x1400c7caf
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x1400c7c9d
mov r8d, 0x20
jmp 0x1400c7ca1
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x1400c7cb5
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x140987058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409871df
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 0x140987089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14098706f
add dl, dl
jne 0x140987096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409870f6
xor eax, eax
add dl, dl
jne 0x1409870a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409871ad
add dl, dl
jne 0x1409870b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409870c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409870d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409870dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409870ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14098707e
mov eax, 1
add dl, dl
jne 0x140987106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140987113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409870fb
sub eax, ebx
mov ebx, 1
jne 0x14098714c
mov ecx, 1
add dl, dl
jne 0x14098712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14098713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140987123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140987168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140987175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14098715d
cmp eax, 0x7d00
jae 0x14098719b
cmp eax, 0x500
jb 0x140987196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098707e
cmp eax, 0x7f
ja 0x14098719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409871d2
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 0x14098707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ea0
Capabilities:
Receive http response

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x38
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x70], rbx
xor r12d, r12d
mov qword [rsp + 0x78], rsi
mov r15, rdx
mov dword [rsp + 0x24], r12d
mov r14, rcx
mov qword [rsp + 0x30], rdi
mov rbp, rdx
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140002060
mov r8d, dword [rsp + 0x20]
mov rbx, r12
mov rsi, r12
lea eax, [r8 + 1]
mov edi, eax
test eax, eax
je 0x140001f63
cmp rdi, 0x1000
jb 0x140001f42
lea rcx, [rax + 0x27]
cmp rcx, rdi
jbe 0x140002092
call fcn.14000b080
test rax, rax
je 0x14000208b
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140001f4d
mov rcx, rdi
call fcn.14000b080
mov rbx, rax
mov r8, rdi
lea rsi, [rbx + rdi]
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x24]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000202c
mov eax, dword [rsp + 0x20]
mov rdx, rbp
cmp rbp, rbx
jae 0x140001fb3
test rax, rax
je 0x140001fe4
mov r8, rbx
sub r8, rbp
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx + r8]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub rax, 1
jne 0x140001fa0
jmp 0x140001fe4
lea rdx, [rax - 1]
lea r8, [rax - 1]
add rdx, rbx
add r8, rbp
test rax, rax
je 0x140001fe4
nop word [rax + rax]
movzx ecx, byte [rdx]
lea rdx, [rdx - 1]
mov byte [r8], cl
lea r8, [r8 - 1]
sub rax, 1
jne 0x140001fd0
mov eax, dword [rsp + 0x20]
add rbp, rax
test rbx, rbx
je 0x14000201f
sub rsi, rbx
cmp rsi, 0x1000
jb 0x140002014
mov rcx, qword [rbx - 8]
add rsi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14000208b
mov rbx, rcx
mov rdx, rsi
mov rcx, rbx
call fcn.14000b0bc
cmp dword [rsp + 0x20], r12d
ja 0x140001ee0
jmp 0x140002060
test rbx, rbx
je 0x140002060
sub rsi, rbx
cmp rsi, 0x1000
jb 0x140002055
mov rcx, qword [rbx - 8]
add rsi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14000208b
mov rbx, rcx
mov rdx, rsi
mov rcx, rbx
call fcn.14000b0bc
mov rdi, qword [rsp + 0x30]
mov rax, r15
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000b060
add rsp, 0x38
pop r15
pop r14
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001110
int3
Function at 0x140002840
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140002884
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140002870
ret