joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032050
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
mov edx, dword [0x10183428]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x10032079
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10032070
sub esi, ecx
test edx, edx
je 0x10032083
inc dword [edx + 0x374]
lea eax, [esi + 1]
push ebx
push eax
call fcn.100772af
push esi
push edi
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call fcn.10070570
mov esi, dword [ebp - 0x10]
xor edx, edx
add esp, 0x10
mov byte [ebx], 0
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, esi
cmp esi, ebx
jae 0x10032214
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0xa
je 0x10032241
cmp al, 0xd
je 0x10032241
mov esi, ecx
cmp ecx, ebx
jae 0x100320e7
mov al, byte [esi]
cmp al, 0xa
je 0x100320e7
cmp al, 0xd
je 0x100320e7
inc esi
cmp esi, ebx
jb 0x100320d8
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x10032206
cmp al, 0x5b
jne 0x100321e5
cmp esi, ecx
jbe 0x100321e5
cmp byte [esi - 1], 0x5d
lea ebx, [esi - 1]
jne 0x100321e2
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call fcn.10070cc0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10032200
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call fcn.10070cc0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10032200
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [0x10183428]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [edi]
inc edi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x1003219e
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x1003217f
cmp byte [edi], cl
jne 0x1003217f
cmp byte [edi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x100a8f60]
test cl, cl
jne 0x10032170
mov ebx, dword [0x10183428]
mov edx, dword [ebx + 0x2d40]
xor ecx, ecx
not eax
test edx, edx
jle 0x100321bf
mov edi, dword [ebx + 0x2d48]
cmp dword [edi + 4], eax
je 0x100321c8
inc ecx
add edi, 0x18
cmp ecx, edx
jl 0x100321b2
xor edi, edi
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x10032203
test edi, edi
je 0x100321c1
push dword [ebp - 0x14]
mov eax, dword [edi + 8]
push edi
push dword [ebp - 0xc]
call eax
mov edx, eax
add esp, 0xc
mov dword [ebp - 4], edx
jmp 0x10032203
mov ebx, dword [ebp - 8]
test edi, edi
je 0x10032206
test edx, edx
je 0x10032206
mov eax, dword [edi + 0xc]
push ecx
push edx
push edi
push dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
jmp 0x10032206
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
lea ecx, [esi + 1]
cmp ecx, ebx
jb 0x100320c0
mov esi, dword [ebp - 0x10]
pop ebx
test esi, esi
je 0x10032228
mov eax, dword [0x10183428]
test eax, eax
je 0x10032228
dec dword [eax + 0x374]
push esi
call fcn.100767d2
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
mov byte [eax + 0x2d2c], 1
pop esi
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x100320c0
Function at 0x10032250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x10183428]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2d30], 0
test eax, eax
je 0x1003233d
lea edi, [esi + 0x2d34]
mov dword [esi + 0x2d30], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x100322a5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10033020
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x100322ba
push 8
mov ecx, edi
call fcn.10033020
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2d40], 0
jle 0x100322fc
xor ebx, ebx
mov eax, dword [esi + 0x2d48]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2d40]
jl 0x100322d7
mov edi, dword [edi]
mov ebx, 0x10183419
mov ecx, dword [ebp - 8]
mov edx, 0x100ad0b8
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2d3c]
test eax, eax
cmovne ebx, eax
call fcn.10022890
mov esi, eax
test esi, esi
je 0x1003233d
push esi
push edi
push 1
push ebx
call fcn.10076567
push esi
call fcn.100740b2
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10056a20
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100b6374]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x10056b9c
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10056b89
cmp dword [ebp - 0x28], 0x10
jb 0x10056b6d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.1006ebaf
cmp dword [ebp - 0x1c], eax
jne 0x10056b6d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.1006ebaf
cmp dword [ebp - 0x20], eax
je 0x10056b6d
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10056af4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x10182414]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.1006ebaf
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10056af2
jmp 0x10056b89
jmp 0x10056b4d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x10056b4d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10182414]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.1006ebaf
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10056b37
jmp 0x10056b89
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x28], 0x1c
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10056a73
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1006ebaf
push edx
mov ecx, ebp
push eax
lea edx, [0x10056bc8]
call fcn.1006eb5b
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006def6
add esp, 0x30
cmp ebp, esp
call fcn.1006ebaf
mov esp, ebp
pop ebp
ret
Function at 0x10056be0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10056a20
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x10056cab
mov dword [ebp - 4], 0
jmp 0x10056c3c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x10056cab
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1006ebaf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10056ca9
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1006ebaf
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10056840
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1006ebaf
jmp 0x10056c33
pop esi
add esp, 8
cmp ebp, esp
call fcn.1006ebaf
mov esp, ebp
pop ebp
ret

