joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003bbd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088a62
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x100a7078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
cmp byte [esi + 0x140], 0
movzx eax, word [esi + 0x144]
movzx ecx, word [esi + 0x136]
push eax
mov word [esi + 0x142], cx
push ecx
je 0x1003bcb5
movaps xmm0, xmmword [0x1009e870]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x34793835
mov byte [ebp - 0x24], 0
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x13
jb 0x1003bc40
sub esp, 0x18
mov byte [ebp - 0x24], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1003bc6e
mov eax, dword [edx]
jmp 0x1003bc70
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1003bc7d
xor ecx, ecx
jmp 0x1003bc8c
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bc83
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10002770
lea eax, [ebp - 0x68]
push eax
call fcn.1000d830
add esp, 0x24
mov dword [ebp - 4], 0
mov ebx, 1
jmp 0x1003bd5d
mov byte [ebp - 0x20], 0x36
mov al, 0x13
mov dh, al
mov byte [ebp - 0x17], 0
xor al, byte [ebp - 0x20]
mov dl, 0x16
mov byte [ebp - 0x1f], al
mov ch, dl
mov al, byte [ebp - 0x20]
mov cl, 0x52
xor dl, al
mov byte [ebp - 0x17], 0
xor dh, al
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x19], dh
sub esp, 0x18
mov edx, esp
mov bh, cl
mov bl, 0x59
mov ah, 0x50
xor cl, al
xor bl, al
xor ah, al
mov byte [ebp - 0x1e], cl
xor ch, al
mov byte [ebp - 0x1c], bl
xor bh, al
mov byte [ebp - 0x1b], ah
mov byte [ebp - 0x1a], ch
mov byte [ebp - 0x18], bh
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1003bd1a
mov eax, dword [edx]
jmp 0x1003bd1c
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x1003bd29
xor ecx, ecx
jmp 0x1003bd39
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bd30
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10002770
lea eax, [ebp - 0x50]
push eax
call fcn.1000d830
add esp, 0x24
mov dword [ebp - 4], 1
mov ebx, 2
mov ecx, dword [esi + 0xc]
mov edx, eax
mov dword [ebp - 0x10], ebx
call fcn.10019110
test bl, 2
je 0x1003bd99
mov eax, dword [ebp - 0x3c]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x1003bd87
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002650
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test bl, 1
je 0x1003bdb3
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1003bdb3
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.10002650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004cb30
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089488
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100a7078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x1004cb70
xor cl, cl
jmp 0x1004cb76
mov eax, dword [edx + 0x10]
mov cl, byte [esi + eax]
lea eax, [esi + 1]
mov dword [edx + 8], eax
movzx eax, cl
sub eax, 0
je 0x1004cc6b
sub eax, 1
jne 0x1004cd32
mov cl, 0x1d
mov dword [ebp - 0x3c], 0x6972511d
mov dword [ebp - 0x38], 0x646f7869
mov dword [ebp - 0x34], 0x73786b58
mov word [ebp - 0x30], 0x69
nop
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1004cbbf
mov cl, byte [ebp - 0x3c]
jmp 0x1004cbb0
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.10002870
mov dword [ebp - 4], 3
xor ecx, ecx
movaps xmm0, xmmword [0x1009e040]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x7d243131
mov dword [ebp - 0x44], 0x33343237
mov dword [ebp - 0x40], 0x733938
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x1a
jb 0x1004cbf8
lea eax, [ebp - 0x57]
mov byte [ebp - 0x3d], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002870
push 0
push 0
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.10022e30
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0x10
jb 0x1004cc40
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002650
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x1004cd32
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
jmp 0x1004cd2d
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, edx
call fcn.1000c3b0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1004cd1d
cmp eax, 0xff
ja 0x1004cd1d
mov cl, 0x41
mov dword [ebp - 0x3c], 0x352e0d41
mov dword [ebp - 0x38], 0x38332435
xor eax, eax
mov dword [ebp - 0x34], 0x2f243704
mov word [ebp - 0x30], 0x35
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1004cccf
mov cl, byte [ebp - 0x3c]
jmp 0x1004ccc0
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.10002870
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10002870
push 0
push 0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10022e30
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.10002220
lea ecx, [ebp - 0x54]
call fcn.10002220
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1004cd32
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10067955
mov esp, ebp
pop ebp
ret 4
Function at 0x10052c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089760
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x100a7078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [ebp + 8], 0
mov eax, dword [esi]
mov dword [0x100aab9c], eax
jne 0x10052d42
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10052d42
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052d42
mov ecx, 0xbe20a0
call fcn.10019420
cmp edi, eax
sete al
test al, al
je 0x10052d42
push 0x10097d58
lea ecx, [ebp - 0x34]
call fcn.10002870
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
mov ecx, dword [esi + 0x10]
call fcn.10018cb0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.10002220
movaps xmm0, xmmword [0x1009da60]
xor ecx, ecx
movups xmmword [ebp - 0x1c], xmm0
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xe
jb 0x10052ce8
lea eax, [ebp - 0x1b]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0x4c]
call fcn.10002870
mov dword [ebp - 4], 1
lea edx, [ebp - 0x4c]
mov ecx, dword [esi + 0x10]
call fcn.10019070
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002220
mov esi, dword [esi + 0x10]
test esi, esi
je 0x10052d42
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10052d42
mov ecx, esi
call dword [0x1009d380]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10053a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089850
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x100a7078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10053a98
push 4
push edi
call ebx
test eax, eax
jne 0x10053a98
push eax
mov ecx, edi
call dword [0x1009d358]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10053b85
push 4
push edi
call ebx
test eax, eax
jne 0x10053b85
mov ecx, 0xbe20a0
call fcn.10019420
cmp edi, eax
sete al
test al, al
je 0x10053b85
push 0x10097d58
lea ecx, [ebp - 0x4c]
call fcn.10002870
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4c]
mov ecx, dword [esi + 0x10]
call fcn.10018cb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10053b02
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.10002650
movaps xmm0, xmmword [0x1009dab0]
xor ecx, ecx
movups xmmword [ebp - 0x1c], xmm0
nop
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xe
jb 0x10053b10
lea eax, [ebp - 0x1b]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0x34]
call fcn.10002870
mov dword [ebp - 4], 1
lea edx, [ebp - 0x34]
mov ecx, dword [esi + 0x10]
call fcn.10019070
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10053b5b
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10002650
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
test edi, edi
je 0x10053b85
push 4
push edi
call ebx
test eax, eax
jne 0x10053b85
mov ecx, edi
call dword [0x1009d380]
push 1
push dword [esi + 8]
mov ecx, esi
call fcn.10052dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10059020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100a7078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x100aabac], eax
mov ebx, dword [esi]
test ebx, ebx
je 0x10059207
push 4
push ebx
call edi
test eax, eax
jne 0x10059207
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10059207
mov al, byte [ebx]
test al, al
je 0x10059207
mov ebx, dword [ebp + 8]
cmp ebx, 0x1c
je 0x100590cf
cmp ebx, 0x9c
je 0x100590cf
mov esi, dword [esi]
test esi, esi
je 0x10059235
push 4
push esi
call edi
test eax, eax
jne 0x10059235
push ebx
mov ecx, esi
call dword [0x1009d360]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi + 0x88]
test ebx, ebx
je 0x100591f1
push 4
push ebx
call edi
test eax, eax
jne 0x100591f1
mov ecx, 0xbe20a0
call fcn.10019420
cmp ebx, eax
sete al
test al, al
je 0x100591f1
push 1
push dword [esi + 0x8c]
mov ecx, esi
call fcn.100577d0
lea eax, [ebp + 9]
mov word [ebp + 8], 0x45
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp + 9], 0
call fcn.10002870
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4c]
mov ecx, dword [esi + 0x88]
call fcn.10018cb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10059157
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.10002650
mov cl, 0x2d
mov dword [ebp - 0x1c], 0x4c487e2d
mov dword [ebp - 0x18], 0xd454e5f
xor eax, eax
mov dword [ebp - 0x14], 0x40485964
mov byte [ebp - 0x10], 0
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xb
jae 0x10059183
mov cl, byte [ebp - 0x1c]
jmp 0x10059174
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x10], 0
push eax
lea ecx, [ebp - 0x34]
call fcn.10002870
mov dword [ebp - 4], 1
lea edx, [ebp - 0x34]
mov ecx, dword [esi + 0x88]
call fcn.10019070
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100591c4
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10002650
mov esi, dword [esi + 0x88]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
test esi, esi
je 0x100591f1
push 4
push esi
call edi
test eax, eax
jne 0x100591f1
mov ecx, esi
call dword [0x1009d380]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
test esi, esi
je 0x10059235
push 4
push esi
call edi
test eax, eax
jne 0x10059235
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009d360]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10063690
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100a7078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.10063430
lea ecx, [ebp - 0x7c]
call fcn.100634e0
push esi
lea ecx, [ebp - 0x7c]
call fcn.100635d0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1006373a
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10002650
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067955
mov esp, ebp
pop ebp
ret

