joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f577
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x41e88a
call sub.msvcrt.dll__EH_prolog
sub esp, 0x3c
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
push eax
push 0x424610
push 1
push esi
push 0x4246e0
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.ROOTCIMV2
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40f6e3
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push esi
push 0x20
push str.Select__From_Win32_OperatingSystem
push 0x423c30
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x40f6dc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp eax, esi
je 0x40f6f3
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x1c], esi
je 0x40f6f3
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x48]
push edx
push esi
push str.InstallDate
push eax
mov dword [ebp - 4], esi
call dword [ecx + 0x10]
push 1
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x40]
call fcn.0040f4dd
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
push esi
call dword [0x63d15c]
push eax
call dword [0x63d0f4]
mov esi, eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x32]
push eax
push str._d__d__d__d:_d:_d
push esi
call dword [0x63cf84]
mov ecx, dword [ebp + 8]
add esp, 0x20
push esi
call fcn.0040e624
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40f6f0
push 0x423c64
jmp 0x40f6e8
push 0x423c6c
mov ecx, dword [ebp + 8]
call fcn.0040e624
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40f700
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x41e89c
call sub.msvcrt.dll__EH_prolog
sub esp, 0x24
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
push eax
push 0x424610
push 1
push esi
push 0x4246e0
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.rootSecurityCenter2
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40f808
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push esi
push 0x20
push str.Select__From_AntiVirusProduct
push 0x423ce0
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x40f801
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp eax, esi
je 0x40f818
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x1c], esi
je 0x40f818
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x30]
push edx
push esi
push str.displayName
push eax
mov dword [ebp - 4], esi
call dword [ecx + 0x10]
push dword [ebp - 0x28]
call fcn.0040fa44
pop ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0040e624
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40f815
push 0x423d00
jmp 0x40f80d
push str.Unknown
mov ecx, dword [ebp + 8]
call fcn.0040e624
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4116d2
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41ebd8
call sub.msvcrt.dll__EH_prolog
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040e65b
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0040e65b
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040e65b
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
add edi, 0x34
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], eax
call fcn.0040e65b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x412d5f
Capabilities:
Create thread