Function at 0x10056cc0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10056d6b
mov dword [ebp - 4], 0
jmp 0x10056cf3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x10056d4e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1006ebaf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10056d4c
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1006ebaf
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1006ebaf
jmp 0x10056cea
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10182414]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.1006ebaf
pop esi
add esp, 8
cmp ebp, esp
call fcn.1006ebaf
mov esp, ebp
pop ebp
ret
Function at 0x10056d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x101835c0]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10056de3
mov eax, dword [ebp - 0x18]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1006ebaf
test eax, eax
jne 0x10056e0e
mov eax, 0xa
jmp 0x10056f10
cmp dword [ebp + 0xc], 0
je 0x10056e5a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x10056e58
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x20]
mov byte [edx + 1], 0xf9
jmp 0x10056e96
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10056e81
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10070570
add esp, 0xc
jmp 0x10056e96
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.10070570
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1006ebaf
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.1006ebaf
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.1006ebaf
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x10056f34]
call fcn.1006eb5b
pop eax
pop edx
pop edi
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.1006ebaf
mov esp, ebp
pop ebp
ret
Function at 0x10057600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x101835b8]
mov dword [ebp - 4], eax
jmp 0x10057627
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10057640
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1005763e
mov eax, dword [ebp - 4]
jmp 0x100576c4
jmp 0x1005761f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1006ebaf
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100576c1
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x10057683
mov edx, dword [ebp - 4]
mov eax, dword [0x101835b8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x101835b8], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.1006ebaf
mov esp, ebp
pop ebp
ret

Function at 0x10057bb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10057c00
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10057c00
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10057c00
xor eax, eax
jmp 0x10057c41
mov dword [ebp - 4], 1
jmp 0x10057c12
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10057c3c
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x10057c3a
xor eax, eax
jmp 0x10057c41
jmp 0x10057c09
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1008703b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10086eb1

Function at 0x1008cc7f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008c8fc

Function at 0x10093f70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10093f9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10093f9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x408968
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4089f8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4089f8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4089ab
test edx, 3
jne 0x40899a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4089a5
jmp 0x4089ab
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4089ab
cmp dword [ecx - 8], 1
je 0x4089b5
mov edx, ebx
or edx, 3
call fcn.00404eec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4089c7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047a0

Function at 0x408a04
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408a94
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408a94
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408a47
test edx, 3
jne 0x408a36
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408a41
jmp 0x408a47
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408a47
cmp dword [ecx - 8], 1
je 0x408a51
mov edx, ebx
or edx, 3
call fcn.00404eec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408a63
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047a0
Function at 0x1011005
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x100cda4]
test eax, eax
mov ecx, 0xbb40
je 0x101101c
cmp eax, ecx
jne 0x101103f
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x100cda4
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x100cda4], eax
jne 0x101103f
mov eax, ecx
mov dword [0x100cda4], eax
not eax
mov dword [0x100cda0], eax
pop ebp
jmp 0x1008eba

Function at 0x103af49
Capabilities:
Get number of processors

Disassembly:
and byte [ecx + 0x6c], ah
je 0x103af8b
and ah, dh
popfd
test al, 0xe5
mov ecx, 0x88e52082
cwde
out 0x81, al
mov edx, 0x2081a8e5
jmp 0x81ea48f9

Function at 0x103af84
Capabilities:
Get number of processors

Disassembly:
jb 0x103afc3
and dh, byte [eax]
and ah, byte [eax]
das
cmp al, 0x2f
popal
cmp al, 0x2f
insb byte es:[edi], dx
imul edi, dword [esi], 0x3c090a0d
or dword [esp + ebp*2], edi
imul edi, dword [esi], 0x6820613c
jb 0x103b007
cmp ax, 0x6822
je 0x103b01c
jo 0x103afe4
je 0x103b026
and byte [ecx + 0x72], dh
je 0x103b029
xor ch, byte [esi]
imul esp, dword [esi + 0x65], 0x6d69676e
popal

Function at 0x103fdcb
Capabilities:
Get number of processors

Disassembly:
jb 0x103fe3d
jne 0x103fe40
je fcn.0103fe4b
jo 0x103fe39
insb byte es:[edi], dx
or bh, byte [esi]
imul esp, dword [ebp + 0x6c], 0x616e2064

Function at 0x103fdd4
Capabilities:
Get number of processors

