joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bee10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012e970
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1016f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10004bf0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100a2a20
mov ecx, eax
call fcn.100a2ae0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100beec5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100beebb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100beffe
push edx
push ecx
call fcn.100da665
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xb
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push str.crypt32.dll
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10004bf0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.100a2a20
mov ecx, eax
call fcn.100a2ae0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100bef5a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bef4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bf003
push edx
push ecx
call fcn.100da665
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
test edi, edi
je 0x100befec
test eax, eax
je 0x100befec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100f5ab9
call fcn.100f5ab9
int3
Function at 0x100c05b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ebe0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1016f070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x100c0697
cmp byte [eax + 0x54], 0
je 0x100c0697
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.10095a80
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1009b4d0
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x100c0632
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100c067c
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10011e20
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10095ad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100da624
mov esp, ebp
pop ebp
ret 4
Function at 0x100cfb40
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1016f070]
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 0x100cfc3a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100cfc33
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x100cfc19
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100cfc19
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100cfc19
mov edx, dword [esi]
test edx, edx
jne 0x100cfbe2
push 0x200
push edx
push dword [0x10175ea0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100cfc33
jmp 0x100cfc0d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100cfc0d
shl eax, 3
push eax
push edx
push 0
push dword [0x10175ea0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100cfc33
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 0x100cfba1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100cfc7f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100cfc7f
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 0x100cfc79
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100cf9d0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100cfc46
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100da624
mov esp, ebp
pop ebp
ret

Function at 0x100cfc90
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x100cfcde
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x100cfcce
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100cfcc5
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x100cfca2
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x10175ea0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x100cfce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10176cc0]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x100cfd00
sub edi, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100cfd2b
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100cfd4c
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 0x100cfd6d
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100cfd6d
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100cfd67
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100cfd6d
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100cfdc0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10176cc8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x100cfe9d
mov eax, dword [0x10176cc0]
add eax, 0x14
test byte [eax], 2
jne 0x100cfdfa
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x100cfde5
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100cfe9d
push edi
push 0
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100cfb40
mov ecx, dword [0x10176cc8]
add esp, 4
cmp esi, ecx
jae 0x100cfe4d
imul edi, esi, 0x2c
mov eax, dword [0x10176cc0]
test byte [edi + eax + 0x14], 2
je 0x100cfe42
xor edx, edx
mov ecx, esi
call fcn.100cfce0
mov ebx, eax
test ebx, ebx
jne 0x100cfe4a
mov ecx, dword [0x10176cc8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100cfe21
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100cfe9c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100cfe8d
mov ebx, eax
lea ecx, [ecx]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100cfe81
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100cfe60
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10175ea0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100dd877
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10108bcb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10108a4a

Function at 0x1010ea08
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010e6c8

Function at 0x10115e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
call fcn.10115ce0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x10115e4f
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10115e4f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx], ecx
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10115e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10115eef
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
je 0x10115ed9
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x10115ec7
mov edx, dword [ebp + 8]
push edx
call fcn.10117380
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x10115ebb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x10115ec5
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edx], ecx
jmp 0x10115ed1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10116050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10117380
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x101160bb
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp edx, dword [ebp - 8]
je 0x101160a2
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x101160a2
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov byte [ebp - 1], 1
push 0x14
mov ecx, dword [ebp - 8]
push ecx
call fcn.101166f0
add esp, 8
movzx edx, al
test edx, edx
je 0x101160bb
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x10116550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
push 1
mov ecx, dword [ebp - 8]
call fcn.1002fc40
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x101166a0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
jne 0x1011661e
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax]
call edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x14], edx
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x101165c6
push 0x14
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.101166f0
add esp, 8
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 1], al
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x1011661c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 0x1c
mov ecx, dword [edx + 0xc]
mov edx, dword [ecx]
mov dword [eax], edx
mov cl, byte [ecx + 4]
mov byte [eax + 4], cl
mov edx, dword [ebp - 8]
mov byte [edx + 0x18], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
jmp 0x1011668c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xc]
cmp edx, dword [ecx]
jne 0x1011668c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [ebp + 0xc]
jne 0x1011668c
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0x40
push 5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1011668c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
movzx ecx, byte [eax]
cmp ecx, 0xe9
jne 0x1011668c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [ebp - 8]
add edx, 0x1c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
mov dl, byte [edx + 4]
mov byte [ecx + 4], dl
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100da665
add esp, 8
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x101166f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101312ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.10116220
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.1000c2c0
test eax, eax
jbe 0x1011684c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1011676a
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10004ae0
mov al, byte [ebp - 0xe]
jmp 0x10116864
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x28], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp - 0x54]
push edx
call fcn.1000c440
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.101160d0
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1011684c
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.101163d0
add esp, 8
movzx eax, al
test eax, eax
je 0x1011683a
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.10116340
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1011683a
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x20]
push edx
call fcn.100f2e51
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1011683a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1011683a
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100f2130
add esp, 0xc
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.100da696
add esp, 4
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xf], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10004ae0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10116910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x10116920
cmp dword [ebp + 0xc], 0
jne 0x10116922
jmp 0x10116973
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10116942
push 4
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10116944
jmp 0x10116973
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
je 0x10116973
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0x40
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10116973
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x101172e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov byte [edx + 8], 0
mov ecx, 0x101764fc
call fcn.1009a360
cmp dword [0x10175e94], 0
jne 0x1011735c
cmp dword [0x10175e8c], 0
jne 0x1011735c
mov byte [0x10175e90], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x101169f0
push 0
push 0
call fcn.100fab47
add esp, 0x18
mov dword [0x10175e8c], eax
cmp dword [0x10175e8c], 0
je 0x1011735c
push 0xfffffffffffffffe
mov ecx, dword [0x10175e8c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [0x10175e94]
add edx, 1
mov dword [0x10175e94], edx
mov ecx, 0x101764fc
call fcn.1009a370
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10008050
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000821d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x1000807a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10008081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10008070
mov eax, 1
add ebx, ebx
jne 0x10008093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10008088
jne 0x100080a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10008088
xor ecx, ecx
sub eax, 3
jb 0x100080b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000812a
mov ebp, eax
add ebx, ebx
jne 0x100080c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100080d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100080f4
inc ecx
add ebx, ebx
jne 0x100080e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100080d5
jne 0x100080f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100080d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10008114
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10008105
jmp 0x10008076
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10008114
add edi, ecx
jmp 0x10008076
pop esi
mov edi, esi
mov ecx, 0x6b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10008132
cmp byte [edi], 1
jne 0x10008132
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10008137
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x100081af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8080]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10008164
mov ecx, edi
jns 0x10008193
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8084]
or eax, eax
je 0x100081a9
mov dword [ebx], eax
add ebx, 4
jmp 0x10008181
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100081e0
cmp al, 0xef
ja 0x100081d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100081b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100081c2
mov ebp, dword [esi + 0x8088]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10008214
sub esp, 0xffffff80
jmp 0x1000287e