joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100029e0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1001a170]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov byte [ebp - 0x1d], 0
test esi, esi
jne 0x10002a0d
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003ea8
mov esp, ebp
pop ebp
ret
push edi
push 0x12
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10002a8c
push 0x12
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x10002a85
push ebx
mov eax, 0x2710
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
xor eax, eax
lea ecx, [ebp - 0x34]
push ecx
mov ebx, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
push 2
lea eax, [ebp - 0x1c]
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x10002a7d
mov byte [ebp - 0x1d], bl
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1d]
pop edi
xor ecx, ebp
pop esi
call fcn.10003ea8
mov esp, ebp
pop ebp
ret
Function at 0x10002f00
Capabilities:
Acquire debug privileges
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x1001a170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], edi
test eax, eax
je 0x10003136
push 0x10015674
push eax
call fcn.10003f3a
add esp, 8
test eax, eax
jne 0x10002f57
push str.AutoRestart_User_Password
push edi
call fcn.100010a0
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003ea8
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
lea ebx, [ebx]
test eax, eax
je 0x10002f84
movzx ecx, si
push 0x10015674
push 0
mov dword [ebp + ecx*4 - 0x158], eax
inc esi
call fcn.10003f3a
add esp, 8
cmp si, 0x10
jb 0x10002f60
cmp si, 2
je 0x10002fa8
push str.AutoRestart_User_Password
push edi
call fcn.100010a0
add esp, 8
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003ea8
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0xff
lea edx, [ebp - 0x103]
push 0
push edx
mov edi, eax
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x104], 0
call fcn.10003ec0
lea eax, [ebp - 0x110]
push eax
call fcn.10001e50
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000300c
mov ecx, dword [ebp - 0x10c]
push str.Fail_to_Get_Service_List
push ecx
call fcn.100010a0
add esp, 8
jmp 0x10003124
mov eax, dword [ebp - 0x110]
push 0x100
lea edx, [ebp - 0x104]
push edx
push edi
push eax
push esi
call fcn.10002be0
add esp, 0x14
test al, al
jne 0x10003046
mov ecx, dword [ebp - 0x10c]
push str.Fail_to_Get_ServiceName_By_Pid
push ecx
call fcn.100010a0
add esp, 8
jmp 0x10003114
mov edi, dword [ebp - 0x10c]
lea edx, [ebp - 0x104]
push edx
push str.Service_Name___s
push edi
call fcn.100010a0
add esp, 0xc
call fcn.10001230
test al, al
jne 0x100030da
call fcn.100012d0
test al, al
jne 0x100030da
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x108]
push eax
push 0
push 3
push ecx
push 0x1001562c
push edx
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x100030b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LogonUserA___d
push edi
call fcn.100010a0
add esp, 0xc
jmp 0x10003114
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x100030da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ImpersonateLoggedOnUser___d
push edi
call fcn.100010a0
add esp, 0xc
jmp 0x10003114
push 1
push str.SeDebugPrivilege
call fcn.10001370
lea ecx, [ebp - 0x104]
push ecx
call fcn.100029e0
add esp, 0xc
test al, al
je 0x10003100
push str.Set_Service_Auto_Restart_Successfully
jmp 0x10003105
push str.Set_Service_Auto_Restart_Failure
push edi
call fcn.100010a0
add esp, 8
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x10003135
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10003ea8
mov esp, ebp
pop ebp
ret
Function at 0x10003980
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x10003aac
push esi
call fcn.100011b0
add esp, 4
test al, al
jne 0x100039ba
mov eax, dword [ebp + 8]
push str.File_Not_Exist
push eax
call fcn.100010a0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100039f1
mov ecx, dword [ebp + 8]
push str.Create_File_Failure
push ecx
call fcn.100010a0
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003a13
mov edx, dword [ebp + 8]
push str.Get_File_Size_Failure
push edx
call fcn.100010a0
add esp, 8
jmp 0x10003a92
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10003a3c
mov eax, dword [ebp + 8]
push str.VirtualAlloc_Failure
push eax
call fcn.100010a0
add esp, 8
jmp 0x10003a92
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10003a62
mov edx, dword [ebp + 8]
push str.ReadFile_Failure
push edx
call fcn.100010a0
add esp, 8
jmp 0x10003a92
cmp byte [ebp + 0x10], 0
je 0x10003a72
push esi
push edi
call fcn.10002500
add esp, 8
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call fcn.10003160
add esp, 0xc
test al, al
jne 0x10003a92
mov ecx, dword [ebp + 8]
push esi
push edi
push ecx
call fcn.100034e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10003aab
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003ea8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a170]
jne 0x10003eb2
repz ret
jmp fcn.100060d7
Function at 0x1000d2ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001a170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100062a7
and dword [ebp - 0x14], 0
cmp dword [0x10021384], 0
mov dword [ebp - 0x18], eax
jne 0x1000d3b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000d45a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000d45a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10021384], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10021388], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1002138c], eax
call edi
push eax
call esi
mov dword [0x10021394], eax
test eax, eax
je 0x1000d3b2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10021390], eax
mov eax, dword [0x10021390]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000d40b
cmp dword [0x10021394], ecx
je 0x1000d40b
push eax
call esi
push dword [0x10021394]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000d40b
test ebx, ebx
je 0x1000d40b
call edi
test eax, eax
je 0x1000d402
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000d402
test byte [ebp - 8], 1
jne 0x1000d40b
or dword [ebp + 0x10], 0x200000
jmp 0x1000d43e
mov eax, dword [0x10021388]
cmp eax, dword [ebp - 0x18]
je 0x1000d43e
push eax
call esi
test eax, eax
je 0x1000d43e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000d43e
mov eax, dword [0x1002138c]
cmp eax, dword [ebp - 0x18]
je 0x1000d43e
push eax
call esi
test eax, eax
je 0x1000d43e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10021384]
call esi
test eax, eax
je 0x1000d45a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000d45c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003ea8
leave
ret
Function at 0x1000db30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100213fc], 0
je 0x1000db46
xor eax, eax
jmp 0x1000dd62
cmp dword [0x100213f8], 0
je 0x1000db59
mov eax, dword [0x100213f8]
jmp 0x1000dd62
push 0x24
push 0
push 0x100213d4
call fcn.10003ec0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100213d4], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x100213d8], eax
cmp dword [0x100213d8], 0
jne 0x1000dbfe
mov dword [0x100213fc], 1
cmp dword [0x100213d8], 0
je 0x1000dbb1
mov eax, dword [0x100213d8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x100213dc], 0
mov dword [0x100213e0], 0
mov dword [0x100213e4], 0
mov dword [0x100213e8], 0
mov dword [0x100213ec], 0
mov dword [0x100213f0], 0
mov dword [0x100213f4], 0
xor eax, eax
jmp 0x1000dd62
push str.ImagehlpApiVersionEx
mov ecx, dword [0x100213d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100213dc], eax
push str.SymInitialize
mov edx, dword [0x100213d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100213e0], eax
push str.SymSetOptions
mov eax, dword [0x100213d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100213e4], eax
push str.SymGetOptions
mov ecx, dword [0x100213d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100213e8], eax
push str.SymLoadModule64
mov edx, dword [0x100213d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100213ec], eax
push str.SymGetModuleInfo64
mov eax, dword [0x100213d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100213f0], eax
push str.SymFromName
mov ecx, dword [0x100213d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100213f4], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10003ec0
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x100213dc], 0
je 0x1000dce3
cmp dword [0x100213e0], 0
je 0x1000dce3
cmp dword [0x100213ec], 0
je 0x1000dce3
cmp dword [0x100213f0], 0
je 0x1000dce3
cmp dword [0x100213f4], 0
jne 0x1000dce8
jmp 0x1000db92
lea ecx, [ebp - 8]
push ecx
call dword [0x100213dc]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x1000dd00
jmp 0x1000db92
push 0
push 0
mov eax, dword [0x100213d4]
push eax
call dword [0x100213e0]
test eax, eax
jne 0x1000dd19
jmp 0x1000db92
cmp dword [0x100213e8], 0
je 0x1000dd53
cmp dword [0x100213e4], 0
je 0x1000dd53
call dword [0x100213e8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x100213e4]
mov dword [0x100213f8], 0x100213d4
mov eax, dword [0x100213f8]
mov esp, ebp
pop ebp
ret
Function at 0x1000eb10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000ebe0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000ebd5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1001afb4]
jb 0x1000eb55
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001afb8]
ja 0x1000eb55
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000eb25
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10003ec0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000eb7b
jmp 0x1000ebd5
cmp dword [ebp - 0x10], 0x10000
jne 0x1000ebbe
cmp dword [ebp - 0x14], 0x10000
jb 0x1000ebbe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000ebb1
mov eax, dword [ebp - 0x24]
jmp 0x1000ebd7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ebd0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.1000ebe0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000eb25
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ec10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000ecf0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000ecdd
mov edx, dword [ebp - 4]
cmp edx, dword [0x1001afb4]
jb 0x1000ec5a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001afb8]
ja 0x1000ec5a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000ec2a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10003ec0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000ec80
jmp 0x1000ecdd
cmp dword [ebp - 0x10], 0x10000
jne 0x1000ecc3
cmp dword [ebp - 0x14], 0x10000
jb 0x1000ecc3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000ecb6
mov eax, dword [ebp - 0x24]
jmp 0x1000ecdf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ecd8
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.1000ecf0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000ec2a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f040
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10021410], eax
je 0x1000f05e
mov eax, 0x10dd
jmp 0x1000f13f
mov eax, dword [0x10021420]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000f0dc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000f0ba
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000f0ba
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000f1b0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000bc8c
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1000f066
mov dword [0x10021420], 0
call fcn.1000f150
mov ecx, dword [0x1002141c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x1000f129
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1000bc8c
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x1000f0f4
mov dword [0x1002141c], 0
mov dword [0x10021410], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f680
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1000f695
xor eax, eax
jmp 0x1000f70a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x1000f6c2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x1000f705
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x1000f703
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x1000f6ff
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1000f703
xor eax, eax
jmp 0x1000f70a
jmp 0x1000f6b9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000f7b0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10021414], 0
je 0x1000f7c9
mov eax, dword [0x10021414]
jmp 0x1000f869
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000f7db
xor eax, eax
jmp 0x1000f869
push 8
call fcn.100113bc
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000f831
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x1000f81a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000bc8c
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x10021414], eax
mov dword [0x10021418], 0
mov eax, dword [ebp - 4]
jmp 0x1000f869
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000f84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1000f7fb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x1002141c]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x1002141c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10010160
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e9e0
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x10021404], 0
jne 0x1001019d
cmp dword [0x10021400], 0
je 0x1001019d
mov eax, dword [0x10021400]
mov dword [0x10021404], eax
cmp dword [0x10021404], 0
je 0x1001021a
mov ecx, dword [0x10021404]
cmp dword [ecx + 8], 0
je 0x1001021a
mov edx, dword [0x10021404]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 8]
jb 0x1001021a
mov ecx, dword [0x10021404]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001021a
mov eax, dword [0x10021404]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jb 0x100101e9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x100101f0
xor eax, eax
jmp 0x1001033d
mov ecx, dword [0x10021404]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10003ec0
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x1001033d
mov edx, dword [0x10021400]
mov dword [0x10021404], edx
jmp 0x10010236
mov eax, dword [0x10021404]
mov ecx, dword [eax + 4]
mov dword [0x10021404], ecx
cmp dword [0x10021404], 0
je 0x10010276
cmp dword [0x10021404], 0
je 0x10010274
mov edx, dword [0x10021404]
cmp dword [edx + 8], 0
je 0x10010274
mov eax, dword [0x10021404]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x10010274
mov edx, dword [0x10021404]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10010274
jmp 0x100101ce
jmp 0x10010228
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000eac0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001033b
mov eax, dword [ebp - 4]
mov dword [0x10021404], eax
mov ecx, dword [0x10021404]
mov dword [ecx], 0x52727464
mov edx, dword [0x10021404]
mov dword [edx + 8], 0
mov eax, dword [0x10021404]
mov ecx, dword [0x10021400]
mov dword [eax + 4], ecx
mov edx, dword [0x10021404]
mov dword [0x10021400], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10021404]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x38c
jmp 0x10010307
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jle 0x1001032b
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x100102fe
mov eax, dword [0x10021404]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100101ce
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10010350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10021410], eax
je 0x10010375
mov eax, 0x10dd
jmp 0x1001051d
cmp dword [0x10021414], 0
je 0x10010388
mov eax, dword [0x10021414]
jmp 0x1001051d
cmp dword [ebp + 0xc], 0
jne 0x10010398
mov eax, 0x57
jmp 0x1001051d
cmp dword [ebp + 8], 0
jne 0x100103a8
mov eax, 6
jmp 0x1001051d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100103d1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x10021414], ecx
mov edx, dword [ebp + 8]
mov dword [0x10021418], edx
mov eax, dword [ebp - 0xc]
jmp 0x1001051d
push 0x18
call fcn.100113bc
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001042a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x10021414], ecx
cmp dword [ebp - 0x18], 0
je 0x10010419
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000bc8c
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x10021418], ecx
mov eax, dword [ebp - 0xc]
jmp 0x1001051d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1000ed20
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000ed20
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x1001046a
cmp dword [ebp - 8], 0x1e
jbe 0x10010486
mov dword [ebp - 0xc], 9
cmp dword [0x10021408], 0
je 0x10010481
jmp 0x100103fa
jmp 0x100103f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x100104ad
mov dword [ebp - 0xc], 9
cmp dword [0x10021408], 0
je 0x100104a8
jmp 0x100103fa
jmp 0x100103f1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100104da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x100103f1
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10021420]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x10021420], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8