joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462990
Capabilities:
Set current directory

Disassembly:
sub esp, 0x3e8
push 0x3e8
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4629b0
sub eax, edx
cmp byte [esp + eax], 0x5c
je 0x4629d0
nop
cmp byte [esp + eax], 0x2f
je 0x4629d0
mov cl, byte [esp + eax - 1]
dec eax
cmp cl, 0x5c
jne 0x4629c0
mov byte [esp + eax], 0
mov al, byte [esp + 0x3ec]
test al, al
je 0x4629f3
push 0
push str.Setting_working_directory_to
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0x3e8
ret

Function at 0x462a70
Capabilities:
Terminate process

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push 0
push eax
call fcn.0045a320
add esp, 0xc
test eax, eax
jl 0x462aaa
cmp dword [esp], 0x80000
jae 0x462ac5
push 0
push str.Incrediball:_DirectX_Error
push str.ERROR:_You_have_an_old_version_of_DirectX_installed._nYou_must_have_DirectX_8.0_or_higher_to_play_Incrediball._nPlease_install_DirectX_8.0_or_newer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00464e5e
push 0
push str.Incrediball:_DirectX_Error
push str.ERROR:_You_have_an_unidentified_version_of_DirectX_installed._nYou_must_have_DirectX_8.0_or_higher_to_play_Incrediball._nPlease_install_DirectX_8.0_or_newer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00464e5e
pop ecx
ret
Function at 0x464d9d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4cf064], esi
push edi
jne 0x464dbd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4cf060], esi
mov byte [0x4cf05c], al
jne 0x464e23
mov ecx, dword [0x4d07ec]
test ecx, ecx
je 0x464e04
mov eax, dword [0x4d07e8]
sub eax, 4
cmp eax, ecx
jmp 0x464dfd
mov eax, dword [eax]
test eax, eax
je 0x464def
call eax
mov eax, dword [0x4d07e8]
sub eax, 4
cmp eax, dword [0x4d07ec]
mov dword [0x4d07e8], eax
jae 0x464de7
mov eax, 0x4b304c
mov esi, 0x4b3054
cmp eax, esi
mov edi, eax
jae 0x464e23
mov eax, dword [edi]
test eax, eax
je 0x464e1c
call eax
add edi, 4
cmp edi, esi
jb 0x464e14
mov eax, 0x4b3058
mov esi, 0x4b3060
cmp eax, esi
mov edi, eax
jae 0x464e42
mov eax, dword [edi]
test eax, eax
je 0x464e3b
call eax
add edi, 4
cmp edi, esi
jb 0x464e33
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x464e5c
push dword [ebp + 8]
mov dword [0x4cf064], 1
call fcn.00464d03
pop ebp
ret
Function at 0x464efc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4a7cc8
call fcn.00469500
mov edi, 0x94
mov eax, edi
call fcn.00463d00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4cf024], ecx
mov eax, dword [esi + 4]
mov dword [0x4cf030], eax
mov edx, dword [esi + 8]
mov dword [0x4cf034], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4cf028], esi
cmp ecx, 2
je 0x464f5c
or esi, 0x8000
mov dword [0x4cf028], esi
shl eax, 8
add eax, edx
mov dword [0x4cf02c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x464f97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x464f97
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x464faf
cmp eax, 0x20b
je 0x464f9c
mov dword [ebp - 0x1c], esi
jmp 0x464fc3
cmp dword [ecx + 0x84], 0xe
jbe 0x464f97
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x464fbd
cmp dword [ecx + 0x74], 0xe
jbe 0x464f97
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00467a7f
pop ecx
test eax, eax
jne 0x464fef
cmp dword [0x4cf070], 1
jne 0x464fdc
call fcn.00468eff
push 0x1c
call fcn.00468d88
push 0xff
call fcn.00464d03
pop ecx
pop ecx
call fcn.00468c8b
mov dword [ebp - 4], esi
call fcn.0046782e
test eax, eax
jge 0x465008
push 0x1b
call fcn.00464ed7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4d07e0], eax
call fcn.004693db
mov dword [0x4cf068], eax
call fcn.00469339
test eax, eax
jge 0x46502e
push 8
call fcn.00464ed7
pop ecx
call fcn.00469106
test eax, eax
jge 0x46503f
push 9
call fcn.00464ed7
pop ecx
push 1
call fcn.00464d33
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x465055
push eax
call fcn.00464ed7
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004690a9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x465076
movzx eax, word [ebp - 0x40]
jmp 0x465079
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00462bd0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x465097
push edi
call fcn.00464e5e
call fcn.00464e80
jmp 0x4650c9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0046953b
ret
Function at 0x466bd9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4d06c4]
mov eax, dword [0x4b3a44]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x466d9f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4d06e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x466d9f
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x466c43
xor eax, eax
jmp 0x466db3
test al, 0x20
je 0x466c54
push 2
push edi
push edi
push ecx
call fcn.0046a8d4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x466d29
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x466d70
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x466cb6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x466ca7
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x466c89
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466cf6
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x466d02
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x466c7d
jmp 0x466d04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x466d9a
cmp dword [ebp + 0x3a4], edi
je 0x466d70
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x466d62
mov dword [0x4cf01c], eax
jmp 0x466da6
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466d54
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x466d04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x466d04
push dword [ebp + 0x3a4]
call fcn.0046a875
pop ecx
jmp 0x466db0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x466d88
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x466c3c
mov dword [0x4cf018], 0x1c
mov dword [0x4cf01c], edi
jmp 0x466db0
sub eax, dword [ebp - 0x7c]
jmp 0x466db3
and dword [0x4cf01c], 0
mov dword [0x4cf018], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004677d2
add ebp, 0x39c
leave
ret
Function at 0x4675b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4d06c4]
push edi
jae 0x467788
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4d06e0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x467788
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x46765e
test dl, 2
jne 0x46765e
test dl, 0x48
je 0x467628
cmp byte [eax + 5], 0xa
je 0x467628
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467671
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x467659
mov dword [0x4cf01c], ecx
jmp 0x46778f
cmp eax, 0x6d
jne 0x467665
xor eax, eax
jmp 0x46779c
push eax
call fcn.0046a875
pop ecx
jmp 0x467799
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x467783
test eax, eax
je 0x467698
cmp byte [ebx], 0xa
jne 0x467698
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4676a1
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x46777d
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x46776d
cmp al, 0xd
je 0x4676d3
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x46775f
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4676ed
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4676e8
add dword [ebp - 8], 2
jmp 0x467741
mov dword [ebp - 8], eax
jmp 0x46775b
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467715
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46775b
cmp dword [ebp - 0x10], 0
je 0x46775b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x467736
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x467741
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46775e
cmp ebx, dword [ebp + 0xc]
jne 0x467746
cmp byte [ebp - 1], 0xa
jne 0x467746
mov byte [ebx], 0xa
jmp 0x46775e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004679d9
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x46775f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4676b7
jmp 0x46777d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46777d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x46779c
and dword [0x4cf01c], 0
mov dword [0x4cf018], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x468d88
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4b3a44]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4b3a70]
je 0x468dbd
inc eax
cmp eax, 0x13
jb 0x468dae
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4b3a70]
jne 0x468ee3
mov eax, dword [0x4cf070]
cmp eax, 1
je 0x468ebb
cmp eax, edx
jne 0x468ded
cmp dword [0x4b3a24], 1
je 0x468ebb
cmp ecx, 0xfc
je 0x468ee3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x468e23
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00465ec0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00465fc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x468e57
mov eax, edi
push eax
call fcn.00465fc0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a8260
push edi
call fcn.00464620
add esp, 0x10
push edi
call fcn.00465fc0
push dword [esi + 0x4b3a74]
mov ebx, eax
call fcn.00465fc0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00463d00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00465ec0
push edi
push ebx
call fcn.00465ed0
push 0x4a8240
push ebx
call fcn.00465ed0
push dword [esi + 0x4b3a74]
push ebx
call fcn.00465ed0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0046b9b6
add esp, 0x2c
jmp 0x468ee3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4b3a74]
push dword [esi]
call fcn.00465fc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004677d2
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x46b235
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00463d00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46b2d0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4cf024]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x46b2d0
cmp eax, 1
je 0x46b2f1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46b2d0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x46b29d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x46b2cc
xor eax, eax
inc eax
jmp 0x46b310
cmp edi, eax
jae 0x46b2d4
xor eax, eax
jmp 0x46b310
cmp eax, esi
jae 0x46b2db
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4cf024]
jmp 0x46b2f4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b7e1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x46b7fa
or eax, 0xffffffff
jmp 0x46b85b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x46b857
push 0x3d
push esi
call fcn.0046c75b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x46b857
cmp esi, eax
je 0x46b857
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4cf044]
sete cl
cmp eax, dword [0x4cf048]
mov dword [ebp - 8], ecx
jne 0x46b83d
mov edi, eax
call fcn.0046b780
mov dword [0x4cf044], eax
cmp eax, ebx
jne 0x46b896
cmp dword [ebp + 0xc], ebx
je 0x46b85f
cmp dword [0x4cf04c], ebx
je 0x46b85f
call fcn.00468bc3
test eax, eax
je 0x46b896
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x46b868
xor eax, eax
jmp 0x46b85a
push 4
call fcn.00464483
cmp eax, ebx
pop ecx
mov dword [0x4cf044], eax
je 0x46b857
mov dword [eax], ebx
cmp dword [0x4cf04c], ebx
jne 0x46b896
push 4
call fcn.00464483
cmp eax, ebx
pop ecx
mov dword [0x4cf04c], eax
je 0x46b857
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4cf044]
call fcn.0046b733
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x46b8f7
cmp dword [esi], ebx
je 0x46b8f7
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004643d9
cmp dword [ebp - 8], ebx
pop ecx
jne 0x46b8da
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x46b938
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x46b8d1
mov eax, edi
shl eax, 2
push eax
push dword [0x4cf044]
call fcn.00464744
cmp eax, ebx
pop ecx
pop ecx
je 0x46b938
jmp 0x46b933
cmp dword [ebp - 8], ebx
jne 0x46b9a3
cmp edi, ebx
jge 0x46b906
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4cf044]
call fcn.00464744
cmp eax, ebx
pop ecx
pop ecx
je 0x46b857
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4cf044], eax
cmp dword [ebp + 0xc], ebx
je 0x46b98d
push dword [ebp - 4]
call fcn.00465fc0
inc eax
inc eax
push eax
call fcn.00464483
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x46b98d
push dword [ebp - 4]
push esi
call fcn.00465ec0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x46b986
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004643d9
pop ecx
cmp dword [ebp - 8], ebx
je 0x46b99b
push dword [ebp - 4]
call fcn.004643d9
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x46b85a
push dword [ebp - 4]
call fcn.004643d9
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x46b864
Function at 0x46b9b6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4cf23c], ebx
push esi
push edi
jne 0x46ba36
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46ba71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a84b0
push edi
call esi
test eax, eax
mov dword [0x4cf23c], eax
je 0x46ba71
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4cf240], eax
call esi
cmp dword [0x4cf024], 2
mov dword [0x4cf244], eax
jne 0x46ba36
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4cf24c], eax
je 0x46ba36
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4cf248], eax
mov eax, dword [0x4cf248]
test eax, eax
je 0x46ba7b
call eax
test eax, eax
je 0x46ba62
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4cf24c]
test eax, eax
je 0x46ba62
test byte [ebp - 8], 1
jne 0x46ba7b
cmp dword [0x4cf030], 4
jb 0x46ba75
or byte [ebp + 0x12], 0x20
jmp 0x46ba9a
xor eax, eax
jmp 0x46baaa
or byte [ebp + 0x12], 4
jmp 0x46ba9a
mov eax, dword [0x4cf240]
test eax, eax
je 0x46ba9a
call eax
mov ebx, eax
test ebx, ebx
je 0x46ba9a
mov eax, dword [0x4cf244]
test eax, eax
je 0x46ba9a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4cf23c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46baf3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46bb21
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x46bb28
cmp ebx, dword [eax + 4]
jae 0x46bb28
xor eax, eax
jmp 0x46bd18
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x46bb39
xor eax, eax
inc eax
jmp 0x46bd17
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46bb4f
cmp ecx, edx
jae 0x46bc94
cmp dword [eax + 4], 0
je 0x46bb58
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46bb40
cmp dword [ebp + 8], 0
je 0x46bb7a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x46bc94
cmp eax, esi
jae 0x46bc94
mov eax, dword [0x4cf250]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46bb9f
cmp dword [esi*4 + 0x4cf258], edi
je 0x46bc98
inc esi
cmp esi, eax
jl 0x46bb8d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46bd14
cmp dword [ebp - 8], 0x1000000
jne 0x46bd14
test byte [ebp - 0xc], 0xcc
je 0x46bc1d
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x46bd14
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46bd14
cmp word [eax + 0x18], 0x10b
jne 0x46bd14
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x46bd14
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46bc1d
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46bc1d
test byte [ecx + 0x27], 0x80
jne 0x46bc94
push 1
push 0x4cf298
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x46bb31
mov ecx, dword [0x4cf250]
test ecx, ecx
mov edx, ecx
jle 0x46bc51
lea eax, [ecx*4 + 0x4cf254]
cmp dword [eax], edi
je 0x46bc51
dec edx
sub eax, 4
test edx, edx
jg 0x46bc45
test edx, edx
jne 0x46bc82
push 0xf
pop ebx
cmp ecx, ebx
jg 0x46bc5e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x46bc76
lea eax, [edx*4 + 0x4cf258]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x46bc64
cmp ecx, 0x10
jge 0x46bc82
inc ecx
mov dword [0x4cf250], ecx
push 0
push 0x4cf298
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x46bb31
xor eax, eax
jmp 0x46bd17
test esi, esi
jle 0x46bb31
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4cf298
call ebx
test eax, eax
jne 0x46bb31
cmp dword [esi*4 + 0x4cf258], edi
je 0x46bcee
mov eax, dword [0x4cf250]
lea esi, [eax - 1]
test esi, esi
jl 0x46bcdc
cmp dword [esi*4 + 0x4cf258], edi
je 0x46bcd8
dec esi
jns 0x46bccc
test esi, esi
jge 0x46bcec
cmp eax, 0x10
jge 0x46bce7
inc eax
mov dword [0x4cf250], eax
lea esi, [eax - 1]
jmp 0x46bcee
je 0x46bd06
xor ecx, ecx
test esi, esi
jl 0x46bd06
lea eax, [ecx*4 + 0x4cf258]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46bcf4
push 0
push 0x4cf298
call ebx
jmp 0x46bb31
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret