joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d0d41
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1a0], ebx
jne 0x101d0ed1
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
mov dword [ebp - 0x7c], 1
call fcn.101d19d0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x101d0db7
cmp eax, esi
jae 0x101d0db7
mov ecx, esi
sub ecx, eax
push str.SHFolder.dll
push ecx
lea eax, [ebp + eax*2 - 0x74]
jmp 0x101d0dc0
push 0x101f7b8c
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.1000108c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x80], eax
mov edi, 0x1027bfa8
cmp eax, ebx
je 0x101d0e89
push str.SHGetFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x101d0dfe
push edi
push ebx
push ebx
push 0x8023
push ebx
call eax
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x7c], ebx
jne 0x101d0e89
lea eax, [ebp - 0x78]
push eax
push esi
push edi
call fcn.101d0c2e
mov eax, dword [ebp - 0x78]
push str.AhnLab
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [eax*2 + 0x1027bfa8]
push eax
call fcn.1000108c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call ebx
test eax, eax
jne 0x101d0e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x101d0e87
lea eax, [ebp - 0x78]
push eax
push esi
push edi
call fcn.101d0c2e
mov eax, dword [ebp - 0x78]
push str.AIS
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [eax*2 + 0x1027bfa8]
push eax
call fcn.1000108c
push 0
push edi
call ebx
test eax, eax
jne 0x101d0eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x101d0eaa
xor ebx, ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x101d0eaa
lea eax, [eax*2 + 0x1027bfa6]
cmp word [eax], 0x5c
jne 0x101d0eaa
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x78]
push eax
push esi
push edi
call fcn.101d0c2e
mov eax, dword [ebp - 0x78]
push str.AhnInstw.log
sub esi, eax
push esi
lea eax, [eax*2 + 0x1027bfa8]
push eax
call fcn.1000108c
pop edi
pop esi
jmp 0x101d0ee6
push dword [ebp + 0x1a0]
push 0x104
push 0x1027bfa8
call fcn.1000108c
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop ebx
call fcn.101d14d7
add ebp, 0x198
leave
ret
Function at 0x101d14d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10274398]
jne 0x101d14e1
repz ret
jmp fcn.101da6c9

