joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100475f0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1006f184]
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 eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x48]
push ebx
push ecx
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x49], bl
call fcn.10047430
add esp, 8
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], ebx
jae 0x10047642
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10047711
lea edx, [ebp - 0x2c]
push 1
push edx
call fcn.10047430
lea eax, [ebp - 0x48]
push eax
call fcn.10046a90
add esp, 0xc
test al, al
jne 0x100476c9
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10046a90
add esp, 4
test al, al
je 0x100476c9
mov ecx, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x1004769d
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x100476a8
lea eax, [ebp - 0x2c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100476ce
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x100476c0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100476ce
mov esi, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x100476d9
lea eax, [ebp - 0x2c]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call edi
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x100476fc
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
je 0x10047748
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x1004773c
mov edx, dword [ebp - 0x54]
push ebx
lea ecx, [ebp - 0x50]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004773c
mov bl, 1
cmp dword [ebp - 0x50], edi
je 0x1004773f
mov bl, byte [ebp - 0x49]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004774a
mov bl, al
cmp dword [ebp - 0x34], 8
jb 0x1004775c
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
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.1004c4fe
mov esp, ebp
pop ebp
ret 4
Function at 0x10047780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1006f184]
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 eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x48]
push ebx
push ecx
mov dword [ebp - 0x50], eax
call fcn.10047430
add esp, 8
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], ebx
jae 0x100477cf
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004783d
lea edx, [ebp - 0x2c]
push 1
push edx
call fcn.10047430
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], 8
jae 0x10047805
lea eax, [ebp - 0x2c]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x10047828
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp esi, 0xffffffff
je 0x10047862
mov eax, dword [ebp - 0x50]
push ebx
lea edx, [ebp - 0x4c]
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004785b
cmp dword [ebp - 0x4c], 0x10
jne 0x1004785b
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 8
jb 0x10047874
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
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.1004c4fe
mov esp, ebp
pop ebp
ret 4
Function at 0x10048580
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
pop ebp
ret
Function at 0x100499e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x120]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10c], 3
mov dword [ebp - 0x11c], 0x104
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
call edi
test eax, eax
jne 0x10049bb0
push esi
push str._sConnection
push 0xffffffffffffffff
lea ecx, [ebp - 0x108]
push 0x103
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf_s]
mov ecx, dword [ebp - 0x120]
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push ecx
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10049ba7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [ebp - 0x11c]
push edx
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push ebx
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x10049b9e
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x11c], 0x103
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x118]
push eax
push ebx
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x10049b9e
cmp dword [ebp - 0x110], 1
jne 0x10049b88
mov esi, dword [sym.imp.MSVCR100.dll_strncmp]
push 3
lea edx, [ebp - 0x108]
push 0x1005d454
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x10049b5c
mov dword [ebp - 0x10c], ebx
jmp 0x10049b9e
cmp dword [ebp - 0x110], 1
jne 0x10049b88
push 3
lea eax, [ebp - 0x108]
push 0x1005d454
push eax
call esi
add esp, 0xc
test eax, eax
je 0x10049b88
mov dword [ebp - 0x10c], 2
jmp 0x10049b9e
xor ecx, ecx
cmp dword [ebp - 0x110], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x114]
push edx
call edi
mov eax, dword [ebp - 0x120]
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10049bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.1004cae0
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xd
lea eax, [ebp - 0x210]
push str.iphlpapi.dll
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x2aa0], esi
test esi, esi
jne 0x10049c5e
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10049d4f
lea edx, [ebp - 0x2aa4]
push edx
lea ecx, [ebp - 0x2a90]
push ecx
mov dword [ebp - 0x2aa4], 0x2880
call eax
test eax, eax
jne 0x10049d4f
mov eax, edi
lea edx, [ebp - 0x2a98]
sub eax, edx
lea esi, [ebp - 0x2a90]
mov dword [ebp - 0x2a9c], 3
mov dword [ebp - 0x2aa8], eax
push ebx
lea eax, [esi + 8]
push eax
call fcn.100499e0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2a98], ecx
mov word [ebp - 0x2a94], cx
mov ebx, dword [ebp - 0x2aa8]
lea edx, [ebp + ecx - 0x2a98]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
jne 0x10049cec
inc ecx
cmp ecx, 6
jb 0x10049cd0
jmp 0x10049cfd
cmp dword [esi + 0x1a0], 6
jne 0x10049d3e
cmp dword [ebp - 0x2a9c], eax
jle 0x10049d3e
movzx ecx, byte [esi + 0x194]
mov byte [edi], cl
movzx edx, byte [esi + 0x195]
mov byte [edi + 1], dl
movzx ecx, byte [esi + 0x196]
mov byte [edi + 2], cl
movzx edx, byte [esi + 0x197]
mov byte [edi + 3], dl
movzx ecx, byte [esi + 0x198]
mov byte [edi + 4], cl
movzx edx, byte [esi + 0x199]
mov byte [edi + 5], dl
mov dword [ebp - 0x2a9c], eax
mov esi, dword [esi]
test esi, esi
jne 0x10049cb5
mov esi, dword [ebp - 0x2aa0]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea ecx, [ebp - 0x2a98]
mov dword [ebp - 0x2a98], eax
mov word [ebp - 0x2a94], ax
sub edi, ecx
lea ecx, [ecx]
lea ecx, [ebp + eax - 0x2a98]
mov dl, byte [edi + ecx]
cmp dl, byte [ecx]
jne 0x10049d9d
inc eax
cmp eax, 6
jb 0x10049d70
mov al, 1
xor ecx, ecx
test al, al
sete al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x10049d86
Function at 0x10049df0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1007319c], 0
je 0x10049e06
xor eax, eax
jmp 0x1004a022
cmp dword [0x10073198], 0
je 0x10049e19
mov eax, dword [0x10073198]
jmp 0x1004a022
push 0x24
push 0
push 0x10073174
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10073174], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x10073178], eax
cmp dword [0x10073178], 0
jne 0x10049ebe
mov dword [0x1007319c], 1
cmp dword [0x10073178], 0
je 0x10049e71
mov eax, dword [0x10073178]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1007317c], 0
mov dword [0x10073180], 0
mov dword [0x10073184], 0
mov dword [0x10073188], 0
mov dword [0x1007318c], 0
mov dword [0x10073190], 0
mov dword [0x10073194], 0
xor eax, eax
jmp 0x1004a022
push str.ImagehlpApiVersionEx
mov ecx, dword [0x10073178]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1007317c], eax
push str.SymInitialize
mov edx, dword [0x10073178]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10073180], eax
push str.SymSetOptions
mov eax, dword [0x10073178]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10073184], eax
push str.SymGetOptions
mov ecx, dword [0x10073178]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10073188], eax
push str.SymLoadModule64
mov edx, dword [0x10073178]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1007318c], eax
push str.SymGetModuleInfo64
mov eax, dword [0x10073178]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10073190], eax
push str.SymFromName
mov ecx, dword [0x10073178]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10073194], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x1007317c], 0
je 0x10049fa3
cmp dword [0x10073180], 0
je 0x10049fa3
cmp dword [0x1007318c], 0
je 0x10049fa3
cmp dword [0x10073190], 0
je 0x10049fa3
cmp dword [0x10073194], 0
jne 0x10049fa8
jmp 0x10049e52
lea ecx, [ebp - 8]
push ecx
call dword [0x1007317c]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x10049fc0
jmp 0x10049e52
push 0
push 0
mov eax, dword [0x10073174]
push eax
call dword [0x10073180]
test eax, eax
jne 0x10049fd9
jmp 0x10049e52
cmp dword [0x10073188], 0
je 0x1004a013
cmp dword [0x10073184], 0
je 0x1004a013
call dword [0x10073188]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x10073184]
mov dword [0x10073198], 0x10073174
mov eax, dword [0x10073198]
mov esp, ebp
pop ebp
ret
Function at 0x1004a470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10066c78
push 0x1004cb7b
mov eax, dword fs:[0]
push eax
add esp, 0xffffffb8
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
push 0
lea eax, [ebp - 0x34]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
ja 0x1004a4ef
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1004a615
cmp dword [ebp - 0x24], 0x1000
jne 0x1004a510
mov eax, dword [ebp - 0x20]
and eax, 0xff
cmp eax, 1
je 0x1004a510
mov ecx, dword [ebp - 0x20]
and ecx, 0x100
je 0x1004a531
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1004a615
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x1004a566
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x48]
jmp 0x1004a615
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x1004a59b
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x4c]
jmp 0x1004a615
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x14]
test eax, eax
jne 0x1004a5c4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x50]
jmp 0x1004a615
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x54]
jmp 0x1004a615
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1004a8a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100731a0]
mov dword [ebp - 4], eax
jmp 0x1004a8b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1004a8d6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1004a8b0
mov esp, ebp
pop ebp
ret
Function at 0x1004a8e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100731b0], eax
je 0x1004a8fe
mov eax, 0x10dd
jmp 0x1004a9df
mov eax, dword [0x100731c0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004a97c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1004a95a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1004a95a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1004aa50
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1004a906
mov dword [0x100731c0], 0
call fcn.1004a9f0
mov ecx, dword [0x100731bc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x1004a9c9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x1004a994
mov dword [0x100731bc], 0
mov dword [0x100731b0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004af50
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1004af65
xor eax, eax
jmp 0x1004afda
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x1004af92
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x1004afd5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x1004afd3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x1004afcf
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1004afd3
xor eax, eax
jmp 0x1004afda
jmp 0x1004af89
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1004b080
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100731b4], 0
je 0x1004b099
mov eax, dword [0x100731b4]
jmp 0x1004b139
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1004b0ab
xor eax, eax
jmp 0x1004b139
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1004b101
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x1004b0ea
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x100731b4], eax
mov dword [0x100731b8], 0
mov eax, dword [ebp - 4]
jmp 0x1004b139
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1004b11b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1004b0cb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x100731bc]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x100731bc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1004b950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004ba20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004ba0c
cmp dword [ebp - 4], 0x50000000
jb 0x1004b98c
cmp dword [ebp - 4], 0x80000000
ja 0x1004b98c
mov dword [ebp - 4], 0x80010000
jmp 0x1004b965
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004b9b2
jmp 0x1004ba0c
cmp dword [ebp - 0x10], 0x10000
jne 0x1004b9f5
cmp dword [ebp - 0x14], 0x10000
jb 0x1004b9f5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1004b9e8
mov eax, dword [ebp - 0x24]
jmp 0x1004ba0e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004ba07
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.1004ba20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004b965
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1004ba40
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.1004bb10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004bb04
cmp dword [ebp - 4], 0x50000000
jb 0x1004ba81
cmp dword [ebp - 4], 0x80000000
ja 0x1004ba81
mov dword [ebp - 4], 0x4fff0000
jmp 0x1004ba5a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004baa7
jmp 0x1004bb04
cmp dword [ebp - 0x10], 0x10000
jne 0x1004baea
cmp dword [ebp - 0x14], 0x10000
jb 0x1004baea
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1004badd
mov eax, dword [ebp - 0x24]
jmp 0x1004bb06
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004baff
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.1004bb10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004ba5a
xor eax, eax
mov esp, ebp
pop ebp
ret