joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e270
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ad4e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], 1
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x49e3e3
xor esi, esi
cmp dword [ebp - 0x2c], esi
jle 0x49e3dc
lea ecx, [ecx]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x49e3d2
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ebx, [eax + 2]
jmp 0x49e330
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e330
sub eax, ebx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00403a70
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 2
cmp ecx, dword [edi + 8]
je 0x49e389
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x49e398
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0040e2d0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x49e3cf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49e3c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e40f
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x30]
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x49e300
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x49e41f
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49e415
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49e415
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x4a0c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a0e13
cmp word [edi], 0
je 0x4a0e13
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x4a0e13
mov ecx, edi
push esi
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0cc1
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov dword [ebp - 4], ecx
je 0x4a0e0a
jmp 0x4a0ce0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a0d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4a0d4f
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4a0d9a
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4a0d76
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
add edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4a0ce0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4a0d64
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_WriteFile:_0x_08x.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x39
jmp 0x4a0dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4a0d8b
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_GetOverlappedResult:_0x_08x.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x47
jmp 0x4a0dfb
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x4a0dbb
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x4a0de9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4a0dcd
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CancelIo:_0x_08x.
push str.kupdate::CancelPendingIO
push 0x1f
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 9
call fcn.00412230
add esp, 0x18
mov esi, 0x800705b4
push esi
push str.WaitForSingleObject_timeout.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x40
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 0
call fcn.00412230
add esp, 0x18
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Args.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x2a
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 0
call fcn.00412230
add esp, 0x14
mov eax, 0x80070057
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a47c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b486
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.CBalloonBase_class_ATL::CDialogImpl_class_CCommonBalloonDlg__class_ATL::CWindow__.0
mov dword [esi + 4], vtable.CBalloonBase_class_ATL::CDialogImpl_class_CCommonBalloonDlg__class_ATL::CWindow__.1.0
mov dword [ebp - 4], 0
call fcn.0040fa60
test eax, eax
je 0x4a498d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 1
call fcn.0040fa60
test eax, eax
je 0x4a498d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov dword [ebp - 4], 2
call fcn.0040fa60
test eax, eax
je 0x4a498d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi], vtable.CCommonBalloonDlg.0
mov dword [esi + 4], vtable.CCommonBalloonDlg.1.0
and dword [esi + 0xa4], 0xfffffff0
mov dword [esi + 0x64], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 4], 3
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 8
mov dword [esi + 0x88], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x8c], 0xffffffff
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x60], vtable.WTL::CBitmapButton.0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 4
call fcn.0045a390
lea ecx, [esi + 0x308]
mov byte [ebp - 4], 5
call fcn.0045a390
xor eax, eax
mov dword [esi + 0x568], 0
mov dword [esi + 0x56c], eax
mov dword [esi + 0x570], eax
mov dword [esi + 0x574], eax
mov dword [esi + 0x578], eax
mov eax, esi
mov dword [esi + 0x57c], 0x22e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041d020
int3
Function at 0x4a5500
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504fdd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004981f0
push dword [esi + 0x30]
lea ecx, [ebp - 0x28]
push dword [esi + 0x2c]
push ecx
mov ecx, eax
call fcn.00496550
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4a5554
mov edx, dword [edx]
test edx, edx
jne 0x4a555c
xor ecx, ecx
jmp 0x4a5570
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5561
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x2c]
call fcn.00421c30
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4a55bd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a55b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a55b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
push dword [0x522b20]
xor eax, eax
mov dword [ebp - 0x18], 0
push dword [esi + 8]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, esi
call fcn.004a7190
mov ecx, esi
call fcn.004a6bc0
cmp dword [esi + 0x38], 0
je 0x4a55ff
push 0
push 0
mov ecx, esi
call fcn.0045c630
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
mov eax, ecx
neg eax
mov dword [esi + 0x330], ecx
mov dword [esi + 0x33c], 0
sbb eax, eax
and eax, 0x10301
mov dword [esi + 0x334], eax
mov eax, ecx
neg eax
mov dword [esi + 0x320], ecx
sbb eax, eax
and eax, 0x4fd
mov dword [esi + 0x324], eax
mov dword [esi + 0x32c], 0
cmp dword [esi + 0x38], 0
je 0x4a5668
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esi + 0x34], 0
mov dword [esi + 0x568], 0
jle 0x4a568a
push 0
push 0x3e8
push 1
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a8940
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x69c]
lea edx, [edi + 0x69c]
xchg dword [edx], eax
test eax, eax
je 0x4a899d
cmp dword [edi + 0x6a0], 0
je 0x4a8975
push dword [edi + 0x67c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [edi + 0x6a0], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push dword [edi + 0x67c]
call esi
push 0x7d0
push dword [edi + 0x680]
call esi
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a89b2
push eax
call esi
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4a89bc
push eax
call esi
pop edi
pop esi
ret
Function at 0x4aaad0
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x69c]
lea edx, [edi + 0x69c]
xchg dword [edx], eax
test eax, eax
je 0x4aab2e
cmp dword [edi + 0x6a0], 0
je 0x4aab04
push dword [edi + 0x67c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [edi + 0x6a0], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [edi + 0x67c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push dword [edi + 0x680]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
ret
Function at 0x4bea60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004c7830
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1008]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push edx
push 0x20219
push 0
push eax
push ecx
mov dword [ebp - 0x1008], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4beb53
push 0x1000
push eax
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1004]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1010], 0x1000
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0
push esi
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4beb11
cmp dword [ebp - 0x100c], 1
jne 0x4beb53
lea edx, [ebp - 0x1004]
lea esi, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4beb20
sub edx, esi
lea eax, [ebp - 0x1004]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00403a70
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x4c1e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x4c1e90
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403a70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x4c5680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD3_C
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x4c5710
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403a70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x4c8a40
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x4c8b07
cmp edi, dword [0x567e38]
jb 0x4c8a80
cmp edi, dword [0x567e3c]
ja 0x4c8a80
sub edi, 0x8000000
jmp 0x4c8aff
push 0x1c
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x4c8b07
cmp dword [esp + 0x1c], 0x10000
jne 0x4c8ae9
cmp dword [esp + 0x18], 0x10000
jb 0x4c8ae9
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x4c8bc1
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x4c8b07
sub edi, 0x10000
jmp 0x4c8aff
mov ecx, dword [esp + 0x10]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x4c8a68
movzx eax, si
test eax, eax
je 0x4c8b16
sub esi, eax
add esi, 0x10000
mov edi, dword [esp + 0x34]
cmp esi, edi
jae 0x4c8bbf
cmp esi, dword [0x567e38]
jb 0x4c8b3a
cmp esi, dword [0x567e3c]
ja 0x4c8b3a
add esi, 0x8000000
jmp 0x4c8bb7
push 0x1c
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x4c8bbf
cmp dword [esp + 0x1c], 0x10000
mov ecx, dword [esp + 0x18]
jne 0x4c8ba1
cmp ecx, 0x10000
jb 0x4c8ba1
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x4c8bc1
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x4c8bbf
add esi, 0x10000
jmp 0x4c8bb7
mov esi, dword [esp + 0xc]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x4c8bb7
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x4c8b22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4c8ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5521a0
push 0x4c741b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x567e00]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x4c8f81
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4c8f81
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x4c8f81
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4c8f81
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 0x4c94f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x56da60], 0
jne 0x4c9564
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x56da60
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4c9564
push esi
mov esi, dword [0x56da50]
mov dword [0x56da70], eax
mov dword [0x56da6c], eax
mov dword [0x56da68], eax
test esi, esi
je 0x4c954d
nop word [eax + eax]
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x4c9557
mov esi, dword [esi + 4]
test esi, esi
jne 0x4c9530
xor eax, eax
mov dword [0x56da64], eax
pop esi
pop ecx
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x56da64], eax
pop esi
pop ecx
ret
mov eax, 0x10dd
pop ecx
ret
Function at 0x4c9a10
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x56da64]
test eax, eax
jne 0x4c9a8b
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x4c9a2d
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.004c6f3f
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c9a43
lea edi, [eax + 8]
jmp 0x4c9a60
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x4c9a77
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push 8
push esi
call fcn.004c6f6f
add esp, 8
pop esi
mov dword [0x56da64], edi
mov eax, edi
mov dword [0x56da68], 0
pop edi
ret 4
mov eax, dword [0x56da6c]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x56da6c], esi
pop esi
pop edi
ret 4

