joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41693e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4770e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416981
cmp word [esi], dx
jne 0x416981
or byte [edi + eax + 0x28], 4
jmp 0x416986
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x416ad9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x416ab9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4169c8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4169fe
cmp eax, edx
jae 0x416a0a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4169a0
jmp 0x416ad9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416ab5
cmp dword [ebp - 0x14], 0
je 0x416ab5
mov eax, dword [ebx*4 + 0x4770e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416a8d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416a56
mov word [esi], cx
jmp 0x416a89
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4770e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4770e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4770e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416ad9
pop ebx
cmp word [ebp - 4], bx
jne 0x416a9e
cmp esi, dword [ebp + 0xc]
jne 0x416a9e
mov word [esi], bx
jmp 0x416ad6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417372
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416ad9
push 0xd
jmp 0x416ad2
mov ecx, dword [ebx*4 + 0x4770e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416ad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416ad9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x97400
push 0
call sub.kernel32.dll_GetCurrentThreadId
call sub.kernel32.dll_VirtualAlloc
call fcn.0049f73c
ret
Function at 0x100a5f42
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b7c50]
jne 0x100a5f4c
repz ret
jmp fcn.100a6f6c

Function at 0x100a7f77
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100a51ea
and dword [ebp - 4], 0
cmp dword [0x100b962c], 0
mov ebx, eax
jne 0x100a8028
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100a80d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100a80d9
push eax
call fcn.100a5178
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100b962c], eax
call esi
push eax
call fcn.100a5178
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100b9630], eax
call esi
push eax
call fcn.100a5178
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100b9634], eax
call esi
push eax
call fcn.100a5178
pop ecx
mov dword [0x100b963c], eax
test eax, eax
je 0x100a8028
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100a5178
pop ecx
mov dword [0x100b9638], eax
mov eax, dword [0x100b9638]
cmp eax, ebx
je 0x100a8080
cmp dword [0x100b963c], ebx
je 0x100a8080
push eax
call fcn.100a51f3
push dword [0x100b963c]
mov esi, eax
call fcn.100a51f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100a8080
test edi, edi
je 0x100a8080
call esi
test eax, eax
je 0x100a8077
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100a8077
test byte [ebp - 0xc], 1
jne 0x100a8080
or dword [ebp + 0x10], 0x200000
jmp 0x100a80b9
mov eax, dword [0x100b9630]
cmp eax, ebx
je 0x100a80b9
push eax
call fcn.100a51f3
pop ecx
test eax, eax
je 0x100a80b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100a80b9
mov eax, dword [0x100b9634]
cmp eax, ebx
je 0x100a80b9
push eax
call fcn.100a51f3
pop ecx
test eax, eax
je 0x100a80b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100b962c]
call fcn.100a51f3
pop ecx
test eax, eax
je 0x100a80d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100a80db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100a9560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.100a9560]
mov dword [ebp - 4], eax
mov dword [0x100b7494], 0x1a54
jmp 0x100a95ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax], 0x4550
je 0x100a9597
jmp 0x100a95c4
mov al, 1
test al, 1
jne 0x100a95ae
jmp 0x100a95a5
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov dword [ebp - 8], 0
jmp 0x100a959d
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x100a957b
jmp 0x100a95c6
jmp 0x100a95c6
mov eax, dword [ebp - 4]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 4], eax
mov dword [0x100b7494], 0x144b
jmp 0x100a958f
Function at 0x100a9ac0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x100b7494], 0x2553
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x100b7494]
sub eax, 0x7a0
mov dword [0x100b7498], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100b7494]
add eax, 0x1aa4
mov dword [0x100b7494], eax
mov dword [ebp - 0x10], 0
jmp 0x100a9b48
jmp 0x100a9b26
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add esp, 0x1c
pop ebp
ret
jmp 0x100a9c41
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100a9b48
jmp 0x100a9c46
mov dword [ebp - 4], 0
jmp 0x100a9b18
jmp 0x100a9b38
cmp dword [ebp - 0x10], 0x104
jge 0x100a9b75
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x100a9b64
jmp 0x100a9b75
mov eax, dword [0x100b7498]
sub eax, 0xee2
mov dword [0x100b7494], eax
jmp 0x100a9b2b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x6c
jne 0x100a9b3d
mov dword [0x100b7494], 0x1487
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x100a9c46
mov eax, dword [0x100b7494]
sub eax, 0x88f
mov dword [0x100b7494], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x100a9b38
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
add eax, 0xffffffec
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x64
jne 0x100a9b46
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x100a9c41
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
jne 0x100a9b26
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x100a9b16
mov dword [ebp - 4], 1
jmp 0x100a9b18
jmp 0x100a9b46
jmp 0x100a9b3d
Function at 0x401421
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x40144b
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
setg cl
jmp 0x40145f
mov eax, dword [ecx]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [eax + 0xc]
xor ecx, ecx
test eax, eax
setns cl
test ecx, ecx
jne 0x401465
and dword [esi], ecx
mov eax, ecx
pop esi
pop ebp
ret 0x10

Function at 0x4039eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40f168]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x105
push eax
lea eax, [ebp - 0x210]
mov dword [ebx], 9
push eax
xor esi, esi
call fcn.0040a2c6
lea eax, [ebp - 0x210]
push eax
call fcn.00407a21
mov edi, eax
test edi, edi
je 0x403a4d
push esi
push edi
call fcn.004096bb
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403a4d
test al, 0x10
jne 0x403a4d
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af83
mov esp, ebp
pop ebp
ret 8
Function at 0x40a6fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateProcessW]

Function at 0x40abb3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.0040a5d8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp dword [ebp + 0x14], eax
mov dword [ebp - 0x3c], esi
sete al
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
or eax, 0x40
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40ac0f
cmp dword [ebp - 4], 0
je 0x40ac0f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40af90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x40f168], eax
je 0x40afb2
cmp dword [0x40f168], ebx
jne 0x40b046
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x40f168
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x40f168
push 4
push edi
mov dword [0x40f168], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x40f168]
not eax
mov dword [0x411084], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b0fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x411828], 0
je 0x40b113
mov eax, dword [0x41182c]
jmp 0x40b1e3
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b162
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x41182c
push esi
push esi
push dword [0x411088]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b162
cmp dword [ebp - 8], 4
je 0x40b1bc
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x40b173
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b1c4
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x41182c
push esi
push esi
push dword [0x411088]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b1c4
cmp dword [ebp - 8], 4
jne 0x40b1c4
mov esi, dword [0x41182c]
jmp 0x40b1ca
mov dword [0x41182c], esi
cmp dword [ebp - 4], 0
mov byte [0x411828], 1
je 0x40b1e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b1e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSID
push 0x80000000
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40b279
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40b26f
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b26f
cmp dword [ebp + 8], edi
jne 0x40b26f
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x40b26f
cmp dword [ebp - 4], ebx
je 0x40b27b
push dword [ebp - 4]
call esi
jmp 0x40b27b
cmp dword [ebp - 4], ebx
je 0x40b279
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x40b285
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a220
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10036080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000a4ba
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10009b1f
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10002c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100094b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10036080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
push dword [0x10037ecc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000952a
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x100094f6
push esi
lea eax, [ebp - 0x44]
push 0x10032eec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea esi, [ebp - 0x44]
push esi
lea eax, [ebp - 0x24c]
push 0x10032ef0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x24c]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000a4a7
mov esp, ebp
pop ebp
ret

Function at 0x100095f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10036080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp eax, 3
ja case.default.0x10009613
jmp dword [eax*4 + 0x10009760]
call fcn.10003b30
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x10032e94
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10037ecc], eax
test eax, eax
jne 0x10009692
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x10032eb0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call fcn.100094b0
mov ecx, 2
mov dword [0x10037ea0], eax
call fcn.100094b0
mov ecx, 3
mov dword [0x10037ea8], eax
call fcn.100094b0
mov ecx, 4
mov dword [0x10037eac], eax
call fcn.100094b0
mov ecx, 5
mov dword [0x10037e9c], eax
call fcn.100094b0
mov ecx, str.DllCanUnloadNow
mov dword [0x10037e94], eax
call fcn.100094b0
mov ecx, 7
mov dword [0x10037eb0], eax
call fcn.100094b0
mov ecx, str.DllGetActivationFactory
mov dword [0x10037ea4], eax
call fcn.100094b0
mov ecx, str.DllGetClassObject
mov dword [0x10037e98], eax
call fcn.100094b0
mov ecx, str.DllRegisterServer
mov dword [0x10037e90], eax
call fcn.100094b0
mov ecx, str.DllUnregisterServer
mov dword [0x10037eb8], eax
call fcn.100094b0
mov dword [0x10037eb4], eax
jmp case.default.0x10009613
mov ecx, dword [0x10037ecc]
test ecx, ecx
je case.default.0x10009613
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1000a4a7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b630
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.1000b800
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000b70d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100360e0]
jb 0x1000b67a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100360e4]
ja 0x1000b67a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b64a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000efb0
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 0x1000b69f
jmp 0x1000b70d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b6f3
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b6f3
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 0x1000b6d6
mov eax, dword [ebp - 8]
jmp 0x1000b70f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b6e6
xor eax, eax
jmp 0x1000b70f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b708
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000b800
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b64a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000b720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000b830
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000b7f5
mov edx, dword [ebp - 4]
cmp edx, dword [0x100360e0]
jb 0x1000b765
mov eax, dword [ebp - 4]
cmp eax, dword [0x100360e4]
ja 0x1000b765
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b735
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000efb0
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 0x1000b78a
jmp 0x1000b7f5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b7de
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b7de
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 0x1000b7c1
mov eax, dword [ebp - 8]
jmp 0x1000b7f7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b7d1
xor eax, eax
jmp 0x1000b7f7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b7f0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000b830
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b735
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b860
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.1000bc50
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100376a4], 0
jne 0x1000b89d
cmp dword [0x100376a0], 0
je 0x1000b89d
mov eax, dword [0x100376a0]
mov dword [0x100376a4], eax
cmp dword [0x100376a4], 0
je 0x1000b91a
mov ecx, dword [0x100376a4]
cmp dword [ecx + 8], 0
je 0x1000b91a
mov edx, dword [0x100376a4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000b91a
mov ecx, dword [0x100376a4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000b91a
mov eax, dword [0x100376a4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000b8e9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000b8f0
xor eax, eax
jmp 0x1000ba39
mov ecx, dword [0x100376a4]
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.1000efb0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000ba39
mov edx, dword [0x100376a0]
mov dword [0x100376a4], edx
jmp 0x1000b936
mov eax, dword [0x100376a4]
mov ecx, dword [eax + 4]
mov dword [0x100376a4], ecx
cmp dword [0x100376a4], 0
je 0x1000b976
cmp dword [0x100376a4], 0
je 0x1000b974
mov edx, dword [0x100376a4]
cmp dword [edx + 8], 0
je 0x1000b974
mov eax, dword [0x100376a4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000b974
mov edx, dword [0x100376a4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000b974
jmp 0x1000b8ce
jmp 0x1000b928
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.1000ba40
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000ba37
mov eax, dword [ebp - 0x18]
mov dword [0x100376a4], eax
mov ecx, dword [0x100376a4]
mov dword [ecx], 0x52727464
mov edx, dword [0x100376a4]
mov dword [edx + 8], 0
mov eax, dword [0x100376a4]
mov ecx, dword [0x100376a0]
mov dword [eax + 4], ecx
mov edx, dword [0x100376a4]
mov dword [0x100376a0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100376a4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000ba07
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000ba27
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 0x1000b9fe
mov eax, dword [0x100376a4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000b8ce
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c780
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100376a0]
mov dword [ebp - 4], eax
jmp 0x1000c799
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000c7c0
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 0x1000c7be
call sub.KERNEL32.dll_GetLastError
jmp 0x1000c7c2
jmp 0x1000c790
xor eax, eax
mov esp, ebp
pop ebp
ret