Function at 0x10063760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100a7078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, 5
xor ecx, ecx
mov dword [ebp - 0xc], esi
add eax, eax
mov ebx, edx
push edi
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.1006ff21
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
mov edx, dword [ebp - 0xc]
sub ebx, edx
sub ebx, 5
mov ecx, dword [edx]
mov dword [edi], ecx
mov al, byte [edx + 4]
mov byte [edi + 4], al
add edi, 5
mov eax, edx
sub eax, edi
mov dword [edi + 1], eax
lea eax, [ebp - 8]
push eax
mov byte [edi], 0xe9
push dword [ebp - 8]
mov byte [edx], 0xe9
push 5
push edx
mov dword [edx + 1], ebx
call esi
mov ecx, dword [ebp - 4]
lea eax, [edi - 5]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067955
mov esp, ebp
pop ebp
ret

Function at 0x100637f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
push esi
push edi
mov edi, dword fs:[0x30]
mov ebx, ecx
mov eax, dword [edi + 0xc]
add eax, 0x14
mov esi, dword [eax]
cmp esi, eax
je 0x10063828
test esi, esi
je 0x10063828
push ebx
push dword [esi + 0x20]
call fcn.1006a07b
add esp, 8
test eax, eax
jne 0x1006382e
mov eax, dword [edi + 0xc]
mov esi, dword [esi]
add eax, 0x14
cmp esi, eax
jne 0x10063808
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
ret
Function at 0x10064c70
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.10064e40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10064d4d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100a7064]
jb 0x10064cba
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a7068]
ja 0x10064cba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10064c8a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006a300
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 0x10064cdf
jmp 0x10064d4d
cmp dword [ebp - 0x14], 0x10000
jne 0x10064d33
cmp dword [ebp - 0x18], 0x10000
jb 0x10064d33
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 0x10064d16
mov eax, dword [ebp - 8]
jmp 0x10064d4f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10064d26
xor eax, eax
jmp 0x10064d4f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10064d48
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10064e40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10064c8a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10064d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10064e70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10064e35
mov edx, dword [ebp - 4]
cmp edx, dword [0x100a7064]
jb 0x10064da5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a7068]
ja 0x10064da5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10064d75
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006a300
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 0x10064dca
jmp 0x10064e35
cmp dword [ebp - 0x14], 0x10000
jne 0x10064e1e
cmp dword [ebp - 0x18], 0x10000
jb 0x10064e1e
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 0x10064e01
mov eax, dword [ebp - 8]
jmp 0x10064e37
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10064e11
xor eax, eax
jmp 0x10064e37
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10064e30
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10064e70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10064d75
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10064eb0
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.100652a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100a9cbc], 0
jne 0x10064eed
cmp dword [0x100a9cb8], 0
je 0x10064eed
mov eax, dword [0x100a9cb8]
mov dword [0x100a9cbc], eax
cmp dword [0x100a9cbc], 0
je 0x10064f6a
mov ecx, dword [0x100a9cbc]
cmp dword [ecx + 8], 0
je 0x10064f6a
mov edx, dword [0x100a9cbc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10064f6a
mov ecx, dword [0x100a9cbc]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10064f6a
mov eax, dword [0x100a9cbc]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10064f39
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10064f40
xor eax, eax
jmp 0x10065089
mov ecx, dword [0x100a9cbc]
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.1006a300
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10065089
mov edx, dword [0x100a9cb8]
mov dword [0x100a9cbc], edx
jmp 0x10064f86
mov eax, dword [0x100a9cbc]
mov ecx, dword [eax + 4]
mov dword [0x100a9cbc], ecx
cmp dword [0x100a9cbc], 0
je 0x10064fc6
cmp dword [0x100a9cbc], 0
je 0x10064fc4
mov edx, dword [0x100a9cbc]
cmp dword [edx + 8], 0
je 0x10064fc4
mov eax, dword [0x100a9cbc]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10064fc4
mov edx, dword [0x100a9cbc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10064fc4
jmp 0x10064f1e
jmp 0x10064f78
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.10065090
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10065087
mov eax, dword [ebp - 0x18]
mov dword [0x100a9cbc], eax
mov ecx, dword [0x100a9cbc]
mov dword [ecx], 0x52727464
mov edx, dword [0x100a9cbc]
mov dword [edx + 8], 0
mov eax, dword [0x100a9cbc]
mov ecx, dword [0x100a9cb8]
mov dword [eax + 4], ecx
mov edx, dword [0x100a9cbc]
mov dword [0x100a9cb8], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100a9cbc]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10065057
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10065077
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 0x1006504e
mov eax, dword [0x100a9cbc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10064f1e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10065dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a9cb8]
mov dword [ebp - 4], eax
jmp 0x10065de9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10065e10
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 0x10065e0e
call sub.KERNEL32.dll_GetLastError
jmp 0x10065e12
jmp 0x10065de0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100662b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100a9cc8], eax
je 0x100662d4
mov eax, 0x10dd
jmp 0x1006647c
cmp dword [0x100a9ccc], 0
je 0x100662e7
mov eax, dword [0x100a9ccc]
jmp 0x1006647c
cmp dword [ebp + 0xc], 0
jne 0x100662f7
mov eax, 0x57
jmp 0x1006647c
cmp dword [ebp + 8], 0
jne 0x10066307
mov eax, 6
jmp 0x1006647c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10066330
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100a9ccc], ecx
mov edx, dword [ebp + 8]
mov dword [0x100a9cd0], edx
mov eax, dword [ebp - 8]
jmp 0x1006647c
push 0x18
call fcn.10067966
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1006638b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100a9ccc], ecx
cmp dword [ebp - 4], 0
je 0x1006637a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10067d09
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100a9cd0], ecx
mov eax, dword [ebp - 8]
jmp 0x1006647c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10066290
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10066290
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x100663cb
cmp dword [ebp - 0xc], 0x1e
jbe 0x100663e7
mov dword [ebp - 8], 9
cmp dword [0x100a9cc0], 0
je 0x100663e2
jmp 0x10066359
jmp 0x10066350
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1006640e
mov dword [ebp - 8], 9
cmp dword [0x100a9cc0], 0
je 0x10066409
jmp 0x10066359
jmp 0x10066350
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10066439
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10066350
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100a9cd8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100a9cd8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8