joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e1c0
Capabilities:
Encode data using xor
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x10077234
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000e2a0
push 0x10077230
push 0
push 0
push 0x8004
push dword [0x10077234]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000e2a0
movaps xmm0, xmmword [0x10068f00]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x3f673136
movaps xmm0, xmmword [0x10069140]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0xc], 0x35632517
movaps xmm0, xmmword [0x10069210]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0x76272d02
mov word [ebp - 4], 0x2a
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x3c
jb 0x1000e244
push 1
push 0x3c
lea eax, [ebp - 0x3f]
mov byte [ebp - 3], 0
push eax
push dword [0x10077230]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000e2a0
push 0x1007722c
push 0x800000
push dword [0x10077230]
push 0x6801
push dword [0x10077234]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1000e2a0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10077228], eax
call fcn.10018b90
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call fcn.10019060
push 0x1000e020
push 0x10077224
call fcn.100188a0
call fcn.10018bf0
push 4
push 0x450890
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000e30f
mov dword [0x10077224], 0x450890
call fcn.10018b90
call esi
push eax
call fcn.10019060
push 0x1000e020
push 0x10077224
call fcn.10018410
call fcn.10018bf0
call fcn.10018b90
call esi
push eax
call fcn.10019060
push 0x1000e0c0
push 0x10077220
call fcn.100188a0
call fcn.10018bf0
push 4
push 0x4504c0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000e36c
mov dword [0x10077220], 0x4504c0
call fcn.10018b90
call esi
push eax
call fcn.10019060
push 0x1000e0c0
push 0x10077220
call fcn.10018410
call fcn.10018bf0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ea00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10072084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.100325c0
add esp, 0xc
mov eax, 0x1007b6c0
cmp dword [0x1007b6d4], 0x10
cmovae eax, dword [0x1007b6c0]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Option.Ini
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
jne 0x1000ea86
xor eax, eax
jmp 0x1000ea99
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ea90
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.10002840
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x110]
push eax
push 1
push str.LootWeapon
push str.PetLooting
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
mov edi, 1
push eax
push edi
push str.LootArmor
cmova ecx, edi
push str.PetLooting
mov byte [0x1007b748], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootAccessory
cmova ecx, edi
push str.PetLooting
mov byte [0x1007b749], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootNormal
cmova ecx, edi
push str.PetLooting
mov byte [0x1007b74a], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootMagic
cmova ecx, edi
push str.PetLooting
mov byte [0x1007b74b], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootRare
cmova ecx, edi
push str.PetLooting
mov byte [0x1007b74c], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootUpgrade
cmova ecx, edi
push str.PetLooting
mov byte [0x1007b74d], cl
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
cmova ecx, edi
push edi
mov byte [0x1007b74e], cl
push str.LootUnique
push str.PetLooting
call esi
movzx ecx, al
cmp al, 1
lea eax, [ebp - 0x110]
push eax
push edi
push str.LootCraft
cmova ecx, edi
push str.PetLooting
mov byte [0x1007b74f], cl
call esi
cmp al, 1
movzx ecx, al
mov eax, dword [ebp - 0x114]
cmova ecx, edi
mov byte [0x1007b750], cl
cmp eax, 0x10
jb 0x1000ec08
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.10002720
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10019f45
mov esp, ebp
pop ebp
ret
Function at 0x1000eee0
Capabilities:
Execute anti-debugging instructions
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100557c6
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10072084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.100325c0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x118], 0
jne 0x1000ef43
xor ecx, ecx
jmp 0x1000ef59
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000ef50
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
mov ecx, 0x1007b824
push eax
call fcn.10002840
mov cl, 0x72
mov byte [ebp - 0x11a], 0
mov al, 0x2e
mov byte [ebp - 0x11c], cl
xor al, cl
mov byte [ebp - 0x11a], 0
mov byte [ebp - 0x11b], al
jne 0x1000ef91
xor ecx, ecx
jmp 0x1000efa9
lea ecx, [ebp - 0x11b]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000efa0
sub ecx, edx
push ecx
push ecx
lea eax, [ebp - 0x11b]
push eax
call fcn.1000f4d0
push 0xffffffffffffffff
inc eax
mov ecx, 0x1007b824
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.100050d0
mov esi, eax
cmp esi, 0x1007b824
je 0x1000f019
mov ecx, dword [0x1007b838]
cmp ecx, 0x10
jb 0x1000eff3
inc ecx
push ecx
push dword [0x1007b824]
mov ecx, 0x1007b824
call fcn.10002720
push esi
mov ecx, 0x1007b824
mov dword [0x1007b838], 0xf
mov dword [0x1007b834], 0
mov byte [0x1007b824], 0
call fcn.10003710
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x1000f03e
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.10002720
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.10001e00
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1000bf20
call fcn.1000c000
call fcn.10002a30
sidt [ebp - 0x124]
mov eax, dword [ebp - 0x122]
and eax, 0xff000000
cmp eax, 0xff000000
jne 0x1000f090
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10002aa0
call fcn.10002b50
test al, al
jne 0x1000f079
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
rdtsc
mov dword [ebp - 0x124], eax
rdtsc
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x124]
cmp eax, 0x1f4
ja 0x1000f079
call fcn.10002c00
call fcn.100148f0
mov dword [0x10077290], eax
test eax, eax
je 0x1000f0ef
mov ecx, eax
call fcn.10014ae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019f45
mov esp, ebp
pop ebp
ret
Function at 0x1000f9a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10072084]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10067f04]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x10067f08]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10067eec]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x10067efc]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x1000fa70
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x1000fa39
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x1000fa86
inc ax
mov word [ebp - 0xa], ax
jmp 0x1000fa4f
cmp eax, 0xe7
jne 0x1000fa86
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x1000fa86
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x1000fa20
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019f45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10019f45
mov esp, ebp
pop ebp
ret
Function at 0x100118a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.1001ad60
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x100118c3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100148f0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10072084]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 3
mov dword [ebp - 0x2f8], 0x6f775103
mov dword [ebp - 0x2f4], 0x67626c4f
xor eax, eax
mov dword [ebp - 0x2f0], 0x6a717750
mov word [ebp - 0x2ec], 0x646d
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1001494a
mov cl, byte [ebp - 0x2f8]
jmp 0x10014935
push ebx
mov byte [ebp - 0x2e8], 0x2e
mov al, 0x40
xor al, byte [ebp - 0x2e8]
mov bl, 0x42
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x4a
mov bh, ah
mov byte [ebp - 0x2d9], ah
xor ch, ch
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2de], ch
xor ah, al
mov byte [ebp - 0x2e4], bl
xor ch, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e2], ch
mov dh, dl
mov byte [ebp - 0x2e0], bh
xor dl, al
mov byte [ebp - 0x2de], 0
xor dh, al
mov byte [ebp - 0x2e5], dl
mov cl, 0x5a
mov byte [ebp - 0x2e1], dh
xor cl, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2f7]
push esi
push eax
lea eax, [ebp - 0x2e7]
mov byte [ebp - 0x2e6], cl
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
jne 0x10014a10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019f45
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100149fe
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.100325c0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100149fe
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100149fe
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100149fe
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001f60
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x100149fe
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.10019f45
mov esp, ebp
pop ebp
ret
Function at 0x10014ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movaps xmm0, xmmword [0x100690c0]
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], 0x4e546852
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x585d59
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10014b06
mov byte [ebp - 0x10], 0x45
mov al, 0x2b
xor al, byte [ebp - 0x10]
mov bl, 0x29
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x21
mov bh, ah
mov byte [ebp - 1], ah
xor bl, al
mov byte [ebp - 6], 0
xor ah, al
mov byte [ebp - 0x11], 0
xor bh, al
mov byte [ebp - 0xb], ah
mov dh, dl
mov byte [ebp - 0xc], bl
xor dl, al
mov byte [ebp - 8], bh
xor dh, al
mov byte [ebp - 0xd], dl
mov cl, 0x31
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 6], 0
mov ch, 0x6b
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0xf]
mov byte [ebp - 0xa], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x10014b8f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x11
test esi, esi
jne 0x10014bae
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10014bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x10014bfe
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10014c02
cmp edx, esi
jne 0x10014be7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x10014c22
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10014c26
cmp edx, esi
jne 0x10014c0b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x10014c46
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10014c4a
cmp edx, esi
jne 0x10014c2f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017270
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.10017440
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001734d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10072064]
jb 0x100172ba
mov eax, dword [ebp - 4]
cmp eax, dword [0x10072068]
ja 0x100172ba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001728a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100325c0
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 0x100172df
jmp 0x1001734d
cmp dword [ebp - 0x14], 0x10000
jne 0x10017333
cmp dword [ebp - 0x18], 0x10000
jb 0x10017333
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 0x10017316
mov eax, dword [ebp - 8]
jmp 0x1001734f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10017326
xor eax, eax
jmp 0x1001734f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017348
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10017440
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001728a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10017360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10017470
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10017435
mov edx, dword [ebp - 4]
cmp edx, dword [0x10072064]
jb 0x100173a5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10072068]
ja 0x100173a5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10017375
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100325c0
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 0x100173ca
jmp 0x10017435
cmp dword [ebp - 0x14], 0x10000
jne 0x1001741e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001741e
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 0x10017401
mov eax, dword [ebp - 8]
jmp 0x10017437
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10017411
xor eax, eax
jmp 0x10017437
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017430
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10017470
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10017375
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100174a0
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.10017890
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10076088], 0
jne 0x100174dd
cmp dword [0x10076084], 0
je 0x100174dd
mov eax, dword [0x10076084]
mov dword [0x10076088], eax
cmp dword [0x10076088], 0
je 0x1001755a
mov ecx, dword [0x10076088]
cmp dword [ecx + 8], 0
je 0x1001755a
mov edx, dword [0x10076088]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001755a
mov ecx, dword [0x10076088]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001755a
mov eax, dword [0x10076088]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10017529
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10017530
xor eax, eax
jmp 0x10017679
mov ecx, dword [0x10076088]
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.100325c0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10017679
mov edx, dword [0x10076084]
mov dword [0x10076088], edx
jmp 0x10017576
mov eax, dword [0x10076088]
mov ecx, dword [eax + 4]
mov dword [0x10076088], ecx
cmp dword [0x10076088], 0
je 0x100175b6
cmp dword [0x10076088], 0
je 0x100175b4
mov edx, dword [0x10076088]
cmp dword [edx + 8], 0
je 0x100175b4
mov eax, dword [0x10076088]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100175b4
mov edx, dword [0x10076088]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100175b4
jmp 0x1001750e
jmp 0x10017568
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.10017680
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10017677
mov eax, dword [ebp - 0x18]
mov dword [0x10076088], eax
mov ecx, dword [0x10076088]
mov dword [ecx], 0x52727464
mov edx, dword [0x10076088]
mov dword [edx + 8], 0
mov eax, dword [0x10076088]
mov ecx, dword [0x10076084]
mov dword [eax + 4], ecx
mov edx, dword [0x10076088]
mov dword [0x10076084], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10076088]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10017647
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10017667
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 0x1001763e
mov eax, dword [0x10076088]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001750e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100183c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10076084]
mov dword [ebp - 4], eax
jmp 0x100183d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10018400
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 0x100183fe
call sub.KERNEL32.dll_GetLastError
jmp 0x10018402
jmp 0x100183d0
xor eax, eax
mov esp, ebp
pop ebp
ret