Function at 0x101d672f
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 0x101d6760
call fcn.101d5445
mov dword [eax], esi
call fcn.101d5432
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.101d3ed2
add esp, 0x14
push 0x16
pop eax
jmp 0x101d67b5
test dword [ebp + 0xc], 0xfffffff9
jne 0x101d673c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101d678d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.101d5458
pop ecx
call fcn.101d5432
mov eax, dword [eax]
jmp 0x101d67b5
test al, 0x10
jne 0x101d67b3
test al, 1
je 0x101d67b3
test byte [ebp + 0xc], 2
je 0x101d67b3
call fcn.101d5445
mov dword [eax], 5
call fcn.101d5432
mov dword [eax], 0xd
jmp 0x101d6784
xor eax, eax
pop esi
pop ebp
ret
Function at 0x101e67b2
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.101db4fa
and dword [ebp - 4], 0
cmp dword [0x1027cc6c], 0
mov ebx, eax
jne 0x101e6863
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101e6914
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101e6914
push eax
call fcn.101db488
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1027cc6c], eax
call esi
push eax
call fcn.101db488
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1027cc70], eax
call esi
push eax
call fcn.101db488
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1027cc74], eax
call esi
push eax
call fcn.101db488
pop ecx
mov dword [0x1027cc7c], eax
test eax, eax
je 0x101e6863
push 0x1026c740
push edi
call esi
push eax
call fcn.101db488
pop ecx
mov dword [0x1027cc78], eax
mov eax, dword [0x1027cc78]
cmp eax, ebx
je 0x101e68bb
cmp dword [0x1027cc7c], ebx
je 0x101e68bb
push eax
call fcn.101db503
push dword [0x1027cc7c]
mov esi, eax
call fcn.101db503
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101e68bb
test edi, edi
je 0x101e68bb
call esi
test eax, eax
je 0x101e68b2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101e68b2
test byte [ebp - 0xc], 1
jne 0x101e68bb
or dword [ebp + 0x10], 0x200000
jmp 0x101e68f4
mov eax, dword [0x1027cc70]
cmp eax, ebx
je 0x101e68f4
push eax
call fcn.101db503
pop ecx
test eax, eax
je 0x101e68f4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101e68f4
mov eax, dword [0x1027cc74]
cmp eax, ebx
je 0x101e68f4
push eax
call fcn.101db503
pop ecx
test eax, eax
je 0x101e68f4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1027cc6c]
call fcn.101db503
pop ecx
test eax, eax
je 0x101e6914
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101e6916
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x652629aa
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x652629e5
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x652629cc
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x652629dd
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x652629e7
inc edi
add eax, 0x28
cmp edi, esi
jb 0x652629c2
xor eax, eax
pop edi
pop esi
ret

Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6c54768c
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x410022a0
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f72
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, edx
push esi
mov dword [ebp - 4], eax
call fcn.0040276c
lea eax, [eax*2 + 0x208]
push eax
push 8
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x401fa8
push 0xe
pop eax
jmp 0x402098
push edi
mov ecx, ebx
call fcn.0040276c
lea eax, [eax*2 + 0x208]
push eax
push 8
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x401fe2
push esi
push eax
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xe
pop eax
jmp 0x402097
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.0040273b
mov edx, ebx
mov ecx, edi
call fcn.0040273b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40204f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40204f
mov ecx, esi
call fcn.0040276c
push 0x5c
pop ecx
mov ebx, 0x404ac4
cmp word [esi + eax*2 - 2], cx
je 0x40202a
mov edx, ebx
mov ecx, esi
call fcn.00402689
mov ecx, edi
call fcn.0040276c
push 0x5c
pop ecx
cmp word [edi + eax*2 - 2], cx
je 0x402044
mov edx, ebx
mov ecx, edi
call fcn.00402689
mov edx, edi
mov ecx, esi
call fcn.00401cd4
jmp 0x402063
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x402067
mov edx, edi
mov ecx, esi
call fcn.00401c1e
mov ebx, eax
jmp 0x402077
push 1
mov edx, str.SXSEXP:_invalid_paths_specified
call fcn.00402f89
pop ecx
push 0x57
pop ebx
push esi
push 0
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40209c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor edx, edx
lea eax, [ebp - 0x210]
push esi
mov esi, 0x20a
mov dword [ebp - 0x62c], edx
push edi
mov ebx, ecx
mov dword [ebp - 0x634], edx
mov dword [ebp - 0x630], edx
mov edi, edx
mov ecx, esi
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4020d7
lea eax, [ebp - 0x62c]
push eax
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
push 2
pop edx
call fcn.00402485
add esp, 0xc
cmp dword [ebp - 0x62c], edi
je 0x40222a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40222a
mov ecx, esi
lea eax, [ebp - 0x41c]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x402125
lea eax, [ebp - 0x62c]
push eax
push ecx
lea eax, [ebp - 0x41c]
mov ecx, ebx
push eax
push 3
pop edx
call fcn.00402485
add esp, 0xc
cmp dword [ebp - 0x62c], edi
je 0x402223
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402223
lea eax, [ebp - 0x628]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x402172
lea eax, [ebp - 0x62c]
push eax
push ecx
lea eax, [ebp - 0x628]
mov ecx, ebx
push eax
push 4
pop edx
call fcn.00402485
add esp, 0xc
cmp dword [ebp - 0x62c], edi
jne 0x4021a9
mov edx, str.SXSEXP:_Destination_Path_not_specified
jmp 0x40222f
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x630]
push eax
lea edx, [ebp - 0x634]
lea ecx, [ebp - 0x41c]
call fcn.00401968
pop ecx
pop ecx
test eax, eax
je 0x40221f
push dword [ebp - 0x630]
mov esi, dword [ebp - 0x634]
lea ecx, [ebp - 0x628]
mov edx, esi
call fcn.004027d3
pop ecx
test eax, eax
je 0x4021fd
push 1
mov edx, str.Operation_Successful
call fcn.00402f89
pop ecx
xor edi, edi
jmp 0x40220c
mov edx, str.Error__write_to_file
call fcn.0040302d
mov edi, 0x54f
test esi, esi
je 0x40221f
push esi
push 0
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x40223a
mov edx, str.SXSEXP:_Source_Delta_Path_not_found
jmp 0x40222f
mov edx, str.SXSEXP:_Source_Path_not_found
push 1
call fcn.00402f89
pop ecx
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004031bd
leave
ret
Function at 0x4027d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, edx
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x40281e
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], edi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004031bd
leave
ret

Function at 0x402f0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0xfeff
push 0xfffffffffffffff6
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [0x409af4], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push eax
mov dword [0x409af0], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea eax, [ebp - 0xc]
push eax
push dword [0x409af0]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x402f7d
push eax
lea eax, [ebp - 0xc]
mov dword [0x409af8], 1
push eax
push 2
lea eax, [ebp - 8]
push eax
push dword [0x409af0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031bd
leave
ret

Function at 0x402f89
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov ecx, edi
call fcn.0040276c
lea eax, [eax*2 + 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40301f
mov edx, edi
mov ecx, esi
call fcn.0040273b
cmp dword [ebp + 8], 0
je 0x402fd9
mov edx, 0x404a24
call fcn.00402689
mov ecx, esi
call fcn.0040276c
cmp dword [0x409af8], 1
lea ecx, [ebp - 8]
push 0
push ecx
jne 0x403001
add eax, eax
push eax
push esi
push dword [0x409af0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40300f
push eax
push esi
push dword [0x409af0]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004031bd
leave
ret
Function at 0x4030eb
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], edx
push esi
push esi
push 3
push esi
push 3
push 0x80100000
push ecx
mov dword [ebp - 0x14], eax
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403135
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x403193
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40314e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40318c
cmp dword [ebp - 0xc], 8
jae 0x403159
push 0x32
pop edi
jmp 0x40318c
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403144
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004031bd
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Access peb ldr_data
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
push edi
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401174
cmp dword [esp + 0x14], 1
jl 0x401174
xorps xmm0, xmm0
mov dword [esp + 0x38], 0x44
push str.Kimiyume__chsPatch.dll
lea eax, [esp + 0x1c]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movaps xmmword [esp + 0x28], xmm0
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x1c]
sub ecx, 0x10
mov edi, ecx
mov ecx, dword [ecx + 0x10]
sub ecx, 0x10
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x4010e4
mov eax, dword [edx]
mov esi, dword [edx + 4]
and eax, 0xffdfffdf
and esi, 0xffdfffdf
cmp eax, 0x45004b
jne 0x4010e4
cmp esi, 0x4e0052
jne 0x4010e4
mov eax, dword [edx + 8]
mov esi, dword [edx + 0xc]
and eax, 0xffdfffdf
and esi, 0xffdfffdf
cmp eax, 0x4c0045
jne 0x4010e4
cmp esi, 0x120013
jne 0x4010e4
cmp word [edx + 0x10], 0x2e
je 0x4010ea
cmp edi, ecx
jne 0x401091
xor ecx, ecx
mov ecx, dword [ecx + 0x18]
mov edx, 0x638020fb
call fcn.004015c0
push 0
lea ecx, [esp + 0x24]
mov dword [0x4145a8], eax
push ecx
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0x413890
push 0
push 0
call eax
test eax, eax
je 0x40115c
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub esp, 0xc
push eax
call fcn.00401330
add esp, 0x10
push 0
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Krkr_Universal_Patch
push str.Couldnt_Launch_Game
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4011e0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
mov eax, 0x5a4d
push edi
cmp word [esi], ax
jne 0x401240
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x401240
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
je 0x40121a
mov edx, 0x20b
cmp cx, dx
jne 0x401240
mov ecx, 0x88
jmp 0x40121f
mov ecx, 0x78
mov edx, dword [eax + 0x50]
lea edi, [eax + ecx]
mov ecx, edi
call fcn.004011a0
test eax, eax
je 0x401240
mov eax, dword [edi]
cmp dword [eax + esi + 0x1c], edx
jae 0x401240
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x46e7f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046e3dd

Function at 0x46ed24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042d530
mov eax, dword [0x49a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0046b883
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46ed66
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46eec2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00482380
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4ebcc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004702b7
mov ecx, dword [esi*4 + 0x4ebcc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46eebb
cmp eax, dword [edi + ecx + 0x24]
jne 0x46eebb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46eebb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004702b7
add esp, 0x14
test edx, edx
jl 0x46eebb
jg 0x46ee31
test eax, eax
jb 0x46eebb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46eebb
jl 0x46ee4b
cmp dword [ebp - 0x1008], eax
ja 0x46eebb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46ee69
test ebx, ebx
je 0x46eea2
cmp ecx, edi
jae 0x46eea2
mov al, byte [ecx]
cmp al, 0xd
jne 0x46ee83
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46ee8f
cmp byte [ecx + 1], 0xa
jne 0x46ee8f
inc ecx
jmp 0x46ee8f
movzx eax, al
movsx eax, byte [eax + 0x49a320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46ee69
cmp edx, ebx
jne 0x46ee69
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46eec0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042c38b
leave
ret
Function at 0x46f440
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ebcc8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46f480
cmp byte [ebx], 0xa
jne 0x46f480
or byte [eax + edi + 0x28], 4
jmp 0x46f485
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46f583
mov al, byte [edx]
cmp al, 0x1a
je 0x46f565
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46f4b4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46f4d9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46f4e3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46f496
jmp 0x46f583
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f560
cmp dword [ebp - 0xc], 0
je 0x46f560
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ebcc8]
test byte [eax + edi + 0x28], 0x48
je 0x46f53a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46f525
mov byte [esi], dl
jmp 0x46f536
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ebcc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46f583
cmp byte [ebp - 1], 0xa
jne 0x46f549
cmp esi, ebx
jne 0x46f549
mov byte [esi], 0xa
jmp 0x46f582
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f583
mov byte [esi], 0xd
jmp 0x46f582
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ebcc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f57f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f583
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret