joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret
Function at 0x431007
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], dl
inc eax
add byte [eax + 0x46a9090], dl
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2cbb048e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..reloc
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x399a54ad
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4425c6
Capabilities:
Encode data using xor

Disassembly:
xchg ebx, eax
cmc
and al, 0x36
jg 0x442561
sub byte [esi + 0x37], 0x6f
add dword [edi], ebp
pop edx
in al, dx
jnp 0x442544
pop ds
cmp al, 0x20
xor eax, 0xf171baaa
push es
jae 0x4425b7
fisttp word [0x98d71d9]
xchg ebp, eax
fnstenv [ecx - 0x73]
or dword [ebp - 0x4e581b4], edx
dec esp
jle 0x442583
sti
add ebx, ebp
inc esi
ret 0x33b8
pop edi
pop ebp
fsubr qword [eax + 0x55]
pop esp
test byte [eax - 0x6e], 0x7e
lahf
jno 0x44254a
invalid
sbb byte [eax + 0x5244f9ba], 0xb8
loop 0x4425ec
push 0x5d4fe9
add byte fs:[0xfdb86f1c], 0xb0
pop edx
push ebx
mov gs, word [ebx + edx*2 - 0x7c]
loope 0x44259c
insb byte es:[edi], dx
push ebx
test cl, ah
sti
mov eax, es
push 0x68301988
cdq
mov ch, 0x50
push cs
shl byte [ecx], cl
rol esp, 1
invalid
mov bh, 0xab
int1
pop edi
lea eax, [ebx - 0x31]
pop ds
pop esi
invalid
enter 0xffffffffffff82cd, 0xfffffffffffffffb
jecxz 0x442566
and ch, bh
std
test al, 0x82
jl 0x442573
int1
push cs
invalid
cwde
dec edx
push edi
mov byte [0x297e1ea9], al
add byte [esi], bh
mov esp, 0xaecb7317
fisttp qword [ebp + 8]
dec edi
or bl, cl
invalid

Function at 0x5f596d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fe398
cmp edx, dword [eax]
je 0x5f598f
add eax, 8
inc ecx
cmp eax, 0x5fe428
jl 0x5f5980
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fe398]
jne 0x5f5abd
mov eax, dword [0x606d28]
cmp eax, 1
je 0x5f5a97
test eax, eax
jne 0x5f59c0
cmp dword [0x5fe2c0], 1
je 0x5f5a97
cmp edx, 0xfc
je 0x5f5abd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f59f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f6350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f67e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f5a3a
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f67e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5fab44
push edi
call fcn.005f86b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f6350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f6360
lea eax, [ebp - 0xa0]
push 0x5fab24
push eax
call fcn.005f6360
push dword [esi + 0x5fe39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f6360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f8624
add esp, 0x2c
pop edi
jmp 0x5f5abd
lea eax, [ebp + 8]
lea esi, [esi + 0x5fe39c]
push 0
push eax
push dword [esi]
call fcn.005f67e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100027b0
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
movaps xmm0, xmmword [0x1000d460]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
movaps xmm0, xmmword [0x1000d450]
movups xmmword [ebp - 0x24], xmm0
movaps xmm0, xmmword [str.8_v_4_2____juk]
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x2e
jb 0x100027e0
push 0
push 1
lea eax, [ebp - 0x33]
mov byte [ebp - 5], 0
push eax
push 0
push 0x10010794
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100028cc
push 0x10010790
push 0
push 0
push 0x8004
push dword [0x10010794]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100028cc
movaps xmm0, xmmword [0x1000d440]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x3c643235
movaps xmm0, xmmword [0x1000d4b0]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0xc], 0x36602614
movaps xmm0, xmmword [0x1000d4d0]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0x75242e01
mov word [ebp - 4], 0x29
nop
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x3c
jb 0x10002870
push 1
push 0x3c
lea eax, [ebp - 0x3f]
mov byte [ebp - 3], 0
push eax
push dword [0x10010790]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100028cc
push 0x1001078c
push 0x800000
push dword [0x10010790]
push 0x6801
push dword [0x10010794]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x100028cc
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 [0x10010788], eax
call fcn.10009f10
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call fcn.1000a3e0
push 0x100026a0
push 0x10010784
call fcn.10009c20
call fcn.10009f70
push 4
push 0x60f6e0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000293b
mov dword [0x10010784], 0x60f6e0
call fcn.10009f10
call esi
push eax
call fcn.1000a3e0
push 0x100026a0
push 0x10010784
call fcn.10009790
call fcn.10009f70
call fcn.10009f10
call esi
push eax
call fcn.1000a3e0
push 0x100026d0
push 0x10010780
call fcn.10009c20
call fcn.10009f70
push 4
push 0x60eab0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10002998
mov dword [0x10010780], 0x60eab0
call fcn.10009f10
call esi
push eax
call fcn.1000a3e0
push 0x100026d0
push 0x10010780
call fcn.10009790
call fcn.10009f70
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10010040]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [str.8J_YUkWLN_n]
push ebx
push esi
mov ebx, edx
mov dword [esp + 0xc], ecx
push edi
mov dword [esp + 0x14], ebx
xor ecx, ecx
movups xmmword [esp + 0x18], xmm0
mov byte [esp + 0x28], 0
mov al, byte [esp + 0x18]
xor byte [esp + ecx + 0x19], al
inc ecx
cmp ecx, 0xf
jb 0x10005c84
sub esp, 0x18
mov byte [esp + 0x40], 0
lea eax, [esp + 0x31]
mov ecx, esp
push eax
call fcn.10002e60
lea ecx, [esp + 0x44]
call fcn.100083d0
mov edi, dword [esp + 0x44]
xor edx, edx
add esp, 0x18
mov dword [esp + 0xc], edx
test ebx, ebx
mov ebx, dword [esp + 0x40]
jle 0x10005d03
cmp ebx, 0xf
lea ecx, [esp + 0x2c]
cmova ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005cd1
sub ecx, esi
mov eax, edx
cmp ebx, 0xf
lea esi, [esp + 0x2c]
cmova esi, edi
xor edx, edx
div ecx
mov ecx, dword [esp + 0x10]
mov al, byte [edx + esi]
mov edx, dword [esp + 0xc]
xor byte [ecx + edx], al
inc edx
mov dword [esp + 0xc], edx
cmp edx, dword [esp + 0x14]
jl 0x10005cc4
cmp ebx, 0xf
jbe 0x10005d35
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10005d2b
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10005d2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.1000b2ce
add esp, 8
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000b2c0
mov esp, ebp
pop ebp
ret
Function at 0x10007970
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x54], eax
push 0x40
push 0
mov dword [ebp - 0x58], edi
lea eax, [edi + 1]
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movq qword [edi + 0x44], xmm0
lea esi, [edi + 0x4c]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], 0
mov eax, dword [eax]
lea ebx, [edi + 0x5c]
movups xmmword [esi], xmm0
lea ecx, [ebp - 0x50]
add esp, 0xc
movups xmmword [ebx], xmm0
mov byte [edi], 0
cmp eax, dword [ecx]
jne 0x100079d6
movq qword [edi + 0x44], xmm0
jmp 0x100079e4
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x10007a0d
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.10008230
cmp byte [edi], 0
jne 0x10007af7
xor ecx, ecx
lea edx, [edi + 0x46]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0xc], al
movzx eax, byte [edx - 5]
mov byte [ebp + ecx - 0xb], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0xa], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 9], al
add ecx, 4
cmp ecx, 8
jb 0x10007a24
mov ecx, dword [edi + 0x44]
mov eax, 0x78
shr ecx, 3
mov edi, 0x38
and ecx, 0x3f
mov byte [ebp - 0x52], 0
sub eax, ecx
mov byte [ebp - 0x52], 0
sub edi, ecx
cmp ecx, 0x38
mov cl, 0x22
cmovae edi, eax
mov byte [ebp - 0x54], cl
mov al, 0xa2
xor al, cl
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 0x53], al
lea eax, [ebp - 0x53]
push 1
push eax
call fcn.10008230
push 0x40
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x4c]
push edi
mov edi, dword [ebp - 0x58]
mov ecx, edi
push eax
call fcn.10008230
push 8
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.10008230
mov edx, 4
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 4]
mov byte [ebx], al
lea ebx, [ebx + 4]
movzx eax, byte [esi - 3]
mov byte [ebx - 3], al
movzx eax, byte [esi - 2]
mov byte [ebx - 2], al
mov cl, byte [esi - 1]
mov byte [ebx - 1], cl
sub edx, 1
jne 0x10007ad0
mov byte [edi], 1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b2c0
mov esp, ebp
pop ebp
ret 4
Function at 0x100082f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10010040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
cmp byte [ecx], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ebx
jne 0x1000833a
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x62
push eax
mov ecx, ebx
mov byte [ebp - 0x2b], 0
call fcn.10002e60
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b2c0
mov esp, ebp
pop ebp
ret 4
push esi
xor eax, eax
push edi
mov dword [ebp - 0x2c], eax
xor edi, edi
movzx esi, byte [ecx + eax + 0x5c]
mov dl, 0x11
mov ah, 0x23
mov byte [ebp - 0x2f], 0
xor dl, ah
mov byte [ebp - 0x34], ah
mov al, 6
mov byte [ebp - 0x31], dl
xor al, ah
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x33], al
mov cl, 0x13
xor cl, ah
mov bl, 0x5b
xor bl, ah
mov byte [ebp - 0x32], cl
push esi
lea eax, [ebp - 0x33]
mov byte [ebp - 0x30], bl
push eax
mov eax, 0x21
sub eax, edi
push eax
lea eax, [ebp - 0x28]
add eax, edi
push eax
call fcn.10008470
mov eax, dword [ebp - 0x2c]
add edi, 2
mov ecx, dword [ebp - 0x38]
inc eax
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp edi, 0x20
jb 0x10008343
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 8], 0
call fcn.10002e60
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000b2c0
mov esp, ebp
pop ebp
ret 4

Function at 0x100085f0
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.100087c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100086cd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000863a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10010004]
ja 0x1000863a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000860a
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 0x1000865f
jmp 0x100086cd
cmp dword [ebp - 0x14], 0x10000
jne 0x100086b3
cmp dword [ebp - 0x18], 0x10000
jb 0x100086b3
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 0x10008696
mov eax, dword [ebp - 8]
jmp 0x100086cf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100086a6
xor eax, eax
jmp 0x100086cf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100086c8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100087c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000860a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100086e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100087f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100087b5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10008725
mov eax, dword [ebp - 4]
cmp eax, dword [0x10010004]
ja 0x10008725
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100086f5
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 0x1000874a
jmp 0x100087b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000879e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000879e
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 0x10008781
mov eax, dword [ebp - 8]
jmp 0x100087b7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10008791
xor eax, eax
jmp 0x100087b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100087b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100087f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100086f5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10008820
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.10008c10
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100103fc], 0
jne 0x1000885d
cmp dword [0x100103f8], 0
je 0x1000885d
mov eax, dword [0x100103f8]
mov dword [0x100103fc], eax
cmp dword [0x100103fc], 0
je 0x100088da
mov ecx, dword [0x100103fc]
cmp dword [ecx + 8], 0
je 0x100088da
mov edx, dword [0x100103fc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100088da
mov ecx, dword [0x100103fc]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100088da
mov eax, dword [0x100103fc]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100088a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100088b0
xor eax, eax
jmp 0x100089f9
mov ecx, dword [0x100103fc]
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 0x100089f9
mov edx, dword [0x100103f8]
mov dword [0x100103fc], edx
jmp 0x100088f6
mov eax, dword [0x100103fc]
mov ecx, dword [eax + 4]
mov dword [0x100103fc], ecx
cmp dword [0x100103fc], 0
je 0x10008936
cmp dword [0x100103fc], 0
je 0x10008934
mov edx, dword [0x100103fc]
cmp dword [edx + 8], 0
je 0x10008934
mov eax, dword [0x100103fc]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10008934
mov edx, dword [0x100103fc]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10008934
jmp 0x1000888e
jmp 0x100088e8
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.10008a00
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100089f7
mov eax, dword [ebp - 0x18]
mov dword [0x100103fc], eax
mov ecx, dword [0x100103fc]
mov dword [ecx], 0x52727464
mov edx, dword [0x100103fc]
mov dword [edx + 8], 0
mov eax, dword [0x100103fc]
mov ecx, dword [0x100103f8]
mov dword [eax + 4], ecx
mov edx, dword [0x100103fc]
mov dword [0x100103f8], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100103fc]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100089c7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100089e7
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 0x100089be
mov eax, dword [0x100103fc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000888e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10009740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100103f8]
mov dword [ebp - 4], eax
jmp 0x10009759
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10009780
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 0x1000977e
call sub.KERNEL32.dll_GetLastError
jmp 0x10009782
jmp 0x10009750
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10009c20
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 [0x10010408], eax
je 0x10009c44
mov eax, 0x10dd
jmp 0x10009dec
cmp dword [0x1001040c], 0
je 0x10009c57
mov eax, dword [0x1001040c]
jmp 0x10009dec
cmp dword [ebp + 0xc], 0
jne 0x10009c67
mov eax, 0x57
jmp 0x10009dec
cmp dword [ebp + 8], 0
jne 0x10009c77
mov eax, 6
jmp 0x10009dec
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10009ca0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1001040c], ecx
mov edx, dword [ebp + 8]
mov dword [0x10010410], edx
mov eax, dword [ebp - 8]
jmp 0x10009dec
push 0x18
call fcn.1000b2e1
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10009cfb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1001040c], ecx
cmp dword [ebp - 4], 0
je 0x10009cea
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000b2ce
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10010410], ecx
mov eax, dword [ebp - 8]
jmp 0x10009dec
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10009c00
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10009c00
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 0x10009d3b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10009d57
mov dword [ebp - 8], 9
cmp dword [0x10010400], 0
je 0x10009d52
jmp 0x10009cc9
jmp 0x10009cc0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10009d7e
mov dword [ebp - 8], 9
cmp dword [0x10010400], 0
je 0x10009d79
jmp 0x10009cc9
jmp 0x10009cc0
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 0x10009da9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10009cc0
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 [0x10010418]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10010418], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8