joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4341
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x4f4381
test edi, edi
jl 0x4f4381
cmp al, 0x20
je 0x4f4376
cmp word [ebp + 8], 0x71
jne 0x4f4381
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4f9420
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x567070]
jne 0x4f942a
repz ret
jmp fcn.00500c24

Function at 0x50e593
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.00500d9c
and dword [ebp - 4], 0
cmp dword [0x56e320], 0
mov ebx, eax
jne 0x50e644
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x50e6f5
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x546b10
push edi
call esi
test eax, eax
je 0x50e6f5
push eax
call fcn.00500d2a
mov dword [esp], 0x546b00
push edi
mov dword [0x56e320], eax
call esi
push eax
call fcn.00500d2a
mov dword [esp], 0x546aec
push edi
mov dword [0x56e324], eax
call esi
push eax
call fcn.00500d2a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x56e328], eax
call esi
push eax
call fcn.00500d2a
pop ecx
mov dword [0x56e330], eax
test eax, eax
je 0x50e644
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00500d2a
pop ecx
mov dword [0x56e32c], eax
mov eax, dword [0x56e32c]
cmp eax, ebx
je 0x50e69c
cmp dword [0x56e330], ebx
je 0x50e69c
push eax
call fcn.00500da5
push dword [0x56e330]
mov esi, eax
call fcn.00500da5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x50e69c
test edi, edi
je 0x50e69c
call esi
test eax, eax
je 0x50e693
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x50e693
test byte [ebp - 0xc], 1
jne 0x50e69c
or dword [ebp + 0x10], 0x200000
jmp 0x50e6d5
mov eax, dword [0x56e324]
cmp eax, ebx
je 0x50e6d5
push eax
call fcn.00500da5
pop ecx
test eax, eax
je 0x50e6d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x50e6d5
mov eax, dword [0x56e328]
cmp eax, ebx
je 0x50e6d5
push eax
call fcn.00500da5
pop ecx
test eax, eax
je 0x50e6d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x56e320]
call fcn.00500da5
pop ecx
test eax, eax
je 0x50e6f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x50e6f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404de0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x20], 0
call dword [0x409270]
mov esi, eax
cmp esi, 0xffffffff
je 0x404e24
push 0
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x404e2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x404e1e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
add esp, 8
ret

Function at 0x404f00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [0x409270]
mov edi, eax
cmp edi, 0xffffffff
je 0x404f9a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x404f9a
test esi, esi
jne 0x404f51
mov eax, dword [esp + 0x14]
pop edi
mov dword [ebp], esi
mov dword [eax], esi
pop esi
mov eax, 1
pop ebp
ret
push esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
je 0x404f9a
push esi
push 0
push edi
call sub.MSVCR80.dll_memset
push esi
push edi
mov eax, ebx
call fcn.00404de0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x404fa0
mov ecx, dword [ebp]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [ebp], 0
mov dword [edx], 0
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
ret

Function at 0x405300
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [eax]
rol cl, 4
xor cl, 0xaa
mov byte [eax], cl
je 0x405320
mov edx, eax
mov edi, edi
mov cl, byte [edx + 1]
add edx, 1
rol cl, 4
xor cl, 0xaa
mov byte [edx], cl
jne 0x405310
ret

Function at 0x405321
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40532b
repz ret
jmp fcn.0040569a

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4014c9
Capabilities:
Check os version

Disassembly:
push 0x144
mov eax, 0x41406c
call fcn.0040674a
mov eax, dword [ebp + 8]
and dword [ebp - 0x150], 0
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x114
push esi
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x140]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x144], edi
call fcn.0040b210
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x13c], 6
push 0x417f80
lea esi, [ebp - 0x2c]
sbb bl, bl
call fcn.004024ac
xor esi, esi
inc bl
mov ebx, dword [ebp - 0x148]
mov dword [ebp - 4], esi
jne 0x4015ad
cmp dword [ebx + 0x14], 8
jb 0x401552
mov eax, dword [ebx]
jmp 0x401554
mov eax, ebx
mov ecx, str.LOCALAPPDATA
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40157f
cmp dx, si
je 0x40157b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40157f
add eax, 4
add ecx, 4
cmp dx, si
jne 0x401559
xor eax, eax
jmp 0x401584
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4015ad
push str.USERPROFILE
call fcn.0040524c
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402f9e
push str.Local_SettingsApplication_Data
lea eax, [ebp - 0x2c]
push eax
call fcn.004024d7
jmp 0x4015ce
cmp dword [ebx + 0x14], 8
jb 0x4015b7
mov eax, dword [ebx]
jmp 0x4015b9
mov eax, ebx
push eax
call fcn.0040524c
pop ecx
cmp eax, esi
je 0x4015e6
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402f9e
push esi
push dword [ebp - 0x14c]
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0040340d
and dword [edi + 0x10], 0
jmp 0x4015e9
mov dword [edi + 0x10], esi
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ebx, [ebp - 0x2c]
mov eax, edi
call fcn.00402ebc
push 1
xor edi, edi
mov esi, ebx
call fcn.00402fc6
mov eax, dword [ebp - 0x144]
call fcn.00406794
ret
Function at 0x4018d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xf4
mov eax, 0x4141d9
call fcn.0040674a
mov eax, dword [ebp + 0xc]
push 0x417f80
lea esi, [ebp - 0x2c]
mov edi, ecx
mov dword [ebp - 0x54], eax
call fcn.004024ac
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x4c], eax
jb 0x40190b
mov edi, dword [edi]
movzx eax, word [ebp + 8]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00403994
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x401957
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00402501
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00402fc6
xor ebx, ebx
push ebx
push dword [ebp - 0x4c]
lea eax, [ebp - 0x100]
push dword [ebp - 0x50]
push eax
call fcn.004020c3
lea eax, [ebp - 0xfc]
call fcn.00403003
test eax, eax
jne 0x4019c7
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x100]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4019b6
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4019c7
push ebx
call fcn.004013c3
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], bl
call fcn.0040266d
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.00403edc
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00402fc6
mov al, 1
call fcn.00406794
ret
Function at 0x402710
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x413f2c
call fcn.0040674a
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov edi, ecx
cmp ebx, esi
jne 0x402732
xor eax, eax
call fcn.00406794
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x402758
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x402758
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40272a
cmp dword [edi + 0x54], 0
jne 0x402762
mov eax, esi
jmp 0x40272a
mov eax, edi
call fcn.00403179
cmp dword [edi + 0x44], 0
jne 0x402785
push dword [edi + 0x54]
movsx eax, bl
push eax
call fcn.00404831
pop ecx
cmp eax, esi
pop ecx
mov eax, ebx
jne 0x40272a
jmp 0x40275e
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00402d6c
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402833
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x40285b
cmp eax, 1
jg 0x40283b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4027e2
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x402808
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4027f5
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00405ac0
add esp, 0x10
cmp esi, eax
jne 0x40285b
lea eax, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x402856
test esi, esi
jne 0x402794
cmp dword [ebp - 0x1c], 0x20
jae 0x40285b
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00402db0
jmp 0x402794
mov edx, dword [ebp - 0x2c]
jmp 0x4027a6
cmp eax, 3
jne 0x40285b
movsx eax, byte [ebp - 0x2d]
push dword [edi + 0x54]
push eax
call fcn.00404831
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x40285e
mov esi, dword [ebp + 8]
jmp 0x40285e
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402e7a
jmp 0x40275e
Function at 0x403090
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x413f74
call fcn.0040674a
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x403171
cmp byte [edi + 0x49], bl
je 0x403171
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4030c5
xor al, al
jmp 0x403173
lea esi, [ebp - 0x2c]
call fcn.00402d6c
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403113
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x403118
dec eax
je 0x40311c
dec eax
dec eax
je 0x40316d
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402e7a
mov al, bl
jmp 0x403173
mov edx, dword [ebp - 0x2c]
jmp 0x4030de
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403128
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x40314e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40313b
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00405ac0
add esp, 0x10
cmp esi, eax
jne 0x403101
cmp byte [edi + 0x49], 0
je 0x40316d
test esi, esi
jne 0x4030d0
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00402db0
jmp 0x4030d0
mov bl, 1
jmp 0x403103
mov al, 1
call fcn.00406794
ret

Function at 0x404822
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b490]
jne 0x40482c
repz ret
jmp fcn.00408e69

Function at 0x405000
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x405028
call fcn.0040952d
and dword [eax], 0
call fcn.0040951a
mov dword [eax], 0x16
call fcn.004094c8
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405045
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409540
pop ecx
jmp 0x405023
test byte [ebp + 0xc], 0x80
je 0x405050
and eax, 0xfffffffe
jmp 0x405053
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405036
xor eax, eax
pop ebp
ret

Function at 0x405852
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x405879
call fcn.0040952d
mov dword [eax], esi
call fcn.0040951a
push 0x16
pop esi
mov dword [eax], esi
call fcn.004094c8
mov eax, esi
jmp 0x4058ce
test dword [ebp + 0xc], 0xfffffff9
jne 0x40585f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4058a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409540
pop ecx
call fcn.0040951a
mov eax, dword [eax]
jmp 0x4058ce
test al, 0x10
jne 0x4058cc
test al, 1
je 0x4058cc
test byte [ebp + 0xc], 2
je 0x4058cc
call fcn.0040952d
mov dword [eax], 5
call fcn.0040951a
mov dword [eax], 0xd
jmp 0x40589d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4121d1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040bd3a
and dword [ebp - 0x14], 0
cmp dword [0x41d204], 0
mov dword [ebp - 0x18], eax
jne 0x412284
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41232c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41232c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41d204], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41d208], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41d20c], eax
call edi
push eax
call esi
mov dword [0x41d214], eax
test eax, eax
je 0x412284
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41d210], eax
mov eax, dword [0x41d210]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4122dd
cmp dword [0x41d214], ecx
je 0x4122dd
push eax
call esi
push dword [0x41d214]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4122dd
test ebx, ebx
je 0x4122dd
call edi
test eax, eax
je 0x4122d4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4122d4
test byte [ebp - 8], 1
jne 0x4122dd
or dword [ebp + 0x10], 0x200000
jmp 0x412310
mov eax, dword [0x41d208]
cmp eax, dword [ebp - 0x18]
je 0x412310
push eax
call esi
test eax, eax
je 0x412310
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412310
mov eax, dword [0x41d20c]
cmp eax, dword [ebp - 0x18]
je 0x412310
push eax
call esi
test eax, eax
je 0x412310
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41d204]
call esi
test eax, eax
je 0x41232c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41232e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404822
leave
ret
Function at 0x408fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x12c
mov eax, dword [0x447d10]
mov dword [esp + 0x128], eax
mov al, byte [0x449d54]
test al, al
jne 0x4090da
lea eax, [esp]
push eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 4]
push ecx
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409031
mov eax, dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x409043
lea eax, [esp + 0x24]
push 0x4398b8
push eax
call fcn.00416f3f
add esp, 8
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409053
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00403ef0
push 8
push str.KONAMI_
lea ecx, [esp + 0x10]
call fcn.00408870
push 0x16
push str.PES_Infinitty_Patch_25
lea ecx, [esp + 0x10]
call fcn.00408870
push 1
push 0x439890
lea ecx, [esp + 0x10]
call fcn.00408870
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4090aa
lea eax, [esp + 0xc]
push 0x410
push eax
push 0x449388
call fcn.004171a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov byte [0x449d54], 1
jb 0x4090da
mov eax, dword [esp + 0xc]
push eax
call fcn.0042cfc9
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, 0x449388
call fcn.004164ae
add esp, 0x12c
ret

Function at 0x40c553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c568
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40c57a
xor eax, eax
jmp 0x40c5ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40c59e
cmp esi, eax
jae 0x40c576
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c590
cmp esi, eax
jae 0x40c576
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x403931
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
call fcn.00403011
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x28], eax
pop esi
mov dword [esp + 0x1c], 2
add dword [esp + 0x1c], 3
mov edx, dword [esp + 0x18]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x20], 0xedeb2e40
cmp dword [0x6a13c4], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [edx + ebp]
mov eax, dword [0x6a1408]
cmove eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
cmp dword [0x6a13c4], 0x3eb
mov dword [0x6a1408], eax
mov eax, dword [0x6a1410]
cmove eax, dword [esp + 0x20]
mov dword [0x6a1410], eax
mov eax, dword [esp + 0x18]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
xor eax, ecx
mov dword [0x6a140c], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebx, eax
mov dword [esp + 0x14], eax
mov eax, ebx
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, ebx
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
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 + 0x18], eax
lea ebp, [ebp + 0x61c88647]
dec esi
jne 0x40397b
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x413e4f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46aca8]
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.00407906
mov dword [ebp - 0x14], eax
cmp dword [0x6a2590], esi
jne 0x413f42
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414022
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414022
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414022
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x6a2590], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6a2594], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x6a2598], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6a25a0], eax
test eax, eax
je 0x413f3f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6a259c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413f67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413f5a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x413f7c
push 4
pop eax
jmp 0x414024
cmp dword [ebp - 0x14], esi
je 0x413f7c
push dword [0x6a2590]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x413f61
mov eax, dword [0x6a259c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x413fda
cmp dword [0x6a25a0], edi
je 0x413fda
push eax
call ebx
push dword [0x6a25a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x413fda
test eax, eax
je 0x413fda
call ecx
test eax, eax
je 0x413fcf
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 0x413fcf
test byte [ebp - 8], 1
jne 0x413fda
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41400a
mov eax, dword [0x6a2594]
cmp eax, edi
je 0x414007
push eax
call ebx
test eax, eax
je 0x414007
call eax
mov esi, eax
test esi, esi
je 0x414007
mov eax, dword [0x6a2598]
cmp eax, edi
je 0x414007
push eax
call ebx
test eax, eax
je 0x414007
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6a2590]
call ebx
test eax, eax
je 0x414022
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414024
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b40
mov esp, ebp
pop ebp
ret