joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d2b5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045cf59
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45d2ff
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00452779
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00450a5a
jmp 0x45d30a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00461d08
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45d310
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00454dce
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x45d34d
call fcn.0045cf59
mov dword [esi + 0xc], 1
jmp 0x45d352
call fcn.0045cf59
cmp dword [esi], 0
je 0x45d39b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x45d373
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00452779
jmp 0x45d385
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00406b10
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00450a5a
jmp 0x45d3bf
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x45d3bf
push dword [esi]
push dword [ebp + 8]
call fcn.00461d08
pop esi
pop ebp
ret 0xc

Function at 0x462f17
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x462f4c
xor eax, eax
jmp 0x462f9f
lea eax, [ebp - 0x210]
push eax
call fcn.0054b9e1
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x462f7d
push 0x61dec4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005455ac
add esp, 0xc
test eax, eax
jne 0x462f48
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005455ac
add esp, 0xc
test eax, eax
jne 0x462f48
lea eax, [ebp - 0x210]
push eax
call fcn.0044fa7d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00544a28
leave
ret

Function at 0x491b11
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0051b8f6
call fcn.0044b594
cmp dword [eax + 0x14], 0
jne 0x491b2e
mov ecx, esi
pop esi
jmp fcn.00491616
pop esi
ret
Function at 0x4950cb
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004f4ab1
call fcn.0044b594
cmp dword [eax + 0x14], 0
jne 0x4950e8
mov ecx, esi
pop esi
jmp fcn.00494a9e
pop esi
ret

Function at 0x4d2e9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4d2eb7
call fcn.0044bb77
mov esi, dword [eax + 0xc]
push dword [0x648f88]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d2ed5
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4d2ecd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4d2f02
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4d2ecf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004d2dcb
mov esi, eax
jmp 0x4d2ef4

Function at 0x5263a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x5263bc
mov edi, dword [esi + 0xc]
jmp 0x5263fc
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x5263d5
call fcn.0045bcbf
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5263ea
call fcn.0045bcbf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5263fc
call fcn.0045bcbf
call fcn.0044bb77
cmp dword [eax + 0x3c], 0
je 0x526411
push edi
mov ecx, ebx
call fcn.005251ce
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005262be
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x52642f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x52643b
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x544a28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x63fbf0]
jne 0x544a32
repz ret
jmp fcn.0054f033
Function at 0x54881f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x548846
call fcn.0054be34
mov dword [eax], esi
call fcn.0054be21
push 0x16
pop esi
mov dword [eax], esi
call fcn.005502cb
mov eax, esi
jmp 0x54889b
test dword [ebp + 0xc], 0xfffffff9
jne 0x54882c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x548873
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054be47
pop ecx
call fcn.0054be21
mov eax, dword [eax]
jmp 0x54889b
test al, 0x10
jne 0x548899
test al, 1
je 0x548899
test byte [ebp + 0xc], 2
je 0x548899
call fcn.0054be34
mov dword [eax], 5
call fcn.0054be21
mov dword [eax], 0xd
jmp 0x54886a
xor eax, eax
pop esi
pop ebp
ret

Function at 0x55c338
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x63fbf0]
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.0054ea5b
and dword [ebp - 0x14], 0
cmp dword [0x64b5c4], 0
mov dword [ebp - 0x18], eax
jne 0x55c3eb
push 0x5d2f88
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x55c493
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5f6078
push ebx
call edi
test eax, eax
je 0x55c493
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5f6068
push ebx
mov dword [0x64b5c4], eax
call edi
push eax
call esi
push 0x5f6054
push ebx
mov dword [0x64b5c8], eax
call edi
push eax
call esi
push 0x5f6038
push ebx
mov dword [0x64b5cc], eax
call edi
push eax
call esi
mov dword [0x64b5d4], eax
test eax, eax
je 0x55c3eb
push 0x5f6020
push ebx
call edi
push eax
call esi
mov dword [0x64b5d0], eax
mov eax, dword [0x64b5d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x55c444
cmp dword [0x64b5d4], ecx
je 0x55c444
push eax
call esi
push dword [0x64b5d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x55c444
test ebx, ebx
je 0x55c444
call edi
test eax, eax
je 0x55c43b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x55c43b
test byte [ebp - 8], 1
jne 0x55c444
or dword [ebp + 0x10], 0x200000
jmp 0x55c477
mov eax, dword [0x64b5c8]
cmp eax, dword [ebp - 0x18]
je 0x55c477
push eax
call esi
test eax, eax
je 0x55c477
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x55c477
mov eax, dword [0x64b5cc]
cmp eax, dword [ebp - 0x18]
je 0x55c477
push eax
call esi
test eax, eax
je 0x55c477
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x64b5c4]
call esi
test eax, eax
je 0x55c493
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x55c495
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544a28
leave
ret
Function at 0x560d50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x64b6b8], 0
je 0x560d66
xor eax, eax
jmp 0x560f82
cmp dword [0x64b6b4], 0
je 0x560d79
mov eax, dword [0x64b6b4]
jmp 0x560f82
push 0x24
push 0
push 0x64b690
call fcn.0054b8b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x64b690], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x64b694], eax
cmp dword [0x64b694], 0
jne 0x560e1e
mov dword [0x64b6b8], 1
cmp dword [0x64b694], 0
je 0x560dd1
mov eax, dword [0x64b694]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x64b698], 0
mov dword [0x64b69c], 0
mov dword [0x64b6a0], 0
mov dword [0x64b6a4], 0
mov dword [0x64b6a8], 0
mov dword [0x64b6ac], 0
mov dword [0x64b6b0], 0
xor eax, eax
jmp 0x560f82
push str.ImagehlpApiVersionEx
mov ecx, dword [0x64b694]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b698], eax
push str.SymInitialize
mov edx, dword [0x64b694]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b69c], eax
push str.SymSetOptions
mov eax, dword [0x64b694]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b6a0], eax
push str.SymGetOptions
mov ecx, dword [0x64b694]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b6a4], eax
push str.SymLoadModule64
mov edx, dword [0x64b694]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b6a8], eax
push str.SymGetModuleInfo64
mov eax, dword [0x64b694]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b6ac], eax
push str.SymFromName
mov ecx, dword [0x64b694]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64b6b0], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.0054b8b0
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x64b698], 0
je 0x560f03
cmp dword [0x64b69c], 0
je 0x560f03
cmp dword [0x64b6a8], 0
je 0x560f03
cmp dword [0x64b6ac], 0
je 0x560f03
cmp dword [0x64b6b0], 0
jne 0x560f08
jmp 0x560db2
lea ecx, [ebp - 8]
push ecx
call dword [0x64b698]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x560f20
jmp 0x560db2
push 0
push 0
mov eax, dword [0x64b690]
push eax
call dword [0x64b69c]
test eax, eax
jne 0x560f39
jmp 0x560db2
cmp dword [0x64b6a4], 0
je 0x560f73
cmp dword [0x64b6a0], 0
je 0x560f73
call dword [0x64b6a4]
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 [0x64b6a0]
mov dword [0x64b6b4], 0x64b690
mov eax, dword [0x64b6b4]
mov esp, ebp
pop ebp
ret
Function at 0x5614e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.005615b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x5615a5
mov edx, dword [ebp - 4]
cmp edx, dword [0x6410c4]
jb 0x561525
mov eax, dword [ebp - 4]
cmp eax, dword [0x6410c8]
ja 0x561525
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x5614f5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0054b8b0
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 0x56154b
jmp 0x5615a5
cmp dword [ebp - 0x10], 0x10000
jne 0x56158e
cmp dword [ebp - 0x14], 0x10000
jb 0x56158e
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 0x561581
mov eax, dword [ebp - 0x24]
jmp 0x5615a7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x5615a0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.005615b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x5614f5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x5615e0
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.005616c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x5616ad
mov edx, dword [ebp - 4]
cmp edx, dword [0x6410c4]
jb 0x56162a
mov eax, dword [ebp - 4]
cmp eax, dword [0x6410c8]
ja 0x56162a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x5615fa
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0054b8b0
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 0x561650
jmp 0x5616ad
cmp dword [ebp - 0x10], 0x10000
jne 0x561693
cmp dword [ebp - 0x14], 0x10000
jb 0x561693
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 0x561686
mov eax, dword [ebp - 0x24]
jmp 0x5616af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x5616a8
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.005616c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x5615fa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x561a10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x64b6cc], eax
je 0x561a2e
mov eax, 0x10dd
jmp 0x561b0f
mov eax, dword [0x64b6dc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x561aac
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 0x561a8a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x561a8a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00561b80
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.00445171
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x561a36
mov dword [0x64b6dc], 0
call fcn.00561b20
mov ecx, dword [0x64b6d8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x561af9
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.00445171
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x561ac4
mov dword [0x64b6d8], 0
mov dword [0x64b6cc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x562050
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 0x562065
xor eax, eax
jmp 0x5620da
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 0x562092
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x5620d5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x5620d3
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 0x5620cf
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 0x5620d3
xor eax, eax
jmp 0x5620da
jmp 0x562089
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x562180
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x64b6d0], 0
je 0x562199
mov eax, dword [0x64b6d0]
jmp 0x562239
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x5621ab
xor eax, eax
jmp 0x562239
push 8
call fcn.00445142
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x562201
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x5621ea
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00445171
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x64b6d0], eax
mov dword [0x64b6d4], 0
mov eax, dword [ebp - 4]
jmp 0x562239
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x56221b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x5621cb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x64b6d8]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x64b6d8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x562b30
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.005613b0
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x64b6c0], 0
jne 0x562b6d
cmp dword [0x64b6bc], 0
je 0x562b6d
mov eax, dword [0x64b6bc]
mov dword [0x64b6c0], eax
cmp dword [0x64b6c0], 0
je 0x562bea
mov ecx, dword [0x64b6c0]
cmp dword [ecx + 8], 0
je 0x562bea
mov edx, dword [0x64b6c0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 8]
jb 0x562bea
mov ecx, dword [0x64b6c0]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x562bea
mov eax, dword [0x64b6c0]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jb 0x562bb9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x562bc0
xor eax, eax
jmp 0x562d0d
mov ecx, dword [0x64b6c0]
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.0054b8b0
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x562d0d
mov edx, dword [0x64b6bc]
mov dword [0x64b6c0], edx
jmp 0x562c06
mov eax, dword [0x64b6c0]
mov ecx, dword [eax + 4]
mov dword [0x64b6c0], ecx
cmp dword [0x64b6c0], 0
je 0x562c46
cmp dword [0x64b6c0], 0
je 0x562c44
mov edx, dword [0x64b6c0]
cmp dword [edx + 8], 0
je 0x562c44
mov eax, dword [0x64b6c0]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x562c44
mov edx, dword [0x64b6c0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x562c44
jmp 0x562b9e
jmp 0x562bf8
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.00561490
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x562d0b
mov eax, dword [ebp - 4]
mov dword [0x64b6c0], eax
mov ecx, dword [0x64b6c0]
mov dword [ecx], 0x52727464
mov edx, dword [0x64b6c0]
mov dword [edx + 8], 0
mov eax, dword [0x64b6c0]
mov ecx, dword [0x64b6bc]
mov dword [eax + 4], ecx
mov edx, dword [0x64b6c0]
mov dword [0x64b6bc], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x64b6c0]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x38c
jmp 0x562cd7
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jle 0x562cfb
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 0x562cce
mov eax, dword [0x64b6c0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x562b9e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x562fc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x562feb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5630a4
push 0x1c
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.0054b8b0
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x56301a
xor eax, eax
jmp 0x5630a4
push 0
push 0x40
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x563038
xor eax, eax
jmp 0x5630a4
movzx edx, word [ebp - 0x48]
cmp edx, 0x5a4d
jne 0x563052
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
ja 0x563052
cmp dword [ebp - 0xc], 0x40
jae 0x563061
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5630a4
push 0
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x563085
xor eax, eax
jmp 0x5630a4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
je 0x56309f
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5630a4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret 0xc