joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100a7154]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x1001b722
mov eax, dword [edi]
test eax, eax
je 0x1001b6d1
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1001b6d1
test ebx, ebx
je 0x1001b6d1
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1001b6d1
cmp dword [ebp - 8], esi
je 0x1001b722
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1001b6f1
mov eax, dword [edi + 4]
cmp eax, 3
je 0x1001b6e5
cmp eax, 1
jne 0x1001b6f1
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006625f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006625f
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f960
Capabilities:
Allocate or change rwx memory
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 [0x1007e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x40
mov dword [ebp - 0x2f8], 0x2c341240
mov dword [ebp - 0x2f4], 0x24212f0c
xor eax, eax
mov dword [ebp - 0x2f0], 0x29323413
mov word [ebp - 0x2ec], 0x272e
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1001f9ba
mov cl, byte [ebp - 0x2f8]
jmp 0x1001f9a5
push ebx
mov byte [ebp - 0x2e8], 0x11
mov al, 0x7f
xor al, byte [ebp - 0x2e8]
mov bl, 0x7d
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x75
mov bh, ah
mov byte [ebp - 0x2d9], ah
xor bl, al
mov byte [ebp - 0x2de], 0
xor ah, al
mov byte [ebp - 0x2ea], 0
xor bh, al
mov byte [ebp - 0x2e3], ah
mov dh, dl
mov byte [ebp - 0x2e4], bl
xor dl, al
mov byte [ebp - 0x2e0], bh
xor dh, al
mov byte [ebp - 0x2e5], dl
mov cl, 0x65
mov byte [ebp - 0x2e1], dh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x3f
mov byte [ebp - 0x2e6], cl
xor ch, 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 - 0x2e2], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
je 0x1001fb32
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 0x1001fb32
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x1001fb32
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1001fb32
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1001fb32
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x100019d0
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1001fb32
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006625f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1006625f
mov esp, ebp
pop ebp
ret
Function at 0x1001fb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movaps xmm0, xmmword [0x100775a0]
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], 0x6e744872
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x787d79
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x1001fb76
mov byte [ebp - 0x10], 0x2b
mov al, 0x45
xor al, byte [ebp - 0x10]
mov bl, 0x47
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x4f
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, 0x5f
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 6], 0
mov ch, 5
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
je 0x1001fc24
push 0
push 0
push 0x11
test esi, esi
jne 0x1001fc15
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
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001fc30
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 0x1001fc6e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001fc72
cmp edx, esi
jne 0x1001fc57
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 0x1001fc92
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001fc96
cmp edx, esi
jne 0x1001fc7b
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 0x1001fcb6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001fcba
cmp edx, esi
jne 0x1001fc9f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001fce0
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001fd3c
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], edi
je 0x1001fd48
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x1001fd26
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001fe6e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1001fe6e
push eax
call esi
movaps xmm0, xmmword [str.eUoIhnvOsiz]
xor ecx, ecx
movups xmmword [ebp - 0x150], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x150]
xor byte [ebp + ecx - 0x14f], al
inc ecx
cmp ecx, 0xe
jb 0x1001fd80
mov byte [ebp - 0x140], 0x51
mov al, 0x3f
xor al, byte [ebp - 0x140]
mov bl, 0x3d
mov ah, bl
mov byte [ebp - 0x13f], al
mov al, byte [ebp - 0x140]
mov dl, 0x35
mov bh, ah
mov byte [ebp - 0x131], ah
xor bl, al
mov byte [ebp - 0x136], 0
xor ah, al
mov byte [ebp - 0x141], 0
xor bh, al
mov byte [ebp - 0x13b], ah
mov dh, dl
mov byte [ebp - 0x13c], bl
xor dl, al
mov byte [ebp - 0x138], bh
xor dh, al
mov byte [ebp - 0x13d], dl
mov cl, 0x25
mov byte [ebp - 0x139], dh
xor cl, al
mov byte [ebp - 0x136], 0
mov ch, 0x7f
mov byte [ebp - 0x13e], cl
xor ch, al
mov al, byte [ebp - 0x131]
xor al, byte [ebp - 0x140]
mov byte [ebp - 0x137], al
lea eax, [ebp - 0x14f]
push eax
lea eax, [ebp - 0x13f]
mov byte [ebp - 0x13a], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0xd78dd4
mov ebx, eax
call fcn.10013c90
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001fe8e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
jns 0x1001fe85
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]
cmp dword [ebp - 8], 0
ja 0x1001fe6e
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006625f
mov esp, ebp
pop ebp
ret
Function at 0x1001ffd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x14c
mov eax, dword [0x1007e040]
xor eax, esp
mov dword [esp + 0x148], eax
push esi
push 0x103
lea eax, [esp + 0x45]
mov byte [esp + 0x44], 0
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x1007f488
cmp dword [0x1007f49c], 0xf
cmova eax, dword [0x1007f488]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ah, 0x11
mov byte [esp + 8], 0
mov al, 0x44
mov byte [esp + 4], ah
xor al, ah
mov byte [esp + 8], 0
mov cl, 0x58
mov byte [esp + 5], al
mov dl, 0x4d
xor cl, ah
xor dl, ah
mov byte [esp + 6], cl
lea eax, [esp + 5]
mov byte [esp + 7], dl
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
movaps xmm0, xmmword [0x10076d10]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x2f
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x10
jb 0x10020072
lea eax, [esp + 0xd]
mov byte [esp + 0x1d], 0
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x34], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100200b4
sub ecx, edx
lea eax, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.10005220
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x100200dd
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp dword [esp + 0x34], 0xf
lea eax, [esp + 0x20]
push 0x8010
cmova eax, dword [esp + 0x24]
push 0
push 0
push 1
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi + 0x1fc], eax
test eax, eax
je 0x1002011e
cmp byte [esi + 0x200], 0
mov dword [esi + 0x14], eax
je 0x1002011e
push esi
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [esp + 0x34]
cmp ecx, 0xf
jbe 0x10020156
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002014c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002014c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [esp + 0x14c]
pop esi
xor ecx, esp
call fcn.1006625f
mov esp, ebp
pop ebp
ret
Function at 0x10021210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0x11
mov al, 0x73
xor al, byte [ebp - 0x10]
mov bl, 0x62
push esi
mov esi, ecx
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov ch, bl
mov dl, 0x70
mov byte [ebp - 7], 0
mov dh, 0x4e
mov byte [ebp - 7], 0
mov cl, 0x7e
mov ah, 0x74
push edi
mov bh, 0x72
xor dl, al
xor dh, al
mov byte [ebp - 0xe], dl
xor cl, al
mov byte [ebp - 0xb], dh
xor ch, al
mov byte [ebp - 9], cl
xor bl, al
mov byte [ebp - 8], ch
xor ah, al
mov byte [ebp - 0xd], bl
xor bh, al
mov byte [ebp - 0xc], ah
sub esp, 0x18
mov byte [ebp - 0xa], bh
mov edx, esp
lea ecx, [ebp - 0xf]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021282
sub ecx, edi
lea eax, [ebp - 0xf]
push ecx
push eax
mov ecx, edx
call fcn.10005220
mov ecx, dword [esi]
call fcn.100138b0
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 0x100212ba
mov dword [esi + 4], 0
movaps xmm0, xmmword [str.__4.]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x100212c7
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
lea ecx, [ebp - 0x13]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100212f7
sub ecx, edi
lea eax, [ebp - 0x13]
push ecx
push eax
mov ecx, edx
call fcn.10005220
mov ecx, dword [esi + 4]
call fcn.100138b0
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call ebx
test eax, eax
je 0x1002132a
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x10021344
cmp dword [0x10081b98], 0
mov ecx, 0x10b78ba
sete dl
call fcn.10013bc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10061ff0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b40d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x1007e040]
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 - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.10061e90
cmp byte [ebp - 0x84], 0
jne 0x10062141
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x10062085
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x10080950
call fcn.10061e90
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.10061e90
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x100620f4
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.10061f40
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x10062183
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10062179
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10062179
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
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.1006625f
mov esp, ebp
pop ebp
ret
Function at 0x10063560
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.10063730
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1006363d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1007e004]
jb 0x100635aa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1007e008]
ja 0x100635aa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1006357a
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 0x100635cf
jmp 0x1006363d
cmp dword [ebp - 0x14], 0x10000
jne 0x10063623
cmp dword [ebp - 0x18], 0x10000
jb 0x10063623
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 0x10063606
mov eax, dword [ebp - 8]
jmp 0x1006363f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10063616
xor eax, eax
jmp 0x1006363f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10063638
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10063730
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1006357a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10063650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10063760
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10063725
mov edx, dword [ebp - 4]
cmp edx, dword [0x1007e004]
jb 0x10063695
mov eax, dword [ebp - 4]
cmp eax, dword [0x1007e008]
ja 0x10063695
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10063665
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 0x100636ba
jmp 0x10063725
cmp dword [ebp - 0x14], 0x10000
jne 0x1006370e
cmp dword [ebp - 0x18], 0x10000
jb 0x1006370e
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 0x100636f1
mov eax, dword [ebp - 8]
jmp 0x10063727
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10063701
xor eax, eax
jmp 0x10063727
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10063720
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10063760
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10063665
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10063790
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.10063b80
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1008106c], 0
jne 0x100637cd
cmp dword [0x10081068], 0
je 0x100637cd
mov eax, dword [0x10081068]
mov dword [0x1008106c], eax
cmp dword [0x1008106c], 0
je 0x1006384a
mov ecx, dword [0x1008106c]
cmp dword [ecx + 8], 0
je 0x1006384a
mov edx, dword [0x1008106c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1006384a
mov ecx, dword [0x1008106c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1006384a
mov eax, dword [0x1008106c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10063819
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10063820
xor eax, eax
jmp 0x10063969
mov ecx, dword [0x1008106c]
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 0x10063969
mov edx, dword [0x10081068]
mov dword [0x1008106c], edx
jmp 0x10063866
mov eax, dword [0x1008106c]
mov ecx, dword [eax + 4]
mov dword [0x1008106c], ecx
cmp dword [0x1008106c], 0
je 0x100638a6
cmp dword [0x1008106c], 0
je 0x100638a4
mov edx, dword [0x1008106c]
cmp dword [edx + 8], 0
je 0x100638a4
mov eax, dword [0x1008106c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100638a4
mov edx, dword [0x1008106c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100638a4
jmp 0x100637fe
jmp 0x10063858
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.10063970
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10063967
mov eax, dword [ebp - 0x18]
mov dword [0x1008106c], eax
mov ecx, dword [0x1008106c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1008106c]
mov dword [edx + 8], 0
mov eax, dword [0x1008106c]
mov ecx, dword [0x10081068]
mov dword [eax + 4], ecx
mov edx, dword [0x1008106c]
mov dword [0x10081068], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1008106c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10063937
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10063957
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 0x1006392e
mov eax, dword [0x1008106c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100637fe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100646b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10081068]
mov dword [ebp - 4], eax
jmp 0x100646c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100646f0
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 0x100646ee
call sub.KERNEL32.dll_GetLastError
jmp 0x100646f2
jmp 0x100646c0
xor eax, eax
mov esp, ebp
pop ebp
ret