joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00462f50
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c600
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00462e7e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045f742
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045f742
push 1
push 0
push 0
mov ecx, esi
call fcn.0045f6ea
push 1
push 0
push 1
mov ecx, esi
call fcn.0045f6ea
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462fc2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43cde0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a0d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00462f50
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c600
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00462e7e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43cea4
cmp dword [esp + 0x40], 1
jne 0x43cea2
cmp ecx, eax
jge 0x43cea4
mov eax, ecx
cmp eax, 0xc8
jge 0x43ceb0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043cc60
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462fc2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d620
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a143
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045db60
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004631f8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464714
test eax, eax
je 0x43d73c
mov ecx, dword [esp + 0x3c]
call fcn.00463225
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d700
push edi
mov ecx, esi
call fcn.0046088d
mov ecx, esi
call fcn.0043d8a0
cmp dword [esp + 0x38], 1
jne 0x43d735
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004609c8
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440150
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440183
push esi
call fcn.00443240
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44017c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440209
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4401f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4401a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4401ee
cmp eax, 2
je 0x4401f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44019a
cmp eax, 3
je 0x4401cd
cmp eax, 1
jne 0x44019a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44019a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44019a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440230
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440218
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440230
add esp, 4
pop esi
ret

Function at 0x45e955
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e98d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045ca0c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c9e4
jmp 0x45e999
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46004a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46008c
call fcn.00465afa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46008c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x460083
xor eax, eax
jmp 0x460094
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046009a
pop edi
pop esi
pop ebx
ret 4

Function at 0x46602a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x466058
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x466076
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465f90
jmp 0x466076
mov eax, dword [esi + 0x14]
test eax, eax
je 0x466076
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465f90
test edi, edi
mov eax, edi
jne 0x466060
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xb97008], 0x8088405
inc edx
mov dword [ebx + 0xb97008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0xb81e0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xb8372f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e321
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e30a
test esi, esi
jbe 0x41e321
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408868
test eax, eax
jne 0x41e2fc
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e321
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e2d9
jmp 0x41e321
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e321
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb83736
ret
Function at 0x41eb80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xb8412f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404c94
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ebbb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ebd4
lea eax, [ebp - 0x10]
mov edx, dword [0xb99188]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404cf4
jmp 0x41ebe7
lea eax, [ebp - 0x10]
mov edx, dword [0xb99188]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404cf4
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ebf3
adc edx, 0
mov edx, dword [edx*4 + 0xb97ca8]
call fcn.00404ee4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404ec8
push eax
call fcn.00406ab8
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed01
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ecf4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d58
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ecf4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ecf4
cmp dx, 0x150
ja 0x41ecf4
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ecf4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cd0
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404ff0
jne 0x41ed19
inc ebx
cmp ebx, 0x19
jne 0x41ebad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb84136
lea eax, [ebp - 0x10]
call fcn.00404c94
ret
Function at 0x40132b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00408711
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00408711
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.00408711
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x4096d0
call fcn.00408729
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x4013eb
mov eax, 0
jmp 0x401589
cmp dword [ebp + 0xc], 0
jne 0x401421
mov dword [ebp - 0x1c], esp
mov eax, 2
call fcn.00408723
cmp dword [ebp - 0x1c], esp
je 0x40141e
push 0xa0
push 0x4022b19
push 6
call fcn.0040871d
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x401449
mov eax, 0xc1e906
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401443
push ebx
call fcn.00408717
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 3
call fcn.00408723
cmp dword [ebp - 0x1c], esp
je 0x40147e
push 0x104
push 0x4022b19
push 6
call fcn.0040871d
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x4914e6
mov eax, 4
call fcn.00408723
cmp dword [ebp - 0x1c], esp
je 0x4014b4
push 0x12e
push 0x4022b19
push 6
call fcn.0040871d
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 5
call fcn.00408723
cmp dword [ebp - 0x1c], esp
je 0x401552
push 0x22c
push 0x4022b19
push 6
call fcn.0040871d
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 6
call fcn.00408723
cmp dword [ebp - 0x1c], esp
je 0x401581
push 0x270
push 0x4022b19
push 6
call fcn.0040871d
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x401589
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00408717
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00408717
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.00408717
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4015b5
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00408711
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00408711
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x401655
mov dword [ebp - 0x18], esp
mov eax, 7
call fcn.00408723
cmp dword [ebp - 0x18], esp
je 0x401652
push 0x46
push 0x4022b1a
push 6
call fcn.0040871d
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 8
call fcn.00408723
cmp dword [ebp - 0x18], esp
je 0x40168b
push 0x75
push 0x4022b1a
push 6
call fcn.0040871d
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 9
call fcn.00408723
cmp dword [ebp - 0x18], esp
je 0x4016c3
push 0xa2
push 0x4022b1a
push 6
call fcn.0040871d
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push 0xc1e906
push 0
mov eax, 0xa
call fcn.00408723
cmp dword [ebp - 0x18], esp
je 0x4016f9
push 0xcc
push 0x4022b1a
push 6
call fcn.0040871d
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0xb
call fcn.00408723
cmp dword [ebp - 0x18], esp
je 0x401792
push 0x1dc
push 0x4022b1a
push 6
call fcn.0040871d
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 6
call fcn.00408723
cmp dword [ebp - 0x18], esp
je 0x4017c1
push 0x21c
push 0x4022b1a
push 6
call fcn.0040871d
add esp, 0xc
mov eax, dword [ebp - 0x14]
jmp 0x4017c9
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00408717
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00408717
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8