joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403018
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x402ff8
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x402ff8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x402fb5
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x402ff8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402d00
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x402feb
mov eax, 8
jmp 0x40305e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 0xc], ecx
jmp 0x402fac
push 0x400
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0x401
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00404053
add esp, 0x10
xor eax, eax
jmp 0x40305e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x2af9
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
ja case.default.0x403036
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x403064]
mov eax, 0x2af9
jmp 0x40305e
mov eax, 0x2afa
jmp 0x40305e
mov eax, 0x2afb
jmp 0x40305e
mov eax, 0x2af9
jmp 0x40305e
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4036ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x4036c4
repz ret
jmp fcn.00405b73

Function at 0x407583
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 0x4075aa
call fcn.004054a0
mov dword [eax], esi
call fcn.0040548d
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040543b
mov eax, esi
jmp 0x4075ff
test dword [ebp + 0xc], 0xfffffff9
jne 0x407590
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4075d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004054b3
pop ecx
call fcn.0040548d
mov eax, dword [eax]
jmp 0x4075ff
test al, 0x10
jne 0x4075fd
test al, 1
je 0x4075fd
test byte [ebp + 0xc], 2
je 0x4075fd
call fcn.004054a0
mov dword [eax], 5
call fcn.0040548d
mov dword [eax], 0xd
jmp 0x4075ce
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40beb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405635
and dword [ebp - 0x14], 0
cmp dword [0x412a9c], 0
mov dword [ebp - 0x18], eax
jne 0x40bf63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c00b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c00b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412a9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412aa0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412aa4], eax
call edi
push eax
call esi
mov dword [0x412aac], eax
test eax, eax
je 0x40bf63
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412aa8], eax
mov eax, dword [0x412aa8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40bfbc
cmp dword [0x412aac], ecx
je 0x40bfbc
push eax
call esi
push dword [0x412aac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40bfbc
test ebx, ebx
je 0x40bfbc
call edi
test eax, eax
je 0x40bfb3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40bfb3
test byte [ebp - 8], 1
jne 0x40bfbc
or dword [ebp + 0x10], 0x200000
jmp 0x40bfef
mov eax, dword [0x412aa0]
cmp eax, dword [ebp - 0x18]
je 0x40bfef
push eax
call esi
test eax, eax
je 0x40bfef
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bfef
mov eax, dword [0x412aa4]
cmp eax, dword [ebp - 0x18]
je 0x40bfef
push eax
call esi
test eax, eax
je 0x40bfef
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412a9c]
call esi
test eax, eax
je 0x40c00b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c00d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004036ba
leave
ret
Function at 0x40134e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401363
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401375
xor eax, eax
jmp 0x4013a7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401399
cmp esi, eax
jae 0x401371
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40138b
cmp esi, eax
jae 0x401371
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x405477
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4da2a6
call fcn.004d1d50
sub esp, 0x44
mov eax, dword [0x52e400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x20], ecx
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40558a
mov dword [ebp - 0x14], esi
push esi
push esi
push 0x80
push 3
push 1
push 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x14]
call fcn.004015a3
cmp eax, esi
je 0x4054f0
cmp dword [ebp - 0x14], esi
je 0x40558a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40558a
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
push 4
push 2
push esi
push esi
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004015d9
cmp eax, esi
jne 0x405571
cmp dword [ebp - 0x50], esi
je 0x405571
mov ecx, dword [ebp - 0x20]
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00404832
mov edi, dword [ebp - 0x18]
cmp edi, esi
mov ebx, eax
je 0x405570
cmp ebx, esi
je 0x40556a
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp - 0x1c]
push 0x1401
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
lea ecx, [ebp - 0x50]
call fcn.00401686
cmp dword [ebp - 0x14], esi
je 0x405587
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret 0x1c
Function at 0x4055b2
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
lea eax, [ebp - 8]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.libexpat.dll_Ordinal_2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405733
cmp dword [ebp - 8], ebx
je 0x405733
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.ThunderAgent.TaskList2.Unicode
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], 3
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x405678
cmp dword [ebp - 4], ebx
je 0x405678
push dword [ebp - 4]
call fcn.004d1949
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x405646
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], ebx
je 0x405678
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00403bfb
jmp 0x4056f8
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.ThunderAgent.TaskList2
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x405726
cmp dword [ebp - 4], ebx
je 0x405726
push dword [ebp - 4]
call fcn.004d1949
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x4056cb
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], ebx
je 0x405726
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00404832
push dword [ebp - 0x10]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov esi, dword [ebp - 0x14]
cmp esi, ebx
pop ecx
je 0x405726
mov eax, dword [esi]
push esi
call dword [eax + 4]
push esi
push dword [ebp - 0x18]
push 0x1401
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
jmp 0x405739
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
leave
ret
Function at 0x405795
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xe0
mov eax, dword [0x52e400]
push ebx
mov ebx, dword [ebp + 0x78]
push esi
push edi
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
push 0x31
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
pop ecx
push dword [ebp + 0x74]
xor eax, eax
xor esi, esi
mov word [ebp - 0x60], si
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
push str.ThunderAgent.Unicode
stosw word es:[edi], ax
lea eax, [ebp - 0x60]
push str._s_TaskData__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, esi
mov dword [ebp - 0x6c], eax
je 0x40583a
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x405831
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
call fcn.00403bfb
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x68]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
add ebp, 0x6c
leave
ret 0xc

Function at 0x405850
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xe0
mov eax, dword [0x52e400]
push ebx
mov ebx, dword [ebp + 0x78]
push esi
push edi
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
push 0x31
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
pop ecx
push dword [ebp + 0x74]
xor eax, eax
xor esi, esi
mov word [ebp - 0x60], si
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
push str.ThunderAgent
stosw word es:[edi], ax
lea eax, [ebp - 0x60]
push str._s_TaskData__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, esi
mov dword [ebp - 0x6c], eax
je 0x4058f5
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4058ec
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
call fcn.00404832
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x68]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
add ebp, 0x6c
leave
ret 0xc
Function at 0x40590b
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0xf4
mov eax, dword [0x52e400]
xor eax, ebp
and word [ebp - 0x7c], 0
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x70]
push ebx
mov ebx, dword [ebp + 0x60]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x74]
push esi
mov esi, dword [ebp + 0x5c]
push edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x7c]
push 0x31
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x94], ecx
pop ecx
push dword [ebp + 0x58]
xor eax, eax
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
push str.ThunderAgent.Unicode
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push str._s_TaskData__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
xor edi, edi
push edi
push 4
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [ebp - 0x9c], eax
je 0x405a15
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405a09
push dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x94]
push dword [ebp - 0xa4]
push dword [ebp - 0x98]
push dword [ebp - 0x90]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push ebx
push esi
push edi
call fcn.004035a1
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
add ebp, 0x50
leave
ret 0x28
Function at 0x4073b6
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x9a4]
sub esp, 0xa24
mov eax, dword [0x52e400]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp + 0x9a0], eax
mov eax, dword [ebp + 0x9ac]
push str..CrashRevert
mov dword [ebp - 0x78], eax
push 0x52ea50
lea eax, [ebp + 0x798]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x68], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x66]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x798]
push eax
push 0x3ff
lea eax, [ebp - 0x68]
push eax
push 0x4ec264
push str.taskid
push 0x4ec644
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea esi, [ebp - 0x68]
mov eax, esi
push 0x4ec640
push eax
call dword [sym.imp.MSVCR71.dll_wcsstr]
jmp 0x4074b4
push esi
mov word [edi], bx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.MSVCR71.dll_wcslen]
test eax, eax
pop ecx
jbe 0x407493
mov eax, dword [ebp - 0x6c]
movzx eax, word [esi + eax*2]
push 0
push 0xa
push dword [ebp - 0x70]
sub eax, 0x30
push dword [ebp - 0x74]
cdq
mov edi, eax
mov ebx, edx
call fcn.004d1e80
add edi, eax
adc ebx, edx
inc dword [ebp - 0x6c]
push esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.MSVCR71.dll_wcslen]
cmp dword [ebp - 0x6c], eax
pop ecx
jb 0x407458
mov edi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00407221
lea esi, [edi + 2]
push 0x4ec640
push esi
call dword [sym.imp.MSVCR71.dll_wcsstr]
xor ebx, ebx
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x7c], edi
jne 0x407440
mov ecx, dword [ebp + 0x9a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
add ebp, 0x9a4
leave
ret 4
Function at 0x4085c9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
xor edi, edi
cmp dword [0x52fea0], edi
jne 0x4085e4
mov eax, 0x40000006
jmp 0x408659
cmp dword [ebp + 8], edi
jne 0x4085ee
push 8
pop eax
jmp 0x408659
cmp dword [ebp + 0xc], edi
je 0x4085fa
mov eax, 0x40000001
jmp 0x408659
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40860e
mov eax, 0x40000002
jmp 0x408659
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x84]
call fcn.00401d8a
mov eax, dword [eax]
push edi
push eax
call sub.minizip.dll_zipOpen
mov esi, eax
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x84], eax
pop ecx
pop ecx
je 0x408642
push dword [ebp - 0x84]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp esi, edi
je 0x408653
push edi
push esi
call sub.minizip.dll_zipClose
pop ecx
pop ecx
xor eax, eax
jmp 0x408658
mov eax, 0x40000003
pop esi
pop edi
leave
ret
Function at 0x40865c
Capabilities:
Copy file

Disassembly:
mov eax, 0x4da673
call fcn.004d1d50
sub esp, 0x288
mov eax, dword [0x52e400]
push esi
push edi
mov esi, ecx
xor eax, ebp
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x280], edi
call fcn.0040a2d0
test eax, eax
jbe 0x40874f
push ebx
mov eax, dword [esi + 0x28]
cmp dword [edi + eax + 0x14], 0
je 0x408731
lea ecx, [ebp - 0x27c]
add eax, edi
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x284], eax
je 0x408731
mov eax, dword [esi + 0x78]
cmp dword [ebp - 0x264], eax
ja 0x4086dc
jne 0x408725
mov eax, dword [ebp - 0x268]
cmp eax, dword [esi + 0x74]
jbe 0x408725
mov eax, dword [esi + 0x28]
add eax, edi
push str..backup
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407aea
add esp, 0xc
mov eax, dword [esi + 0x28]
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x2c]
lea ebx, [edi + eax]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp - 0x280]
lea ecx, [esi + 0x24]
add edi, 0x1c
call fcn.0040a2d0
cmp dword [ebp - 0x280], eax
jb 0x408693
pop ebx
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
add esi, 0x74
push esi
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret 4

Function at 0x4089a6
Capabilities:
Create thread

Disassembly:
mov eax, 0x4da5f5
call fcn.004d1d50
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea eax, [esi + 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040832c
xor ebx, ebx
cmp dword [esi + 0x48], ebx
mov dword [ebp - 4], ebx
jne 0x4089eb
lea eax, [esi + 0x4c]
push eax
push ebx
push esi
push 0x408871
push ebx
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x48], eax
je 0x408a05
push dword [ebp + 8]
lea ecx, [esi + 0x34]
mov eax, dword [ecx + 4]
push eax
call fcn.004087d1
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov bl, 1
lea ecx, [ebp - 0x14]
call fcn.00408355
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x408d75
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4da699
call fcn.004d1d50
sub esp, 0x14
cmp dword [0x52fea0], 0
jne 0x408d95
mov eax, 0x40000006
jmp 0x408e2f
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408daa
push 2
pop eax
jmp 0x408e2f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x408dc0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408bde
pop ecx
pop ecx
jmp 0x408e2f
mov ecx, dword [eax + 4]
mov eax, dword [eax]
and dword [ebp - 0x14], 0
push 0x38
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
call fcn.004d1924
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x408df2
call fcn.00407840
jmp 0x408df4
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x408e03
mov eax, 0x40000005
jmp 0x408e2f
push dword [ebp + 8]
xor ecx, ecx
call dword [0x4eb738]
push dword [ebp + 0xc]
push 0x1c
pop ecx
call dword [0x4eb738]
mov ecx, dword [0x52fea0]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
call fcn.004089a6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret