joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d999
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x430158]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040d92e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040ede0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40d9e8
cmp dword [ebp - 0x1c], 5
jb 0x40da00
jmp 0x40d9fc
cmp dword [ebp - 0x10], 1
jne 0x40da00
cmp dword [ebp - 0x1c], 4
ja 0x40d9fc
jne 0x40da00
cmp dword [ebp - 0x18], 0
jbe 0x40da00
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x428ec8
call fcn.004013c3
test eax, eax
jge 0x40da21
mov byte [0x4315e4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040dfe9
add ebp, 0x78
leave
ret

Function at 0x40dbd3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x431864], 0
push esi
jne 0x40db46
call fcn.0040da71
test eax, eax
je 0x40db89
mov eax, dword [0x431864]
cmp eax, 1
jne 0x40db67
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40db89
pop esi
ret
push eax
call dword [0x43186c]
test eax, eax
jne 0x40dbd1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40db8d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x431864]
call dword [0x43186c]
mov edi, eax
test edi, edi
je 0x40dbb4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40dbd0
lea edi, [esi + 0xff0]
push esi
push dword [0x431864]
call dword [0x431868]
add esi, 0x10
cmp esi, edi
jb 0x40dbba
mov eax, esi
pop edi
pop esi
ret
jmp 0x40db33

Function at 0x40dfe9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430158]
jne 0x40dff3
repz ret
jmp fcn.00412f1c
Function at 0x40f7e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40f821
cmp dword [ebp + 0x14], edi
je 0x40f821
cmp ecx, edi
jne 0x40f828
call fcn.0041164a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040f32d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40f83c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40f85d
cmp ebx, 0xffffffff
je 0x40f84c
push ebx
push edi
push ecx
call fcn.0040ede0
add esp, 0xc
cmp esi, edi
je 0x40f809
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40f809
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40f879
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40f880
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40f971
test word [esi + 0xc], 0x10c
je 0x40f8d4
mov eax, dword [esi + 4]
test eax, eax
je 0x40f8d4
jl 0x40f9d2
cmp ebx, eax
mov edi, ebx
jb 0x40f8a5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40f979
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040e25a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40f969
cmp ebx, dword [ebp - 0xc]
jb 0x40f941
cmp dword [ebp - 0xc], 0
je 0x40f8fe
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x40f8f3
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40f8fa
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40f909
mov eax, SysReAllocString
cmp ebx, eax
ja 0x40f909
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40f9a5
push eax
push dword [ebp - 8]
push esi
call fcn.00416bba
pop ecx
push eax
call fcn.00417dfd
add esp, 0xc
test eax, eax
je 0x40f9e4
cmp eax, 0xffffffff
je 0x40f9d2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40f969
push esi
call fcn.0041771c
cmp eax, 0xffffffff
pop ecx
je 0x40f9d6
cmp dword [ebp - 4], 0
je 0x40f9a5
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40f888
mov eax, dword [ebp + 0x14]
jmp 0x40f823
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40f990
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040ede0
add esp, 0xc
call fcn.0041164a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40f819
cmp dword [ebp + 0xc], 0xffffffff
je 0x40f9bb
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040ede0
add esp, 0xc
call fcn.0041164a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40f819
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40f823
or dword [esi + 0xc], 0x10
jmp 0x40f9d6
Function at 0x4104f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x410524
call fcn.0041165d
mov dword [eax], esi
call fcn.0041164a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040f32d
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x410500
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410553
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411670
pop ecx
call fcn.0041164a
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41057a
test al, 1
je 0x41057a
test byte [esp + 0xc], 2
je 0x41057a
call fcn.0041165d
mov dword [eax], 5
call fcn.0041164a
mov dword [eax], 0xd
jmp 0x41054a
xor eax, eax
pop esi
ret

Function at 0x414097
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x430468]
je 0x4140b2
inc edi
cmp edi, 0x17
jb 0x4140a3
cmp edi, 0x17
jae 0x414232
push ebp
push 3
call fcn.0041ba50
cmp eax, 1
pop ecx
je 0x4141fe
push 3
call fcn.0041ba50
test eax, eax
pop ecx
jne 0x4140e6
cmp dword [0x430188], 1
je 0x4141fe
cmp ebx, 0xfc
je 0x414231
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x431d80
push ebp
call fcn.00410954
add esp, 0xc
test eax, eax
je 0x41411c
push esi
push esi
push esi
push esi
push esi
call fcn.0040f231
add esp, 0x14
push 0x104
mov esi, 0x431d99
push esi
push 0
mov byte [0x431e9d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414160
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00410954
add esp, 0xc
test eax, eax
je 0x414160
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040f231
add esp, 0x14
push esi
call fcn.00411790
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4141a5
push esi
call fcn.00411790
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x432094
push 0x4295e4
sub ecx, eax
push ecx
push eax
call fcn.0040f531
add esp, 0x14
test eax, eax
je 0x4141a5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040f231
add esp, 0x14
jmp 0x4141a7
xor esi, esi
push 0x4295e0
push ebx
push ebp
call fcn.0041b9df
add esp, 0xc
test eax, eax
je 0x4141c7
push esi
push esi
push esi
push esi
push esi
call fcn.0040f231
add esp, 0x14
push dword [edi*8 + 0x43046c]
push ebx
push ebp
call fcn.0041b9df
add esp, 0xc
test eax, eax
je 0x4141e9
push esi
push esi
push esi
push esi
push esi
call fcn.0040f231
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041b822
add esp, 0xc
jmp 0x414231
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x414231
cmp ebp, 0xffffffff
je 0x414231
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43046c]
push dword [esi]
call fcn.00411790
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41b822
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041294c
xor ebx, ebx
cmp dword [0x432370], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41b8f8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41b9d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41b9d8
push eax
call fcn.004128de
mov dword [esp], 0x42a2e0
push edi
mov dword [0x432370], eax
call esi
push eax
call fcn.004128de
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432374], eax
call esi
push eax
call fcn.004128de
mov dword [0x432378], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00413e24
test eax, eax
pop ecx
pop ecx
je 0x41b8c6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f231
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41b8f8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004128de
cmp eax, ebx
pop ecx
mov dword [0x432380], eax
je 0x41b8f8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004128de
pop ecx
mov dword [0x43237c], eax
mov eax, dword [0x43237c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41b97d
cmp dword [0x432380], ecx
je 0x41b97d
push eax
call fcn.00412955
push dword [0x432380]
mov esi, eax
call fcn.00412955
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41b97d
cmp edi, ebx
je 0x41b97d
call esi
cmp eax, ebx
je 0x41b94a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b94a
test byte [ebp - 0x18], 1
jne 0x41b97d
lea eax, [ebp - 0x10]
push eax
call fcn.00413e5b
test eax, eax
pop ecx
je 0x41b965
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f231
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41b974
or dword [ebp + 0x10], 0x200000
jmp 0x41b9b8
or dword [ebp + 0x10], 0x40000
jmp 0x41b9b8
mov eax, dword [0x432374]
cmp eax, dword [ebp - 8]
je 0x41b9b8
push eax
call fcn.00412955
cmp eax, ebx
pop ecx
je 0x41b9b8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41b9b8
mov eax, dword [0x432378]
cmp eax, dword [ebp - 8]
je 0x41b9b8
push eax
call fcn.00412955
cmp eax, ebx
pop ecx
je 0x41b9b8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432370]
call fcn.00412955
cmp eax, ebx
pop ecx
je 0x41b9d8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b9da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d60b
Capabilities:
Terminate process

Disassembly:
call fcn.0043d618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa
Function at 0x401abb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436090]
jne 0x401ac5
repz ret
jmp fcn.00402ea8

Function at 0x40c092
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d19
and dword [ebp - 4], 0
cmp dword [0x43ab00], 0
mov ebx, eax
jne 0x40c143
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c1f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c1f4
push eax
call fcn.00404ca7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ab00], eax
call esi
push eax
call fcn.00404ca7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ab04], eax
call esi
push eax
call fcn.00404ca7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ab08], eax
call esi
push eax
call fcn.00404ca7
pop ecx
mov dword [0x43ab10], eax
test eax, eax
je 0x40c143
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ca7
pop ecx
mov dword [0x43ab0c], eax
mov eax, dword [0x43ab0c]
cmp eax, ebx
je 0x40c19b
cmp dword [0x43ab10], ebx
je 0x40c19b
push eax
call fcn.00404d22
push dword [0x43ab10]
mov esi, eax
call fcn.00404d22
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c19b
test edi, edi
je 0x40c19b
call esi
test eax, eax
je 0x40c192
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c192
test byte [ebp - 0xc], 1
jne 0x40c19b
or dword [ebp + 0x10], 0x200000
jmp 0x40c1d4
mov eax, dword [0x43ab04]
cmp eax, ebx
je 0x40c1d4
push eax
call fcn.00404d22
pop ecx
test eax, eax
je 0x40c1d4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c1d4
mov eax, dword [0x43ab08]
cmp eax, ebx
je 0x40c1d4
push eax
call fcn.00404d22
pop ecx
test eax, eax
je 0x40c1d4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ab00]
call fcn.00404d22
pop ecx
test eax, eax
je 0x40c1f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c1f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d9d3
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bb112c], 0x930
jne 0x40d9ed
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x1bb112c], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bb0e48], eax
jne 0x40da0d
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
leave
ret
Function at 0x40da17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor edx, edx
cmp dword [ebp + 0xc], edx
jle 0x40da54
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.0040da0f
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x28
sub dword [ebp - 4], 0x1e
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x40da23
cmp dword [ebp + 0xc], 0x2d
jne 0x40da6b
or dword [0x1bb113c], 0xffffffff
mov dword [0x1bb1138], 0xa62e7790
leave
ret
Function at 0x403bf8
Capabilities:
Encrypt data using tea

Disassembly:
sub esp, 0x28
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
call fcn.00403283
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ebx, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
pop esi
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov edx, dword [esp + 0x1c]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x24], 0xedeb2e40
cmp dword [0x670284], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [ebx + edx]
mov eax, dword [0x6702c8]
cmove eax, dword [esp + 0x24]
and dword [esp + 0x24], 0
cmp dword [0x670284], 0x3eb
mov dword [0x6702c8], eax
mov eax, dword [0x6702d0]
cmove eax, dword [esp + 0x24]
mov dword [0x6702d0], eax
mov eax, dword [esp + 0x1c]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
xor eax, ecx
mov dword [0x6702cc], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebp, eax
mov dword [esp + 0x14], eax
mov eax, ebp
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
mov eax, ebp
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x18]
call fcn.00403bec
dec esi
je 0x403d1c
mov ebx, dword [esp + 0x18]
jmp 0x403c46
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], ebp
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4141af
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439b58]
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.00407a96
mov dword [ebp - 0x14], eax
cmp dword [0x671444], esi
jne 0x4142a2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41422f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414382
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414382
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414382
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x671444], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x671448], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x67144c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x671454], eax
test eax, eax
je 0x41429f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x671450], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4142c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4142ba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4142dc
push 4
pop eax
jmp 0x414384
cmp dword [ebp - 0x14], esi
je 0x4142dc
push dword [0x671444]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4142c1
mov eax, dword [0x671450]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41433a
cmp dword [0x671454], edi
je 0x41433a
push eax
call ebx
push dword [0x671454]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41433a
test eax, eax
je 0x41433a
call ecx
test eax, eax
je 0x41432f
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 0x41432f
test byte [ebp - 8], 1
jne 0x41433a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41436a
mov eax, dword [0x671448]
cmp eax, edi
je 0x414367
push eax
call ebx
test eax, eax
je 0x414367
call eax
mov esi, eax
test esi, esi
je 0x414367
mov eax, dword [0x67144c]
cmp eax, edi
je 0x414367
push eax
call ebx
test eax, eax
je 0x414367
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x671444]
call ebx
test eax, eax
je 0x414382
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414384
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cd0
mov esp, ebp
pop ebp
ret