joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc60
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
cmp dword [esi + 0x8c], 0
je 0x40ccc3
cmp dword [esi + 0x80], 0
je 0x40ccc9
mov ecx, dword [esi + 0xd0]
sub ecx, dword [esi + 0xcc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40ccc9
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x40d1b0
push 0
push 0
call fcn.00443f27
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x40ccc3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x40ccc3
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [esp + 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x40ccc3
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
add esp, 8
ret

Function at 0x40cd50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0042d961
mov eax, dword [eax + 0xc]
push 0x46a814
push 0x92
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40cdfc
call fcn.0042d961
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40cdfc
call fcn.0042d961
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40cdfc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40cdf5
test ebx, ebx
je 0x40cdf5
push edi
push eax
push ebx
call fcn.0044bee0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push edi
push esi
call fcn.0040c670
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x40fda2
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45f158
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push edi
mov eax, dword [0x47b660]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 5
lea ecx, [esi + 0x1ae8]
call fcn.0042c615
mov eax, dword [esi + 0x1940]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1042
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fd11
push 0
push 0
push str.Invalid_Backup_selected
call fcn.00425212
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x14
ret
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40fd2b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 3
push edi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x1920]
mov dword [esp + 0x28], 0
call fcn.0042e6b4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.00402870
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
jle 0x40fe66
push edi
mov ecx, esi
call fcn.00410190
push 0
push 0
push str.Architect_sw_backup_restored_successfully.
call fcn.00425212
mov ecx, dword [esi + 0x1b08]
push 0
push 0x64
push 0x402
push ecx
call ebp
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40fdda
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0x1878]
mov byte [esp + 0x20], 2
call fcn.0042a960
push 0x4672dc
push str._a_Backup:
lea edx, [esp + 0x14]
push edx
call fcn.00407200
push 0x4672dc
push str.__a_
lea eax, [esp + 0x14]
push eax
call fcn.00407200
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0
push ecx
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fe74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40fe74
push 0
push 0
push str.Invalid_Backup_selected
call fcn.00425212
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x4169c0
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x11]
push ebx
push eax
mov byte [esp + 0x18], bl
call fcn.00446a60
lea ecx, [esi + 0x8a0]
push ecx
push str._S_nparc.bin
lea edx, [esp + 0x20]
push 0x100
push edx
call fcn.0044354d
add esp, 0x1c
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x416a28
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x46bb48
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004449d9
add esp, 0xc
test eax, eax
je 0x416a59
mov edi, str.Failed_to_open_nparc.bin_file_writestructtoini
call fcn.00419530
push str.Failed_to_open_policy_file
call fcn.00444866
jmp 0x416ac4
push 0x800
lea edi, [esi + 0x4da4]
push ebx
push edi
call fcn.00446a60
add esp, 0xc
lea ebx, [esi + 0x3ab4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebx]
movzx edx, word [esi + 0x3ab6]
movzx eax, word [esi + 0x3aba]
push ecx
push edx
push eax
push str._02d__02d__04d
push 0x400
push edi
call fcn.00442ff8
mov ecx, dword [esp + 0x20]
push ecx
push 1
push 0x800
push edi
call fcn.00444c53
add esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
push edx
call fcn.004439e3
mov ecx, dword [esp + 0x410]
add esp, 4
pop edi
pop ebx
xor ecx, esp
call fcn.00442896
add esp, 0x408
ret
Function at 0x416f10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45fa28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x47b660]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x5aa8]
push 0
mov dword [esp + 0x1c], ecx
call fcn.0042c657
mov edi, 0x46bc4c
call fcn.00419530
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416f73
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
xor eax, eax
lea edi, [ebx + 0x38a0]
push 0x467570
mov dword [esp + 0x2c], eax
push edi
mov dword [ebx + 0x3aac], eax
call fcn.00442a9a
add esp, 8
test eax, eax
je 0x417036
push 0x467540
push edi
call fcn.00442a9a
add esp, 8
test eax, eax
jne 0x416fd0
movzx eax, word [ebx + 0x3ab8]
cmp ax, 2
je 0x417036
cmp ax, 5
jmp 0x417034
push 0x467578
push edi
call fcn.00442a9a
add esp, 8
test eax, eax
jne 0x416fec
cmp word [ebx + 0x3ab8], 5
jmp 0x417034
push 0x467568
push edi
call fcn.00442a9a
add esp, 8
test eax, eax
jne 0x417041
movzx ecx, word [ebx + 0x3ab8]
push ecx
lea edx, [esp + 0x18]
push str._02d
push edx
call fcn.00402c20
mov esi, dword [esp + 0x20]
add esp, 0xc
lea eax, [ebx + 0x10a0]
push eax
push 0
push esi
push str.TBSchedule
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x417041
call fcn.00417090
push ebx
call fcn.00417470
mov ecx, dword [esp + 0x18]
push 1
call fcn.0042c657
mov edi, str.taking_architect_backup_end
call fcn.00419530
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41707a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417ef0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x834
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [esp + 0x42]
push ecx
mov word [esp + 0x44], ax
call fcn.00446a60
add esp, 0xc
add esi, 0x10a0
push esi
push 0x400
lea edx, [esp + 0x40]
push edx
push 0x46b9b4
push str.SendDate
push str.tbinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x38]
push 0x46b9b4
push eax
call fcn.00442a9a
add esp, 8
test eax, eax
jne 0x417f6a
mov eax, 7
jmp 0x41803f
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x7e1
push str.SendYr
push str.tbinfo
call edi
push esi
push 0xb
push str.SendMon
push str.tbinfo
mov ebx, eax
call edi
push esi
push 0xb
push str.SendDay
push str.tbinfo
mov ebp, eax
call edi
cmp ebx, 0x76c
jge 0x417fb6
push 0x80004005
call fcn.00401000
lea ecx, [ebp - 1]
cmp ecx, 0xb
jbe 0x417fc8
push 0x80004005
call fcn.00401000
lea edx, [eax - 1]
cmp edx, 0x1e
jbe 0x417fda
push 0x80004005
call fcn.00401000
xor ecx, ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
dec ebp
add ebx, 0xfffff894
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ecx
call fcn.004444c9
mov esi, eax
mov edi, edx
mov ecx, esi
and ecx, edi
add esp, 4
cmp ecx, 0xffffffff
jne 0x418023
push 0x80070057
call fcn.00401000
push 0
call fcn.00444cd5
add esp, 4
push 0
sub eax, esi
push 0x15180
sbb edx, edi
push edx
push eax
call fcn.00447f10
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00442896
add esp, 0x834
ret
Function at 0x418eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x80c
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00446a60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418f5b
test al, 0x10
je 0x418f5b
push esi
push 0x46771c
lea edx, [esp + 0x10]
push 0x400
push edx
call fcn.00442ff8
add esp, 0x10
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418ff9
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea edx, [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00423a90
add esp, 0xc
pop esi
pop ebx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00442896
add esp, 0x80c
ret
push esi
push 0x46771c
lea ecx, [esp + 0x10]
push 0x400
push ecx
call fcn.00442ff8
add esp, 0x10
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418fb8
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
mov ecx, 2
lea esi, [esp + 0xc]
mov ebx, eax
call fcn.00423980
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00442896
add esp, 0x80c
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x418ff2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_file__error__d__n
call fcn.00444a2c
add esp, 8
push 0xffffffffffffffff
jmp 0x418ff3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x80c]
pop esi
pop ebx
xor ecx, esp
call fcn.00442896
add esp, 0x80c
ret
Function at 0x4191f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x864
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x860], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00446a60
push 0x44
lea edx, [esp + 0x28]
push 0
push edx
call fcn.00446a60
mov ecx, dword [esp + 0x884]
push ecx
xor eax, eax
push 0x46771c
lea edx, [esp + 0x80]
push 0x400
push edx
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], ax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00442ff8
add esp, 0x28
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4192a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4192c1
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 0x86c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4192e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x864]
pop esi
xor ecx, esp
call fcn.00442896
add esp, 0x864
ret 4

Function at 0x419910
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 0xc
push 0x4672dc
push 0x400
push 0x47fbf0
call fcn.00442f44
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x4199f8
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 5
push eax
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x400
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4199f8
mov eax, dword [esp]
test eax, eax
je 0x4199f8
push eax
push 0x46771c
push 0x400
push 0x47fbf0
call fcn.00442ff8
add esp, 0x10
mov ecx, 0x4672dc
mov eax, 0x47fbf0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4199b8
test dx, dx
je 0x4199b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4199b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x419992
xor eax, eax
jmp 0x4199bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4199ef
lea eax, [esp + 8]
push eax
push 0x4803f0
mov dword [esp + 0x10], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4199e6
mov eax, 0x467580
add esp, 0xc
ret
mov eax, 0x4803f0
add esp, 0xc
ret
mov eax, 0x47fbf0
add esp, 0xc
ret
mov eax, 0x4672dc
add esp, 0xc
ret
Function at 0x41a3e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x804
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00446a60
lea edx, [esi + 0x20a0]
push edx
push str._s_nparcbkp.lnk
lea eax, [esp + 0x18]
push 0x400
push eax
call fcn.00442ff8
add esp, 0x1c
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a467
push edi
lea edi, [esi + 0x30a0]
add esi, 0x18a0
push esi
push str._s_nparcbkp.exe
push 0x400
push edi
call fcn.00442ff8
add esp, 0x10
push edi
lea edi, [esp + 0xc]
call fcn.0041a480
pop edi
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.00442896
add esp, 0x804
ret
Function at 0x41a480
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x45da66
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
mov eax, dword [0x47b660]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov eax, dword [esp + 0x440]
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x104
push eax
mov dword [esp + 0x448], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jne 0x41a50d
mov dword [esp + 0x438], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41a503
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
jmp 0x41a627
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, ebx
jge 0x41a52b
mov dword [esp + 0x438], 0xffffffff
jmp 0x41a615
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
or ebp, 0xffffffff
push ebp
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
cmp esi, ebx
jge 0x41a54f
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x41a60e
lea eax, [esp + 0x10]
push eax
push 0x466a48
push 1
push ebx
push 0x466b58
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x41a60e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x41a592
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x46d330
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov byte [esp + 0x438], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov esi, eax
cmp esi, ebx
jl 0x41a5f7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push str.NPAV_architect_software_backup_tool
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x41a5f7
push 0x104
push edi
lea eax, [esp + 0x22c]
push 0x104
push eax
call fcn.004444db
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
add esp, 0x10
push 1
lea edx, [esp + 0x228]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov byte [esp + 0x438], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41a60e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x438], ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41a625
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00442896
add esp, 0x42c
ret 4
Function at 0x41d9e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x41d9e7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x41dac4
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 + 0x46ed10]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x46ed10]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x46ed10]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x46ed10]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x46ed10]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x46ed10]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x46ed10]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x46ed10]
inc ecx
sub edx, 8
sub esi, 1
jne 0x41da00
pop edi
test edx, edx
je 0x41daeb
jmp 0x41dad0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x46ed10]
inc ecx
sub edx, 1
jne 0x41dad0
not eax
pop esi
ret

Function at 0x41e210
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x41e242
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 0x41e238
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 0x41e255
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call fcn.0044bee0
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x41e270
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x41e2a3
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 0x41e29d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x41e2cf
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x41e2b5
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 fcn.0044bee0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x41e2e6
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 0x41e2e0
cmp byte [esi + 8], 0
je 0x41e2e0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x41e3d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x41e415
cmp byte [esi + 1], 0
je 0x41e41d
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 0x41e431
cmp byte [esi + 1], 0
je 0x41e423
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 0x41e43a
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x41e3ee
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x41e43a
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 0x41e44e
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00444db5
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41e469
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp edi, eax
jbe 0x41e57c
jmp 0x41e48c
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 0x41e49d
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 0x41e4b6
mov ebp, 0x404
cmp byte [esi], 0
je 0x41e4db
cmp byte [esi + 1], 0
je 0x41e57c
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 0x41e4de
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x41e506
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 0x41e500
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x41e52c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x41e517
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0044bee0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x41e57c
lea eax, [ebp - 3]
test eax, eax
jle 0x41e56e
lea esp, [esp]
dec eax
cmp byte [eax + ebx], 0x50
jne 0x41e55c
cmp byte [eax + ebx + 1], 0x4b
jne 0x41e55c
cmp byte [eax + ebx + 2], 5
jne 0x41e55c
cmp byte [eax + ebx + 3], 6
je 0x41e562
test eax, eax
jg 0x41e540
jmp 0x41e56e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x41e57c
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x41e480
push ebx
call fcn.00443fd7
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret