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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0xf
mov al, 0x6d
xor al, byte [ebp - 0x10]
mov dl, 0x6e
mov byte [ebp - 0xf], al
mov dh, 0x50
mov al, byte [ebp - 0x10]
mov bl, 0x7c
push esi
xor dl, al
mov byte [ebp - 7], 0
xor dh, al
mov byte [ebp - 0xe], dl
push edi
mov esi, ecx
mov byte [ebp - 0xb], dh
sub esp, 0x18
mov byte [ebp - 7], 0
mov edx, esp
mov ch, bl
mov ah, 0x6a
mov bh, 0x6c
mov cl, 0x60
xor bl, al
xor ah, al
mov byte [ebp - 0xd], bl
xor bh, al
mov byte [ebp - 0xc], ah
xor cl, al
mov byte [ebp - 0xa], bh
xor ch, al
mov byte [ebp - 9], cl
mov byte [ebp - 8], ch
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10013700
mov eax, dword [edx]
jmp 0x10013702
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xf], 0
jne 0x1001370f
xor ecx, ecx
jmp 0x1001371e
lea ecx, [ebp - 0xf]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013715
sub ecx, edi
push ecx
lea eax, [ebp - 0xf]
mov ecx, edx
push eax
call fcn.10004440
mov ecx, dword [esi]
call fcn.1000d700
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0x18
mov dword [esi + 4], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001374d
mov dword [esi + 4], 0
movaps xmm0, xmmword [0x100493b0]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x10013760
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x13], 0
jne 0x10013791
xor ecx, ecx
jmp 0x100137a0
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013797
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10004440
mov ecx, dword [esi + 4]
call fcn.1000d700
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call ebx
test eax, eax
je 0x100137ca
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x100137e4
cmp dword [0x100522ec], 0
mov ecx, 0x10b78ba
sete dl
call fcn.1000de80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100188f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x10049db0]
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x667c506a
push edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xc], 0x7b6e7a7b
xor ecx, ecx
mov dword [ebp - 8], 0x616066
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x1a
jb 0x10018920
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x10018951
xor ecx, ecx
jmp 0x10018960
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018957
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004440
mov ecx, dword [esi]
call fcn.1000d700
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10029400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041c30
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10050018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x100521d4], eax
mov ebx, dword [edi]
push 4
push ebx
call esi
test eax, eax
jne 0x100295b7
push 4
add ebx, 0xe5
push ebx
call esi
test eax, eax
jne 0x100295b7
mov al, byte [ebx]
test al, al
je 0x100295b7
cmp byte [ebp + 8], 0
jne 0x100295b7
movaps xmm0, xmmword [0x10049440]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10029480
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003b10
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x63
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10003b10
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x100294da
push 4
push ebx
call esi
test eax, eax
jne 0x100294da
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x10049010]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100294f0
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10004bb0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10003b10
mov byte [ebp - 4], 2
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10029524
push 4
push ebx
call esi
test eax, eax
jne 0x10029524
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x10049054]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002953a
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10004bb0
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10029552
push 4
push ebx
call esi
test eax, eax
jne 0x10029552
mov ecx, ebx
call dword [0x10049018]
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x4d
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10003b10
mov byte [ebp - 4], 3
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x10029588
push 4
push ebx
call esi
test eax, eax
jne 0x10029588
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x10049058]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002959e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10004bb0
mov ecx, edi
call fcn.1002ab30
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100295b7
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10004bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003eb30
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10031230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042000
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10050018]
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 [0x100521fc], eax
mov ebx, dword [esi]
push 4
push ebx
call edi
test eax, eax
jne 0x100313d5
push 4
add ebx, 0xe5
push ebx
call edi
test eax, eax
jne 0x100313d5
mov al, byte [ebx]
test al, al
je 0x100313d5
mov eax, dword [ebp + 8]
cmp eax, 0x1c
je 0x100312a6
cmp eax, 0x9c
jne 0x100313d5
mov ebx, dword [esi + 0x64]
test ebx, ebx
je 0x100313d5
push 4
push ebx
call edi
test eax, eax
jne 0x100313d5
mov ecx, 0x10b7b10
call fcn.1000df50
cmp ebx, eax
sete al
test al, al
je 0x100313d5
push 1
push dword [esi + 0x60]
mov ecx, esi
call fcn.1002f180
lea eax, [ebp + 9]
mov word [ebp + 8], 0x75
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp + 9], 0
call fcn.10003b10
mov dword [ebp - 4], 0
mov ebx, dword [esi + 0x64]
test ebx, ebx
je 0x1003131a
push 4
push ebx
call edi
test eax, eax
jne 0x1003131a
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call dword [0x10049010]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10031333
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.10004bb0
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 0x1003135f
mov cl, byte [ebp - 0x1c]
jmp 0x10031350
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x10], 0
push eax
lea ecx, [ebp - 0x34]
call fcn.10003b10
mov dword [ebp - 4], 1
mov ebx, dword [esi + 0x64]
test ebx, ebx
je 0x10031392
push 4
push ebx
call edi
test eax, eax
jne 0x10031392
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call dword [0x10049054]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100313ab
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10004bb0
mov esi, dword [esi + 0x64]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
test esi, esi
je 0x100313d5
push 4
push esi
call edi
test eax, eax
jne 0x100313d5
mov ecx, esi
call dword [0x10049018]
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 0x10038300
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100425c8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10050018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x1005223c], eax
mov edi, dword [ebx]
push 4
push edi
call esi
test eax, eax
jne 0x100384b0
push 4
add edi, 0xe5
push edi
call esi
test eax, eax
jne 0x100384b0
mov al, byte [edi]
test al, al
je 0x100384b0
cmp byte [ebp + 8], 0
jne 0x100384b0
mov cl, 0x1f
mov dword [ebp - 0x3c], 0x6b715a1f
mov dword [ebp - 0x38], 0x4b3f6d7a
xor eax, eax
mov dword [ebp - 0x34], 0x563f787e
mov word [ebp - 0x30], 0x5b
nop
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1003839f
mov cl, byte [ebp - 0x3c]
jmp 0x10038390
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003b10
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x7e
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10003b10
mov byte [ebp - 4], 1
mov edi, dword [ebx + 8]
test edi, edi
je 0x100383ec
push 4
push edi
call esi
test eax, eax
jne 0x100383ec
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x10049010]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10038402
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10004bb0
mov edi, dword [ebx + 8]
test edi, edi
je 0x1003843c
push 4
push edi
call esi
test eax, eax
jne 0x1003843c
push 4
add edi, 0x10c
push edi
call esi
test eax, eax
jne 0x1003843c
mov eax, dword [edi]
test eax, eax
je 0x1003843c
lea edi, [eax + 0x130]
push 4
push edi
call esi
test eax, eax
jne 0x1003843c
mov dword [edi], 0xffffffff
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10003b10
mov byte [ebp - 4], 2
mov edi, dword [ebx + 8]
test edi, edi
je 0x10038470
push 4
push edi
call esi
test eax, eax
jne 0x10038470
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x10049054]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10038486
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10004bb0
mov edi, dword [ebx + 8]
test edi, edi
je 0x1003849e
push 4
push edi
call esi
test eax, eax
jne 0x1003849e
mov ecx, edi
call dword [0x10049018]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100384b0
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10004bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003eb30
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003ab90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100426d8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10050018]
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.1003a920
lea ecx, [ebp - 0x7c]
call fcn.1003a9d0
push esi
lea ecx, [ebp - 0x7c]
call fcn.1003aac0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1003ac37
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10004bb0
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.1003eb30
mov esp, ebp
pop ebp
ret
Function at 0x1003ba90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100427de
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10050018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1003bac6
xor ebx, ebx
jmp 0x1003bacf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003bb11
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1003bb50
test esi, esi
jne 0x1003bb54
push 0x1003b310
push 0x10051b10
call fcn.1003b000
mov eax, dword [section..data]
add esp, 8
cmp eax, 0xffffffff
je 0x1003bb11
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003bb3e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003bb3e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1003bb96
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003bb7f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1003bb54
cmp dword [ebx + 0x18], 0
je 0x1003bae0
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003bbbd
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003bbbd
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1003b330
cmp dword [ebx + 0x18], 0
jne 0x1003bba0
jmp 0x1003bae0
Function at 0x1003be60
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.1003c030
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003bf3d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10050004]
jb 0x1003beaa
mov eax, dword [ebp - 4]
cmp eax, dword [0x10050008]
ja 0x1003beaa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003be7a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
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 0x1003becf
jmp 0x1003bf3d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003bf23
cmp dword [ebp - 0x18], 0x10000
jb 0x1003bf23
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 0x1003bf06
mov eax, dword [ebp - 8]
jmp 0x1003bf3f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003bf16
xor eax, eax
jmp 0x1003bf3f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003bf38
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003c030
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003be7a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003bf50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003c060
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003c025
mov edx, dword [ebp - 4]
cmp edx, dword [0x10050004]
jb 0x1003bf95
mov eax, dword [ebp - 4]
cmp eax, dword [0x10050008]
ja 0x1003bf95
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003bf65
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
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 0x1003bfba
jmp 0x1003c025
cmp dword [ebp - 0x14], 0x10000
jne 0x1003c00e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003c00e
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 0x1003bff1
mov eax, dword [ebp - 8]
jmp 0x1003c027
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003c001
xor eax, eax
jmp 0x1003c027
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003c020
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003c060
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003bf65
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003c090
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.1003c480
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10051b24], 0
jne 0x1003c0cd
cmp dword [0x10051b20], 0
je 0x1003c0cd
mov eax, dword [0x10051b20]
mov dword [0x10051b24], eax
cmp dword [0x10051b24], 0
je 0x1003c14a
mov ecx, dword [0x10051b24]
cmp dword [ecx + 8], 0
je 0x1003c14a
mov edx, dword [0x10051b24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003c14a
mov ecx, dword [0x10051b24]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003c14a
mov eax, dword [0x10051b24]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1003c119
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1003c120
xor eax, eax
jmp 0x1003c269
mov ecx, dword [0x10051b24]
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 sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1003c269
mov edx, dword [0x10051b20]
mov dword [0x10051b24], edx
jmp 0x1003c166
mov eax, dword [0x10051b24]
mov ecx, dword [eax + 4]
mov dword [0x10051b24], ecx
cmp dword [0x10051b24], 0
je 0x1003c1a6
cmp dword [0x10051b24], 0
je 0x1003c1a4
mov edx, dword [0x10051b24]
cmp dword [edx + 8], 0
je 0x1003c1a4
mov eax, dword [0x10051b24]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1003c1a4
mov edx, dword [0x10051b24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1003c1a4
jmp 0x1003c0fe
jmp 0x1003c158
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.1003c270
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003c267
mov eax, dword [ebp - 0x18]
mov dword [0x10051b24], eax
mov ecx, dword [0x10051b24]
mov dword [ecx], 0x52727464
mov edx, dword [0x10051b24]
mov dword [edx + 8], 0
mov eax, dword [0x10051b24]
mov ecx, dword [0x10051b20]
mov dword [eax + 4], ecx
mov edx, dword [0x10051b24]
mov dword [0x10051b20], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10051b24]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1003c237
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1003c257
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 0x1003c22e
mov eax, dword [0x10051b24]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003c0fe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003cfb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10051b20]
mov dword [ebp - 4], eax
jmp 0x1003cfc9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003cff0
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 0x1003cfee
call sub.KERNEL32.dll_GetLastError
jmp 0x1003cff2
jmp 0x1003cfc0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003d490
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 [0x10051b30], eax
je 0x1003d4b4
mov eax, 0x10dd
jmp 0x1003d65c
cmp dword [0x10051b34], 0
je 0x1003d4c7
mov eax, dword [0x10051b34]
jmp 0x1003d65c
cmp dword [ebp + 0xc], 0
jne 0x1003d4d7
mov eax, 0x57
jmp 0x1003d65c
cmp dword [ebp + 8], 0
jne 0x1003d4e7
mov eax, 6
jmp 0x1003d65c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1003d510
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10051b34], ecx
mov edx, dword [ebp + 8]
mov dword [0x10051b38], edx
mov eax, dword [ebp - 8]
jmp 0x1003d65c
push 0x18
call fcn.1003ed96
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003d56b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10051b34], ecx
cmp dword [ebp - 4], 0
je 0x1003d55a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1003f0ff
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10051b38], ecx
mov eax, dword [ebp - 8]
jmp 0x1003d65c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003d470
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003d470
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 0x1003d5ab
cmp dword [ebp - 0xc], 0x1e
jbe 0x1003d5c7
mov dword [ebp - 8], 9
cmp dword [0x10051b28], 0
je 0x1003d5c2
jmp 0x1003d539
jmp 0x1003d530
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003d5ee
mov dword [ebp - 8], 9
cmp dword [0x10051b28], 0
je 0x1003d5e9
jmp 0x1003d539
jmp 0x1003d530
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 0x1003d619
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003d530
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 [0x10051b40]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10051b40], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8