joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401410
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040b920
mov eax, dword [0x413028]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
push edi
push 0
push 0x8000027
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0
mov dword [ecx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp esi, 0xffffffff
jne 0x401476
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
jmp 0x4014e9
push 0
lea eax, [ebp - 0x70]
push eax
push 0x1000
lea ecx, [ebp - 0x6c]
push ecx
push esi
mov dword [ebp - 0x80], 0x4130b8
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014e9
cmp dword [ebp - 0x70], 0
je 0x4014e9
push esi
push edi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x80]
lea esi, [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x4014b0
pop edi
pop esi
mov eax, dword [ebp - 0x78]
mov dword [eax], ecx
mov esi, dword [ebp - 0x7c]
push 0
lea edx, [ebp - 0x70]
push edx
push 0x1000
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401497
test esi, esi
je 0x4014f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
not ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b240
add ebp, 0xf98
mov esp, ebp
pop ebp
ret
Function at 0x403940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x403947
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x403a24
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x40e5f0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x403960
pop edi
test edx, edx
je 0x403a4b
jmp 0x403a30
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x40e5f0]
inc ecx
sub edx, 1
jne 0x403a30
not eax
pop esi
ret

Function at 0x404170
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x4041a2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404198
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x4041b5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call sub.MSVCR90.dll_memcpy
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x4041d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x404203
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4041fd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40422f
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x404215
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x404246
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x404240
cmp byte [esi + 8], 0
je 0x404240
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4042e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x404325
cmp byte [esi + 1], 0
je 0x40432d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x404341
cmp byte [esi + 1], 0
je 0x404333
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40434a
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x4042fe
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40434a
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40435e
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40437a
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp edi, eax
jbe 0x40448c
jmp 0x40439d
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4043ae
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4043c7
mov ebp, 0x404
cmp byte [esi], 0
je 0x4043ec
cmp byte [esi + 1], 0
je 0x40448c
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4043ef
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x404417
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404411
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40443d
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x404428
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40448c
lea eax, [ebp - 3]
test eax, eax
jle 0x40447e
lea ecx, [ecx]
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40446c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40446c
cmp byte [eax + ebx + 2], 5
jne 0x40446c
cmp byte [eax + ebx + 3], 6
je 0x404472
test eax, eax
jg 0x404450
jmp 0x40447e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x40448c
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x404391
push ebx
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x405220
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40528c
cmp dword [ebx + 4], 0xffffffff
jne 0x40528c
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405243
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [0x40ebe8]
push ecx
push edx
lea esi, [esp + 0x1c]
mov dword [edi], eax
call fcn.00404120
add esp, 8
test eax, eax
jne 0x40527a
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.004044b0
mov dword [ebx], eax
mov eax, dword [0x413a34]
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8

Function at 0x4056d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x413028]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
test edi, edi
je 0x4057bd
movzx eax, word [edi]
test ax, ax
je 0x4057bd
push esi
mov esi, edi
mov ecx, edi
movzx eax, ax
cmp ax, 0x2f
je 0x40571c
cmp ax, 0x5c
jne 0x40571e
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x405710
cmp esi, edi
je 0x405754
sub esi, edi
sar esi, 1
push esi
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
lea edx, [esp + 0x18]
push edx
xor ecx, ecx
push ebx
mov word [esp + esi*2 + 0x20], cx
call fcn.004056d0
add esp, 0x14
lea edx, [esp + 0x214]
mov eax, ebx
sub edx, ebx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405760
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405773
lea edi, [esp + 0x214]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405790
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.0040b240
add esp, 0x414
ret
Function at 0x406320
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [esi + 0x18], 0
je 0x4063dc
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
add eax, edi
cmp eax, ecx
jb 0x4063bb
add ecx, ecx
mov ebp, ecx
cmp ecx, eax
ja 0x406348
mov ebp, eax
push 0
push ebp
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40637d
push ebp
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x406389
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, 0x300
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
push ecx
push edx
push edi
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x20], ebp
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x14]
add eax, dword [esi + 0x18]
push edi
push edx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esi]
test eax, eax
je 0x406409
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop ecx
ret 8
Function at 0x406640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40be4d
mov eax, dword fs:[0]
push eax
sub esp, 0xe3c
mov eax, dword [0x413028]
xor eax, esp
mov dword [esp + 0xe34], eax
push esi
push edi
mov eax, dword [0x413028]
xor eax, esp
push eax
lea eax, [esp + 0xe48]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call sub.mfc90u.dll_CWinApp::InitInstance
push 0
call sub.mfc90u.dll_AfxEnableControlContainer
add esp, 4
push 0x40ec40
mov ecx, esi
call sub.mfc90u.dll_CWinApp::SetRegistryKey
lea ecx, [esp + 0x14]
push ecx
call fcn.00407200
push str.GlobalUpGradeNP
push 0
lea edx, [esp + 0x1c]
mov dword [esp + 0xe58], 0
push 0x100000
mov dword [esi + 0x20], edx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x406733
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40f620
push str.c:zvUpgradeNp.log
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40672b
mov edi, dword [sym.imp.MSVCR90.dll_fputs]
push esi
push str._tAnother_Instance_of_UpGradeNP_is_Already_Running_so_Quitting.
call edi
push esi
push 0x40ec00
call edi
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
push 0
call dword [sym.imp.MSVCR90.dll_exit]
push str.GlobalUpGradeNP
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [esp + 0x14]
call sub.mfc90u.dll_CDialog::DoModal
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xe54], 0xffffffff
call fcn.00406790
xor eax, eax
mov ecx, dword [esp + 0xe48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xe34]
xor ecx, esp
call fcn.0040b240
mov esp, ebp
pop ebp
ret
Function at 0x4089a0
Capabilities:
Get file size

Disassembly:
sub esp, 0x20c
mov eax, dword [0x413028]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0xa0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408a1d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040b240
add esp, 0x20c
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040b240
add esp, 0x20c
ret
Function at 0x4097d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push 0x40f1e8
push 0x85
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40985e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40985e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x40fbc8
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40983a
pop edi
pop esi
pop ecx
ret 4
push eax
push esi
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x409870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0x40f1e8
push 0x86
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4098c5
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4098c5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [esp + 0x10]
push edi
push 0x28
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
pop edi
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x4098d0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x413028]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
mov ebp, dword [esp + 0x174]
push esi
push edi
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
xor ecx, ecx
mov edx, 5
push ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x44
mov word [esp + 0x56], cx
mov dword [esp + 0x50], 1
mov word [esp + 0x54], dx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409a7d
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409946
sub eax, edx
sar eax, 1
je 0x40998e
mov eax, ebp
mov edx, ebp
jmp 0x409960
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409960
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409972
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
push eax
xor edi, edi
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push 0x10
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409a46
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x14], edi
call esi
mov eax, ebp
mov dword [esp + 0xc], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4099d2
sub eax, edx
sar eax, 1
lea edx, [esp + 0x68]
je 0x4099f8
push ebp
push ebx
push str.Successfully_Shell_to__S__With_Commandline__S_.
call fcn.0040aab0
add esp, 0xc
jmp 0x409a06
push ebx
push str.Successfully_Shell_to__S.
call fcn.0040aab0
add esp, 8
push 0x40f620
push str.c:zvUpgradeNp.log
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x409a3f
mov edi, dword [sym.imp.MSVCR90.dll_fputs]
lea ecx, [esp + 0x68]
push esi
push ecx
call edi
push esi
push 0x40ec00
call edi
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
xor eax, eax
jmp 0x409aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str._S_Shell_failed_Error__g
lea edx, [esp + 0x74]
call fcn.0040aab0
push 0x40f620
push str.c:zvUpgradeNp.log
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x409ac5
push esi
lea edx, [esp + 0x6c]
push edx
jmp 0x409aab
push ebx
push str._S_File_Not_Present.
lea edx, [esp + 0x70]
call fcn.0040aab0
push 0x40f620
push str.c:zvUpgradeNp.log
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409ac5
push esi
lea eax, [esp + 0x6c]
push eax
mov edi, dword [sym.imp.MSVCR90.dll_fputs]
call edi
push esi
push 0x40ec00
call edi
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040b240
add esp, 0x16c
ret 4
Function at 0x409af0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x348
mov eax, dword [0x413028]
xor eax, esp
mov dword [esp + 0x344], eax
mov eax, dword [esp + 0x34c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x152]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
mov word [esp + 0x154], cx
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
push 0x103
push eax
lea ecx, [esp + 0x49]
push ecx
mov word [esp + 0x38], ax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov word [esp + 0x4a], ax
mov byte [esp + 0x4c], al
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
push 0
push str.count
push str.FILE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jle 0x409ccc
lea ebp, [eax + 1]
push ebp
push 0x40ee04
lea edx, [esp + 0x34]
call fcn.0040aad0
add esp, 8
push edi
push 0x104
lea edx, [esp + 0x150]
push edx
push str.sam
lea eax, [esp + 0x3c]
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x148]
push str.sam
push ecx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409cc2
lea edx, [esp + 0x148]
push 0x40f28c
push edx
call dword [sym.imp.MSVCR90.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x409cc2
add esi, 2
push esi
call fcn.00409cf0
test eax, eax
je 0x409cc2
xor eax, eax
push 0xc8
mov word [esi - 2], ax
call sub.mfc90u.dll_new__
add esp, 4
push 0xc8
mov esi, eax
push 0
push esi
mov dword [esp + 0x24], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x148]
push ecx
push 0x64
push esi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
lea edx, [esp + 0x148]
push edx
push str._S_Found_in_exclude__Updexd.ini
lea edx, [esp + 0x48]
call fcn.0040aab0
push 0x40f620
push str.c:zvUpgradeNp.log
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409ca2
mov edi, dword [sym.imp.MSVCR90.dll_fputs]
lea eax, [esp + 0x40]
push esi
push eax
call edi
push esi
push 0x40ec00
call edi
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
mov ecx, dword [esp + 0x1c]
add ecx, 0x88
push ecx
lea ebx, [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.0040a470
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, ebp
cmp eax, ebx
jl 0x409b8f
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b240
add esp, 0x348
ret 4
Function at 0x40a0e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40ba54
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x413028]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push esi
push edi
mov eax, dword [0x413028]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x236]
push eax
mov word [esp + 0x238], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x24]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40a170
mov ecx, 0x11
mov esi, str.Net_ProtectorupdUpdHistory.ini
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x14]
mov dword [esp + 0x440], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push 0
mov byte [esp + 0x444], 1
call dword [sym.imp.MSVCR90.dll__time64]
add esp, 4
mov dword [esp + 0x20], edx
push str._Y__m__d
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.004070f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x444], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.004089a0
mov ecx, eax
mov eax, 0x431bde83
mul ecx
mov eax, dword [esp + 0x10]
shr edx, 0x12
push eax
mov dword [ebx + 0x3cc], edx
push edx
add ebx, 0xc20
push ebx
push str.Offline_patch_of_the_date__s_and_size_of__d_MB_updated_on_server_on_date_of__s
lea edx, [esp + 0x23c]
call fcn.00406f90
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x230]
push edx
push eax
push str.UpdateHistory
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0040b240
add esp, 0x434
ret