joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477e30
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x80357c]
sub esp, 0xa8c
push ebx
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
mov edi, dword [0x8034e4]
cmp eax, esi
jbe 0x47803a
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
jmp 0x477e76
mov edi, dword [esp + 0x28]
xor esi, esi
cmp dword [0x80357c], 0x1c
jne 0x477e8d
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [0x47e704]
mov edi, dword [0x47e700]
mov ebx, dword [0x47e708]
mov ebp, dword [0x47e70c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], 0x20
jmp 0x477ece
mov eax, dword [esp + 0x1c]
xor esi, esi
mov ecx, eax
shr ecx, 5
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov edx, eax
shl edx, 4
add edx, ebx
add ecx, eax
xor edx, ecx
mov dword [esp + 0x10], edx
mov dword [0x8034e8], esi
mov eax, dword [esp + 0x24]
add dword [0x8034e8], eax
mov edx, dword [0x8034e8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
sub dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, edi
add esi, ecx
cmp dword [0x80357c], 0x1be
mov dword [esp + 0x10], eax
jne 0x477f68
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x38]
cmp dword [0x80357c], 0x979
mov dword [0x8034f0], 0xff6b3619
mov dword [0x8034f4], 0xffffffff
mov dword [esp + 0x24], ecx
jne 0x477fa9
push 0
lea ecx, [esp + 0x29c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov eax, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x34]
add dword [esp + 0x20], eax
sub dword [esp + 0x14], eax
dec dword [esp + 0x2c]
jne 0x477ec8
cmp dword [0x80357c], 0x8d4
jne 0x477fef
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x80357c], 0x17
jne 0x478029
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x48]
push ecx
push 0x404170
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x30]
mov dword [esp + 0x28], esi
jne 0x477e70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8c
ret
Function at 0x1000d060
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1001b7fc
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x100263b0]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
mov eax, dword [0x100263b0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [esp + 0x140]
mov edi, ecx
push 0x103
lea ecx, [esp + 0x2d]
push 0
push ecx
mov dword [edi + 0x448], eax
mov byte [esp + 0x34], 0
call sub.MSVCR80.dll_memset
mov eax, dword [0x10026b10]
add esp, 0xc
push 0x104
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000d0e0
sub eax, edx
mov cl, 0x5c
lea ecx, [ecx]
sub eax, 1
cmp byte [esp + eax + 0x28], cl
jne 0x1000d0f0
add eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
lea esi, [edi + 0x45d]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 0x448]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push edx
push eax
push esi
push str._sLogs_d_d_
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x13c], 0
call fcn.1000ce50
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [edi + 0x561]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x1000d170
mov edx, dword [str.default.log]
mov dword [eax], edx
mov ecx, dword [0x1002198c]
mov dword [eax + 4], ecx
mov edx, dword [0x10021990]
push esi
mov dword [eax + 8], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1001a888
add esp, 0x130
ret 4
Function at 0x1000d220
Capabilities:
Create directory

Disassembly:
sub esp, 0x140
mov eax, dword [0x100263b0]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
mov ebx, dword [esp + 0x148]
mov ecx, 0x10026b08
call fcn.1000d1d0
test eax, eax
je 0x1000d394
cmp dword [eax + 0x210], 0
je 0x1000d394
push esi
push 0
lea esi, [ebx + 0x45d]
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000d280
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000d393
push 0x103
lea eax, [esp + 0x45]
push 0
push eax
mov byte [esp + 0x4c], 0
call sub.MSVCR80.dll_memset
mov eax, esi
add esp, 0xc
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1000d2a0
push edi
lea edi, [esp + 0x44]
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1000d2b3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebx + 0x561]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1000d2d3
lea edi, [esp + 0x44]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1000d2e7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push 0x100219a4
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov esi, eax
test esi, esi
pop edi
je 0x1000d393
xor eax, eax
lea ecx, [esp + 0x150]
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [esp + eax*4 + 8], edx
add eax, 1
cmp eax, 0xe
jl 0x1000d322
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x180]
push eax
push ecx
push edx
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x44
pop esi
mov ecx, dword [esp + 0x140]
pop ebx
xor ecx, esp
call fcn.1001a888
add esp, 0x140
ret
Function at 0x1000d3b0
Capabilities:
Create directory

