joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cd07
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c7050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004566e7
mov dword [ebp - 0x14], eax
cmp dword [0x4cedb8], esi
jne 0x47cdfa
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x47cd87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47ceda
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x47ceda
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47ceda
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4cedb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4cedbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4cedc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cedc8], eax
test eax, eax
je 0x47cdf7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cedc4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47ce1f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47ce12
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x47ce34
push 4
pop eax
jmp 0x47cedc
cmp dword [ebp - 0x14], esi
je 0x47ce34
push dword [0x4cedb8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47ce19
mov eax, dword [0x4cedc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x47ce92
cmp dword [0x4cedc8], edi
je 0x47ce92
push eax
call ebx
push dword [0x4cedc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47ce92
test eax, eax
je 0x47ce92
call ecx
test eax, eax
je 0x47ce87
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x47ce87
test byte [ebp - 8], 1
jne 0x47ce92
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x47cec2
mov eax, dword [0x4cedbc]
cmp eax, edi
je 0x47cebf
push eax
call ebx
test eax, eax
je 0x47cebf
call eax
mov esi, eax
test esi, esi
je 0x47cebf
mov eax, dword [0x4cedc0]
cmp eax, edi
je 0x47cebf
push eax
call ebx
test eax, eax
je 0x47cebf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4cedb8]
call ebx
test eax, eax
je 0x47ceda
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x47cedc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448352
mov esp, ebp
pop ebp
ret
Function at 0x404530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4951df
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e20c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.00456e12
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x4045e1
push eax
push esi
call fcn.0045abdc
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004571b2
int3
Function at 0x4088c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4960ce
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x4e20c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x50], eax
mov edi, ecx
mov dword [ebp - 0x4c], 0
mov ecx, eax
mov esi, dword [eax]
push dword [esi + 4]
push eax
call fcn.0041c0c0
mov eax, dword [ebp - 0x50]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [eax + 4], 0
movzx eax, word [edi]
push 0x4ca0d0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x408a6f
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x408a6f
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x408a6f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408a6f
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.0041c9d0
mov dword [ebp - 4], 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x58], esp
mov dword [ebp - 0x54], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 2
push 0
push 1
mov byte [ebp - 4], 0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041b4b0
add esp, 0x30
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
push dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
push eax
call fcn.00423ab0
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
cmp edi, eax
je 0x408a1d
mov esi, dword [edi]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.0041c0c0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov eax, dword [ebp - 0x48]
mov ecx, dword [edi]
mov dword [edi], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov dword [edi + 4], eax
mov dword [ebp - 0x44], 0
mov eax, 1
mov dword [ebp - 0x4c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
push dword [eax + 4]
lea eax, [ebp - 0x48]
push eax
mov ecx, eax
call fcn.0041c0c0
push 0x40
push dword [ebp - 0x48]
call fcn.0046efe6
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.004180c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00416aa0
mov al, 1
jmp 0x408a71
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046ea75
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40afb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496e76
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4e20c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
cmp dword [ebx + 0x24], 0
je 0x40b085
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
push 0x28
call fcn.0046ed65
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x40b035
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 1
lea ebx, [esi + 4]
push ebx
push 0
push edi
push 0x42bd10
push 0
push 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 2
call fcn.0047758a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x40b0ba
mov ecx, 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ecx
and ecx, 0xfffffffd
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
or ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x40b09a
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ebx], 0
call fcn.00456f98
int3
Function at 0x40b0d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496f09
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e20c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0
cmp dword [eax + 0x4c], 0
je 0x40b1b3
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
push 0x30
call fcn.0046ed65
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 2
lea ebx, [edi + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], ebx
mov dword [edi], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x40b163
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov byte [ebp - 4], 1
lea ebx, [esi + 4]
push ebx
push 0
push edi
push 0x42bde0
push 0
push 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 2
call fcn.0047758a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x40b1e8
mov ecx, 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ecx
and ecx, 0xfffffffd
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
or ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x40b1c8
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebx], 0
call fcn.00456f98
int3
Function at 0x40cb80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4975bb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e20c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [esi], vtable.ContentDialog.0
mov dword [ebp - 4], 2
mov edi, dword [esi + 0x94]
cmp edi, 0xffffffff
je 0x40ccaa
mov ebx, dword [0x66648c]
mov eax, 0x66666667
mov ecx, ebx
mov dword [ebp - 0x10], ebx
sub ecx, dword [0x666488]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40ccaa
mov ecx, dword [0x666488]
lea edi, [edi + edi*4]
lea edi, [edi + 5]
lea edi, [ecx + edi*8]
cmp edi, ebx
je 0x40cc7e
lea esi, [edi - 4]
mov eax, ebx
lea ebx, [esi - 0x24]
cmp ebx, edi
je 0x40cc6b
mov ecx, dword [esi]
test ecx, ecx
je 0x40cc31
mov eax, dword [ecx]
cmp ecx, ebx
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [esi], 0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x40cc68
cmp ecx, edi
jne 0x40cc5f
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [esi - 0x24]
push eax
call edx
mov dword [esi], eax
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x40cc68
mov eax, dword [ecx]
cmp ecx, edi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
jmp 0x40cc61
mov dword [esi], ecx
mov dword [esi + 0x28], 0
mov eax, dword [ebp - 0x10]
add edi, 0x28
add esi, 0x28
cmp edi, eax
jne 0x40cc11
mov ebx, dword [0x66648c]
mov esi, dword [ebp - 0x14]
add ebx, 0xffffffd8
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x40cca3
mov eax, dword [ecx]
cmp ecx, ebx
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [ebx + 0x24], 0
sub dword [0x66648c], 0x28
mov byte [ebp - 4], 1
lea eax, [esi + 0x64]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push eax
call fcn.0040b410
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [esi + 0x30]
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.OptionDialog.0
mov byte [ebp - 4], 0
call fcn.0040b2f0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040b2f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fd80
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497b4e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4e20c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
lea ecx, [edi + 0xc0]
call fcn.00416650
mov byte [ebp - 4], 1
lea ecx, [edi + 0xa8]
call fcn.00416650
mov byte [ebp - 4], 0
lea esi, [edi + 0x2c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 7
lea ecx, [esi + 0x60]
call fcn.00416650
mov byte [ebp - 4], 6
lea ecx, [esi + 0x48]
call fcn.00416650
mov byte [ebp - 4], 5
lea ecx, [esi + 0x30]
call fcn.00416650
mov byte [ebp - 4], 4
lea ecx, [esi + 0x18]
call fcn.00416650
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00416650
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 9
lea ecx, [edi + 0x10]
call fcn.00416650
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.00448150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x412762
jl 0x412755
test ecx, ecx
jne 0x412762
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x412822
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004164b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4127ce
jg 0x41278d
test esi, esi
je 0x4127ce
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4127a5
mov eax, dword [esp + 0x10]
jl 0x41279f
cmp eax, esi
jae 0x4127a5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004702a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4127ef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41280b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x412774
jl 0x41280b
test ecx, ecx
jne 0x412774
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x412866
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x412866
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004702a0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4128d7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x41288c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4128c2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0047cdee
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4128d7
cmp edi, eax
ja 0x4128a0
test edi, edi
je 0x4128d7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0047cdee
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4e20c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
lea ebx, [edx + 4]
cmp dword [ebp + 0xc], 1
lea esi, [edx + 8]
mov dword [ebp - 0x14], eax
lea edi, [edx + 0x14]
sete al
mov dword [edx + 0xc], ebx
mov byte [edx + 0x48], al
lea ecx, [edx + 0x18]
mov eax, dword [ebp - 0x20]
mov byte [edx + 0x3d], 0
mov dword [edx + 0x10], esi
mov dword [edx + 0x1c], edi
mov dword [edx + 0x20], ecx
add edx, 0x24
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
test ebx, ebx
je 0x416149
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push ebx
call fcn.00478628
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
jmp 0x41614c
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x4c], ebx
mov eax, dword [0x6664a0]
mov ecx, dword [0x6664a4]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret 8
Function at 0x416270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4988ef
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4e20c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
lea eax, [edi + 0x70]
mov dword [edi], 0x4cbdec
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov byte [eax + 0x40], 0
mov dword [ebp - 4], 1
lea esi, [edi + 0x10]
mov eax, dword [edi]
push 0
push esi
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00418ff0
mov dword [ebp - 4], 3
mov ecx, esi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x70]
mov dword [edx + edi - 4], eax
call fcn.00417f20
mov byte [ebp - 4], 4
push ecx
push 1
push dword [ebp + 8]
mov ecx, esi
call fcn.00417dc0
test eax, eax
jne 0x4163c3
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00405270
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4171a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498abc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4e20c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 1
lea ebx, [edi + 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov byte [ebp - 4], 2
mov dword [ebx + 0xc], 0
mov byte [ebp - 4], 4
lea eax, [edi + 0x20]
mov dword [ebp - 0x24], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 5
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 7
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x417272
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 9
lea ecx, [edi + 0x68]
mov al, byte [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov byte [edi + 0x60], al
mov byte [ecx], 9
add ecx, 8
push 9
call fcn.00418d30
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xd]
push eax
mov ecx, ebx
mov byte [ebp - 0xd], 1
call fcn.004190d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4172c8
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov dword [ebp + 0x34], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30