joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f462
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push esi
mov esi, dword [ebp + 0x1a8]
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f4a0
xor eax, eax
jmp 0x40f5ac
push ebx
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
cmp esi, ebx
je 0x40f5a8
cmp esi, edi
jb 0x40f4d3
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x40f5a8
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x40f5a8
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x40f523
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x40f517
movzx eax, ax
push eax
jmp 0x40f519
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x40f59f
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
cmp esi, ebx
jne 0x40f546
cmp word [ebp - 0x6c], bx
je 0x40f546
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40f57c
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esi + 1]
cmp edi, dword [ebp + 0x1b0]
jbe 0x40f569
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x40f57c
push dword [ebp + 0x1b0]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40f59f
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop esi
call fcn.00418c9a
add ebp, 0x1a0
leave
ret 0xc
Function at 0x413830
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42a7d9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43d2ac]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x3c], 0
je 0x4138d6
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x41389c
call edi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x4138ab
lea ecx, [esp + 0x18]
cmp byte [ecx + esi], 0x5c
je 0x4138cf
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4138ba
call edi
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x4138c9
lea eax, [esp + 0x18]
cmp byte [eax + esi], 0x2f
jne 0x4138d6
mov eax, 0x42ebd0
jmp 0x4138db
mov eax, 0x42ebcc
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x4138f5
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x413914
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x413914
xor esi, esi
jmp 0x413917
lea esi, [ebx + 0x2c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00418c9a
add esp, 0x2c
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x41395f
mov eax, dword [eax + 4]
jmp 0x413962
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413995
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x413992
cmp eax, 0x57
je 0x413992
cmp eax, 0x15
je 0x413992
cmp eax, 3
je 0x413992
cmp eax, 0x7b
je 0x413992
cmp eax, 0x35
jne 0x413995
xor al, al
ret
mov al, 1
ret
Function at 0x413c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42a881
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, dword [esp + 0x70]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.004124f0
cmp dword [eax + 0x18], 0x10
jb 0x413ca0
mov eax, dword [eax + 4]
jmp 0x413ca3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, 0xffffffff
jne 0x413cf2
push str.boost::filesystem::is_directory
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x68], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
call fcn.00414950
push eax
mov byte [esp + 0x6c], 1
call fcn.00412730
mov eax, esi
shr eax, 4
and eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x60
ret

Function at 0x413d10
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x42a8b1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, dword [esp + 0x58]
mov eax, 0x10
cmp dword [edi + 0x18], eax
jb 0x413d48
mov ecx, dword [edi + 4]
jmp 0x413d4b
lea ecx, [edi + 4]
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], eax
jb 0x413d59
mov eax, dword [esi + 4]
jmp 0x413d5c
lea eax, [esi + 4]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x413da2
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x4c], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.00414a70
push eax
mov byte [esp + 0x50], 1
call fcn.00412730
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x44
ret
Function at 0x414180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a9b3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0x42ed90
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
push edx
push eax
push esi
mov dword [esp + 0x48], 1
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x414c40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], 0
je 0x414cfb
cmp byte [esi + 0x5c], 0x77
jne 0x414cfb
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
mov dword [esi], eax
mov dword [esi + 4], ebp
je 0x414cdd
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 0x4000
nop
cmp dword [esi + 0x10], 0
jne 0x414ca4
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x40]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
push edx
mov dword [esi + 0xc], eax
call edi
cmp dword [esp + 0x10], ebx
jne 0x414cd4
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
add dword [esi + 0x64], eax
add dword [esi + 0x68], ecx
push 0
push esi
call fcn.00415240
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x64], edx
sub dword [esi + 0x68], ecx
add esp, 8
test eax, eax
mov dword [esi + 0x38], eax
jne 0x414cdb
test edx, edx
jne 0x414c80
jmp 0x414cdb
mov dword [esi + 0x38], 0xffffffff
pop edi
pop ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x4c]
push ebp
push edx
push eax
call fcn.00416e50
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, ebp
sub eax, dword [esi + 4]
pop ebp
pop esi
pop ecx
ret
mov eax, 0xfffffffe
pop esi
pop ecx
ret
Function at 0x414d10
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
mov esi, eax
xor ebx, ebx
cmp esi, ebp
mov dword [esp + 0xc], ebp
je 0x414dd2
cmp byte [esi + 0x5c], 0x77
jne 0x414dd2
mov dword [esi + 4], ebp
push edi
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x414d66
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x40]
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], edi
jne 0x414dc6
mov eax, dword [esi + 0x48]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x4000
cmp ebx, ebp
jne 0x414db2
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
add dword [esi + 0x68], ecx
push edx
push esi
call fcn.00415240
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
add esp, 8
cmp edi, ebp
mov dword [esi + 0x38], eax
jne 0x414d93
cmp eax, 0xfffffffb
jne 0x414d93
mov dword [esi + 0x38], ebp
cmp ecx, ebp
jne 0x414da1
cmp dword [esi + 0x38], 1
je 0x414da1
xor ebx, ebx
jmp 0x414da6
mov ebx, 1
mov eax, dword [esi + 0x38]
cmp eax, ebp
je 0x414d34
cmp eax, 1
je 0x414d34
mov esi, dword [esi + 0x38]
mov eax, esi
sub eax, 1
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
or eax, 0xffffffff
mov dword [esi + 0x38], eax
pop esi
pop ebp
pop ebx
pop ecx
ret
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret

Function at 0x414de0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov esi, eax
mov dword [esp + 0x10], 0
mov edi, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x20]
mov eax, esi
push edx
and eax, 0xff
push ebp
mov dword [esp + 0x28], eax
call ebx
shr esi, 8
sub edi, 1
jne 0x414e00
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x418c9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d2ac]
jne 0x418ca4
repz ret
jmp fcn.004190fc

Function at 0x4197cb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041970a
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 sub.MSVCR80.dll_memset
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 0x41981a
cmp dword [ebp - 0x1c], 5
jb 0x419832
jmp 0x41982e
cmp dword [ebp - 0x10], 1
jne 0x419832
cmp dword [ebp - 0x1c], 4
ja 0x41982e
jne 0x419832
cmp dword [ebp - 0x18], 0
jbe 0x419832
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x432358
call fcn.004195bd
test eax, eax
jge 0x419853
mov byte [0x43e0dc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418c9a
add ebp, 0x78
leave
ret

Function at 0x427350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b526
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43d2ac]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x5c]
mov byte [esi + 0x57], cl
mov dword [esi + 0x58], eax
lea edi, [esi + 0x58]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.004256d0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x24
Function at 0x4293d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
cmp cl, 0x39
mov eax, 0x432d6e
mov dword [esp], eax
mov dword [esp + 4], 0x432a5c
mov dword [esp + 8], 0x432a58
mov dword [esp + 0xc], 0x432a54
mov dword [esp + 0x10], 0x432a50
mov dword [esp + 0x14], 0x433484
mov dword [esp + 0x18], 0x42ebd0
mov dword [esp + 0x1c], 0x432a4c
mov dword [esp + 0x20], 0x432a48
mov dword [esp + 0x24], 0x432d78
mov dword [esp + 0x28], 0x432d74
mov dword [esp + 0x2c], 0x432a44
mov dword [esp + 0x30], 0x433050
mov dword [esp + 0x34], 0x432a40
mov dword [esp + 0x38], 0x4335dc
mov dword [esp + 0x3c], 0x432a3c
mov dword [esp + 0x40], str.____
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x432738
mov dword [esp + 0x4c], str.BDMS___
mov dword [esp + 0x50], 0x43359c
mov dword [esp + 0x54], 0x4335a0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x432a28
mov dword [esp + 0x64], 0x432a24
mov dword [esp + 0x68], 0x432d70
mov dword [esp + 0x6c], 0x4335d8
mov dword [esp + 0x70], 0x43273c
mov dword [esp + 0x74], 0x432728
mov dword [esp + 0x78], 0x432708
mov dword [esp + 0x7c], 0x4326f8
mov dword [esp + 0x80], 0x4326f0
mov dword [esp + 0x84], 0x4326e8
mov dword [esp + 0x88], 0x4326e0
mov dword [esp + 0x8c], 0x432734
mov dword [esp + 0x90], 0x432a20
mov dword [esp + 0x94], 0x432d7c
mov dword [esp + 0x98], 0x43272c
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x4327ec
mov dword [esp + 0xc0], 0x4327c0
mov dword [esp + 0xc4], 0x4327a8
mov dword [esp + 0xc8], 0x4327f0
mov dword [esp + 0xcc], str.ZYXWVUTRQPONLKJIHGFECA
mov dword [esp + 0xd0], 0x4327e4
mov dword [esp + 0xd4], 0x432a1c
mov dword [esp + 0xd8], 0x432700
mov dword [esp + 0xdc], 0x4327c4
mov dword [esp + 0xe0], 0x4327cc
jae 0x4295cc
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xe4
ret
Function at 0x4074d8
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x40ac80
call fcn.00407df6
push 1
call fcn.00407665
pop ecx
test al, al
jne 0x40738f
push 7
call fcn.00407bbe
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00407630
mov byte [ebp - 0x24], al
mov eax, dword [0x40d3ac]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x407388
test eax, eax
jne 0x4073f9
mov dword [0x40d3ac], ecx
push 0x4092c0
push 0x4092a8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4073dc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4074d2
push 0x4092a4
push 0x409278
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40d3ac], 2
jmp 0x4073fe
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004077d2
pop ecx
call fcn.00407bb2
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40742e
push esi
call fcn.00407748
pop ecx
test al, al
je 0x40742e
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00407b46
call esi
call fcn.00407bb8
mov esi, eax
cmp dword [esi], edi
je 0x40744c
push esi
call fcn.00407748
pop ecx
test al, al
je 0x40744c
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00407cd4
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00407d07
test al, al
jne 0x407477
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x407480
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004077ef
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4074d2
call fcn.00407e3b
ret
call fcn.00407216
jmp 0x407370

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 0x476ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10688
call fcn.00478ba0
mov eax, dword [0x59a350]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x10678], ecx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10610], ax
mov cx, word [ebp + 0x10]
mov word [ebp - 0x1060e], cx
mov byte [ebp - 0x1060c], 1
mov ecx, dword [ebp + 8]
call fcn.004d2be0
push eax
lea ecx, [ebp - 0x10614]
call fcn.0040da90
lea ecx, [ebp - 0x10614]
call fcn.004d2be0
mov dword [ebp - 0x1067c], eax
lea edx, [ebp - 0x1060b]
mov dword [ebp - 0x10680], edx
mov eax, dword [ebp - 0x10680]
mov dword [ebp - 0x10684], eax
mov ecx, dword [ebp - 0x1067c]
mov dl, byte [ecx]
mov byte [ebp - 0x10685], dl
mov eax, dword [ebp - 0x10680]
mov cl, byte [ebp - 0x10685]
mov byte [eax], cl
mov edx, dword [ebp - 0x1067c]
add edx, 1
mov dword [ebp - 0x1067c], edx
mov eax, dword [ebp - 0x10680]
add eax, 1
mov dword [ebp - 0x10680], eax
cmp byte [ebp - 0x10685], 0
jne 0x477066
mov byte [ebp - 0x60b], 0
mov ecx, dword [str.KartRider.exe]
mov dword [ebp - 0x20b], ecx
mov edx, dword [0x574d70]
mov dword [ebp - 0x207], edx
mov eax, dword [0x574d74]
mov dword [ebp - 0x203], eax
mov cx, word [0x574d78]
mov word [ebp - 0x1ff], cx
mov byte [ebp - 0x10b], 0
lea ecx, [ebp - 0x10614]
call fcn.0040dab0
push 0
push str.patch
call dword [0x5a6d50]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.patchinfo
call dword [0x5a6d5c]
mov dword [ebp - 0x10618], eax
cmp dword [ebp - 0x10618], 0xffffffff
jne 0x47712b
jmp 0x4771a4
push 0
lea edx, [ebp - 0x10664]
push edx
push 0x10606
lea eax, [ebp - 0x10610]
push eax
mov ecx, dword [ebp - 0x10618]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x10618]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x10660]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10660], 0x44
lea eax, [ebp - 0x10674]
push eax
lea ecx, [ebp - 0x10660]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push str.Patcher.exe
call dword [0x5a6d60]
mov edx, dword [ebp - 0x10678]
mov byte [edx + 0x55], 1
mov ecx, dword [ebp - 4]
call fcn.00478a37
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4771c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0x574b1c
mov dword [ebp - 0x44], 0x30
mov dword [ebp - 0x40], 0xb
mov dword [ebp - 0x3c], 0x477470
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x30], ecx
push 0x66
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x40]
push eax
call dword [0x5a6dc8]
mov dword [ebp - 0x2c], eax
push 0x66
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x40]
push edx
call dword [0x5a6dc8]
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call dword [0x5a6dc4]
mov dword [ebp - 0x28], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x44]
push ecx
call dword [0x5a6dd8]
mov ecx, 0x5adf25
call fcn.0044c040
mov ecx, eax
call fcn.0049e8c0
push eax
mov ecx, 0x5adf25
call fcn.0044c040
mov ecx, eax
call fcn.0044bcf0
push eax
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov dword [ebp - 0x14], 0
mov ecx, 0x5adf25
call fcn.0044c040
mov ecx, eax
call fcn.00477670
movzx eax, al
test eax, eax
je 0x4772ac
mov dword [ebp - 0x14], 0xca0000
jmp 0x4772b3
mov dword [ebp - 0x14], bind
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x40]
push edx
push 0
push 0
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
push bind
push bind
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push 0
call dword [0x5a6dac]
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x58], eax
push 5
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x58]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x58]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
mov esp, ebp
pop ebp
ret