joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f77b8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x1012604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 1
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.1001adc0
push 0x40
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.100cca00
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x68]
call fcn.1001bc60
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.1001b710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1001cc50
push 0x40
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.100cca00
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0xa8]
call fcn.1001bc60
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.1001b710
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.1001cc50
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.1001c020
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.1001c440
mov ecx, dword [ebp - 0x10]
call fcn.1001d8c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x100208a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1012604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], ecx
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.100d3990
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 0x128000
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x114]
jae 0x1002097c
mov ecx, dword [ebp - 0x10c]
movzx edx, word [ecx]
cmp edx, 0x6c7
jne 0x10020977
mov eax, dword [ebp - 0x10c]
movzx ecx, word [eax + 6]
cmp ecx, 0x8689
jne 0x10020977
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xc]
cmp eax, 0x8689
jne 0x10020977
mov ecx, dword [ebp - 0x10c]
add ecx, 2
mov dword [ebp - 0x10c], ecx
jmp 0x1002097c
jmp 0x100208f7
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ca7cd
mov esp, ebp
pop ebp
ret
Function at 0x10021040
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f79d1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1012604c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10021210
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.10021210
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x14]
call fcn.10021d00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10021240
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.10021170
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov dword [ebp - 0x1c], 0x101ae9e8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x1000
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x28
push edx
call fcn.10021b90
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
call fcn.10021c60
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
xor edx, edx
mov eax, dword [ebp - 0x10]
add eax, 0x3c
mov dword [eax], edx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x40], 0
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x1002114c
mov ecx, dword [ebp - 0x10]
call fcn.10021340
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x10025210
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0x10115740
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10025271
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x1002522b
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x10025280
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0x10115740
cmp dword [ebp + 0xc], 0
je 0x10025339
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x14], 0
je 0x10025337
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 3], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov dl, byte [ebp - 3]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 0x23
jne 0x10025314
cmp dword [ebp + 0xc], 2
jb 0x10025314
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10025314
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10025314
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 2]
xor ecx, edx
mov edx, dword [ebp - 0x10]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
jmp 0x100252ab
jmp 0x100253ae
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov al, byte [ebp - 4]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x100253ae
movzx edx, byte [ebp - 1]
cmp edx, 0x23
jne 0x1002538f
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x1002538f
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x1002538f
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [ebp - 1]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x10025339
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x10025590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100d4930
add esp, 0x10
xor edx, edx
pop ebp
ret

Function at 0x100255b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100d4c09
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x1006f220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1012604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov al, byte [0x10112f41]
mov byte [ebp - 0x104], al
push 0xfe
push 0
lea ecx, [ebp - 0x103]
push ecx
call fcn.100cca00
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x120]
push edx
push 0
push 0
push 0x1011b630
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xa
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.100da88b
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
lea ecx, [ebp - 0x11c]
call fcn.1000ce40
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000d7c0
mov ecx, dword [ebp - 0x124]
or ecx, 1
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x11c]
call fcn.1000dfc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ca7cd
mov esp, ebp
pop ebp
ret

Function at 0x1006f8a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1006f8c8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x1006f380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10070530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
je 0x10070548
cmp dword [ebp + 0xc], 0
je 0x10070548
cmp dword [ebp + 0x10], 0
jne 0x1007054c
xor eax, eax
jmp 0x100705b5
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100ccc90
add esp, 0xc
mov dword [ebp - 4], eax
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10076b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
je 0x10076b27
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10076b2e
xor al, al
jmp 0x10076bb2
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x10076b3d
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jne 0x10076b5e
xor al, al
jmp 0x10076bb2
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.10076bc0
movzx eax, al
test eax, eax
jne 0x10076b7d
xor al, al
jmp 0x10076bb2
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10076ba8
mov dword [ebp - 0x10], 1
jmp 0x10076baf
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100773c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
call fcn.10077920
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100775c0
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, ebx
test eax, eax
jne 0x100773f8
mov byte [ebp - 0xc], al
jmp 0x10077412
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
push ebx
push 0x90
push esi
call fcn.100cca00
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x1007743e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 8], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10077450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov bl, dl
call fcn.10077920
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100775c0
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 8]
test eax, eax
jne 0x10077484
mov byte [ebp - 0xc], al
jmp 0x1007749e
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], bl
cmp byte [ebp - 0xc], 0
je 0x100774bd
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 8], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100774d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.10077920
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100775c0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10077529
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10077530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov dword [ebp - 8], edx
call fcn.10077920
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.100775c0
mov dword [ebp - 0x1c], 0
mov esi, dword [eax]
xor eax, eax
cmp byte [ebp + 0xc], al
cmovne eax, dword [ebp + 8]
test eax, eax
jne 0x10077569
mov byte [ebp - 0x10], al
jmp 0x10077583
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 8]
push esi
call fcn.100ccc90
add esp, 0xc
cmp byte [ebp - 0x10], 0
je 0x100775af
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10077640
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x10077687
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10077740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x401000
call fcn.10077920
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100775c0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1007779e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x100777b0
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.100774d0
cmp eax, 0x16197be9
jne 0x100777cb
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.100774d0
cmp eax, 0x94bf
jne 0x100777e6
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.100774d0
cmp eax, 0x94bf
jne 0x10077801
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.100774d0
cmp eax, 0x94bf
jne 0x1007781c
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.100774d0
cmp eax, 0x3539f633
jne 0x10077837
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.100774d0
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x10077b2d
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1012604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10077c2f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10077c28
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x10077bec
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10077bec
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10077bec
mov edx, dword [esi]
test edx, edx
jne 0x10077bb8
push 0x200
push edx
push dword [0x101b0a44]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10077c11
jmp 0x10077be0
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10077be0
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x101b0a44]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10077c11
mov dword [esi], edx
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 ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10077b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10077c28
xor edi, edi
cmp dword [esi], edi
je 0x10077c28
push dword [esi]
push edi
push dword [0x101b0a44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ca7cd
leave
ret

Function at 0x10077c40
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10077b2d
test eax, eax
jne 0x10077c64
push 9
pop esi
jmp 0x10077cab
cmp dword [edi], esi
je 0x10077cab
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10077caa
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x10077ca4
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.100779da
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10077c70
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10077cb1
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10077cff
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10077cef
push ebx
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 0x10077ce6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10077cc3
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x101b0a44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x10077d01
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x101b1730]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x10077d1d
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10077d3e
push 0xa
pop eax
jmp 0x10077d7d
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10077d59
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10078854
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x101b1728]
push esi
xor esi, esi
jmp 0x10078866
cmp dword [edx + 4], esi
jne 0x100788bf
mov edx, dword [edx]
test edx, edx
jne 0x1007885f
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x100788c3
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x1007888f
mov eax, dword [0x101b1728]
mov dword [edx], eax
mov dword [0x101b1728], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
test edx, edx
jne 0x100788b2
xor eax, eax
pop esi
ret
Function at 0x10081b60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10081bec
push esi
call fcn.100944f0
add esp, 4
test al, al
jne 0x10081bec
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10081b83
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1009ffe0
add esp, 0xc
test eax, eax
je 0x10081bb7
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1009ffe0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10081bb9
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x10081be5
mov al, byte [esi]
push eax
call fcn.10090220
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x10081bc7
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret