joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4640
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dc72b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004baa70
mov eax, dword [0x5da754]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004cc679
push 0x5c
lea ecx, [esp + 8]
call fcn.004cc8f3
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004cc8cc
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b46e6
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004cc53c
xor eax, eax
jmp 0x4b4763
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x4b4741
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x4b4733
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x4b470d
jmp 0x4b4741
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004cc53c
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x4b4780
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
je 0x4b48b0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4b489f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x4b489f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b489a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4b489f
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4b489f
push 0x105
call fcn.004cc27d
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x4b4891
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x4b4881
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004b4780
jmp 0x4b4888
cmp eax, 0x103
je 0x4b4891
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x4b4857
push esi
call fcn.004cc2a6
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x4b48b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x14
ret 0x10

Function at 0x4ce90a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ce942
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cc997
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cc96f
jmp 0x4ce94e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cfffc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d003e
call fcn.004d5d7e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d003e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d0035
xor eax, eax
jmp 0x4d0046
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d004c
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d62ae
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d62dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d62fa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d6214
jmp 0x4d62fa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d62fa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d6214
test edi, edi
mov eax, edi
jne 0x4d62e4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401f54
Capabilities:
Get common file path

Disassembly:
sub esp, 0x504
and dword [esp + 0xc], 0
push ebx
mov ebx, ecx
lea ecx, [esp + 0x10]
push ebp
push esi
mov esi, edx
mov dword [esp + 0x2c], ebx
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
push edi
mov eax, dword [esi]
mov edi, dword [ebx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
call fcn.00401dfa
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov ebx, dword [esi + 8]
push 0x20
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], eax
pop esi
mov dword [esp + 0x28], 2
add dword [esp + 0x28], 3
mov edx, dword [esp + 0x24]
mov eax, edx
shl eax, 4
add eax, ebx
mov dword [esp + 0x18], 0xedeb2e40
cmp dword [0x2c88664], 0xfa9
mov dword [esp + 0x10], eax
mov eax, dword [0x2c886a8]
cmove eax, dword [esp + 0x18]
and dword [esp + 0x18], 0
cmp dword [0x2c88664], 0x3eb
mov dword [0x2c886a8], eax
mov eax, dword [0x2c886b0]
cmove eax, dword [esp + 0x18]
mov dword [0x2c886b0], eax
lea eax, [edx + ebp]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
shr eax, 5
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
xor eax, ecx
mov dword [0x2c886ac], 0xf4ea3dee
cmp dword [0x2c88664], 0x213
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4020a9
push ebp
push ebp
push ebp
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push str.Ceten_jakuxijikem_zevecukanip_likinemuxuw_suhisukuva
push 0x40f29c
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push ebp
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x30
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], ebp
push ebp
push eax
call fcn.00403d40
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push ebp
push 0x40f2a0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [esp + 0x14]
sub edi, eax
mov eax, edi
mov dword [esp + 0x38], edi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
nop
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, edi
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x24], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x1c]
call fcn.00401f4b
dec esi
je 0x40211f
mov ebp, dword [esp + 0x1c]
jmp 0x401fa5
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], edi
pop edi
pop esi
pop ebp
mov dword [ebx], eax
pop ebx
add esp, 0x504
ret
Function at 0x40aa44
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42cad0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004083ca
mov dword [ebp - 0x14], eax
cmp dword [0x2c89594], esi
jne 0x40ab37
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40aac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ac17
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ac17
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac17
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c89594], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c89598], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c8959c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c895a4], eax
test eax, eax
je 0x40ab34
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c895a0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ab5c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ab4f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ab71
push 4
pop eax
jmp 0x40ac19
cmp dword [ebp - 0x14], esi
je 0x40ab71
push dword [0x2c89594]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ab56
mov eax, dword [0x2c895a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40abcf
cmp dword [0x2c895a4], edi
je 0x40abcf
push eax
call ebx
push dword [0x2c895a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40abcf
test eax, eax
je 0x40abcf
call ecx
test eax, eax
je 0x40abc4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40abc4
test byte [ebp - 8], 1
jne 0x40abcf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40abff
mov eax, dword [0x2c89598]
cmp eax, edi
je 0x40abfc
push eax
call ebx
test eax, eax
je 0x40abfc
call eax
mov esi, eax
test esi, esi
je 0x40abfc
mov eax, dword [0x2c8959c]
cmp eax, edi
je 0x40abfc
push eax
call ebx
test eax, eax
je 0x40abfc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c89594]
call ebx
test eax, eax
je 0x40ac17
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ac19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040414e
mov esp, ebp
pop ebp
ret
Function at 0x48c3af
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48c3dc
test byte [esp + 8], 0x80
je 0x48c3ca
and eax, 0xfffffffe
jmp 0x48c3cd
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x48c3ed
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00473952
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x48c3f8
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x48c419
lea eax, [ebp - 4]
push eax
call fcn.00475993
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call fcn.004737c0
test eax, eax
pop ecx
jne 0x48c43a
call fcn.00473940
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x48c53b
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x48c52c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFileTimeToFileTime]
test eax, eax
je 0x48c52c
push edi
call fcn.004737c0
test eax, eax
pop ecx
je 0x48c52c
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x48c52c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFileTimeToFileTime]
test eax, eax
je 0x48c52c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call fcn.0047f60c
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test eax, eax
je 0x48c52c
xor eax, eax
jmp 0x48c53a
call fcn.00473940
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10010078
push 0x10003cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10011040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x100010a2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100010a2
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x100010a2
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x100010a2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x10012a90]
test esi, esi
je 0x1000117a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x10001163
pop edi
pop esi
pop ecx
ret

