joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
test byte [edx], 1
je 0x10023fbe
mov esi, dword [edx + 0x30]
cmp dword [edx + 0x24], 0xffffffff
mov edi, dword [edx + 0x34]
mov ebx, dword [edx + 0x38]
mov ebp, dword [edx + 0x3c]
lea eax, [edx + 8]
mov edx, eax
je 0x100240b7
push 0
jmp 0x100240b9
xor eax, eax
cmp byte [edx + 0xe], 0
jne 0x100240ef
mov esi, dword [edx + 0x34]
mov ebx, dword [edx + 4]
mov edi, dword [edx + 0x30]
movzx eax, byte [edx + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], esi
jmp 0x10023ff5
add ebx, ecx
mov dword [edx + 4], ebx
mov ah, al
xor al, 1
test ebx, ebx
je 0x10024016
cmp ebx, esi
jae 0x10024010
cmp byte [edi + ebx], 0xbf
jg 0x10024016
jmp 0x100240f9
jne 0x100240f9
cmp ebx, esi
je 0x100240c7
movzx ecx, byte [edi + ebx]
movzx ebp, cl
test cl, cl
jns 0x1002407d
mov edx, edi
movzx edi, byte [edi + ebx + 1]
and ebp, 0x1f
and edi, 0x3f
cmp cl, 0xdf
jbe 0x10024068
movzx esi, byte [edx + ebx + 2]
shl edi, 6
and esi, 0x3f
or esi, edi
cmp cl, 0xf0
jb 0x1002406f
movzx ecx, byte [edx + ebx + 3]
shl esi, 6
and ebp, 7
shl ebp, 0x12
and ecx, 0x3f
or ecx, esi
mov esi, dword [esp + 8]
or ebp, ecx
jmp 0x10024078
shl ebp, 6
or ebp, edi
jmp 0x10024078
shl ebp, 0xc
or ebp, esi
mov esi, dword [esp + 8]
mov edi, edx
mov edx, dword [esp]
test ah, 1
jne 0x100240db
mov ecx, 1
cmp ebp, 0x80
jb 0x10023ff0
mov ecx, 2
cmp ebp, 0x800
jb 0x10023ff0
cmp ebp, 0x10000
mov ecx, 4
sbb ecx, 0
jmp 0x10023ff0
push 1
push ebp
push ebx
push edi
push esi
call fcn.100239b0
add esp, 0x20
jmp 0x100240f4
test ah, 1
mov byte [edx + 0xc], al
jne 0x100240e0
mov ecx, dword [esp + 4]
mov byte [edx + 0xe], 1
xor eax, eax
jmp 0x100240ef
mov esi, ebx
mov byte [edx + 0xc], al
mov ecx, dword [esp + 4]
mov eax, 1
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ecx], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [edx + 0xc], al
push 0x101d3aa8
push esi
push ebx
push esi
push edi
call fcn.101cbe90
int3
Function at 0x100250b0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x100285a0
mov edi, dword [ebp + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x70]
mov dword fs:[0], eax
movsd xmm2, qword [edi + 0x60]
movsd xmm1, qword [edi + 0x58]
movsd xmm0, qword [edi + 0x68]
movsd qword [esi + 0x28], xmm2
movsd qword [esi + 0x20], xmm1
movsd xmm2, qword [edi + 0x48]
movsd xmm1, qword [edi + 0x50]
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x18], xmm1
movsd qword [esi + 0x10], xmm2
movzx eax, byte [0x10283b09]
push 8
push 0x28
call fcn.10013860
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
je 0x1002525c
lea ecx, [edi + 0x48]
movsd xmm2, qword [ecx + 0x18]
movsd xmm1, qword [ecx + 0x10]
movsd xmm0, qword [ecx + 0x20]
movsd qword [eax + 0x18], xmm2
movsd qword [eax + 0x10], xmm1
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
movsd qword [eax + 0x20], xmm0
lea ecx, [esi + 0x10]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
push 0x48
push edi
push ecx
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], ebx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x60], 0x101d5cfc
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 8], eax
movzx eax, byte [0x10283b09]
push 4
push 0x48
call fcn.10013860
add esp, 8
test eax, eax
je 0x10025271
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov ecx, edi
mov edi, eax
movsd xmm2, qword [ebx + 0x28]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [esi + 4]
movsd xmm1, qword [ebx + 0x20]
movsd xmm0, qword [ebx + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
movsd qword [edi + 0x20], xmm1
movsd xmm1, qword [ebx + 0x30]
movsd qword [edi + 0x28], xmm2
movsd xmm2, qword [ebx + 0x38]
movsd qword [edi + 0x18], xmm0
movsd qword [edi + 0x30], xmm1
movsd xmm1, qword [ebx + 0x40]
mov ebx, dword [ebp + 8]
movsd qword [edi + 0x38], xmm2
movsd qword [edi + 0x40], xmm1
push 0x48
push ecx
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], 0x101d5cfc
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x70]
mov dword [ebx + 0x58], edi
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x78], 2
push 0x28
push 8
call fcn.101cb670
add esp, 8
jmp 0x10025284
mov dword [esi + 0x78], 3
push 0x48
push 4
call fcn.101cb670
add esp, 8
ud2
Function at 0x1002cda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10033b90
lea esi, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov edi, dword fs:[0]
mov dword [ebp - 0x18], edi
mov dword fs:[0], esi
mov esi, dword [ecx + 0x28]
cmp esi, 0x7fff
mov dword [ebp - 0x2c], esi
jbe 0x1002ce31
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
add eax, 0xc
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x10], 0
push esi
push edx
push eax
call ecx
add esp, 0xc
mov edi, dword [ebp - 0x24]
mov esi, 1
mov eax, dword [edi]
test eax, eax
je 0x1002cf7d
lea ecx, [edi + 0xc]
mov edx, dword [edi + 4]
mov edi, dword [edi + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 0xffffffff
push edi
push edx
push ecx
call eax
add esp, 0xc
jmp 0x1002cf7d
movsd xmm1, qword [edx + 8]
movzx edi, word [ebp + 0xc]
movsd xmm0, qword [edx]
cmp esi, dword [ecx + 0x20]
movsd xmm2, qword [eax]
mov dword [ebp - 0x28], ecx
movsd qword [ebp - 0x38], xmm1
movsd xmm1, qword [eax + 8]
mov eax, dword [eax + 0x10]
movsd qword [ebp - 0x40], xmm0
movsd qword [ebp - 0x54], xmm2
mov word [ebp - 0x1e], di
movsd qword [ebp - 0x4c], xmm1
mov dword [ebp - 0x44], eax
mov word [ebp - 0x30], di
mov dword [ebp - 0x60], 0
jne 0x1002ce8e
lea eax, [ecx + 0x20]
mov dword [ebp - 0x10], 1
push eax
call fcn.10080df0
mov ecx, dword [ebp - 0x28]
add esp, 4
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x24]
movsd xmm0, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x58]
movsd xmm2, qword [ebp - 0x50]
movsd xmm3, qword [ebp - 0x48]
movsd xmm4, qword [ebp - 0x40]
movsd xmm5, qword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
imul edx, ebx, 0x34
mov dword [eax + edx + 0x30], esi
movsd qword [eax + edx + 0x28], xmm5
movsd qword [eax + edx + 0x20], xmm4
movsd qword [eax + edx + 0x18], xmm3
movsd qword [eax + edx + 0x10], xmm2
movsd qword [eax + edx + 8], xmm1
movsd qword [eax + edx], xmm0
lea edx, [ebx + 1]
mov dword [ecx + 0x28], edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
nop word cs:[eax + eax]
nop
cmp edi, ecx
mov eax, 0
cmovae edi, eax
test ecx, ecx
je 0x1002cf40
movzx eax, word [edx + edi*4]
cmp ax, 0xffff
je 0x1002cf42
movzx esi, word [edx + edi*4 + 2]
mov word [edx + edi*4], bx
movzx ebx, word [ebp - 0x1e]
inc dword [ebp - 0x24]
mov word [edx + edi*4 + 2], bx
inc edi
mov word [ebp - 0x1e], si
mov ebx, eax
jmp 0x1002cf00
jmp 0x1002cf40
movzx eax, word [ebp - 0x1e]
cmp dword [ebp - 0x24], 0x80
movzx ecx, byte [ebp + 0x14]
mov word [edx + edi*4], bx
mov word [edx + edi*4 + 2], ax
setb dl
xor cl, 1
xor esi, esi
test dl, cl
jne 0x1002cf7d
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
or eax, dword [ecx]
jne 0x1002cf7d
mov dword [ecx + 4], 0
mov dword [ecx], 1
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10044070
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, esp
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc4], esp
mov dword [esi + 0xd0], 0xffffffff
mov dword [esi + 0xcc], 0x10047f90
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0xc8]
mov ecx, dword fs:[0]
mov dword [esi + 0xc8], ecx
mov dword fs:[0], eax
mov edx, dword [edi + 0x50]
movzx eax, byte [edi + 0x82]
movzx ecx, word [edi + 0x80]
test edx, edx
mov byte [esi + 2], al
mov word [esi], cx
je 0x100440e2
mov ecx, dword [edi + 0x54]
lock inc dword [edx]
jg 0x100440e2
ud2
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], ecx
movsd xmm0, qword [edi + 0x58]
movzx ecx, byte [edi + 0x63]
mov eax, dword [ebp + 0x10]
lea ebx, [edi + 0x50]
movsd qword [esi + 0x60], xmm0
mov byte [esi + 0x6b], cl
movzx ecx, word [edi + 0x60]
movups xmm0, xmmword [edi + 0x38]
mov word [esi + 0x68], cx
mov ecx, dword [edi]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [edi + 8]
mov dword [esi + 0x10], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x18], ecx
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x1c], ecx
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x24], ecx
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x20], ecx
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x28], ecx
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x34], ecx
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x30], ecx
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x38], ecx
movzx ecx, word [edi + 0x48]
movups xmmword [esi + 0x40], xmm0
mov word [esi + 0x50], cx
movzx ecx, byte [edi + 0x62]
mov byte [esi + 0x6a], cl
lea ecx, [esi + 0x70]
push 0x50
push eax
push ecx
mov dword [esi + 4], edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add edi, 0x68
mov dword [esi + 0xd0], 0
push ebx
push edi
call fcn.100b4f30
add esp, 8
mov ebx, eax
mov edi, dword [ebp + 8]
movzx eax, byte [esi + 2]
mov byte [edi + 0xbe], al
movzx eax, word [esi]
mov word [edi + 0xbc], ax
lea eax, [esi + 8]
push 0x68
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + 0x68]
push 0x50
lea ecx, [esi + 0x70]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc8]
mov dword [edi + 0xb8], ebx
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10071150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x5c0
mov esi, esp
mov dword [esi + 0x5a8], ebp
call fcn.1007116c
Function at 0x1007f790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10081ea0
lea esi, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov edi, dword fs:[0]
mov dword [ebp - 0x18], edi
mov dword fs:[0], esi
mov esi, dword [ecx + 0x28]
cmp esi, 0x7fff
mov dword [ebp - 0x24], esi
jbe 0x1007f82e
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
add eax, 0xc
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x10], 0
push esi
push edx
push eax
call ecx
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov esi, 1
mov eax, dword [edi]
test eax, eax
je 0x1007f818
lea ecx, [edi + 0xc]
mov edx, dword [edi + 4]
mov edi, dword [edi + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 0xffffffff
push edi
push edx
push ecx
call eax
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm1, qword [edx + 8]
movzx edi, word [ebp + 0xc]
movsd xmm0, qword [edx]
cmp esi, dword [ecx + 0x20]
movsd xmm2, qword [eax]
mov dword [ebp - 0x2c], ecx
movsd qword [ebp - 0x38], xmm1
movsd xmm1, qword [eax + 8]
mov eax, dword [eax + 0x10]
movsd qword [ebp - 0x40], xmm0
movsd qword [ebp - 0x54], xmm2
mov word [ebp - 0x1e], di
movsd qword [ebp - 0x4c], xmm1
mov dword [ebp - 0x44], eax
mov word [ebp - 0x30], di
mov dword [ebp - 0x60], 0
jne 0x1007f88b
lea eax, [ecx + 0x20]
mov dword [ebp - 0x10], 1
push eax
call fcn.10080df0
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov ebx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x24]
movsd xmm0, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x58]
movsd xmm2, qword [ebp - 0x50]
movsd xmm3, qword [ebp - 0x48]
movsd xmm4, qword [ebp - 0x40]
movsd xmm5, qword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28], 0
imul edx, ebx, 0x34
mov dword [eax + edx + 0x30], esi
movsd qword [eax + edx + 0x28], xmm5
movsd qword [eax + edx + 0x20], xmm4
movsd qword [eax + edx + 0x18], xmm3
movsd qword [eax + edx + 0x10], xmm2
movsd qword [eax + edx + 8], xmm1
movsd qword [eax + edx], xmm0
lea edx, [ebx + 1]
mov dword [ecx + 0x28], edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
nop word cs:[eax + eax]
nop dword [eax]
cmp edi, ecx
mov eax, 0
cmovae edi, eax
test ecx, ecx
je 0x1007f940
movzx eax, word [edx + edi*4]
cmp ax, 0xffff
je 0x1007f942
movzx esi, word [edx + edi*4 + 2]
mov word [edx + edi*4], bx
movzx ebx, word [ebp - 0x1e]
inc dword [ebp - 0x28]
mov word [edx + edi*4 + 2], bx
inc edi
mov word [ebp - 0x1e], si
mov ebx, eax
jmp 0x1007f900
jmp 0x1007f940
movzx eax, word [ebp - 0x1e]
cmp dword [ebp - 0x28], 0x80
movzx ecx, byte [ebp + 0x14]
mov word [edx + edi*4], bx
mov word [edx + edi*4 + 2], ax
setb dl
xor cl, 1
xor esi, esi
test dl, cl
jne 0x1007f818
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
or eax, dword [ecx]
jne 0x1007f81b
mov dword [ecx + 4], 0
mov dword [ecx], 1
jmp 0x1007f81b
Function at 0x10080eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10081ef0
mov dword [ebp - 0x40], edx
mov edi, ecx
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add ecx, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x20], 0
mov dword [ebp - 0x2c], 1
push ecx
push eax
call fcn.1008c8c0
add esp, 8
mov dword [ebp - 0x30], 0x800
mov dword [ebp - 0x3c], 0
movzx eax, byte [0x10283b09]
push 1
push 0x800
call fcn.10013860
add esp, 8
test eax, eax
je 0x1008101a
mov ecx, dword [ebp - 0x48]
mov esi, eax
mov dword [ebp - 0x2c], 0x800
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], ecx
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
sub ebx, edi
nop
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x40]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x10080f9f
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jbe 0x10080f60
mov dword [ebp - 0x10], 1
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.101c4450
add esp, 0xc
mov esi, dword [ebp - 0x28]
jmp 0x10080f56
test eax, eax
jne 0x10080fcd
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, 0xde
cmp ecx, 0xb
ja 0x10080fd0
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
mov dword [edx + 8], eax
movsd qword [edx], xmm0
mov byte [edx + 0xc], cl
jmp 0x10080ff2
mov edx, dword [ebp - 0x34]
mov byte [edx + 4], 0
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx], 0x80000000
test eax, eax
je 0x10080ff2
push 1
push eax
push dword [ebp - 0x28]
call fcn.10013870
add esp, 0xc
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10081009
add eax, eax
push 2
push eax
push dword [ebp - 0x38]
call fcn.10013870
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x800
push 1
call fcn.101cb650
add esp, 8
ud2
Function at 0x100891d0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov esi, esp
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xcc], esp
mov dword [esi + 0xd8], 0xffffffff
mov dword [esi + 0xd4], 0x1008ddd0
lea eax, [esi + 0xd0]
mov ecx, dword fs:[0]
mov dword [esi + 0xd0], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x80]
mov dword [esi + 0xd8], 4
push eax
call fcn.1017f1e0
add esp, 4
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x10]
movsd xmm2, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x10]
movsd xmm0, qword [eax + 0x20]
movsd qword [esi + 0x70], xmm2
movsd qword [esi + 0x68], xmm1
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esi + 0x78], xmm0
movsd qword [esi + 0x60], xmm1
movsd qword [esi + 0x58], xmm2
push 0x48
lea eax, [esi + 0x80]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esi + 0xd8], 3
movzx eax, word [eax + 0x44]
mov word [esi + 0x54], ax
call fcn.10088210
mov ecx, dword [ebp + 0xc]
movsd xmm1, qword [ecx + 0x30]
movsd xmm2, qword [ecx + 0x28]
movsd xmm0, qword [ecx + 0x38]
movzx eax, byte [ecx + 0x46]
mov ebx, dword [ecx + 0x40]
movsd qword [esi + 0x40], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esi + 0x38], xmm2
movsd xmm2, qword [ecx + 0x18]
movsd qword [esi + 0x48], xmm0
movsd qword [esi + 0x30], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esi + 0x28], xmm2
movsd xmm2, qword [ecx]
movsd qword [esi + 0x20], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [esi + 0x10], xmm2
movsd qword [esi + 0x18], xmm1
mov byte [esi + 0x56], al
mov edi, dword [esi + 0x50]
test edi, edi
je 0x1008935b
mov eax, dword [edi + 4]
test eax, eax
je 0x1008934e
mov ecx, edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xd8], 2
mov dword [esi + 4], edi
call fcn.1009dde0
mov edi, dword [esi + 0xc]
mov ecx, 0x18
mov ebx, dword [esi + 8]
lea eax, [edi + 1]
mul ecx
mov edx, edi
mov edi, dword [esi + 4]
add eax, 0xf
and eax, 0xfffffff0
add edx, eax
add edx, 0x11
je 0x1008934e
mov ecx, dword [edi]
sub ecx, eax
push 0x10
push edx
push ecx
call fcn.10013870
add esp, 0xc
push 4
push 0x10
push edi
call fcn.10013870
add esp, 0xc
mov edi, dword [ebp + 8]
mov dword [esi + 0x50], ebx
push 0x70
lea eax, [esi + 0x10]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xd0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1008c120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
cmp byte [ecx + 0x49], 0
je 0x1008c134
xor eax, eax
jmp 0x1008c2f2
mov esi, dword [ecx + 0x34]
mov edx, dword [ecx + 0x30]
test byte [ecx], 1
mov dword [esp], esi
je 0x1008c164
mov ebx, dword [ecx + 0x38]
cmp dword [ecx + 0x24], 0xffffffff
mov eax, dword [ecx + 0x3c]
mov esi, edx
lea edx, [ecx + 8]
mov edi, ecx
lea ecx, [esp + 8]
je 0x1008c257
push 0
jmp 0x1008c259
xor eax, eax
cmp byte [ecx + 0xe], 0
je 0x1008c182
mov ebx, edx
mov dword [esp + 8], eax
test byte [esp + 8], 1
je 0x1008c290
jmp 0x1008c2de
mov edi, dword [ecx + 4]
movzx ebx, byte [ecx + 0xc]
mov dword [esp + 4], edx
jmp 0x1008c195
add edi, eax
mov dword [ecx + 4], edi
mov bh, bl
xor bl, 1
test edi, edi
je 0x1008c1b6
cmp edi, esi
jae 0x1008c1b0
cmp byte [edx + edi], 0xbf
jg 0x1008c1b6
jmp 0x1008c2fa
jne 0x1008c2fa
cmp edi, esi
je 0x1008c275
movzx eax, byte [edx + edi]
movzx ebp, al
test al, al
jns 0x1008c219
movzx esi, byte [edx + edi + 1]
and ebp, 0x1f
and esi, 0x3f
cmp al, 0xdf
jbe 0x1008c206
movzx edx, byte [edx + edi + 2]
shl esi, 6
and edx, 0x3f
or edx, esi
cmp al, 0xf0
jb 0x1008c20d
mov esi, dword [esp + 4]
and ebp, 7
shl edx, 6
shl ebp, 0x12
movzx eax, byte [esi + edi + 3]
and eax, 0x3f
or eax, edx
mov edx, esi
or ebp, eax
jmp 0x1008c216
shl ebp, 6
or ebp, esi
jmp 0x1008c216
shl ebp, 0xc
or ebp, edx
mov edx, dword [esp + 4]
mov esi, dword [esp]
test bh, 1
jne 0x1008c2bf
mov eax, 1
cmp ebp, 0x80
jb 0x1008c190
mov eax, 2
cmp ebp, 0x800
jb 0x1008c190
cmp ebp, 0x10000
mov eax, 4
sbb eax, 0
jmp 0x1008c190
push 1
push eax
push ebx
push dword [esp + 0xc]
mov ebx, esi
push esi
call fcn.10088ac0
add esp, 0x14
mov ecx, edi
test byte [esp + 8], 1
je 0x1008c290
jmp 0x1008c2de
test bh, 1
mov byte [ecx + 0xc], bl
jne 0x1008c2c4
xor eax, eax
mov ebx, edx
mov byte [ecx + 0xe], 1
mov dword [esp + 8], eax
test byte [esp + 8], 1
jne 0x1008c2de
xor eax, eax
cmp byte [ecx + 0x49], 0
je 0x1008c29a
jmp 0x1008c2f2
mov byte [ecx + 0x49], 1
cmp byte [ecx + 0x48], 1
jne 0x1008c2ac
mov esi, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
jmp 0x1008c2b6
mov esi, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
cmp edx, esi
je 0x1008c2f2
sub edx, esi
add esi, dword [ecx + 0x30]
mov eax, esi
jmp 0x1008c2f2
mov esi, edi
mov byte [ecx + 0xc], bl
mov eax, 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov ebx, edx
mov dword [esp + 8], eax
test byte [esp + 8], 1
je 0x1008c290
mov edx, dword [esp + 0xc]
mov edi, dword [ecx + 0x40]
mov esi, dword [esp + 0x10]
mov eax, ebx
sub edx, edi
add eax, edi
mov dword [ecx + 0x40], esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ecx + 0xc], bl
push 0x101da8d4
push esi
push edi
push esi
push edx
call fcn.101cbe90
int3
Function at 0x100953b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10098fd0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x10], 5
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
add eax, 0x30
mov dword [ebp - 0x24], eax
push eax
call fcn.1000d4c0
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10095419
shl eax, 3
push 4
push eax
push dword [esi + 0x34]
call fcn.10013870
add esp, 0xc
mov eax, dword [esi + 0x64]
test eax, eax
je 0x10095437
lock dec dword [eax]
jne 0x10095437
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
lea ecx, [eax + 0x64]
call fcn.10096d00
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x1009547e
mov edi, dword [ebp - 0x20]
push dword [edi + 0x70]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [esi]
mov esi, edi
jne 0x10095460
lea eax, [esi + 0x68]
push eax
call fcn.10007330
add esp, 4
mov eax, dword [esi + 0x6c]
lock dec dword [eax]
jne 0x1009547e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
add eax, 0x6c
push eax
call fcn.10096780
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 2
add eax, 0x40
push eax
call fcn.1009c3e0
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
lock dec dword [eax]
jne 0x100954b5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
add eax, 0x20
push eax
call fcn.100067e0
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x100954df
lock dec dword [eax]
jne 0x100954df
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
add eax, 0x80
push eax
call fcn.100067e0
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x10095507
lock dec dword [eax]
jne 0x10095507
lea eax, [esi + 0x88]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.100067e0
add esp, 4
cmp esi, 0xffffffff
je 0x10095522
lock dec dword [esi + 4]
jne 0x10095522
push 8
push 0xa8
push esi
call fcn.10013870
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret