joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022bf3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10035080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001814c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001814c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10022c6a
cmp word [ecx], dx
je 0x10022c6a
mov eax, dword [0x1002db94]
push edi
dec eax
push eax
push 0x1002da80
call fcn.10022b92
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10022cdd
cmp word [eax], dx
je 0x10022cdd
mov eax, dword [edi]
test eax, eax
je 0x10022c8e
cmp word [eax], dx
je 0x10022c8e
lea eax, [ebp - 0x10]
push eax
call fcn.10022575
jmp 0x10022c97
lea eax, [ebp - 0x10]
push eax
call fcn.10022610
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10022d07
mov eax, dword [0x1002da7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002d770
call fcn.10022b92
add esp, 0xc
test al, al
je 0x10022d07
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10022cd2
cmp word [eax], di
je 0x10022cd2
lea eax, [ebp - 0x10]
push eax
call fcn.10022575
pop ecx
jmp 0x10022d09
lea eax, [ebp - 0x10]
push eax
call fcn.10022610
jmp 0x10022ccf
mov eax, dword [edi]
test eax, eax
je 0x10022cf4
cmp word [eax], dx
je 0x10022cf4
lea eax, [ebp - 0x10]
push eax
call fcn.1002252a
pop ecx
jmp 0x10022d07
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10022dd2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10022a17
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10022dd2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10022dd2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10022dd2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10022d5f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001be91
test ebx, ebx
je 0x10022dcd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001be91
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10022dd2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10022dd2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10025b41
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10022dd4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cc6e
leave
ret
Function at 0x10027960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002798d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002798d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x423a3f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004239d4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00414b10
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 0x423a8e
cmp dword [ebp - 0x1c], 5
jb 0x423aa6
jmp 0x423aa2
cmp dword [ebp - 0x10], 1
jne 0x423aa6
cmp dword [ebp - 0x1c], 4
ja 0x423aa2
jne 0x423aa6
cmp dword [ebp - 0x18], 0
jbe 0x423aa6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42adfc
call fcn.00407108
test eax, eax
jge 0x423ac7
mov byte [0x439698], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004147c2
add ebp, 0x78
leave
ret
Function at 0x4011bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push 0x41c2cc
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.MMVCR70.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40129a
mov esi, dword [sym.imp.MMVCR70.dll_fseek]
push 0
push 3
push ebx
call esi
push 1
push 4
push ebx
call esi
mov edi, dword [sym.imp.MMVCR70.dll_fread]
and dword [ebp - 8], 0
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call edi
push 1
push dword [ebp - 8]
push ebx
call esi
and dword [ebp - 8], 0
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call edi
add esp, 0x44
cmp dword [ebp - 8], 0x3e8
jbe 0x401244
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
pop ecx
xor al, al
jmp 0x40129c
push 1
push 4
push ebx
call esi
sub dword [ebp - 8], 4
push dword [ebp - 8]
call fcn.0041a0aa
add esp, 0x10
mov esi, eax
test esi, esi
push ebx
je 0x401239
push dword [ebp - 8]
push 1
push esi
call edi
mov edi, dword [ebp - 8]
push 0x100
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00405e25
push edi
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.00405e25
push esi
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
add esp, 0x30
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0041a123
leave
ret
Function at 0x402aca
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x41abf5
call fcn.0041a140
sub esp, 0x2d4
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0x10]
mov eax, 0x84
push eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xd8]
push ebx
push eax
mov dword [ebp - 0x14], 3
mov byte [edi], bl
call sub.MMVCR70.dll_memset
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00419dd4
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.CoreDll.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_mfConvertMBCSToT_char_const___unsigned_int_]
add esp, 0x24
mov ecx, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MMVCP70.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.MMVCR70.dll_wcscpy]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp + 8]
call dword [0x4290c0]
test eax, eax
jne 0x402bcf
push esi
xor esi, esi
cmp dword [ebp - 0x58], ebx
jle 0x402bc9
push 0x10
lea eax, [ebp - 0x28]
push ebx
push eax
call sub.MMVCR70.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ebp + esi - 0xd8]
mov dl, byte [ecx + eax]
xor dl, byte [ebp + eax - 0x38]
inc eax
cmp eax, 0x10
mov byte [ebp + eax - 0x29], dl
jl 0x402b97
push 0x10
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.MMVCR70.dll_strncat]
push edi
call sub.MMVCR70.dll_strlen
add esi, 0x10
add esp, 0x10
mov byte [eax + edi], bl
cmp esi, dword [ebp - 0x58]
jl 0x402b7f
xor eax, eax
inc eax
pop esi
jmp 0x402bde
push 0x41c59c
push edi
call sub.MMVCR70.dll_strcpy
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.0041a123
leave
ret
Function at 0x4041dd
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x20]
push eax
push 0
push esi
push 0x4041c5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
mov dword [esi + 0x24], eax
setne cl
mov al, cl
pop esi
ret

Function at 0x405cab
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
and byte [ebp - 5], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [ebp - 4], eax
push edi
je 0x405e12
mov edi, dword [sym.imp.MMVCR70.dll_fread]
and dword [ebp - 0x14], 0
push ebx
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call edi
and dword [ebp - 0x10], 0
mov esi, 0x208
push esi
lea eax, [ebp - 0x444]
push 0
push eax
call sub.MMVCR70.dll_memset
push esi
lea eax, [ebp - 0x23c]
push 0
push eax
call sub.MMVCR70.dll_memset
add esp, 0x28
lea eax, [ebp - 0x444]
push eax
push 0x104
call dword [0x429100]
lea eax, [ebp - 0x23c]
push eax
push 0
push 0x41ca98
lea eax, [ebp - 0x444]
push eax
call dword [0x4290fc]
test eax, eax
je 0x405dff
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x23c]
push 0x41d994
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.MMVCR70.dll__wfopen]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x405e12
test esi, esi
jle 0x405dc0
mov eax, dword [ebx + 0xc]
and eax, 0x10
test eax, eax
jne 0x405dc0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x1e]
cmp ecx, eax
jle 0x405d89
sub eax, esi
jmp 0x405d8c
push 0x1e
pop eax
push ebx
push eax
lea eax, [ebp - 0x34]
push 1
push eax
call edi
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push 1
push eax
call dword [sym.imp.MMVCR70.dll_fwrite]
add esi, eax
mov eax, dword [ebx + 0xc]
add esp, 0x20
and eax, 0x10
mov dword [ebp - 0x10], esi
je 0x405dbb
cmp esi, dword [ebp + 8]
jl 0x405de5
cmp esi, dword [ebp + 8]
jl 0x405d74
push dword [ebp - 0xc]
call dword [sym.imp.MMVCR70.dll_fclose]
push dword [ebp + 0x10]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MMVCR70.dll_wcsncpy]
add esp, 0x10
mov byte [ebp - 5], 1
jmp 0x405e12
push dword [ebp - 0xc]
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._ExtractFileFromStream__write_problem
call fcn.00419ffe
pop ecx
xor al, al
jmp 0x405e15
lea eax, [ebp - 0x444]
push eax
push str._ExtractFileFromStream__GetTempFileName_failed__dir_s
call fcn.00419ffe
pop ecx
pop ecx
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0041a123
leave
ret
Function at 0x405eda
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41acfa
call fcn.0041a140
mov eax, 0x121c
call fcn.0041a1e0
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
lea ecx, [ebp - 0x1228]
mov dword [ebp - 0x10], eax
call fcn.00401122
and dword [ebp - 4], 0
push 0x41c2cc
push dword [ebp + 8]
call dword [sym.imp.MMVCR70.dll__wfopen]
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x1c], edi
je 0x4060d1
mov esi, dword [sym.imp.MMVCR70.dll_fread]
push edi
push 3
lea eax, [ebp - 0x18]
push 1
push eax
call esi
and byte [ebp - 0x15], 0
lea eax, [ebp - 0x18]
push 0x41dae4
push eax
call sub.MMVCR70.dll_strcmp
add esp, 0x18
test eax, eax
je 0x405f65
push edi
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._DisplayCredential__marker___MMC
jmp 0x4060ca
mov ebx, dword [sym.imp.MMVCR70.dll_fseek]
push 1
push 4
push edi
call ebx
and dword [ebp - 0x14], 0
push edi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call esi
push 1
push dword [ebp - 0x14]
push edi
call ebx
and dword [ebp - 0x14], 0
push edi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call esi
add esp, 0x38
cmp dword [ebp - 0x14], 0x3e8
jbe 0x405fb7
push edi
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._DisplayCredential__dwLen_1000
jmp 0x4060ca
push 1
push 4
push edi
call ebx
sub dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.0041a0aa
add esp, 0x10
mov ebx, eax
test ebx, ebx
push edi
je 0x4060bd
push dword [ebp - 0x14]
push 1
push ebx
call esi
mov esi, 0x100
push esi
lea eax, [ebp - 0x101c]
push eax
push ebx
call fcn.00405e25
mov edi, eax
push esi
lea eax, [ebp - 0x121c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00405e25
add edi, eax
push esi
lea eax, [ebp - 0xe1c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00405e25
add edi, eax
push esi
lea eax, [ebp - 0xc1c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00405e25
add esp, 0x40
add edi, eax
push esi
lea eax, [ebp - 0xa1c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00405e25
add edi, eax
push esi
lea eax, [ebp - 0x81c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00405e25
add edi, eax
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00405e25
add edi, eax
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [edi + ebx]
push eax
call fcn.00405e25
add edi, eax
push esi
lea eax, [ebp - 0x21c]
push eax
add edi, ebx
push edi
call fcn.00405e25
push ebx
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
add esp, 0x40
push dword [ebp - 0x1c]
call dword [sym.imp.MMVCR70.dll_fclose]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1228]
push 0xce
push dword [0x429164]
call fcn.00402aab
mov bl, 1
jmp 0x4060e2
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._DisplayCredential__alloc_mem_problem
call fcn.00419ffe
jmp 0x4060df
push dword [ebp + 8]
push str._DisplayCredential__couldnt_open_credential_file___s
call fcn.00419ffe
pop ecx
pop ecx
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.0040151a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
mov al, bl
pop ebx
call fcn.0041a123
leave
ret
Function at 0x40610d
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe8
mov eax, dword [0x429080]
xor eax, dword [ebp + 0x78]
push ebx
push esi
push edi
push 0xa0
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x74]
push 0
push eax
call sub.MMVCR70.dll_memset
push 0x41c2cc
push dword [ebp + 0x7c]
call dword [sym.imp.MMVCR70.dll__wfopen]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4062e0
mov esi, dword [sym.imp.MMVCR70.dll_fread]
push ebx
push 3
lea eax, [ebp + 0x68]
push 1
push eax
call esi
and byte [ebp + 0x6b], 0
lea eax, [ebp + 0x68]
push 0x41dae4
push eax
call sub.MMVCR70.dll_strcmp
add esp, 0x18
test eax, eax
je 0x40618e
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._IsCredentialExpired__marker___MMC
jmp 0x4062d9
mov edi, dword [sym.imp.MMVCR70.dll_fseek]
push 1
push 4
push ebx
call edi
and dword [ebp + 0x6c], 0
push ebx
push 1
lea eax, [ebp + 0x6c]
push 4
push eax
call esi
push 1
push dword [ebp + 0x6c]
push ebx
call edi
and dword [ebp + 0x6c], 0
push ebx
push 1
lea eax, [ebp + 0x6c]
push 4
push eax
call esi
add esp, 0x38
cmp dword [ebp + 0x6c], 0x3e8
jbe 0x4061e0
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._IsCredentialExpired__dwLen_1000
jmp 0x4062d9
push 1
push 4
push ebx
call edi
sub dword [ebp + 0x6c], 4
push dword [ebp + 0x6c]
call fcn.0041a0aa
add esp, 0x10
mov edi, eax
test edi, edi
push ebx
je 0x4062cc
push dword [ebp + 0x6c]
push 1
push edi
call esi
push 0xa0
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.00405e25
push edi
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
lea eax, [ebp - 0x74]
push str.00000000
push eax
call dword [sym.imp.MMVCR70.dll_wcscmp]
add esp, 0x2c
test eax, eax
je 0x4062ef
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.MMVCR70.dll_time]
push 0x24
lea eax, [ebp + 0x2c]
push 0
push eax
call sub.MMVCR70.dll_memset
mov esi, dword [sym.imp.MMVCR70.dll_wcsncpy]
push 2
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x50]
push eax
call esi
mov edi, dword [sym.imp.MMVCR70.dll__wtoi]
and word [ebp + 0x54], 0
lea eax, [ebp + 0x50]
push eax
call edi
dec eax
mov dword [ebp + 0x3c], eax
push 2
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x50]
push eax
call esi
and word [ebp + 0x54], 0
lea eax, [ebp + 0x50]
push eax
call edi
mov dword [ebp + 0x38], eax
push 4
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x50]
push eax
call esi
and word [ebp + 0x58], 0
lea eax, [ebp + 0x50]
push eax
call edi
sub eax, 0x76c
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x2c]
add esp, 0x40
push eax
call dword [sym.imp.MMVCR70.dll_mktime]
cmp dword [ebp + 0x64], eax
pop ecx
setg al
jmp 0x4062f1
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._IsCredentialExpired__alloc_mem_problem
call fcn.00419ffe
jmp 0x4062ee
push dword [ebp + 0x7c]
push 0x41dae8
call fcn.00419ffe
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp + 0x70]
xor ecx, dword [ebp + 0x78]
pop edi
pop esi
pop ebx
call fcn.0041a123
add ebp, 0x74
leave
ret
Function at 0x406304
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push edi
push 0x41c2cc
push dword [ebp + 8]
call dword [sym.imp.MMVCR70.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4063c8
mov edi, dword [sym.imp.MMVCR70.dll_fread]
push ebx
push 3
lea eax, [ebp - 8]
push 1
push eax
call edi
and byte [ebp - 5], 0
lea eax, [ebp - 8]
push 0x41dae4
push eax
call sub.MMVCR70.dll_strcmp
add esp, 0x18
test eax, eax
je 0x40636b
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
mov dword [esp], str._GetLevel__marker___MMC
call fcn.00419ffe
xor eax, eax
jmp 0x4063d9
push esi
mov esi, dword [sym.imp.MMVCR70.dll_fseek]
push 1
push 4
push ebx
call esi
and dword [ebp - 0xc], 0
push ebx
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call edi
push 1
push dword [ebp - 0xc]
push ebx
call esi
push 1
push 4
push ebx
call esi
push ebx
push 1
lea eax, [ebp - 4]
push 4
push eax
call edi
add esp, 0x44
cmp dword [ebp - 4], 0xa
pop esi
jbe 0x4063bf
push dword [ebp - 4]
push str._GetLevel__exceeded_max_levels___d_
call fcn.00419ffe
and dword [ebp - 4], 0
pop ecx
pop ecx
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
jmp 0x4063d6
push dword [ebp + 8]
push str._GetLevel__error_opening_input_file___file_s
call fcn.00419ffe
pop ecx
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x40798c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x41c2cc
push dword [ebp + 8]
call dword [sym.imp.MMVCR70.dll__wfopen]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4079eb
push esi
mov esi, dword [sym.imp.MMVCR70.dll_fseek]
push 0
push 8
push edi
call esi
and dword [ebp - 4], 0
push edi
push 1
lea eax, [ebp - 4]
push 4
push eax
call dword [sym.imp.MMVCR70.dll_fread]
push 1
push dword [ebp - 4]
push edi
call esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00405cab
push edi
call dword [sym.imp.MMVCR70.dll_fclose]
add esp, 0x38
mov al, 1
pop esi
jmp 0x4079fc
push dword [ebp + 8]
push str._ExtractMMZContents__file_open_failed__file_s
call fcn.00419ffe
pop ecx
pop ecx
xor al, al
pop edi
leave
ret

Function at 0x408009
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
and byte [ebp - 5], 0
push ebx
push 0x1e8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x718]
push 0
push eax
call sub.MMVCR70.dll_memset
push 0x41c2cc
push dword [ebp + 8]
call dword [sym.imp.MMVCR70.dll__wfopen]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x408165
push esi
push edi
mov esi, 0xf8
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.MMVCR70.dll_memset
mov edi, dword [sym.imp.MMVCR70.dll_fread]
push ebx
push 1
lea eax, [ebp - 0x120]
push esi
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x718]
call fcn.00407d8c
mov esi, 0x208
push esi
lea eax, [ebp - 0x530]
push 0
push eax
call sub.MMVCR70.dll_memset
push esi
lea eax, [ebp - 0x328]
push 0
push eax
call sub.MMVCR70.dll_memset
add esp, 0x18
lea eax, [ebp - 0x530]
push eax
push 0x104
call dword [0x429100]
lea eax, [ebp - 0x328]
push eax
push 0
push 0x41ca98
lea eax, [ebp - 0x530]
push eax
call dword [0x4290fc]
test eax, eax
je 0x408146
lea eax, [ebp - 0x328]
push 0x41d994
push eax
call dword [sym.imp.MMVCR70.dll__wfopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x408159
jmp 0x40811d
push ebx
push 0x1e
lea eax, [ebp - 0x28]
push 1
push eax
call edi
push esi
push eax
lea eax, [ebp - 0x28]
push 1
push eax
call dword [sym.imp.MMVCR70.dll_fwrite]
add esp, 0x20
test byte [ebx + 0xc], 0x10
je 0x408101
push esi
call dword [sym.imp.MMVCR70.dll_fclose]
push dword [ebp + 0x10]
lea eax, [ebp - 0x328]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MMVCR70.dll_wcsncpy]
add esp, 0x10
mov byte [ebp - 5], 1
jmp 0x408159
lea eax, [ebp - 0x530]
push eax
push str._ExtractZipFromMMZ__GetTempFileName_failed__dir_s
call fcn.00419ffe
pop ecx
pop ecx
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
pop ecx
pop edi
pop esi
jmp 0x408174
push dword [ebp + 8]
push str._ExtractZipFromMMZ__Could_not_open_file___s
call fcn.00419ffe
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov al, byte [ebp - 5]
pop ebx
call fcn.0041a123
leave
ret
Function at 0x408868
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41af07
call fcn.0041a140
sub esp, 0x1a4
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
and dword [ebp - 0x14], 0
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x1e8
push 0
push edi
mov dword [ebp - 0x10], eax
call sub.MMVCR70.dll_memset
push 0x41c2cc
push dword [ebp + 8]
call dword [sym.imp.MMVCR70.dll__wfopen]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x408975
push esi
mov esi, 0xf8
push esi
lea eax, [ebp - 0x1b0]
push 0
push eax
call sub.MMVCR70.dll_memset
push ebx
push 1
lea eax, [ebp - 0x1b0]
push esi
push eax
call dword [sym.imp.MMVCR70.dll_fread]
add esp, 0x1c
lea eax, [ebp - 0x1b0]
push eax
mov ecx, edi
call fcn.00407d8c
push 3
push 0x41eca8
push edi
call dword [sym.imp.MMVCR70.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x408906
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
push ebx
call dword [sym.imp.MMVCR70.dll_fclose]
xor edi, edi
cmp dword [ebp - 0x14], edi
pop ecx
jne 0x40896f
lea ecx, [ebp - 0x18]
call fcn.00404f11
mov esi, 0xa0
push esi
lea eax, [ebp - 0xb8]
push edi
push eax
mov dword [ebp - 4], edi
call sub.MMVCR70.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0xb8]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004055da
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.MMVCR70.dll_wcslen]
cmp eax, 2
pop ecx
jbe 0x408963
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404f28
mov eax, dword [ebp - 0x14]
pop esi
jmp 0x408993
push dword [ebp + 8]
push str._ReadMMZ__file___s_does_not_exist
call fcn.00419ffe
push 0x10
push 0x6f
push 0x67
call fcn.00405740
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.0041a123
leave
ret