joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x430708]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43070c]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x430710]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x430714]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x43f954], 0xc
mov dword [ebp - 4], eax
jne 0x401085
push edx
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x43f954]
cmp eax, 0xfa9
jne 0x4010a1
mov dword [0x43f950], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c2
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
and dword [0x43f8a8], 0
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x43f94c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x401059
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x408cfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430030]
jne 0x408d07
repz ret
jmp fcn.0040cf92

Function at 0x40a10d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004055a8
and dword [ebp - 4], 0
cmp dword [0x434944], 0
mov ebx, eax
jne 0x40a1be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a26f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a26f
push eax
call fcn.00405536
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434944], eax
call esi
push eax
call fcn.00405536
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434948], eax
call esi
push eax
call fcn.00405536
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43494c], eax
call esi
push eax
call fcn.00405536
pop ecx
mov dword [0x434954], eax
test eax, eax
je 0x40a1be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405536
pop ecx
mov dword [0x434950], eax
mov eax, dword [0x434950]
cmp eax, ebx
je 0x40a216
cmp dword [0x434954], ebx
je 0x40a216
push eax
call fcn.004055b1
push dword [0x434954]
mov esi, eax
call fcn.004055b1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a216
test edi, edi
je 0x40a216
call esi
test eax, eax
je 0x40a20d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a20d
test byte [ebp - 0xc], 1
jne 0x40a216
or dword [ebp + 0x10], 0x200000
jmp 0x40a24f
mov eax, dword [0x434948]
cmp eax, ebx
je 0x40a24f
push eax
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a24f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a24f
mov eax, dword [0x43494c]
cmp eax, ebx
je 0x40a24f
push eax
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a24f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434944]
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a26f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a271
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [str.__g]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4ac6bc]
xor ecx, ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
call fcn.00401077
mov eax, dword [0x4ac6c0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4ac6c4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
jmp 0x4010d0
xor ecx, ecx
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x4bb914], 0xc
mov dword [ebp - 4], eax
jne 0x4010fa
push ecx
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, dword [0x4bb914]
cmp eax, 0xfa9
jne 0x401116
mov dword [0x4bb910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401137
push str.fahubizavojijalaho
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x4bb868], 0
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov edx, edi
lea eax, [ebx + edi]
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x4bb90c], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, esi
shr edx, cl
lea eax, [ebx + esi]
mov dword [ebp - 0x14], eax
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4010ce
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x40df14
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40df23
pop dword [ebp - 0x48]
mov eax, 0xf5731a2
add eax, 0xf0e9ad81
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3eda8
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4c3c
mov edi, eax
mov ebx, 0xee45d384
sub ebx, 0xee027f84
add ebx, dword [ebp - 0x48]
mov edx, 0x6c468c3d
add edx, 0xdab0a070
mov dword [ebp - 0x28], 0x9d07edcc
mov esi, dword [ebx]
add dword [ebp - 8], esi
sub esi, edx
xor dword [ebp - 0x14], ebx
mov dword [edi], esi
mov dword [ebp - 0x2c], 0xa52aca54
add edi, 0xd2f93b8
sub edi, 0xd2f93b4
add ebx, 0x762b0696
add ebx, 0x89d4f96e
loop 0x40df77
add eax, 0x255b04b1
add eax, 0xdaa61f12
mov ebx, eax
add eax, 0xed1a327d
sub eax, 0xed1a3278
mov ecx, 0xe003590a
add ecx, 0x203ca6f6
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x258010a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x258010b6
pop dword [ebp - 0x3c]
mov eax, 0x258010b6
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x1d06012b
sub dword [ebp - 0x4c], 0xceb3bbe0
mov dword [ebp - 0x48], 0x3b4aef8e
sub dword [ebp - 0x48], 0x917a349
mov dword [ebp - 0x44], 0x5b7f485d
sub dword [ebp - 0x44], 0xf33042f
mov dword [ebp - 0x40], 0xe299f918
add dword [ebp - 0x40], 0x1d6606e8
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xc07b754
sub eax, 0xe685e710
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x969c9b4d
add dword [ebp - 0x4c], 0xddd5ce09
mov dword [ebp - 0x48], 0x660f7d4f
add dword [ebp - 0x48], 0xdb5ce426
mov dword [ebp - 0x44], 0xc7c6ca94
sub dword [ebp - 0x44], 0x64575e28
mov dword [ebp - 0x40], 0xfaf231c3
sub dword [ebp - 0x40], 0xfaf231c3
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x1e760010
sub eax, 0xf8f42f90
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x39c1b
push 0
call eax
mov ecx, 0x3cc6
mov ebx, eax
mov esi, 0xa8d6091e
add esi, 0x7cac8ce2
add esi, dword [ebp - 0x3c]
mov edx, 0xce92d475
mov edi, dword [esi]
sub edi, edx
xor dword [ebp - 0x18], 0xc521b1fe
mov dword [ebx], edi
add dword [ebp - 0x10], 0x41c5a9b1
add ebx, 0xb3a50abe
sub ebx, 0xb3a50aba
add esi, 0xcf71a381
sub esi, 0xcf71a37d
loop 0x258011c7
add eax, 0x3ff3da7b
sub eax, 0x3ff2f490
xor ebx, ebx
add ebx, eax
add eax, 0xca3a60fb
add eax, 0x35c59f0a
mov ecx, 0xa0486853
sub ecx, 0x7ac86853
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x10001ae0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100572c7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1006a3c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.AnyAngleAlgorithm.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
add eax, 2
add edx, 2
mov byte [ebp - 4], 5
mov dword [esi + 4], eax
mov eax, edx
mov dword [esi + 8], edx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10032969
mov dword [esi + 0xc], eax
add esp, 4
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
je 0x10001c0a
push dword [esi + 4]
call fcn.10032969
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [eax + edi*4], ecx
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x10001c02
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + edi*4]
mov byte [eax + ecx], 0
inc eax
cmp eax, dword [esi + 4]
jb 0x10001bf2
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jb 0x10001bd8
xor edx, edx
mov dword [ebp - 0x10], edx
add eax, 0xfffffffe
je 0x10001c68
mov eax, dword [esi + 4]
xor edi, edi
sub eax, 2
je 0x10001c5a
mov ebx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, ebx
shr eax, 5
lea edx, [ecx + eax*4]
mov ecx, ebx
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [edx], eax
mov edx, dword [ebp - 0x10]
je 0x10001c4c
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edx*4 + 4]
mov byte [eax + edi + 1], 1
mov eax, dword [esi + 4]
inc edi
add ebx, dword [ebp + 0xc]
sub eax, 2
cmp edi, eax
jb 0x10001c20
mov ecx, dword [esi + 8]
inc edx
sub ecx, 2
mov dword [ebp - 0x10], edx
cmp edx, ecx
jb 0x10001c14
mov ecx, esi
call fcn.10001ec0
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 0x10006780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x100067cb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0x4550
jne 0x100067cb
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x100067cb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x50]
jmp 0x100067cd
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100067e0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x114], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x10006833
xor al, al
jmp 0x100068b3
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x10006860
xor al, al
jmp 0x100068b3
lea ecx, [ebp - 0x108]
push ecx
push str.Scanning_Module:__s_n
call fcn.10006910
add esp, 8
push 0xc
mov edx, dword [ebp - 0x10c]
add edx, 4
push edx
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call sub.KERNEL32.dll_K32GetModuleInformation
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.10006780
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003217b
mov esp, ebp
pop ebp
ret