Function at 0x100011d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, eax
movzx eax, si
push edi
test eax, eax
je 0x100011e6
lea esi, [eax + esi - 0x10000]
cmp esi, dword [esp + 0x2c]
jae 0x1000128f
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esp, [esp]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x10001214
mov esi, 0x80010000
jmp 0x10001285
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x1000128f
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x10001270
cmp eax, 0x10000
jb 0x10001270
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x10001291
add esi, 0x10000
jmp 0x10001285
mov edx, dword [esp + 0xc]
lea esi, [edx + eax]
movzx eax, si
test eax, eax
je 0x10001285
lea esi, [esi + eax - 0x10000]
cmp esi, dword [esp + 0x2c]
jb 0x10001200
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x100012a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
add esi, 0xffff0000
movzx eax, si
push edi
test eax, eax
je 0x100012b8
sub esi, eax
cmp esi, dword [esp + 0x30]
jbe 0x1000134b
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x100012e7
mov esi, 0x4fff0000
jmp 0x10001345
xor eax, eax
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call ebx
test eax, eax
je 0x1000134b
cmp dword [esp + 0x20], ebp
jne 0x10001332
cmp dword [esp + 0x1c], ebp
jb 0x10001332
push 0x40
push 0x3000
push ebp
push esi
call edi
test eax, eax
jne 0x1000134d
sub esi, ebp
jmp 0x10001345
mov esi, dword [esp + 0x14]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x10001345
sub esi, eax
cmp esi, dword [esp + 0x30]
ja 0x100012d3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10001360
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x10001379
mov ebx, 0x10000
lea ebp, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x1000138c
mov ebp, 0xfff80000
mov eax, dword [0x10012a94]
mov edx, dword [0x10012a90]
test eax, eax
jne 0x100013a6
test edx, edx
je 0x100013b9
mov eax, edx
mov dword [0x10012a94], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100013b9
cmp ecx, ebx
jb 0x100013b9
cmp ecx, ebp
jbe 0x100014a7
mov eax, edx
mov dword [0x10012a94], eax
test edx, edx
je 0x100013e7
test eax, eax
je 0x100013db
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100013db
cmp ecx, ebx
jb 0x100013db
cmp ecx, ebp
jbe 0x100014a2
mov eax, dword [eax + 4]
test eax, eax
jne 0x100013c8
mov dword [0x10012a94], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x10001422
lea edi, [esi - 0x40000000]
push esi
mov eax, edi
call fcn.100011d0
add esp, 4
test eax, eax
jne 0x10001466
push ebx
mov eax, edi
call fcn.100012a0
add esp, 4
test eax, eax
jne 0x10001466
cmp esi, 0x40000000
jae 0x10001448
lea edi, [esi + 0x40000000]
push esi
mov eax, edi
call fcn.100012a0
add esp, 4
test eax, eax
jne 0x10001466
push ebp
mov eax, edi
call fcn.100011d0
add esp, 4
test eax, eax
jne 0x10001466
push ebx
mov eax, esi
call fcn.100012a0
add esp, 4
test eax, eax
jne 0x10001466
push ebp
mov eax, esi
call fcn.100011d0
add esp, 4
test eax, eax
je 0x100014cf
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x10012a90]
mov dword [eax + 4], ecx
mov dword [0x10012a94], eax
mov dword [0x10012a90], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
nop
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x10001490
mov dword [eax + 8], edx
jmp 0x100014a7
mov dword [0x10012a94], eax
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x100014cf
cmp esi, ebp
ja 0x100014cf
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.10008020
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x10001510
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x10012a90]
push ebx
mov ebx, 0x10012a90
test eax, eax
je 0x1000157b
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x10001570
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x10001545
cmp ecx, eax
jb 0x10001570
cmp ecx, edi
jae 0x10001570
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x10001537
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x10012a94], 0
jmp 0x10001573
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x10001521
pop edi
pop esi
pop ebx
ret
Function at 0x10001620
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10012aa0], eax
je 0x10001636
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x10012ab0]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x1000169e
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebp
jne 0x1000168d
mov ebx, dword [esi + 0x10]
cmp ebx, ebp
je 0x1000168d
push 0x48
push ebp
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.10008020
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10002e0b
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x10001646
mov dword [0x10012ab0], ebp
call fcn.10001180
mov esi, dword [0x10012aac]
cmp esi, ebp
je 0x100016d7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.10002e0b
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x100016c0
pop edi
pop esi
mov dword [0x10012aac], ebp
mov dword [0x10012aa0], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10001a20
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x10012aa4]
test eax, eax
jne 0x10001a95
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x10001a3a
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.10002e80
mov esi, eax
add esp, 4
test esi, esi
jne 0x10001a50
lea edi, [eax + 8]
jmp 0x10001a6d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10002e0b
add esp, 4
pop esi
mov dword [0x10012aa4], edi
mov eax, edi
mov dword [0x10012aa8], 0
pop edi
ret
mov eax, dword [0x10012aac]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x10012aac], esi
xor eax, eax
pop esi
pop edi
ret