Disassembly:
and bh, byte [esi]
xor byte [ecx + esi], ch
sub al, 0x32
sub al, 0x33
sub al, 0x34
sub al, 0x35
sub al, 0x36
sub al, 0x37
sub al, 0x38
sub al, 0x39
sub al, 0x31
xor byte [ecx + esi], ch
xor dword [ecx + esi], ebp
xor ch, byte [ecx + esi]
xor ebp, dword [ecx + esi]
xor al, 0x2c
xor dword [0x2c36312c], esi
xor dword [edi], esi
sub al, 0x31
cmp byte [ecx + esi], ch
cmp dword [edx + esi], ebp
xor byte [edx + esi], ch
xor dword [edx + esi], ebp
xor bh, byte [edi + ebp]
imul sp, word [ebp + 0x6c], 0x3e64
or eax, 0x69663c0a
insb byte es:[edi], dx
and byte fs:[esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x78616d22
pop edi
arpl word [edi + 0x75], bp
outsb dx, byte [esi]
je 0x103fe53
xor dword ds:[0x69662f3c], esi
insb byte es:[edi], dx
or eax, 0x69663c0a
insb byte es:[edi], dx
and byte fs:[esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x76656c22
insb byte es:[edi], dx
jbe 0x103feb4
insb byte es:[edi], dx
and bh, byte [esi]
xor bh, byte [edi + ebp]
cmp al, 0x2f
imul sp, word [ebp + 0x6c], 0x3e64
or eax, 0x692f3c0a
je 0x103fec7
insd dword es:[edi], dx
or eax, 0x74693c0a
insd dword es:[edi], dx
or eax, 0x69663c0a
insb byte es:[edi], dx
and byte fs:[esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x64726f22
jb 0x103fee0
imul esp, dword [edx + 0x3e], 0x31343331
xor eax, 0x662f3c38
imul esp, dword [ebp + 0x6c], 0xa0d3e64
cmp al, 0x66
imul esp, dword [ebp + 0x6c], 0x616e2064
insd dword es:[edi], dx
cmp eax, 0x636f6c22
popal
je 0x103ff12
outsd dx, dword [esi]
outsb dx, byte [esi]
pop edi
imul esp, dword [edx + 0x3e], 0x756f7267
jo 0x103ff15
bound esp, qword [ecx + 0x6e]
outsb dx, byte [esi]
imul sp, word [ebp + 0x6c], 0x2064
outsb dx, byte [esi]
popal
Function at 0x103fe4b
Capabilities:
Get number of processors

Disassembly:
and bh, byte [esi]
xor byte [ecx + esi], ch
sub al, 0x32
sub al, 0x33
sub al, 0x34
sub al, 0x35
sub al, 0x36
sub al, 0x37
sub al, 0x38
sub al, 0x39
sub al, 0x31
xor byte [ecx + esi], ch
xor dword [ecx + esi], ebp
xor ch, byte [ecx + esi]
xor ebp, dword [ecx + esi]
xor al, 0x2c
xor dword [0x2c36312c], esi
xor dword [edi], esi
sub al, 0x31
cmp byte [ecx + esi], ch
cmp dword [edx + esi], ebp
xor byte [edx + esi], ch
xor dword [edx + esi], ebp
xor bh, byte [edi + ebp]
imul sp, word [ebp + 0x6c], 0x3e64
or eax, 0x69663c0a
insb byte es:[edi], dx
and byte fs:[esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x78616d22
pop edi
arpl word [edi + 0x75], bp
outsb dx, byte [esi]
je 0x103fe53
xor dword ds:[0x69662f3c], esi
insb byte es:[edi], dx
or eax, 0x69663c0a
insb byte es:[edi], dx
and byte fs:[esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x76656c22
insb byte es:[edi], dx
jbe 0x103feb4
insb byte es:[edi], dx
and bh, byte [esi]
xor bh, byte [edi + ebp]
cmp al, 0x2f
imul sp, word [ebp + 0x6c], 0x3e64
or eax, 0x692f3c0a
je 0x103fec7
insd dword es:[edi], dx
or eax, 0x74693c0a
insd dword es:[edi], dx
or eax, 0x69663c0a
insb byte es:[edi], dx
and byte fs:[esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x64726f22
jb 0x103fee0
imul esp, dword [edx + 0x3e], 0x31343331
xor eax, 0x662f3c38
imul esp, dword [ebp + 0x6c], 0xa0d3e64
cmp al, 0x66
imul esp, dword [ebp + 0x6c], 0x616e2064
insd dword es:[edi], dx
cmp eax, 0x636f6c22
popal
je 0x103ff12
outsd dx, dword [esi]
outsb dx, byte [esi]
pop edi
imul esp, dword [edx + 0x3e], 0x756f7267
jo 0x103ff15
bound esp, qword [ecx + 0x6e]
outsb dx, byte [esi]
imul sp, word [ebp + 0x6c], 0x2064
outsb dx, byte [esi]
popal