Disassembly:
sub esp, 0x140
mov eax, dword [0x100263b0]
xor eax, esp
mov dword [esp + 0x13c], eax
mov edx, dword [esp + 0x144]
push ebx
mov ebx, dword [esp + 0x14c]
mov ecx, 0x10026b08
call fcn.1000d1d0
test eax, eax
je 0x1000d528
cmp dword [eax + 0x210], 0
je 0x1000d528
push esi
lea esi, [edx + 0x45d]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000d417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000d527
push 0x103
lea eax, [esp + 0x45]
push 0
push eax
mov byte [esp + 0x4c], 0
call sub.MSVCR80.dll_memset
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1000d434
push edi
lea edi, [esp + 0x44]
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1000d447
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1000d463
lea edi, [esp + 0x44]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1000d477
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push 0x100219a4
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov esi, eax
test esi, esi
pop edi
je 0x1000d527
xor eax, eax
lea ecx, [esp + 0x154]
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [esp + eax*4 + 8], edx
add eax, 1
cmp eax, 0xe
jl 0x1000d4b6
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x184]
push eax
push ecx
push edx
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x44
pop esi
mov ecx, dword [esp + 0x140]
pop ebx
xor ecx, esp
call fcn.1001a888
add esp, 0x140
ret
Function at 0x1000d540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10024420
push 0x1001aa96
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100263b0]
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 eax, dword [ebp + 0xc]
push eax
mov ebx, dword [ebp + 8]
push ebx
push str._n::GMHookContext::HookLibraryAPI_module:_s_api:_s__n
push 0x10026b08
call fcn.1000d220
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1000d5d8
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x3c]
add eax, esi
je 0x1000d5d1
mov edi, dword [eax + 0x80]
test edi, edi
je 0x1000d5d1
add edi, esi
mov dword [ebp - 0x2c], edi
cmp dword [edi + 0x10], 0
jne 0x1000d5ec
push ebx
push str._tfind_module__s_failed._n
push 0x10026b08
call fcn.1000d220
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
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 eax, dword [edi + 0xc]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000d6e8
mov ebx, dword [edi + 0x10]
add ebx, esi
mov dword [ebp - 0x28], ebx
mov edi, dword [edi]
add edi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
cmp dword [ebx + eax*4], 0
je 0x1000d620
add eax, 1
jmp 0x1000d610
cmp dword [ebx], 0
jne 0x1000d656
mov ecx, dword [ebp + 0xc]
push ecx
push str._tfind_api__s_failed._n
push 0x10026b08
call fcn.1000d220
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
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 eax, dword [edi]
test eax, eax
js 0x1000d6d7
lea edi, [eax + esi + 2]
push edi
movzx edx, word [eax + esi]
push edx
push str._tapi:__d__s_n
push 0x10026b08
call fcn.1000d220
add esp, 0x10
push edi
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000d6d4
push str.:GMHookContext::HookLibraryAPI_successed._n
push 0x10026b08
call fcn.1000d220
add esp, 8
mov edi, dword [ebx]
mov dword [ebp - 0x30], edi
cmp edi, dword [ebp + 0x10]
je 0x1000d5d1
lea ecx, [ebp - 0x1c]
push ecx
push 0x40
push 4
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
test eax, eax
je 0x1000d5d1
mov edx, dword [ebp + 0x10]
mov dword [ebx], edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 4
push ebx
call esi
jmp 0x1000d718
mov edi, dword [ebp - 0x20]
add ebx, 4
mov dword [ebp - 0x28], ebx
add edi, 4
mov dword [ebp - 0x20], edi
jmp 0x1000d620
add edi, 0x14
jmp 0x1000d5b5
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
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 0x1000d950
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x204
mov eax, dword [0x100263b0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
mov ebx, dword [esp + 0x210]
push esi
push edi
mov edi, dword [esp + 0x214]
push ebx
mov esi, ecx
mov eax, dword [esi + 0x450]
push edi
push eax
push str.Change_main_window_from_0x_X_to_0x_X__model_is__d_n
push esi
call fcn.1000d220
add esp, 0x14
push edi
mov dword [esi + 0x450], edi
mov dword [esi + 0x44c], ebx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1000d9fa
push str.ChangeMainWindow_the_window_is_unicode._n
push 0x10026b08
call fcn.1000d220
push 0x1fe
lea ecx, [esp + 0x1a]
push 0
push ecx
mov word [esp + 0x20], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x450]
add esp, 0x14
push 0x100
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esi + 0x450]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x1000da4b
push str.ChangeMainWindow_the_window_is_not_unicode._n
push 0x10026b08
call fcn.1000d220
push 0xff
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
mov edx, dword [esi + 0x450]
add esp, 0x14
push 0x100
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 0x450]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, 0x10026b08
call fcn.1000d1d0
cmp byte [eax + 0x216], 0
jne 0x1000dab5
mov edx, dword [esi + 0x450]
push 0xfffffffffffffffc
push edx
call fcn.10010140
cmp dword [esi + 0x130], 0
mov edi, eax
jne 0x1000da7d
mov dword [esi + 0x130], edi
test edi, edi
je 0x1000daa2
cmp edi, 0x10011500
je 0x1000daa2
mov eax, dword [esi + 0x450]
push 0x10011500
push 0xfffffffffffffffc
push eax
call fcn.1000fd00
mov dword [esi + 0x454], edi
mov ecx, dword [esi + 0x450]
push 0
push 1
push 6
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001a888
add esp, 0x204
ret 8
Function at 0x10013190
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
push esi
jne 0x100132f4
call fcn.1001a2d0
mov eax, dword [esp + 8]
push 0x105
push 0x10026b14
push eax
mov dword [0x10026b10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0x105
jne 0x100131ca
xor eax, eax
pop esi
ret 0xc
call sym.K8RestoreWindow.dll_InitRestoreWindowParams
test eax, eax
jne 0x1001336f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
push eax
call sym.K8RestoreWindow.dll_GetRestoreWindowParam
test eax, eax
je 0x1001336f
push eax
call fcn.10013080
add esp, 4
call esi
push eax
push str._ndll:_Starting_hook_process__d_n
push 0x10026b08
call fcn.1000d220
add esp, 0xc
mov ecx, 0x10026b08
call fcn.1000d1d0
cmp byte [eax + 0x219], 0
mov ecx, 0x10026b08
je 0x1001322d
call fcn.1000dd30
jmp 0x100132d0
call fcn.1000d1d0
cmp byte [eax + 0x214], 0
jne 0x100132d0
push 0
call fcn.10019620
mov dword [0x100276fc], eax
call fcn.10015d00
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10016120
push 1
call fcn.10015c80
push 0x100130a0
push 0x100276fc
call fcn.100166f0
test eax, eax
je 0x100132a1
push eax
push str._Error_detouring_EntryPoint__:__d_n
push 0x10026b08
call fcn.1000d220
add esp, 0xc
mov ecx, 0x10026b08
call fcn.1000d1d0
mov byte [eax + 0x214], 1
call fcn.10015d50
jmp 0x100132d0
call fcn.100166e0
mov esi, eax
test esi, esi
je 0x100132d0
mov ecx, 0x10026b08
call fcn.1000d1d0
push esi
push str._Error_detouring_EntryPoint__:__d_n
push 0x10026b08
mov byte [eax + 0x214], 1
call fcn.1000d220
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x100130e0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x100276f8], eax
mov eax, 1
pop esi
ret 0xc
test eax, eax
jne 0x1001336f
call fcn.10015d00
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10016120
push 0x100130a0
push 0x100276fc
call fcn.100164c0
call fcn.100166e0
mov esi, eax
mov eax, dword [0x100276f8]
test eax, eax
je 0x1001332f
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, 0x10026b08
call fcn.1000d1d0
test eax, eax
je 0x10013360
push esi
push str.DllMain:__DLL_PROCESS_DETACH_Removed_hook_dll__detours___d_._n
push 0x10026b08
call fcn.1000d220
add esp, 0xc
mov ecx, 0x10026b08
call fcn.1000d1d0
mov dword [eax], 0
mov ecx, 0x10027248
call fcn.10012aa0
call sym.K8RestoreWindow.dll_DinitRestoreWindowParams
mov eax, 1
pop esi
ret 0xc
Function at 0x100135a0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x60
mov eax, dword [0x100263b0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, ecx
test esi, esi
jne 0x100135d7
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1001a888
add esp, 0x60
ret 4
xor eax, eax
push 0x1c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100135c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0x40
lea ecx, [esp + 0x30]
push ecx
push esi
push edi
call ebx
test eax, eax
je 0x10013677
cmp word [esp + 0x28], 0x5a4d
jne 0x1001366c
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x18]
ja 0x1001366c
cmp eax, 0x40
jb 0x1001366c
push 0
push pe_nt_image_headers32
push ebp
add esi, eax
push esi
push edi
call ebx
test eax, eax
je 0x10013677
cmp dword [ebp], 0x4550
jne 0x1001366c
pop ebx
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1001a888
add esp, 0x60
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x68]
pop ebx
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.1001a888
add esp, 0x60
ret 4
Function at 0x10014880
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1001489b
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov edx, dword [esp + 0xc]
je 0x100148f0
push esi
mov esi, dword [esp + 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x1c]
mov dword [ecx + 0xc], esi
pop esi
test eax, eax
je 0x10014924
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x10014907
mov dword [esp + 4], ecx
mov eax, 1
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.10014770
test eax, eax
jne 0x1001492d
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
test bl, 4
jne 0x1001493d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x10014950
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1001496b
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov edx, dword [esp + 0xc]
je 0x100149c0
push esi
mov esi, dword [esp + 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x1c]
mov dword [ecx + 0xc], esi
pop esi
test eax, eax
je 0x100149f4
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x100149d7
mov dword [esp + 4], ecx
mov eax, 1
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.10014770
test eax, eax
jne 0x100149fd
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
test bl, 4
jne 0x10014a0d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30