Function at 0x1000cda0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0xa
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x1000cdcf
xor al, al
jmp 0x1000ce41
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000ce32
mov ecx, dword [ebp + 8]
call fcn.1000a8a0
push eax
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000ce1b
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1000ce41
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000cdf0
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003217b
mov esp, ebp
pop ebp
ret
Function at 0x1000e6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x1000e6ca
jl 0x1000e6c1
cmp dword [ebp + 0xc], 0
ja 0x1000e6ca
xor eax, eax
xor edx, edx
jmp 0x1000e801
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x1000e6ec
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1000c300
jmp 0x1000e801
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.10009b90
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1000e75b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.100023b0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1000b020
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10005610
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.1000af50
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x1000e7f2
mov ecx, dword [ebp - 0x10]
call fcn.1000d2f0
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x1000e7cb
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1003bce8
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x1000e7c9
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x1000e801
jmp 0x1000e777
cmp dword [ebp - 8], 0
jbe 0x1000e7f2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1003bce8
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003217b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.10033590
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0
je 0x10019c93
cmp dword [ebp - 0x108], 1
je 0x10019c26
jmp 0x10019c9e
cmp dword [ebp + 0x10], 0
je 0x10019c49
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
add eax, 8
push eax
call fcn.1000bbd0
add esp, 4
jmp 0x10019c6e
push 0x100
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.1000bbd0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [0x1006bc18], ecx
push 0
push 0
push 0
push 0x10019b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1006be08], eax
jmp 0x10019c9e
call fcn.10019b20
mov dword [ebp - 0x110], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003217b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002e010
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.1002e1e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002e0ed
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006a320]
jb 0x1002e05a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006a324]
ja 0x1002e05a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e02a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10033590
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1002e07f
jmp 0x1002e0ed
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e0d3
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e0d3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002e0b6
mov eax, dword [ebp - 8]
jmp 0x1002e0ef
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002e0c6
xor eax, eax
jmp 0x1002e0ef
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e0e8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002e1e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e02a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002e100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002e210
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002e1d5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006a320]
jb 0x1002e145
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006a324]
ja 0x1002e145
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e115
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10033590
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1002e16a
jmp 0x1002e1d5
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e1be
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e1be
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002e1a1
mov eax, dword [ebp - 8]
jmp 0x1002e1d7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002e1b1
xor eax, eax
jmp 0x1002e1d7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e1d0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002e210
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e115
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002e240
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1002e630
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1006be4c], 0
jne 0x1002e27d
cmp dword [0x1006be48], 0
je 0x1002e27d
mov eax, dword [0x1006be48]
mov dword [0x1006be4c], eax
cmp dword [0x1006be4c], 0
je 0x1002e2fa
mov ecx, dword [0x1006be4c]
cmp dword [ecx + 8], 0
je 0x1002e2fa
mov edx, dword [0x1006be4c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002e2fa
mov ecx, dword [0x1006be4c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1002e2fa
mov eax, dword [0x1006be4c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1002e2c9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1002e2d0
xor eax, eax
jmp 0x1002e419
mov ecx, dword [0x1006be4c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10033590
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1002e419
mov edx, dword [0x1006be48]
mov dword [0x1006be4c], edx
jmp 0x1002e316
mov eax, dword [0x1006be4c]
mov ecx, dword [eax + 4]
mov dword [0x1006be4c], ecx
cmp dword [0x1006be4c], 0
je 0x1002e356
cmp dword [0x1006be4c], 0
je 0x1002e354
mov edx, dword [0x1006be4c]
cmp dword [edx + 8], 0
je 0x1002e354
mov eax, dword [0x1006be4c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1002e354
mov edx, dword [0x1006be4c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1002e354
jmp 0x1002e2ae
jmp 0x1002e308
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 - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1002e420
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1002e417
mov eax, dword [ebp - 0x18]
mov dword [0x1006be4c], eax
mov ecx, dword [0x1006be4c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1006be4c]
mov dword [edx + 8], 0
mov eax, dword [0x1006be4c]
mov ecx, dword [0x1006be48]
mov dword [eax + 4], ecx
mov edx, dword [0x1006be4c]
mov dword [0x1006be48], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1006be4c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1002e3e7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1002e407
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1002e3de
mov eax, dword [0x1006be4c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1002e2ae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002f160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006be48]
mov dword [ebp - 4], eax
jmp 0x1002f179
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1002f1a0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1002f19e
call sub.KERNEL32.dll_GetLastError
jmp 0x1002f1a2
jmp 0x1002f170
xor eax, eax
mov esp, ebp
pop ebp
ret