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

Disassembly:
push 0xffffffffffffffff
push 0x5dcc31
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x14], 0
cmp dword [esi], 1
mov dword [esp + 0x20], ebx
jne 0x4fb5a3
cmp dword [esi + 4], 0
jne 0x4fb5a3
cmp dword [esi + 8], 1
jne 0x4fb5a3
cmp dword [esi + 0xc], 0
jne 0x4fb5a3
fldz
sub esp, 8
mov eax, esp
fstp qword [eax]
lea ecx, [esi + 0x10]
mov dword [esp + 0x20], esp
call fcn.005b8660
test eax, eax
je 0x4fb5a3
push 1
lea ecx, [esp + 0x1c]
call fcn.00505cf0
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x1c]
imul ecx, dword [esi + 0x18]
imul edx, dword [eax]
cmp ecx, edx
jne 0x4fb5a3
push edi
mov ecx, ebx
call fcn.004f0c50
jmp 0x4fb68c
mov eax, dword [esi + 8]
imul eax, dword [esi]
test eax, eax
movzx eax, word [edi + 0x20]
jge 0x4fb5be
mov ecx, eax
xor ecx, 1
and ecx, 0xfffffff9
movzx ebp, cx
jmp 0x4fb5c6
mov edx, eax
and edx, 0xfffffff9
movzx ebp, dx
test al, 2
je 0x4fb5d1
mov eax, 2
jmp 0x4fb5d5
cwde
and eax, 0xfffffffb
test al, 2
je 0x4fb5dc
or ebp, 2
lea eax, [edi + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004f9c70
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call edx
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004f9c70
push eax
lea ecx, [edi + 4]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.004f9c70
push eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.004f0790
movzx eax, word [edi + 0x20]
mov esi, 1
mov dword [esp + 0x6c], esi
test al, 2
jne 0x4fb66e
cwde
and eax, 0xfffffffb
cmp ax, 2
je 0x4fb66e
test byte [esp + 0x5c], 2
jne 0x4fb654
movsx eax, word [esp + 0x5c]
and eax, 0xfffffffb
cmp ax, 2
jne 0x4fb66e
mov ecx, edi
call fcn.004f10c0
fcomp qword [0x5ecc58]
fnstsw ax
test ah, 5
jp 0x4fb66e
and word [esp + 0x5c], 0xfffd
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.004f0c50
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esi
mov byte [esp + 0x6c], 0
call fcn.004eeaf0
mov eax, ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x5c
ret
Function at 0x501310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x50137e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x50139d
push ecx
push esi
call fcn.005011f0
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret

Function at 0x501660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x5016ce
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x5016ed
push edi
push ecx
call fcn.00501310
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret

Function at 0x501730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x50179e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x5017bd
push esi
push ecx
call fcn.00500860
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret
Function at 0x501800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x50186e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x50188d
push esi
push ecx
call fcn.00500980
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret

Function at 0x501910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x50197e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x50199d
push esi
push ecx
call fcn.00500740
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret

Function at 0x501dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x501e3e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x501e5d
push ecx
push esi
call fcn.00501b30
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret
Function at 0x501f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x501f6e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x501f8d
push esi
push ecx
call fcn.00500fa0
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret

Function at 0x501fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x50201e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x50203d
push esi
push ecx
call fcn.005010d0
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret

Function at 0x502350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e7bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.004f6d60
mov ecx, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
mov dword [esp + 0x2c], 0
call fcn.004f4f10
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.005020a0
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004f6e00
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
Function at 0x502610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3db8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
lea eax, [esp + 8]
push eax
call fcn.004f3a20
push 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call fcn.004fbcd0
lea edx, [esp + 0x28]
push esi
push edx
mov dword [esp + 0x4c], 0
call fcn.005023d0
add esp, 8
lea ecx, [esp + 0x28]
mov esi, eax
mov dword [esp + 0x44], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x40
ret
Function at 0x504130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5dcf18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.005b8210
xor edi, edi
lea ecx, [esi + 0x40]
mov dword [esp + 0x18], edi
mov dword [esi], vtable.ZgeoVectorFontData.0
call fcn.005b6f00
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], 1
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 + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x504b50
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov ecx, eax
and ecx, 0xffff
push edi
xor edi, edi
cmp ecx, 1
mov ecx, dword [esp + 0xc]
jne 0x504c15
cmp ecx, 0x20
jl 0x504c0e
cmp ecx, 0x7f
jg 0x504c0e
test eax, 0x20000
je 0x504ba0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call edx
pop edi
pop esi
ret 8
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ecx*4]
mov eax, ecx
sar eax, 8
and ecx, 0xff
and eax, 0xffffff
cmp dword [esi + 0x10], 1
mov edi, ecx
jne 0x504be3
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x24]
push edi
lea edx, [ecx + eax - 0xa0]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.005bd898
add esp, 0xc
mov eax, edi
pop edi
sar eax, 1
pop esi
ret 8
mov ecx, dword [esi + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push edi
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x1c
mov eax, edi
pop edi
sar eax, 1
pop esi
ret 8
pop edi
xor eax, eax
pop esi
ret 8
push ecx
mov ecx, esi
call fcn.005045d0
cmp eax, 0xffffffff
jne 0x504c2a
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov edx, dword [esi + 0x20]
and edx, 0xffff
cmp edx, 2
jne 0x504cae
test eax, eax
jl 0x504c22
mov edx, dword [esi + 0x24]
mov ecx, edx
sar ecx, 2
cmp eax, ecx
jg 0x504c22
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + eax*4]
mov eax, ecx
sar eax, 8
and ecx, 0xff
and eax, 0xffffff
cmp dword [esi + 0x10], 1
mov edi, ecx
jne 0x504c8a
mov ecx, dword [esi + 0x1c]
sub ecx, edx
lea edx, [ecx + eax - 0xa0]
mov eax, dword [esp + 0x10]
push edi
push edx
push eax
call fcn.005bd898
add esp, 0xc
sar edi, 1
mov eax, edi
pop edi
pop esi
ret 8
mov ecx, dword [esi + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push edi
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x1c
sar edi, 1
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x505170
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5dcfc3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.005b8210
xor edi, edi
lea ecx, [esi + 0x40]
mov dword [esp + 0x18], edi
mov dword [esi], vtable.ZgeoVectorFontData.0
call fcn.005b6f00
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x2c], ecx
push edx
mov ecx, esi
mov byte [esp + 0x1c], 1
mov dword [esi + 0x10], eax
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 + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call fcn.00504820
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc

Function at 0x508020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x50808e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x5080bb
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x70]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
push ecx
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret
Function at 0x508800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5dd340
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0x14]
xor ebx, ebx
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004f5a00
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004f5440
mov edi, dword [esp + 0x68]
push eax
push edi
mov dword [esp + 0x68], ebx
call fcn.00508430
add esp, 8
test eax, eax
sete byte [esp + 0x6c]
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], ebp
call fcn.004f54b0
cmp byte [esp + 0x6c], bl
je 0x5088b5
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x1c]
call fcn.004f5440
push eax
push edi
mov dword [esp + 0x68], 1
call fcn.00508430
add esp, 8
test eax, eax
lea ecx, [esp + 0x14]
sete byte [esp + 0x6c]
mov dword [esp + 0x60], ebp
call fcn.004f54b0
cmp byte [esp + 0x6c], bl
jne 0x50889f
mov eax, dword [esi + 0x14]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x1c]
call fcn.004f2bd0
push eax
push edi
mov dword [esp + 0x68], 2
call fcn.00508320
add esp, 8
test eax, eax
lea ecx, [esp + 0x14]
sete byte [esp + 0x6c]
mov dword [esp + 0x60], ebp
call fcn.004f2cc0
cmp byte [esp + 0x6c], bl
jne 0x50889f
mov eax, dword [esi + 0x14]
cdq
sub eax, edx
sar eax, 1
push eax
add esi, 0xc
push esi
lea ecx, [esp + 0x30]
call fcn.004f2bd0
push eax
push edi
mov dword [esp + 0x68], 3
call fcn.00508320
add esp, 8
test eax, eax
lea ecx, [esp + 0x28]
sete byte [esp + 0x6c]
mov dword [esp + 0x60], ebp
call fcn.004f2cc0
xor eax, eax
cmp byte [esp + 0x6c], bl
sete al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret

Function at 0x5089a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004fbc90
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004f88e0
lea ecx, [esp + 0xc]
test eax, eax
jne 0x508a0e
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
xor eax, eax
jmp 0x508a2d
push ecx
push esi
call fcn.00508710
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x20
ret
Function at 0x51f5f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5df812
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004f74b0
xor eax, eax
push 0x40
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esi], vtable.ZpatPolygon.0
mov word [esi + 8], ax
mov dword [esi + 4], 4
call fcn.004f7d30
xor edi, edi
cmp dword [esi + 4], edi
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], edi
jle 0x51f67d
lea ebx, [edi + 1]
mov ecx, edi
shl ecx, 4
add ecx, dword [esi + 0x10]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x28], bl
je 0x51f66d
call fcn.00568b40
add edi, ebx
cmp edi, dword [esi + 4]
mov byte [esp + 0x28], 0
mov dword [esp + 0x10], edi
jl 0x51f656
mov edi, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
lea ebx, [edi + 0xc]
push ebx
mov dword [esi + 0xc], 0
call fcn.00568b90
mov ecx, dword [ebx]
mov edx, dword [edi + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x18]
push eax
add ecx, 0x10
mov dword [esp + 0x20], edx
call fcn.00568b90
mov ecx, dword [esi + 0x10]
lea ebx, [edi + 4]
push ebx
add ecx, 0x20
call fcn.00568b90
mov ecx, dword [ebx]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x18]
push eax
add ecx, 0x30
mov dword [esp + 0x20], edx
call fcn.00568b90
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4

Function at 0x51f700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df85a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.004f74b0
xor eax, eax
xor ebx, ebx
push 0x30
mov ecx, esi
mov dword [esp + 0x50], ebx
mov dword [esi], vtable.ZpatPolygon.0
mov word [esi + 8], ax
mov dword [esi + 4], 3
call fcn.004f7d30
xor edi, edi
cmp dword [esi + 4], ebx
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], edi
jle 0x51f787
mov ecx, edi
shl ecx, 4
add ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x4c], 1
je 0x51f779
call fcn.00568b40
inc edi
cmp edi, dword [esi + 4]
mov byte [esp + 0x4c], bl
mov dword [esp + 0x10], edi
jl 0x51f761
fldz
mov ecx, dword [esp + 0x54]
push 1
sub esp, 8
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [esi + 0xc], ebx
fst qword [eax]
sub esp, 8
mov eax, esp
fstp qword [eax]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
mov dword [esp + 0x30], esp
push eax
lea eax, [esp + 0x28]
push eax
call edx
push eax
lea ecx, [esp + 0x3c]
call fcn.004ee240
mov ecx, dword [esi + 0x10]
push eax
mov byte [esp + 0x50], 2
call fcn.00568bc0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], bl
call fcn.004eeaf0
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x40
ret 4
Function at 0x51f800
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df89f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.004f74b0
mov ecx, dword [esp + 0x30]
mov dword [esi], vtable.ZpatPolygon.0
mov ax, word [ecx + 8]
mov word [esi + 8], ax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov edx, dword [ecx + 0xc]
xor edi, edi
cmp eax, edi
mov dword [esi + 0xc], edx
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ecx
jle 0x51f86f
shl eax, 4
push eax
mov ecx, esi
call fcn.004f7d30
mov ebp, eax
jmp 0x51f871
xor ebp, ebp
cmp dword [esi + 4], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], edi
jle 0x51f8a6
mov edi, edi
mov ecx, edi
shl ecx, 4
add ecx, ebp
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x28], 1
je 0x51f897
call fcn.00568b40
inc edi
cmp edi, dword [esi + 4]
mov byte [esp + 0x28], 0
mov dword [esp + 0x10], edi
jl 0x51f880
test ebp, ebp
je 0x51f8bf
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
shl edx, 4
push edx
push eax
push ebp
call fcn.005bd898
add esp, 0xc
mov eax, esi
mov dword [esi + 0x10], ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 4