joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452cd8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45d57c]
cmp dword [eax + 0x30], 0
je 0x452d82
cmp dword [ebx + 0x94], 0
jne 0x452d7c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452c68
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452d7c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452d42
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452d7c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414240
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452d51
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453a9c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x453ad1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040474c
jmp 0x453ade
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046b0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454ed0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454f3e
mov eax, esi
call fcn.0043f740
test al, al
je 0x454f3e
mov eax, dword [ebx + 0x84]
call fcn.0043f3a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454f3e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x454f32
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f3a0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00437798
jmp 0x454f3e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454d0c
pop esi
pop ebx
ret

Function at 0x455b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455be6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.0040317c
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x455bf8
mov edx, ebx
call fcn.00405034
mov eax, dword [ebp - 0x24]
call fcn.00404fb8
mov dword [ebp - 0x16], eax
mov word [ebp - 0xe], 0x10
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455bed
lea eax, [ebp - 0x24]
call fcn.00404e3c
ret
Function at 0x455bfc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x455ca9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00404e3c
mov eax, dword [ebp - 4]
call fcn.00404fb8
push eax
push 0
call sub.KERNEL32.DLL_GetCurrentDirectoryW
mov ebx, eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004051bc
mov eax, dword [ebp - 4]
call fcn.00404fb8
push eax
push ebx
call sub.KERNEL32.DLL_GetCurrentDirectoryW
xor eax, eax
push ebp
push 0x455c8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404fb8
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455c93
mov eax, dword [ebp - 4]
call fcn.00404fb8
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
ret

Function at 0x455f54
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd88
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405200
lea ebx, [ebp - 0x258]
xor eax, eax
push ebp
push 0x45611c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x25c]
mov ecx, 0x45612c
mov edx, dword [ebp - 4]
call fcn.00405034
mov eax, dword [ebp - 0x25c]
call fcn.00404fb8
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4560db
xor eax, eax
push ebp
push 0x4560d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [ebx + 0x2c], 0x2e
je 0x4560ab
test byte [ebx], 0x10
je 0x4560ab
push dword [ebp - 4]
push 0x456138
lea eax, [ebp - 0x264]
lea edx, [ebx + 0x2c]
mov ecx, 0x104
call fcn.00404f8c
push dword [ebp - 0x264]
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.004050a4
mov eax, dword [ebp - 0x260]
call fcn.00455b70
test al, al
jne 0x4560ab
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 4]
push 0x456138
lea eax, [ebp - 0x278]
lea edx, [ebx + 0x2c]
mov ecx, 0x104
call fcn.00404f8c
push dword [ebp - 0x278]
lea eax, [ebp - 0x274]
mov edx, 3
call fcn.004050a4
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x270], eax
mov byte [ebp - 0x26c], 0xf
lea edx, [ebp - 0x270]
xor ecx, ecx
mov eax, 0x456144
call fcn.00409314
mov ecx, dword [ebp - 0x268]
mov dl, 1
mov eax, dword [0x4074d4]
call fcn.0040bc40
call fcn.004040a4
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FindNextFileW
test eax, eax
jne 0x455fe3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4560db
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456123
lea eax, [ebp - 0x278]
mov edx, 2
call fcn.00404e54
lea eax, [ebp - 0x268]
call fcn.0040465c
lea eax, [ebp - 0x264]
mov edx, 3
call fcn.00404e54
lea eax, [ebp - 4]
call fcn.00404e3c
ret
Function at 0x1003b014
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1003b023
pop dword [ebp - 0x40]
mov eax, 0x58ec1cd7
sub eax, 0x48e86cb4
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x14fa39a4
sub dword [ebp - 0x50], 0xc6a7f459
mov dword [ebp - 0x4c], 0xfd749743
add dword [ebp - 0x4c], 0x34beb502
mov dword [ebp - 0x48], 0x99b3b821
sub dword [ebp - 0x48], 0x4d6773f3
mov dword [ebp - 0x44], 0x9c210b6f
add dword [ebp - 0x44], 0x63def491
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xed6e8424
sub dword [ebp - 0x50], 0x78fc1ace
mov dword [ebp - 0x4c], 0x23e0e16f
add dword [ebp - 0x4c], 0x1d8b8006
mov dword [ebp - 0x48], 0xb45d5fc0
add dword [ebp - 0x48], 0xaf120cac
mov dword [ebp - 0x44], 0x8139b560
sub dword [ebp - 0x44], 0x8139b560
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x1cae82ee
sub eax, 0xcaaa26a
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x41484
push 0
call eax
mov ecx, 0xf588953a
sub ecx, 0xf5883ec8
mov edx, eax
mov ebx, 0x3156f2fa
sub ebx, 0x214fe0fa
add ebx, dword [ebp - 0x40]
mov esi, 0x735f3b38
sub esi, 0xcc799a84
xor dword [ebp - 0x34], 0x3d1a2ee2
mov edi, dword [ebx]
sub dword [ebp - 0x1c], esi
sub edi, esi
mov dword [ebp - 0x10], 0x35001f7e
mov dword [edx], edi
add edx, 0x4fb58d09
add edx, 0xb04a72fb
add ebx, 0x9cc5f514
sub ebx, 0x9cc5f510
loop 0x1003b140
add eax, 0x9621b8ec
add eax, 0x69df93af
mov ebx, eax
add eax, 0x1968ab9e
sub eax, 0x1968ab99
mov ecx, 0x274237d9
add ecx, 0xe8bdc827
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x1000ac00
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x101fac2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x51afc]
mov ecx, dword [eax]
mov ebp, dword [esi + 0x51af8]
push edi
call fcn.10055510
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.10058000
lea eax, [esp + 0x10]
xor edi, edi
push eax
push edi
mov dword [esp + 0x220], edi
call fcn.10056840
test al, 1
je 0x1000adef
mov ecx, dword [esp + 0x10]
push 1
push 0xf
push edi
push 0xc
push 2
call fcn.10056460
mov eax, dword [esi + 0xfc8]
test eax, eax
jle 0x1000ac93
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push 0xf
push edi
push 0xc
push edi
call dword [edx + 8]
mov eax, dword [esi + 0xfc8]
inc edi
cmp edi, eax
jl 0x1000ac77
test eax, eax
jne 0x1000aca6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 0xf
push 0
push 0xc
push 0
call dword [eax + 8]
mov ecx, dword [0x10224920]
mov edx, dword [0x10224918]
mov eax, dword [0x1022491c]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 1
call fcn.10057250
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
and edx, 0xfff90002
push ecx
or edx, 0x10002
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.10057300
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xfc8]
and eax, 0xfff9ffff
or eax, 0x18000
xor edi, edi
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x1000ad6c
mov edx, edi
xor edx, eax
and edx, 0x7fff
xor eax, edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.10057260
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
call fcn.10059430
mov eax, dword [esi + 0xfc8]
inc edi
cmp edi, eax
mov eax, dword [esp + 0x14]
jl 0x1000ad23
mov ecx, dword [esi + 0xfc8]
test ecx, ecx
jne 0x1000ad9a
and eax, 0xffff8000
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x30]
call fcn.10057260
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
call fcn.10059430
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0x83
call fcn.10057250
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
call fcn.10059430
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0xc]
test byte [eax], 1
je 0x1000adef
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x50]
lea edx, [esp + 0x10]
push edx
mov dword [ebp + 4], eax
call fcn.10056810
lea ecx, [esp + 0x28]
mov dword [esp + 0x218], 0xffffffff
call fcn.10058030
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20c
ret
Function at 0x1000bae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 8
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
lea edx, [eax + 0x10]
push edi
mov dword [eax + 4], 0
mov dword [eax], 0x10203740
mov ecx, 0x10
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movdqa xmm0, xmmword [edx]
mov ecx, edx
add ecx, 0x10
mov esi, 3
mov edx, ecx
movdqa xmm1, xmmword [edx]
add ecx, 0x10
dec esi
pslldq xmm0, 1
pxor xmm0, xmm1
jne 0x1000bb17
movdqa xmm1, xmm0
punpckldq xmm1, xmm0
movdqa xmm2, xmm0
punpckhdq xmm2, xmm0
movdqa xmm0, xmm2
pxor xmm0, xmm1
pshufd xmm1, xmm0, 2
pxor xmm1, xmm0
pop edi
movd ecx, xmm1
mov dword [eax + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000bb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 8
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
lea edx, [eax + 0x10]
push edi
mov dword [eax + 4], 0
mov dword [eax], 0x10203744
mov ecx, 0x3f
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [eax + 0x10c], 0
movdqa xmm0, xmmword [edx]
add ecx, 0x10
mov esi, 0xf
mov edx, ecx
movdqa xmm1, xmmword [edx]
add ecx, 0x10
dec esi
pslldq xmm0, 1
pxor xmm0, xmm1
jne 0x1000bba1
movdqa xmm1, xmm0
punpckldq xmm1, xmm0
movdqa xmm2, xmm0
punpckhdq xmm2, xmm0
movdqa xmm0, xmm2
pxor xmm0, xmm1
pshufd xmm1, xmm0, 2
pxor xmm1, xmm0
pop edi
movd ecx, xmm1
mov dword [eax + 0x110], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000bbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 8
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
lea edx, [eax + 0x10]
push edi
mov dword [eax + 4], 0
mov dword [eax], 0x10203748
mov ecx, 0x5f
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [eax + 0x18c], 0
movdqa xmm0, xmmword [edx]
add ecx, 0x10
mov esi, 0x17
mov edx, ecx
movdqa xmm1, xmmword [edx]
add ecx, 0x10
dec esi
pslldq xmm0, 1
pxor xmm0, xmm1
jne 0x1000bc31
movdqa xmm1, xmm0
punpckldq xmm1, xmm0
movdqa xmm2, xmm0
punpckhdq xmm2, xmm0
movdqa xmm0, xmm2
pxor xmm0, xmm1
pshufd xmm1, xmm0, 2
pxor xmm1, xmm0
pop edi
movd ecx, xmm1
mov dword [eax + 0x190], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000fe60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101fb1c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov dword [esp + 0xc], esi
mov byte [esi + 4], bl
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
push 0x100017f0
push 0x1000f520
push 0x10
push 0x1c
lea eax, [esi + 0x8c]
push eax
mov byte [esp + 0x2c], 4
call fcn.101f15b9
mov dword [esi + 0x264], edi
mov dword [esi + 0x260], ebx
mov byte [esi + 0x250], bl
mov dword [esi + 0x280], edi
mov dword [esi + 0x27c], ebx
mov byte [esi + 0x26c], bl
mov dword [esi + 0x29c], edi
mov dword [esi + 0x298], ebx
mov byte [esi + 0x288], bl
mov dword [esi + 0x2b8], edi
mov dword [esi + 0x2b4], ebx
mov byte [esi + 0x2a4], bl
mov dword [esi + 0x2d4], edi
mov dword [esi + 0x2d0], ebx
mov byte [esi + 0x2c0], bl
lea edi, [esi + 0x2d8]
mov ecx, edi
mov byte [esp + 0x18], 0xa
call fcn.1000f350
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov byte [esi + 0x2e4], bl
mov byte [esi + 0x2e5], bl
mov byte [esi + 0x2e6], bl
mov byte [esi + 0x2e7], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10012080
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push edi
mov edi, ecx
mov ecx, eax
and ecx, 0xfc00
cmp ecx, 0x400
jne 0x10012105
and eax, 0x3ff
cmp eax, 8
jne 0x10012105
mov eax, dword [esp + 0x14]
push ebx
xor ebx, ebx
test eax, eax
jle 0x100120ff
push ebp
mov ebp, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [esi]
xor edx, ebx
and edx, 0x3ff
push ebp
xor eax, edx
push esi
mov ecx, edi
mov dword [esi], eax
call fcn.10011810
push ebp
push esi
mov ecx, edi
call fcn.10011300
push ebp
push 0
lea ecx, [edi + 0x18]
call fcn.10057260
mov ecx, dword [edi + 0x278]
lea eax, [edi + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10059430
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x100120b4
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
lea ecx, [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x278]
lea edx, [esp + 0x18]
push edx
call fcn.10059430
pop edi
pop esi
ret 0xc
Function at 0x1001ffc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
mov eax, dword [edx + 0x78]
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
jle 0x10020119
push ebp
push ebx
push esi
lea ebp, [edx + 0x18]
push edi
mov eax, dword [ebp]
mov esi, dword [edx + 0x140]
not eax
and eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
je 0x100200f0
mov edi, edi
test al, 1
je 0x100200d3
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
mov esi, dword [edx + esi*4]
mov edx, dword [esi + 0x30]
cmp edx, ecx
lea ebx, [esi + 0x30]
je 0x100200d3
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov edi, esi
call fcn.1001fb30
test al, al
je 0x10020056
push ebx
lea edx, [esi + 0x44]
push edx
push esi
call fcn.1001fa30
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push eax
call fcn.1001fbb0
cmp al, 1
je 0x1002006c
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x10020024
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x18
ret
cmp dword [esp + 0x14], 0xa
jge 0x10020115
lea ecx, [esi + 0x44]
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
mov edi, 1
shl edi, cl
or edx, edi
mov dword [ebp], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + ecx*4]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100200cf
mov eax, dword [eax - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebx
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [esi + 0x30], 0
je 0x100200c1
push eax
call ebx
mov dword [esi + 0x3c], 0
test dword [ebp], edi
jne 0x100200cf
mov ecx, dword [esi + 0x58]
mov dword [ecx], 0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
shr eax, 1
inc edi
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
jne 0x10020000
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x140]
mov esi, dword [ebp]
or esi, eax
mov eax, dword [esp + 0x24]
mov dword [ebp], esi
mov esi, dword [edx + 0x78]
inc eax
add ebp, 0x10
cmp eax, esi
mov dword [esp + 0x24], eax
jl 0x1001ffe3
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x18
ret
Function at 0x10021ef0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
push str.gdi32.dll
mov dword [esi], 0x10203f00
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [esi + 0x58], eax
je 0x1002207d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.D3DKMTCreateAllocation
push eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x58]
push str.D3DKMTQueryResourceInfo
push eax
call edi
mov ecx, dword [esi + 0x58]
push str.D3DKMTOpenResource
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x58]
push str.D3DKMTDestroyAllocation
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x58]
push str.D3DKMTSetAllocationPriority
push eax
call edi
mov ecx, dword [esi + 0x58]
push str.D3DKMTQueryAllocationResidency
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 0x58]
push str.D3DKMTCreateDevice
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x58]
push str.D3DKMTDestroyDevice
push eax
call edi
mov ecx, dword [esi + 0x58]
push str.D3DKMTQueryAdapterInfo
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0x58]
push str.D3DKMTLock
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x58]
push str.D3DKMTUnlock
push eax
call edi
mov ecx, dword [esi + 0x58]
push str.D3DKMTRender
push ecx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi + 0x58]
push str.D3DKMTOpenAdapterFromGdiDisplayName
push edx
mov dword [esi + 0x44], eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x58]
push str.D3DKMTCloseAdapter
push eax
call edi
mov ecx, dword [esi + 0x58]
push str.D3DKMTGetSharedPrimaryHandle
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x58]
push str.D3DKMTEscape
push edx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x10], eax
push str.D3DKMTPresent
mov eax, dword [esi + 0x58]
push eax
call edi
mov ecx, dword [esi + 0x58]
push str.D3DKMTSetVidPnSourceOwner
push ecx
mov dword [esi + 0x40], eax
call edi
mov edx, dword [esi + 0x58]
push str.D3DKMTCreateContext
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x58]
push str.D3DKMTDestroyContext
push eax
call edi
mov ecx, dword [esi + 0x58]
push str.D3DKMTSetDisplayMode
push ecx
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x10048370
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x101fc964
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], eax
mov dword [esi], 0x10204a00
xor edi, edi
lea ebx, [esi + 0x4c]
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], 0x1020491c
push 0x35
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [ebx + 4], edi
mov dword [ebx], 0x10204918
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
call fcn.10036940
push edi
mov ecx, ebx
call fcn.10001fb0
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x70]
mov ebx, 1
push edi
mov byte [esp + 0x1c], bl
mov dword [ecx + 4], edi
mov dword [ecx], 0x102049f4
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
call fcn.10001fb0
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], 0x102049f0
mov dword [esi + 0x9c], edi
lea eax, [esi + 0x94]
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
lea eax, [esi + 0xac]
mov dword [eax + 4], edi
mov dword [eax], 0x102049f0
mov dword [eax + 8], edi
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
mov dword [esi + 0xa8], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0x8c], 0x102049fc
push 0x3c
mov eax, 0x20
push str.d:ccviews_autobuild1_br_0810_2282_15.11_snapshotgfx_development_sourceopenglgen4dev_sharedinc_resList.h
push 0x1c
mov byte [esp + 0x24], 3
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0x8000
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0x1000
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x80
call fcn.1000ba90
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, edi
mov byte [esp + 0x18], 4
je 0x100484e4
push edi
mov ecx, ebx
mov dword [ebx + 4], edi
mov dword [ebx], 0x10204a64
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
call fcn.10001fb0
mov edi, ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x6c], edi
inc dword [edi + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4