joyce8/EMBER2024-capa huggingface dataset:
Function at 0x548319
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x548345
test ecx, ecx
jne 0x54834f
test esi, esi
jne 0x54834f
mov eax, edx
jmp 0x5483c0
cmp eax, 0xffffffff
jne 0x54834f
push 0xfffffffffffffffe
pop eax
jmp 0x5483c0
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x5483c0
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x548385
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x5483a4
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x54846d
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x5483e5
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5483ef
xor ecx, ecx
jmp 0x54842e
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x548411
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.0056e983
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x548459
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x54846d
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x548327
pop edi
pop esi
leave
ret
Function at 0x10001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
and eax, 0xffff
push 0x10085040
push eax
mov dword [esp + 0x18], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x10001114
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x10001114
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000110d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10001106
test edi, edi
je 0x10001106
mov ecx, dword [esp + 0x18]
mov esi, eax
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x100010e5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10001240
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x10001120
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 1
mov dword [esp + 0x28], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x10001153
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x10001169
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push eax
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1000118a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x1c]
push 0
mov esi, eax
push ecx
push 0x1000
push esi
push edi
mov dword [esp + 0x30], 0
call ebp
test eax, eax
je 0x100011dc
mov eax, dword [esp + 0x1c]
add esi, eax
test eax, eax
je 0x100011dc
lea edx, [esp + 0x1c]
push 0
push edx
push 0x1000
push esi
push edi
mov dword [esp + 0x30], 0
call ebp
test eax, eax
jne 0x100011b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
pop ebp
je 0x10001217
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10001240
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x100020b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push 1
push eax
call fcn.1006f430
mov ebx, eax
test ebx, ebx
mov dword [ebp + 8], ebx
je 0x10002121
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push 0x40
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002121
push esi
push edi
mov ecx, 8
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 8]
push 0x20
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
test eax, eax
je 0x10002121
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1006fda2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
mov byte [esi + 8], al
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], ebx
mov byte [esi + 0x18], cl
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dl, byte [esp + 0xb]
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x28], dl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x38], al
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov cl, byte [esp + 0xb]
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x48], cl
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dl, byte [esp + 0xb]
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x58], dl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov al, byte [esp + 0xb]
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x68], al
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dl, byte [esp + 0xb]
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x78]
mov byte [esp + 0x18], 6
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.10009f80
mov dl, byte [esp + 0xb]
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x88]
mov byte [esp + 0x18], 7
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1000a6d0
mov dl, byte [esp + 0xb]
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x98]
mov byte [esp + 0x18], 8
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1000ae20
mov dl, byte [esp + 0xb]
mov al, byte [esp + 0xb]
lea ecx, [esi + 0xa8]
mov byte [esp + 0x18], 9
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1000b570
mov dl, byte [esp + 0xb]
mov al, byte [esp + 0xb]
lea ecx, [esi + 0xb8]
mov byte [esp + 0x18], 0xa
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1000ae20
mov ecx, dword [esp + 0x10]
mov dword [esi], vtable.CMEEManager.0
mov dword [esi + 4], ebx
mov byte [esi + 0xc9], bl
mov byte [esi + 0xc8], bl
mov dword [esi + 0xcc], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10003760
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1006fe32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], vtable.CMEEManager.0
lea ecx, [esi + 0xb8]
mov dword [esp + 0x14], 0xa
call fcn.10008cc0
lea ecx, [esi + 0xa8]
mov byte [esp + 0x14], 9
call fcn.10008da0
lea ecx, [esi + 0x98]
mov byte [esp + 0x14], 8
call fcn.10008cc0
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 7
call fcn.10008be0
lea ecx, [esi + 0x78]
mov byte [esp + 0x14], 6
call fcn.10008b00
mov eax, dword [esi + 0x6c]
push eax
mov dword [esp + 0xc], eax
call fcn.1003c010
xor edi, edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x5c]
push eax
mov dword [esp + 0x10], eax
call fcn.1003c010
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x4c]
push eax
mov dword [esp + 0x14], eax
call fcn.1003c010
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0x18], eax
call fcn.1003c010
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x1c], eax
call fcn.1003c010
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x20], eax
call fcn.1003c010
add esp, 0x18
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
add esi, 8
push eax
mov dword [esp + 0x18], 0xffffffff
push ecx
mov ecx, esi
call fcn.10008e80
mov edx, dword [esi + 4]
push edx
call fcn.1003c010
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100038a0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push closesocket
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x10003905
mov eax, dword [esp + 0x28]
push ebp
push edi
push closesocket
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x100038f8
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100038f5
cmp dword [esp + 0x14], 4
jne 0x100038f5
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x100039e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [0x1009bdd4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push 0x104
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
test edx, edx
jne 0x10003a40
xor ebx, ebx
jmp 0x10003a49
lea eax, [esp + 0x10]
push eax
call ebp
mov ebx, eax
mov edi, dword [0x1009bc50]
mov ecx, dword [edi - 0xc]
lea eax, [edi - 0xc]
cmp ecx, 1
jg 0x10003a5f
cmp ebx, dword [edi - 4]
jle 0x10003aaa
mov ecx, dword [0x1008504c]
add edi, 0xfffffff4
cmp edi, ecx
je 0x10003a95
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10003a89
mov ecx, dword [0x1009bc50]
add ecx, 0xfffffff4
push ecx
call fcn.1003c010
add esp, 4
mov edx, dword [0x10085048]
mov dword [0x1009bc50], edx
push ebx
mov ecx, 0x1009bc50
call fcn.10001dc0
test eax, eax
je 0x10003ad1
mov edi, dword [0x1009bc50]
mov ecx, ebx
lea esi, [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x1009bc50]
mov dword [ecx - 8], ebx
mov edx, dword [0x1009bc50]
mov byte [ebx + edx], 0
mov eax, dword [0x1009bc50]
push eax
push str._sCodec
push 0x1009bc58
call fcn.10003bb0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
test edx, edx
jne 0x10003b12
xor ebx, ebx
jmp 0x10003b1b
lea eax, [esp + 0x10]
push eax
call ebp
mov ebx, eax
mov edi, dword [0x1009bc54]
mov ecx, dword [edi - 0xc]
lea eax, [edi - 0xc]
cmp ecx, 1
jg 0x10003b31
cmp ebx, dword [edi - 4]
jle 0x10003b7c
mov ecx, dword [0x1008504c]
add edi, 0xfffffff4
cmp edi, ecx
je 0x10003b67
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10003b5b
mov ecx, dword [0x1009bc54]
add ecx, 0xfffffff4
push ecx
call fcn.1003c010
add esp, 4
mov edx, dword [0x10085048]
mov dword [0x1009bc54], edx
push ebx
mov ecx, 0x1009bc54
call fcn.10001dc0
test eax, eax
je 0x10003ba3
mov edi, dword [0x1009bc54]
mov ecx, ebx
lea esi, [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x1009bc54]
mov dword [ecx - 8], ebx
mov edx, dword [0x1009bc54]
mov byte [ebx + edx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x10008660
Capabilities:
Check if file exists

Disassembly:
mov edx, dword [0x1009bc84]
push ebx
push ebp
push esi
test edx, edx
push edi
je 0x1000875e
mov eax, dword [0x1009bc88]
sub eax, edx
test eax, 0xfffffffc
je 0x1000875e
xor eax, eax
mov ecx, dword [0x1009bc88]
sub ecx, edx
sar ecx, 2
cmp eax, ecx
jae 0x1000875e
mov ebp, dword [edx + eax*4]
mov edi, dword [esp + 0x14]
mov ecx, 4
mov esi, ebp
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x100086b0
inc eax
jmp 0x10008686
mov ebx, dword [esp + 0x18]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx]
cmp eax, esi
je 0x10008743
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
mov edx, dword [0x1008504c]
jge 0x100086d8
lea edi, [eax - 0xc]
cmp edi, edx
jne 0x100086df
mov edi, dword [esi - 0xc]
test edi, edi
jge 0x1000870d
mov ebp, dword [esi - 8]
mov ecx, ebx
push ebp
call fcn.10001d60
test eax, eax
je 0x10008743
mov edi, dword [ebx]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov dword [eax - 8], ebp
mov ecx, dword [ebx]
mov byte [ecx + ebp], 0
jmp 0x10008743
add eax, 0xfffffff4
cmp eax, edx
je 0x10008734
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000872d
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.1003c010
add esp, 4
mov eax, dword [0x10085048]
mov dword [ebx], eax
mov ebp, dword [ebp + 0x10]
mov dword [ebx], ebp
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [ebx]
mov eax, dword [ebx - 8]
test eax, eax
jle 0x1000875e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000875e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x10008770
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x1009bc74]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x100088b1
mov ecx, dword [0x1009bc78]
sub ecx, eax
test ecx, 0xfffffffc
je 0x100088b1
mov ebp, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], esi
test eax, eax
je 0x100088b1
mov edx, dword [0x1009bc78]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x100088b1
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x1000889f
mov eax, dword [esp + 0x18]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1000889a
mov eax, dword [ebp]
mov esi, dword [ebx + 0x28]
cmp eax, esi
je 0x10008888
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
test ecx, ecx
jge 0x10008800
lea edi, [eax - 0xc]
cmp edi, dword [0x1008504c]
jne 0x10008807
mov edi, dword [esi - 0xc]
test edi, edi
jge 0x10008849
mov ebx, dword [esi - 8]
cmp ecx, 1
jg 0x10008814
cmp ebx, dword [eax - 4]
jle 0x10008827
mov ecx, ebp
call fcn.10001d20
push ebx
mov ecx, ebp
call fcn.10001dc0
test eax, eax
je 0x10008888
mov edi, dword [ebp]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov dword [eax - 8], ebx
mov ecx, dword [ebp]
mov byte [ecx + ebx], 0
jmp 0x10008888
mov ecx, dword [0x1008504c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x10008878
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008870
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.1003c010
add esp, 4
mov eax, dword [0x10085048]
mov dword [ebp], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100088a9
mov esi, dword [esp + 0x10]
mov eax, dword [0x1009bc74]
inc esi
mov dword [esp + 0x10], esi
jmp 0x100087a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x100088c0
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x1009bc64]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x10008a01
mov ecx, dword [0x1009bc68]
sub ecx, eax
test ecx, 0xfffffffc
je 0x10008a01
mov ebp, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], esi
test eax, eax
je 0x10008a01
mov edx, dword [0x1009bc68]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x10008a01
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x100089ef
mov eax, dword [esp + 0x18]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100089ea
mov eax, dword [ebp]
mov esi, dword [ebx + 0x28]
cmp eax, esi
je 0x100089d8
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
test ecx, ecx
jge 0x10008950
lea edi, [eax - 0xc]
cmp edi, dword [0x1008504c]
jne 0x10008957
mov edi, dword [esi - 0xc]
test edi, edi
jge 0x10008999
mov ebx, dword [esi - 8]
cmp ecx, 1
jg 0x10008964
cmp ebx, dword [eax - 4]
jle 0x10008977
mov ecx, ebp
call fcn.10001d20
push ebx
mov ecx, ebp
call fcn.10001dc0
test eax, eax
je 0x100089d8
mov edi, dword [ebp]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov dword [eax - 8], ebx
mov ecx, dword [ebp]
mov byte [ecx + ebx], 0
jmp 0x100089d8
mov ecx, dword [0x1008504c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x100089c8
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100089c0
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.1003c010
add esp, 4
mov eax, dword [0x10085048]
mov dword [ebp], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100089f9
mov esi, dword [esp + 0x10]
mov eax, dword [0x1009bc64]
inc esi
mov dword [esp + 0x10], esi
jmp 0x100088f0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x10008a10
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
mov esi, dword [esp + 0x128]
push edi
mov dword [esp + 0x10], str.Flash9e.ocx
mov dword [esp + 0x14], str.Flash9d.ocx
mov dword [esp + 0x18], str.Flash9c.ocx
mov dword [esp + 0x1c], str.Flash9b.ocx
mov dword [esp + 0x20], str.Flash.ocx
xor ebx, ebx
lea edi, [esp + 0x10]
mov eax, dword [edi]
mov ecx, dword [0x1009bc58]
push eax
push ecx
push 0x100856d8
push esi
call fcn.10003bb0
mov eax, dword [esi]
add esp, 0x10
push eax
call ebp
test eax, eax
jne 0x10008ae2
inc ebx
add edi, 4
cmp ebx, 5
jb 0x10008a55
mov al, byte [esp + 0x130]
test al, al
jne 0x10008ad5
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
push 0x104
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ebx, ebx
lea edi, [esp + 0x10]
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push eax
push ecx
push str._sMacromedFlash_s
push esi
call fcn.10003bb0
mov eax, dword [esi]
add esp, 0x10
push eax
call ebp
test eax, eax
jne 0x10008ae2
inc ebx
add edi, 4
cmp ebx, 5
jb 0x10008aad
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret

Function at 0x1000c130
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x1006fed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x14]
lea esi, [edi + 0x14]
mov ecx, esi
mov dword [esp + 0x20], esi
call dword [eax + 4]
lea ecx, [esp + 0x44]
lea ebx, [edi + 4]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x44], 0
call fcn.1000ca70
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
cmp ecx, eax
je 0x1000c193
cmp edx, dword [ecx + 0xc]
jb 0x1000c193
lea eax, [esp + 0x10]
jmp 0x1000c19b
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov ebp, dword [eax]
mov eax, dword [edi + 8]
cmp ebp, eax
jne 0x1000c207
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, eax
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.1000c430
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
add eax, 0x10
mov ecx, eax
xor eax, eax
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
jmp 0x1000c22a
push edx
mov ecx, edi
call fcn.1000c250
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x3c], 0xffffffff
call dword [eax + 8]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4