joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b28e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
movzx edx, byte [ebp + 0x10]
movzx eax, byte [ebp + 0x14]
and edx, 0xfffffffd
add eax, eax
or edx, eax
push esi
mov esi, ecx
shl edx, 0x14
movzx ecx, byte [ebp + 0xc]
and ecx, 0xffffffe1
mov eax, dword [esi + 0x20]
and eax, 0xffc1ffff
mov dword [esi], 0x411bf0
or edx, eax
mov dword [esi + 4], 0
movzx eax, byte [ebp + 0x18]
and edx, 0xff3fffff
shl eax, 4
or ecx, eax
mov dword [esi + 8], 0
mov eax, dword [ebp + 8]
shl ecx, 0x13
or edx, ecx
mov dword [esi + 0x80], eax
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
pop esi
pop ebp
ret 0x14

Function at 0x4b3a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
or eax, 0xffffffff
lea esi, [ebp + 0xa]
mov edi, 0x1c
movzx edx, byte [esi - 2]
lea esi, [esi + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4117f0]
movzx edx, byte [esi - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
movzx ecx, byte [esi - 4]
xor eax, dword [edx*4 + 0x4117f0]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4117f0]
movzx edx, byte [esi - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4117f0]
sub edi, 4
jne 0x4b3a20
pop edi
pop esi
pop ebp
ret 0x1c
Function at 0x4c0920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov dword [ebx + 8], 0x410564
mov dword [ebx + 0xc], 0
lock inc dword [0x5399b0]
mov dword [ebx + 8], 0x414e54
mov dword [ebx], 0x414e64
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], 0x414ea8
mov dword [ebx + 8], 0x414ed4
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x10], 0x410e30
mov dword [ebx + 0x88], ecx
test ecx, ecx
je 0x4c09e0
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4c0a58
movzx eax, byte [edx + 4]
mov ecx, 7
mov byte [ebx + 0x14], al
push esi
push edi
lea esi, [edx + 8]
lea edi, [ebx + 0x18]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x24]
mov ecx, 7
lea edi, [ebx + 0x34]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x40]
mov dword [ebx + 0x50], eax
mov eax, dword [edx + 0x44]
mov dword [ebx + 0x54], eax
mov eax, dword [edx + 0x48]
mov dword [ebx + 0x58], eax
mov eax, dword [edx + 0x4c]
mov dword [ebx + 0x5c], eax
mov eax, dword [edx + 0x50]
mov dword [ebx + 0x60], eax
mov eax, dword [edx + 0x54]
mov dword [ebx + 0x64], eax
mov eax, dword [edx + 0x58]
mov dword [ebx + 0x68], eax
mov eax, dword [edx + 0x60]
mov ecx, dword [edx + 0x64]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], ecx
mov eax, dword [edx + 0x68]
mov dword [ebx + 0x78], eax
movzx eax, byte [edx + 0x6c]
mov byte [ebx + 0x7c], al
mov eax, dword [edx + 0x70]
pop edi
mov dword [ebx + 0x80], eax
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4e1ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4e1f2d
push dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push esi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x4e1f91
cmp esi, dword [ebp - 4]
jne 0x4e1f91
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4e1f51
push dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
jmp 0x4e1f1b
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4e1f91
push 0
push dword [ebp + 0xc]
push eax
call fcn.00525413
add esp, 0xc
test eax, eax
jne 0x4e1f91
push dword [esi + 0x98]
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0052507e
add esp, 0x10
cmp eax, 1
jne 0x4e1f91
mov al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e1fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x4e201a
push 0
push dword [esi + 0x30]
mov byte [esi + 0x24], 1
push dword [esi + 0x28]
call fcn.00525413
add esp, 0xc
test eax, eax
jne 0x4e201a
push edi
mov dword [ebp - 4], eax
lea ecx, [esi + 4]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2c]
call fcn.004aafb0
test eax, eax
je 0x4e1ff4
push dword [esi + 0x28]
push 1
push dword [esi + 0x2c]
push dword [ebp - 4]
call fcn.0052507e
add esp, 0x10
cmp eax, 1
je 0x4e2012
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4e2012
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
push ecx
call fcn.00427ec0
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 8], eax
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e3490
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e3500
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp ecx, 0xffffffff
je 0x4e3500
push esi
push ecx
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x4e3500
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x4e3500
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
call esi
jmp 0x4e3517
xor bl, bl
test esi, esi
je 0x4e3511
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4e3517
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x4e351f
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4f6920
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push esi
push 0
push 0x80
push 3
push eax
push 5
push 0x80000000
push ebx
mov esi, ecx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x4f6996
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4f6977
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esi + 0x80]
push 0
push ebx
push eax
mov ecx, dword [ecx + 0x17c]
call fcn.004b7630
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
test dword [esi + 0x20], 0x800000
push edi
je 0x4f69f8
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f69f5
cmp dword [ebp - 4], 0
jne 0x4f69f5
push 0
push ebx
push 0
push 2
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x4f69f5
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 0
jne 0x4f6a4a
mov ebx, dword [ebp + 8]
and dword [esi + 0x20], 0xff7fffff
push 0x8080
push dword [esi + 0x10]
call fcn.00444943
add esp, 8
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4f6a4a
call fcn.0043fcf3
mov eax, dword [eax]
test eax, eax
jle 0x4f6a2a
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esi + 0x80]
push 0
push ebx
push eax
mov ecx, dword [ecx + 0x17c]
call fcn.004b7630
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f75a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x534014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 8]
test edi, edi
jne 0x4f75da
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
test dword [esi + 0x20], 0x800000
je 0x4f761d
mov eax, dword [esi + 0x14]
add eax, ecx
add eax, dword [esi + 0x18]
test ebx, ebx
je 0x4f760b
push edi
test eax, eax
je 0x4f7600
push eax
push ebx
call fcn.0042fd00
add esp, 0xc
jmp 0x4f75c5
push 0
push ebx
call fcn.00427ec0
add esp, 0xc
call fcn.0043fd06
mov dword [eax], 0x16
call fcn.0043fc08
jmp 0x4f75c5
mov eax, dword [esi + 0x18]
push 0
add eax, ecx
push 0
push eax
push dword [esi + 0xc]
call fcn.00447cc6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f764e
push edi
push ebx
push dword [esi + 0xc]
call fcn.004482a1
add esp, 0xc
cmp eax, edi
je 0x4f75c5
mov eax, dword [esi + 0x80]
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push edx
lea edx, [ebp - 0x20c]
mov ecx, dword [eax + 0x98]
push edx
mov eax, dword [ecx]
call dword [eax + 0x80]
test eax, eax
je 0x4f76ac
call fcn.0043fcf3
mov eax, dword [eax]
test eax, eax
jle 0x4f7691
movzx eax, ax
or eax, 0x80070000
push 0
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [esi + 0x80]
push eax
mov ecx, dword [ecx + 0x17c]
call fcn.004b7630
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426f36
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f9fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x18]
push edi
lea edi, [ebx + 0x10]
mov dword [ebp - 0x14], ebx
sub eax, dword [edi]
je 0x4f9fbf
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push esi
mov eax, dword [eax + 0x17c]
mov ecx, dword [eax + 0x8c]
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x4fa191
push 0x4011f8
push 0x84
call fcn.00427917
mov esi, eax
add esp, 8
test esi, esi
je 0x4fa0fa
mov ecx, dword [ebx]
mov eax, dword [esi + 0x20]
and eax, 0xff19ffff
mov dword [esi + 0x80], ecx
or eax, 0x180000
mov dword [esi], 0x411bf0
push 0
mov ecx, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call fcn.004f5b30
mov ecx, esi
test al, al
jne 0x4fa103
mov eax, dword [esi]
call dword [eax]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f6bd0
test al, al
jne 0x4fa123
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0x4011f8
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
call fcn.00427398
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4fa186
push dword [ebp - 4]
push dword [ebp - 0x10]
push ebx
call fcn.0042fd00
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [edi + 0xc], 0
mov dword [edi + 4], ebx
cmp ecx, 4
jb 0x4fa17e
mov eax, dword [ebx]
mov dword [edi + 0xc], eax
cmp eax, 2
je 0x4fa178
cmp eax, 1
je 0x4fa178
cmp eax, 4
jne 0x4fa17e
lea eax, [ebx + 4]
mov dword [edi + 4], eax
lea eax, [ebx + ecx]
mov dword [edi], ebx
mov dword [edi + 8], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ebx, dword [ebp - 0x14]
jmp 0x4fa1a1
mov ecx, dword [ebx]
push edi
call fcn.004b5c00
test al, al
je 0x4fa0fa
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
cmp esi, ecx
jae 0x4fa1c2
mov edx, 0x1101
cmp word [esi + 2], dx
je 0x4fa1c8
movzx eax, word [esi]
add esi, 2
add esi, eax
cmp esi, ecx
jb 0x4fa1b0
je 0x4fa0fa
push 0x4011f8
push 0x208
call fcn.00427398
add esp, 8
mov dword [ebx + 0x20], eax
test eax, eax
je 0x4fa0fa
push 0x104
push eax
add esi, 8
push esi
call fcn.004594f0
add esp, 0xc
test eax, eax
je 0x4fa0fa
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x507fe0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ebx, dword [edi + 0x2c]
mov ecx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.004dd820
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x5081a7
sub eax, 1
je 0x5080ff
sub eax, 1
jne 0x50819e
mov eax, dword [ebp + 8]
mov dword [ebx + 0x19c], 7
or dword [ebx + 0x32c], 0x40
push 1
mov byte [ebx + 0x1b0], 0xa
mov dword [ebx + 0x184], 9
or dword [ebx + 0x328], 0x21000000
push ebx
push dword [eax + 2]
lea eax, [edi + 4]
push eax
call fcn.0050cce0
mov edi, dword [ebp + 8]
mov esi, 1
add esp, 0x10
mov eax, dword [edi + 2]
mov ecx, eax
and ecx, 0xf
shl esi, cl
cmp eax, 0x1000
jae 0x50819e
cmp esi, 8
ja 0x50819e
xor ecx, ecx
mov eax, 0x1208
cmp word [edi], ax
mov eax, dword [ebp - 0xc]
sete cl
lea ecx, [ecx + eax*2]
lea eax, [ecx + 1]
imul eax, esi
add eax, 8
add eax, edi
cmp eax, dword [ebp + 0xc]
ja 0x50819e
sub esp, 0x10
imul ecx, esi
mov edx, esp
lea eax, [edi + 8]
push esi
add eax, ecx
push eax
push edx
call fcn.0050b6d0
add esp, 0xc
mov ecx, ebx
call fcn.0050ce80
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [ebx + 0x19c], 7
mov byte [ebx + 0x1b0], 0xa
or dword [ebx + 0x32c], 0x40
push 1
mov dword [ebx + 0x184], 9
or dword [ebx + 0x328], 0x21000000
push ebx
push dword [eax + 2]
lea eax, [edi + 4]
push eax
call fcn.0050cce0
mov edi, dword [ebp + 8]
mov edx, 1
add esp, 0x10
mov eax, dword [edi + 2]
mov ecx, eax
and ecx, 0xf
shl edx, cl
cmp eax, 0x1000
jae 0x50819e
cmp edx, 8
ja 0x50819e
mov esi, dword [ebp - 0xc]
lea eax, [esi*2 + 1]
imul eax, edx
add eax, 8
add eax, edi
cmp eax, dword [ebp + 0xc]
ja 0x50819e
imul esi, edx
lea eax, [edi + 8]
sub esp, 0x10
mov ecx, esp
push edx
lea eax, [eax + esi*2]
push eax
push ecx
call fcn.0050b6d0
add esp, 0xc
mov ecx, ebx
call fcn.0050ce80
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov dword [ebx + 0x19c], 0x1e
or dword [ebx + 0x328], 0x20000000
push 1
movzx eax, word [esi + 6]
or dword [ebx + 0x330], 0x20000000
mov dword [ebx + 0x204], eax
lea eax, [edi + 4]
push ebx
push dword [esi + 2]
push eax
call fcn.0050cce0
mov eax, 0x1208
add esp, 0x10
cmp word [esi], ax
jne 0x508212
lea edi, [ebx + 0x128]
mov dword [ebp - 0x18], 1
mov ecx, 7
lea esi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x330]
or eax, 0x40000000
jmp 0x508218
mov eax, dword [ebx + 0x330]
lea edi, [ebx + 0x144]
mov dword [ebp - 0x18], 2
mov ecx, 7
lea esi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
pop edi
or eax, 0x80000000
mov dword [ebx + 0x330], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x508250
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp - 0x1c], 0
mov ebx, dword [esi + 0x2c]
mov ecx, ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
call fcn.004dd820
mov edi, dword [ebp + 8]
or dword [ebx + 0x328], 0x20000000
mov dword [ebx + 0x19c], 0x1e
push 1
mov eax, dword [edi + 2]
or dword [ebx + 0x330], 0x20000000
mov dword [ebx + 0x204], eax
lea eax, [esi + 4]
push ebx
push dword [edi + 6]
mov dword [ebp + 8], eax
push eax
call fcn.0050cce0
mov eax, 0x120a
add esp, 0x10
cmp word [edi], ax
mov eax, dword [ebp - 0x10]
jne 0x50834d
lea ecx, [edi + eax*8]
lea eax, [ecx + 0x12]
mov dword [ebp - 4], ecx
cmp eax, dword [ebp + 0xc]
ja 0x508358
mov eax, dword [ecx + 0xa]
test eax, eax
je 0x508348
cmp eax, 3
je 0x508348
xor ecx, ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.004feef0
lea edi, [ebx + 0x128]
mov word [ebp - 0x16], ax
mov ecx, 7
lea esi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
or dword [ebx + 0x330], 0x40000000
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov edi, dword [ecx + 0xe]
jmp 0x508364
lea ecx, [edi + eax*4]
lea eax, [ecx + 0xe]
cmp eax, dword [ebp + 0xc]
jbe 0x508361
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 0xa]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x8c]
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x50839c
mov eax, dword [esi + 8]
xor ecx, ecx
cmp eax, 3
je 0x508395
cmp eax, 6
je 0x508395
cmp eax, 1
je 0x50838f
cmp eax, 2
jne 0x508399
movzx ecx, word [esi + 0x12]
jmp 0x508399
movzx ecx, word [esi + 0x14]
movzx eax, cx
xor edx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
lea edi, [ebx + 0x144]
mov word [ebp - 0x16], ax
lea esi, [ebp - 0x20]
mov ecx, 7
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edx
mov al, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], 1
rep movsd dword es:[edi], dword [esi]
or dword [ebx + 0x330], 0x80000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c8f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi]
shl eax, 0xe
xor eax, dword [ebx + 0x1b8]
and eax, 0x200000
xor dword [ebx + 0x1b8], eax
mov eax, dword [ebx + 0x1b8]
or dword [ebx + 0x330], 8
movzx ecx, word [edi]
mov esi, dword [ebx + 0x330]
shl ecx, 0x16
or esi, 0x10
xor ecx, eax
and ecx, 0x400000
xor ecx, eax
mov dword [ebx + 0x1b8], ecx
mov dword [ebx + 0x330], esi
or esi, 0x20
movzx eax, word [edi]
xor eax, ecx
and eax, 2
xor eax, ecx
mov dword [ebx + 0x1b8], eax
or dword [ebx + 0x32c], 0x8000
movzx ecx, word [edi]
shl ecx, 0x15
xor ecx, eax
and ecx, 0x800000
xor ecx, eax
mov dword [ebx + 0x1b8], ecx
mov dword [ebx + 0x330], esi
or esi, 0x40
movzx eax, word [edi]
shl eax, 0x15
xor eax, ecx
and eax, 0x1000000
xor eax, ecx
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x330], esi
or esi, 0x80
movzx ecx, word [edi]
shl ecx, 0x15
xor ecx, eax
and ecx, 0x2000000
xor ecx, eax
mov dword [ebx + 0x1b8], ecx
mov dword [ebx + 0x330], esi
or esi, 0x100
movzx eax, word [edi]
shl eax, 0x15
xor eax, ecx
and eax, 0x4000000
xor eax, ecx
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x330], esi
or esi, 0x200
movzx ecx, word [edi]
shl ecx, 0x15
xor ecx, eax
and ecx, 0x8000000
xor ecx, eax
mov dword [ebx + 0x1b8], ecx
mov dword [ebx + 0x330], esi
or esi, 0x400
movzx eax, word [edi]
shl eax, 0x14
xor eax, ecx
and eax, 0x10000000
xor eax, ecx
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x330], esi
movzx ecx, word [edi]
shl ecx, 0x10
xor ecx, eax
and ecx, 0x20000000
xor ecx, eax
mov dword [ebx + 0x1b8], ecx
or esi, 0x800
mov dword [ebp + 0xc], 0x800
mov dword [ebx + 0x330], esi
or esi, 0x1000
movzx edx, word [edi]
shl edx, 0x14
xor edx, ecx
and edx, 0x40000000
xor edx, ecx
mov ecx, 0x1800
mov dword [ebx + 0x1b8], edx
mov dword [ebx + 0x330], esi
movzx eax, word [edi]
and ax, cx
xor ecx, ecx
cmp ax, word [ebp + 0xc]
mov dword [ebp + 0xc], 0x8000
setne cl
and edx, 0x7fffffff
dec ecx
or esi, 0x2000
and ecx, 0x80000000
mov dword [ebx + 0x330], esi
or ecx, edx
mov edx, 0x1000
mov dword [ebx + 0x1b8], ecx
mov ecx, 0x1800
movzx eax, word [edi]
and ax, cx
xor ecx, ecx
cmp ax, dx
mov eax, dword [ebx + 0x1bc]
mov edx, 0x4000
sete cl
and eax, 0xfffffffe
or ecx, eax
or esi, 0x4000
mov dword [ebx + 0x1bc], ecx
mov ecx, 0xc000
mov dword [ebx + 0x330], esi
movzx eax, word [edi]
and ax, cx
xor ecx, ecx
cmp ax, dx
mov eax, dword [ebx + 0x1c0]
mov edx, 0xc000
setne cl
and eax, 0xffdfffff
dec ecx
and ecx, 0x200000
or ecx, eax
mov dword [ebx + 0x1c0], ecx
or dword [ebx + 0x33c], 0x400000
movzx eax, word [edi]
mov esi, dword [ebx + 0x33c]
and ax, dx
xor edx, edx
cmp ax, word [ebp + 0xc]
setne dl
and ecx, 0xffbfffff
dec edx
or esi, 0x800000
and edx, 0x400000
or edx, ecx
xor ecx, ecx
mov dword [ebx + 0x1c0], edx
mov dword [ebx + 0x33c], esi
movzx eax, word [edi]
mov edi, 0xc000
and ax, di
cmp ax, di
pop edi
setne cl
and edx, 0xff7fffff
dec ecx
and ecx, 0x800000
or ecx, edx
or esi, 0x1000000
mov dword [ebx + 0x33c], esi
mov dword [ebx + 0x1c0], ecx
pop esi
pop ebx
pop ebp
ret