Disassembly:
mov eax, 0x41f05b
call sub.msvcrt.dll__EH_prolog
sub esp, 0x48
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.00411dcd
test byte [0x63cf20], 1
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 3
je 0x412d95
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e6e2
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040e6e2
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040e6e2
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e6e2
mov esi, 0x3e8
jmp 0x412de8
push esi
call dword [0x63cf9c]
cmp dword [0x63cf20], 2
jae 0x412de1
inc dword [0x63cf20]
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x411c93
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
push 0x423e2a
call fcn.0040e624
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
call fcn.00411e19
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040113a
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], bl
call fcn.0040e68f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414135
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41f3cf
call sub.msvcrt.dll__EH_prolog
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
inc esi
push 0x42404c
lea ecx, [ebp + 0x70]
mov dword [ebp - 4], esi
call fcn.0040e85b
push eax
call sub.msvcrt.dll_strtok_s
add esp, 0xc
xor ebx, ebx
push ebx
push 0x424050
lea ecx, [ebp + 0x64]
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0x14], ebx
call fcn.0040e85b
push eax
call dword [0x63d090]
test eax, eax
je 0x41418d
mov edi, esi
push ebx
push 0x424060
lea ecx, [ebp + 0x64]
call fcn.0040e85b
push eax
call dword [0x63d090]
test eax, eax
je 0x4141ab
mov edi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
jmp 0x41432a
cmp edi, ebx
je 0x4142bd
lea eax, [ebp - 0x80]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x80]
cmp byte [ebp - 0x80], bl
je 0x414315
push 0x3e8
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp - 0x14], ebx
je 0x414217
cmp eax, 2
jne 0x414217
lea ecx, [ebp + 0x64]
call fcn.0040e85b
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0x63d1a0]
push esi
push str._DRIVE_REMOVABLE_
jmp 0x414233
lea ecx, [ebp + 0x64]
call fcn.0040e85b
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0x63d1a0]
push esi
push str._DRIVE_FIXED_
lea eax, [ebp - 0x468]
push eax
call fcn.0040fc70
add esp, 0xc
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0x63d1a0]
push ebx
push dword [ebp + 0x88]
lea eax, [ebp - 0x468]
push edi
push dword [ebp + 0x84]
lea ecx, [ebp + 0x58]
push dword [ebp + 0x80]
push ebx
push dword [ebp + 0x7c]
push dword [ebp - 0x10]
push eax
call fcn.0040e85b
push eax
push 0x423df3
lea ecx, [ebp + 0x8c]
call fcn.0040e85b
push eax
sub esp, 0x50
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040117e
call fcn.00413d63
add esp, 0x80
push esi
call dword [0x63d018]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x4141d3
jmp 0x414315
push ebx
push dword [ebp + 0x88]
lea ecx, [ebp + 0x64]
push ebx
push dword [ebp + 0x84]
push dword [ebp + 0x80]
push ebx
push dword [ebp + 0x7c]
push eax
call fcn.0040e85b
push eax
lea ecx, [ebp + 0x58]
call fcn.0040e85b
push eax
push 0x423df6
lea ecx, [ebp + 0x8c]
call fcn.0040e85b
push eax
sub esp, 0x50
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040117e
call fcn.00413d63
add esp, 0x80
lea eax, [ebp - 0x18]
push eax
push 0x424098
push ebx
call sub.msvcrt.dll_strtok_s
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x4141b3
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.0040f84b
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0040113a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x58]
call fcn.00411682
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x418e89
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b1b0]
jne 0x418e93
repz ret
jmp fcn.0041bb7f
Function at 0x10005c00
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x3c
movups xmm0, xmmword [0x1000d370]
mov eax, dword [0x1000d388]
mov dword [ebp - 0x18], eax
mov ax, word [0x1000d38c]
push esi
mov esi, ecx
mov word [ebp - 0x14], ax
mov al, byte [0x1000d38e]
xor ecx, ecx
cmp dword [0x10010670], 2
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x12], al
movq xmm0, qword [0x1000d380]
movq qword [ebp - 0x20], xmm0
jl 0x10005d84
movaps xmm0, xmmword [str.5555555555555555]
movaps xmm4, xmmword [0x1000d470]
movaps xmm3, xmmword [0x1000d4c0]
movaps xmm5, xmmword [0x1000d490]
movaps xmmword [ebp - 0x10], xmm0
mov edx, dword [ebp - 0x10]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x1000d4a0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x30]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x30], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x1000d4a0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x2c]
xorps xmm1, xmm0
movd dword [ebp + ecx - 0x2c], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x10005c80
cmp ecx, 0x1f
jge 0x10005db1
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, al
shl dl, 3
sub dl, al
mov al, cl
shl dl, 3
sub al, dl
add al, 0x35
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x1f
jl 0x10005d84
lea eax, [ebp - 0x30]
push eax
call fcn.100054f0
add esp, 4
mov dword [esi], 0x35200000
push 0x40
push 0x3000
push dword [esi + 4]
push 0x35200000
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [esi + 4]
push dword [esi + 8]
push dword [esi]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10005df0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
movups xmm0, xmmword [0x1000d390]
mov eax, dword [0x1000d3b0]
mov dword [ebp - 0x28], eax
mov ax, word [0x1000d3b4]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 8], ecx
xor ecx, ecx
cmp dword [0x10010670], 2
movups xmm0, xmmword [0x1000d3a0]
mov word [ebp - 0x24], ax
mov al, byte [0x1000d3b6]
push esi
push edi
movups xmmword [ebp - 0x38], xmm0
mov byte [ebp - 0x22], al
mov dword [ebp - 4], ecx
jl 0x10005f80
movaps xmm0, xmmword [str.5555555555555555]
movaps xmm4, xmmword [0x1000d470]
movaps xmm3, xmmword [0x1000d4c0]
movaps xmm5, xmmword [0x1000d490]
movaps xmmword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x20]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x1000d4a0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x48]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x48], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x1000d4a0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x44]
xorps xmm1, xmm0
movd dword [ebp + ecx - 0x44], xmm1
add ecx, 8
cmp ecx, 0x20
jl 0x10005e73
mov dword [ebp - 4], ecx
cmp ecx, 0x27
jge 0x10005fb4
nop word [eax + eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, byte [ebp - 4]
shl cl, 3
sub al, cl
mov ecx, dword [ebp - 4]
add al, 0x35
xor byte [ebp + ecx - 0x48], al
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x27
jl 0x10005f80
lea eax, [ebp - 0x48]
push eax
call fcn.100054f0
mov eax, dword [0x100106a0]
add esp, 4
mov esi, dword [0x1001069c]
mov dword [ebp - 4], eax
cmp esi, eax
je 0x1000600f
add esi, 0x1c
cmp dword [esi + 0x14], 0xf
mov edi, esi
jbe 0x10005fdf
mov edi, dword [esi]
cmp dword [esi - 4], 0xf
lea eax, [esi - 0x18]
jbe 0x10005fea
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov edx, dword [esi - 0x1c]
add esi, 0x34
mov ecx, dword [ecx]
mov dword [edx + ecx], eax
lea eax, [esi - 0x1c]
cmp eax, dword [ebp - 4]
jne 0x10005fd5
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10006cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10006cef
push 0
push 0
push dword [ebp + 8]
push 0x10006a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10007720
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000781a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10007813
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x100077f9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100077f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100077f9
mov edx, dword [esi]
test edx, edx
jne 0x100077c2
push 0x200
push edx
push dword [0x10010698]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10007813
jmp 0x100077ed
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100077ed
shl eax, 3
push eax
push edx
push 0
push dword [0x10010698]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10007813
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10007781
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1000785f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1000785f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10007859
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100075b0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10007826
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008042
mov esp, ebp
pop ebp
ret
Function at 0x10007870
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x100106c8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x100079e4
mov eax, dword [0x100106c0]
add eax, 0x14
nop
test byte [eax], 2
je 0x100078bf
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x100078a0
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008042
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100079e4
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10007720
mov edx, dword [0x100106c8]
add esp, 4
cmp esi, edx
jae 0x10007997
imul ecx, esi, 0x2c
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov edi, dword [0x100106c0]
add edi, ecx
test byte [edi + 0x14], 2
jne 0x1000797e
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000798f
mov byte [ebx], 0xe9
mov eax, dword [edi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [edi + 0x14], 1
je 0x1000794a
mov eax, dword [edi]
mov word [eax], QueryPerformanceCounter
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor ebx, ebx
mov edx, dword [0x100106c8]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
inc esi
add ecx, 0x2c
mov dword [ebp - 0x14], ecx
cmp esi, edx
jb 0x100078f0
jmp 0x10007997
mov ebx, 0xa
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100079e3
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x100079d4
mov ebx, eax
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100079c8
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x100079a7
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
push eax
push 0
push dword [0x10010698]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10008042
mov esp, ebp
pop ebp
ret
Function at 0x10011023
Capabilities:
Terminate process

Disassembly:
jmp 0x1001cb00
jmp fcn.1001cb30
cmp ecx, dword [0x10021054]
jne 0x1001cb0a
repz ret
jmp 0x100110b9

Function at 0x10016ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10016adf
pop dword [ebp - 0x44]
mov eax, 0x7cd91ea8
sub eax, 0x6cd7b3c9
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xe37da388
sub dword [ebp - 0x54], 0x952b5e3d
mov dword [ebp - 0x50], 0xa0fb4508
add dword [ebp - 0x50], 0x9138073d
mov dword [ebp - 0x4c], 0xef57793e
sub dword [ebp - 0x4c], 0xa30b3510
mov dword [ebp - 0x48], 0x927b44b4
sub dword [ebp - 0x48], 0x927b44b4
lea eax, [ebp - 0x54]
push eax
mov eax, 0x9a730f05
add eax, 0x758f12e7
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xdf805e54
add dword [ebp - 0x54], 0x94f20b02
mov dword [ebp - 0x50], 0x3365b0c1
add dword [ebp - 0x50], 0xe06b0b4
mov dword [ebp - 0x4c], 0xd3100f73
sub dword [ebp - 0x4c], 0x6fa0a307
mov dword [ebp - 0x48], 0x48e28ec7
sub dword [ebp - 0x48], 0x48e28ec7
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x4d63bd8d
sub eax, 0x3d619b9d
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x34bfd
push 0
call eax
mov ecx, 0x3df6
mov esi, eax
mov edx, 0x8f3b8369
sub edx, 0x7f393969
add edx, dword [ebp - 0x44]
mov edi, 0x444ea68a
add edi, 0xeb70da7
add dword [ebp - 4], esi
mov ebx, dword [edx]
xor dword [ebp - 4], 0x77ab8508
sub ebx, edi
sub dword [ebp - 0x18], 0xf42051b0
mov dword [esi], ebx
mov dword [ebp - 8], 0x86f2b7bf
add esi, 0x96a64e48
add esi, 0x6959b1bc
add edx, 4
loop 0x10016bfb
add eax, 0x32aa33b
add eax, 0xfcd64770
mov ebx, eax
add eax, 0xc0336ac0
sub eax, 0xc0336abb
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret