joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a4b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x41a4dc
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
and eax, 3
mov al, byte [eax + esi]
xor byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x41a4ca
pop esi
pop ebp
ret

Function at 0x421075
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x34]
mov ecx, dword [edi + 0x64]
sub esi, ecx
sub esi, dword [edi + 0x6c]
mov dword [ebp - 8], esi
jne 0x4210a3
test ecx, ecx
jne 0x4210ad
cmp dword [edi + 0x6c], ecx
jne 0x4210ad
mov esi, ebx
jmp 0x42112a
cmp esi, 0xffffffff
jne 0x4210ad
push 0xfffffffffffffffe
pop esi
jmp 0x42112a
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp ecx, eax
jb 0x42112a
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00424c60
mov ecx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
mov esi, ecx
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x4210e3
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x38]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x421108
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x421183
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push esi
push eax
push ecx
call fcn.004218ba
add dword [edi + 0x6c], eax
add esp, 0xc
cmp dword [edi + 0x6c], 3
jb 0x42116e
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx esi, byte [edx + eax]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp dword [edi + 0x6c], 0x106
jae 0x421183
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x421083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44304d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x474630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x14
call fcn.00441d78
mov edx, eax
add esp, 4
test edx, edx
je 0x401308
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edx + 0xc], eax
jmp 0x40130a
xor edx, edx
mov dword [ebp + 0x18], edx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push edx
push 0x401620
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x401348
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 6
mov dword [edi], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x401360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44304d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x474630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x14
call fcn.00441d78
mov edx, eax
add esp, 4
test edx, edx
je 0x4013b8
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edx + 0xc], eax
jmp 0x4013ba
xor edx, edx
mov dword [ebp + 0x18], edx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push edx
push 0x401690
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4013f8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 6
mov dword [edi], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x401410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44304d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x474630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x14
call fcn.00441d78
mov edx, eax
add esp, 4
test edx, edx
je 0x401468
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edx + 0xc], eax
jmp 0x40146a
xor edx, edx
mov dword [ebp + 0x18], edx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push edx
push 0x401700
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4014a8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 6
mov dword [edi], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x405f50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf94
mov eax, dword [0x474630]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xf94]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x784]
push 0x780
push eax
call fcn.0040d3c0
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
lea eax, [ebp - 0x784]
push eax
movzx eax, word [ebp - 0xf86]
push eax
movzx eax, word [ebp - 0xf88]
push eax
movzx eax, word [ebp - 0xf8a]
push eax
movzx eax, word [ebp - 0xf8c]
push eax
lea eax, [ebp - 0xf84]
push str.MKME:_TIME:__02d:_02d:_02d._03d___s_n
push eax
call fcn.00401800
add esp, 0x38
lea eax, [ebp - 0xf84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0xf84]
push eax
push 0x446520
call fcn.0040d410
lea eax, [ebp - 0xf84]
push eax
call fcn.00424160
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret
Function at 0x40e2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x474630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40e39c
cmp byte [esi + 0x3d], 0
je 0x40e39c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40e38a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40e351
sub eax, 1
je 0x40e355
sub eax, 2
jne 0x40e38a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40e373
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40e38a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00442210
mov esp, ebp
pop ebp
ret
Function at 0x40e4e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x474630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40e510
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40e540
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40e540
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40e63d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40e569
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40e59d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40e5fc
sub eax, 1
je 0x40e5fc
sub eax, 2
jne 0x40e63d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040d630
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40e61a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40e63d
lea ecx, [ebp - 0x28]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442210
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442210
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x40ed64
jl 0x40ed59
test ecx, ecx
jne 0x40ed64
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40ed7e
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x40edca
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x40edd0
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40edd0
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x40ee46
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40edfc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x40ee34
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40ee46
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40ee10
test edi, edi
je 0x40ee46
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ee60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40ee85
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40eeab
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40eeb0
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40ef10
jg 0x40eec5
test esi, esi
je 0x40ef10
test ecx, ecx
jl 0x40ef0b
jg 0x40eecf
test eax, eax
je 0x40ef0b
cmp edi, ecx
jg 0x40eee1
jl 0x40eed9
cmp esi, eax
jae 0x40eee1
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x40ef13
mov ecx, dword [ebp + 8]
jmp 0x40ef1d
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40ef37
jg 0x40ef1d
test esi, esi
je 0x40ef37
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40ef37
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44382d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x474630]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [0x474be0]
xor ebx, ebx
mov esi, dword [ecx + 0x14]
mov edx, eax
mov dword [ebp - 0x14], eax
mov edi, dword [eax + 4]
cmp byte [edi + 0xd], bl
jne 0x4112e3
mov eax, edi
mov ecx, dword [eax + 0x10]
mov edi, eax
cmp ecx, esi
jge 0x4112d2
mov eax, dword [eax + 8]
jmp 0x4112d6
mov edx, eax
mov eax, dword [eax]
xor ebx, ebx
cmp ecx, esi
setge bl
cmp byte [eax + 0xd], 0
je 0x4112c4
cmp byte [edx + 0xd], 0
jne 0x411315
cmp esi, dword [edx + 0x10]
jl 0x411315
push esi
push str.CGenNPC::OnLoad
push str.FUNC:__s____MSG:_CGenNPC::OnLoad___Duplicated_GenNPC._Index:_d_
call fcn.00405f50
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x474be4], 0xaaaaaaa
je 0x4113a0
mov dword [ebp - 0x1c], 0x474be0
push 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00441d78
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x10], esi
mov esi, dword [ebp - 0x10]
mov dword [eax + 0x14], esi
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, 0x474be0
push ebx
push edi
mov word [eax + 0xc], 0
call fcn.0040c8a0
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x1c]
push dword [esi + 0x14]
push str.CGenNPC::OnLoad
push str.FUNC:__s____MSG:_Index:__d_Shape:__d_Pos:__d__d
call fcn.00405f50
add esp, 0x18
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040cab0
int3

Function at 0x4119f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
add edi, esi
cmp esi, edi
je 0x411a1b
movzx edx, byte [esi]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x473800]
cmp esi, edi
jne 0x411a04
pop edi
pop esi
pop ebp
ret

Function at 0x412870
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.0040ce10
mov esi, eax
cmp byte [esi + 0x32], 0
je 0x4128ae
push 0
push 0x9c85
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
push str.CoordPicker::HideUI
push str.FUNC:__s____MSG:_Coord_Picker:_Disabled
mov byte [esi + 0x32], 0
call fcn.00405f50
add esp, 8
push 0
push dword [0x474c08]
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4128c8
mov byte [edi], 0
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x412990
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp byte [esi], 0
je 0x4129db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0xc]
add edx, 0x3e8
cmp edx, eax
jae 0x4129db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 4]
mov dword [esi + 0xc], eax
call sub.pdh.dll_PdhCollectQueryData
lea eax, [ebp - 0x10]
push eax
push 0
push pe_nt_image_headers32
push dword [esi + 8]
call sub.pdh.dll_PdhGetFormattedCounterValue
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ecx + 0x18]
lea eax, [ebp - 1]
push 1
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov al, byte [ebp - 1]
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x416320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ecx + 0x18]
mov esi, dword [ebp + 8]
push 1
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, byte [esi]
push eax
push dword [ebp + 0xc]
call fcn.004119d0
add esp, 0x18
pop esi
pop ebp
ret 8

Function at 0x416350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push dword [esi + 0x18]
push ebx
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x41638f
cmp dword [esi + 0x14], 0x10
jb 0x41637c
mov esi, dword [esi]
push esi
push str.FileReader::ReadBytesCRC
push str.FUNC:__s____MSG:_MKME:_ERROR:_Could_not_read_Vector4_from_file___s_
call fcn.00405f50
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x4163ad
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
push eax
push edi
call fcn.004119d0
inc esi
add esp, 8
mov edi, eax
cmp esi, ebx
jl 0x416395
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4163c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push dword [esi + 0x18]
push 1
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4163fa
cmp dword [esi + 0x14], 0x10
jb 0x4163e7
mov esi, dword [esi]
push esi
push str.FileReader::ReadDword
push str.FUNC:__s____MSG:_MKME:_ERROR:_Could_not_read_DWORD_from_file___s__n
call fcn.00405f50
add esp, 0xc
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push dword [esi + 0x18]
push 1
push 4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x41644e
cmp dword [esi + 0x14], 0x10
jb 0x41643b
mov esi, dword [esi]
push esi
push str.FileReader::ReadDwordCRC
push str.FUNC:__s____MSG:_MKME:_ERROR:_Could_not_read_DWORD_from_file___s__n
call fcn.00405f50
add esp, 0xc
xor esi, esi
movzx eax, byte [esi + ebx]
push eax
push edi
call fcn.004119d0
inc esi
add esp, 8
mov edi, eax
cmp esi, 4
jl 0x416450
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x416470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push dword [esi + 0x18]
push 1
push 4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4164ae
cmp dword [esi + 0x14], 0x10
jb 0x41649b
mov esi, dword [esi]
push esi
push str.FileReader::ReadFloatCRC
push str.FUNC:__s____MSG:_MKME:_ERROR:_Could_not_read_DWORD_from_file___s__n
call fcn.00405f50
add esp, 0xc
xor esi, esi
movzx eax, byte [esi + ebx]
push eax
push edi
call fcn.004119d0
inc esi
add esp, 8
mov edi, eax
cmp esi, 4
jl 0x4164b0
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4164d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push dword [esi + 0x18]
push 0xc
push 4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x41650e
cmp dword [esi + 0x14], 0x10
jb 0x4164fb
mov esi, dword [esi]
push esi
push str.FileReader::ReadMatrix3CRC
push str.FUNC:__s____MSG:_MKME:_ERROR:_Could_not_read_Vector4_from_file___s_
call fcn.00405f50
add esp, 0xc
xor esi, esi
movzx eax, byte [esi + ebx]
push eax
push edi
call fcn.004119d0
inc esi
add esp, 8
mov edi, eax
cmp esi, 0x30
jb 0x416510
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x416530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push dword [esi + 0x18]
push 1
push 0x10
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x41656e
cmp dword [esi + 0x14], 0x10
jb 0x41655b
mov esi, dword [esi]
push esi
push str.FileReader::ReadQuatCRC
push str.FUNC:__s____MSG:_MKME:_ERROR:_Could_not_read_Vector4_from_file___s_
call fcn.00405f50
add esp, 0xc
xor esi, esi
movzx eax, byte [esi + ebx]
push eax
push edi
call fcn.004119d0
inc esi
add esp, 8
mov edi, eax
cmp esi, 0x10
jb 0x416570
pop edi
pop esi
pop ebx
pop ebp
ret 8