Function at 0x4ca230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x567e00]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x2c]
test eax, eax
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
cmovne edx, eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x88]
xorps xmm0, xmm0
test eax, eax
mov dword [esp + 0x20], edx
movups xmmword [esp], xmm0
cmovne ecx, eax
mov dword [esp + 0x24], ecx
mov dword [edx], 0
mov eax, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
mov dword [eax], 0
test esi, esi
jne 0x4ca2c5
push 0xd
call sub.KERNEL32.dll_SetLastError
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004c6f8b
add esp, 0x74
ret 0x14
movzx eax, byte [esi]
test edi, edi
mov edx, dword [eax*8 + 0x56f004]
lea ecx, [eax*8 + section..detourc]
push esi
lea eax, [esp + 0x3c]
cmovne eax, edi
push eax
push ecx
lea ecx, [esp + 0x14]
call edx
mov ecx, dword [esp + 0x78]
pop edi
pop esi
xor ecx, esp
call fcn.004c6f8b
add esp, 0x74
ret 0x14
Function at 0x4ca3a0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e0be
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ecx], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0xf
mov byte [esi + 0x58], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xf
mov byte [esi + 0x70], 0
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea eax, [edx + 1]
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4ca491
sub edx, dword [ebp + 8]
push edx
push edi
call fcn.0041a800
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4ca4b0
sub edx, ecx
lea ecx, [esi + 0x58]
push edx
push edi
call fcn.0041a800
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4ca4d0
sub edx, ecx
lea ecx, [esi + 0x70]
push edx
push edi
call fcn.0041a800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ca500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e0f8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0xf
mov byte [ecx + 0x20], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx], vtable.TiXmlDocument.0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0xf
mov byte [ecx + 0x48], 0
mov dword [ecx + 0x68], 0xffffffff
lea edx, [ecx + 0x48]
mov dword [ecx + 0x64], 0xffffffff
mov dword [ecx + 0x60], 4
mov byte [ecx + 0x6c], 0
mov byte [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
cmp dword [ecx + 0x5c], 0x10
jb 0x4ca5cd
mov edx, dword [ecx + 0x48]
mov dword [ecx + 0x58], 0
mov eax, ecx
mov byte [edx], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret