joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401078
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5bc]
sub esp, 0x63c
mov eax, dword [0x418030]
xor eax, ebp
mov dword [ebp + 0x5b8], eax
mov eax, dword [ebp + 0x5cc]
push ebx
mov ebx, dword [ebp + 0x5c4]
push esi
push edi
mov dword [ebp - 0x64], eax
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp + 0x3b0], ax
lea eax, [ebp + 0x3b2]
push eax
call fcn.00407350
add esp, 0xc
lea eax, [ebp + 0x3b0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401119
xor eax, eax
push edi
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push eax
call fcn.00407350
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.12au_x
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00405e47
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x3b0]
push esi
push eax
call fcn.00405ee2
add esp, 0x1c
lea eax, [ebp + 0x3b0]
push eax
mov ecx, ebx
call fcn.00401734
pop ecx
test eax, eax
je 0x4011cd
push 0x204
lea eax, [ebp + 0x1ac]
push 0
push eax
mov dword [ebp + 0x1a8], 0x30
call fcn.00407350
push 0xffffffffffffffff
lea eax, [ebp + 0x3b0]
push eax
lea eax, [ebp + 0x1a8]
push esi
push eax
call fcn.00405d74
push 0x413ce0
lea eax, [ebp + 0x1a8]
push esi
push eax
call fcn.00405ee2
push 0x413ce4
lea eax, [ebp + 0x1a8]
push esi
push eax
call fcn.00405ee2
add esp, 0x34
lea eax, [ebp + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4011cd
push str.InstallerModuleEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4011bf
push dword [ebp - 0x64]
lea ecx, [ebp + 0x3b0]
push ecx
push ebx
call eax
add esp, 0xc
jmp 0x4011c4
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4011d2
call fcn.00401000
lea eax, [ebp + 0x3b0]
push eax
lea esi, [ebp - 0x80]
call fcn.0040120d
mov eax, esi
call fcn.00401bcd
push 0
push 1
call fcn.004012b1
mov ecx, dword [ebp + 0x5b8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405d65
add ebp, 0x5bc
leave
ret 0x10
Function at 0x401bcd
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, eax
push esi
call fcn.00401bf4
cmp dword [esi + 0x18], 8
pop ecx
jb 0x401be2
mov esi, dword [esi + 4]
jmp 0x401be5
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop esi
ret

Function at 0x401bf4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410f85
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x418030]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x418030]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call fcn.0040207e
and dword [esp + 0x78], 0
lea eax, [esp + 0x1c]
push eax
call fcn.0040207e
push ebx
lea edi, [esp + 0x38]
mov byte [esp + 0x7c], 1
call fcn.00401e7a
pop ecx
push ebx
lea edi, [esp + 0x20]
call fcn.00401ee9
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
pop ecx
cdq
push 0x1c
pop ecx
idiv ecx
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
cdq
idiv ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], edi
jbe 0x401ce1
push ebx
lea esi, [esp + 0x50]
call fcn.00401f5b
push edi
lea esi, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.004020e3
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401b1c
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x401cbe
lea eax, [esp + 0x50]
push eax
call fcn.004066da
pop ecx
push 0
push 1
lea esi, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.004012b1
inc edi
cmp edi, dword [esp + 0x14]
jb 0x401c8b
xor edi, edi
cmp dword [esp + 0x18], edi
jbe 0x401d4a
push ebx
lea esi, [esp + 0x50]
call fcn.00401f5b
push edi
lea esi, [esp + 0x20]
mov byte [esp + 0x7c], 3
call fcn.004020e3
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401b1c
pop ecx
lea eax, [esp + 0x4c]
push eax
call fcn.00401bf4
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x401d27
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea esi, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.004012b1
inc edi
cmp edi, dword [esp + 0x18]
jb 0x401ce9
lea esi, [esp + 0x1c]
call fcn.004020b6
lea esi, [esp + 0x34]
call fcn.004020b6
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00405d65
mov esp, ebp
pop ebp
ret
Function at 0x401d7c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x410ec4
call fcn.00407ae6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x268], ecx
jb 0x401d9f
mov eax, dword [eax + 4]
jmp 0x401da2
add eax, 4
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
mov edi, eax
inc ebx
cmp edi, 0xffffffff
je 0x401e6b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x413d38
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x401e55
push 0x413d3c
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x401e55
cmp byte [ebp + 0xc], 0
je 0x401e1d
test byte [ebp - 0x264], 0x10
je 0x401e55
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x284]
call fcn.0040120d
and dword [ebp - 4], 0
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
call fcn.00402109
jmp 0x401e49
test byte [ebp - 0x264], 0x10
jne 0x401e55
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x2a0]
call fcn.0040120d
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], ebx
call fcn.00402109
or dword [ebp - 4], 0xffffffff
push 0
push ebx
call fcn.004012b1
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x401dbe
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
call fcn.00407b69
ret

Function at 0x4034d5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x418030]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x4035c5
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x4035c5
push edi
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.00407350
movzx eax, byte [ebp - 0x25d]
push eax
movzx eax, byte [ebp - 0x25e]
push eax
movzx eax, byte [ebp - 0x25f]
push eax
movzx eax, byte [ebp - 0x260]
push eax
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, word [ebp - 0x266]
push eax
movzx eax, word [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
lea edi, [ebp - 0x54]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
pop ecx
call fcn.0040343c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00407350
add esp, 0x48
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, edi
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
pop edi
jmp 0x4035c7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405d65
leave
ret
Function at 0x40569c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, eax
test edx, edx
jne 0x4056a7
xor eax, eax
pop edi
ret
or eax, 0xffffffff
push esi
mov ecx, 0xff
cmp edi, 8
jb 0x40575a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4152e8]
inc edx
sub edi, 8
dec esi
jne 0x4056bf
pop ebx
test edi, edi
je 0x405773
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4152e8]
inc edx
dec edi
jne 0x40575e
pop esi
not eax
pop edi
ret

Function at 0x405d65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418030]
jne 0x405d6f
repz ret
jmp fcn.00407b87
Function at 0x40f975
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040903f
and dword [ebp - 4], 0
cmp dword [0x419efc], 0
mov ebx, eax
jne 0x40fa26
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40fad7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40fad7
push eax
call fcn.00408fcd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419efc], eax
call esi
push eax
call fcn.00408fcd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419f00], eax
call esi
push eax
call fcn.00408fcd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419f04], eax
call esi
push eax
call fcn.00408fcd
pop ecx
mov dword [0x419f0c], eax
test eax, eax
je 0x40fa26
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408fcd
pop ecx
mov dword [0x419f08], eax
mov eax, dword [0x419f08]
cmp eax, ebx
je 0x40fa7e
cmp dword [0x419f0c], ebx
je 0x40fa7e
push eax
call fcn.00409048
push dword [0x419f0c]
mov esi, eax
call fcn.00409048
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40fa7e
test edi, edi
je 0x40fa7e
call esi
test eax, eax
je 0x40fa75
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40fa75
test byte [ebp - 0xc], 1
jne 0x40fa7e
or dword [ebp + 0x10], 0x200000
jmp 0x40fab7
mov eax, dword [0x419f00]
cmp eax, ebx
je 0x40fab7
push eax
call fcn.00409048
pop ecx
test eax, eax
je 0x40fab7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40fab7
mov eax, dword [0x419f04]
cmp eax, ebx
je 0x40fab7
push eax
call fcn.00409048
pop ecx
test eax, eax
je 0x40fab7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419efc]
call fcn.00409048
pop ecx
test eax, eax
je 0x40fad7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40fad9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403570
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x42d5dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x814], 0xffffffff
mov dword [ebp - 0x80c], 0
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call fcn.00412ce0
add esp, 0xc
push str.SYSTEMCurrentControlSetServices_
push 0x400
lea edx, [ebp - 0x804]
push edx
call fcn.004011c0
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0x804]
push ecx
call fcn.00401260
lea edx, [ebp - 0x80c]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x804]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x814], eax
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x814]
push edx
push str.SetIntervalToReg_RegOpenKeyExW_HKEY_LOCAL_MACHINE_nResult_d_szSvcReg_s
push 0xd3
push 0x42817c
call fcn.004065b0
add esp, 0x14
cmp dword [ebp - 0x814], 0
je 0x40366e
mov eax, dword [ebp - 0x814]
push eax
push str.SetIntervalToReg_RegOpenKeyExW_HKEY_LOCAL_MACHINE_failed_Result___d_n
push 0xd3
push 0x42822c
call fcn.004065b0
add esp, 0x10
cmp dword [ebp - 0x80c], 0
je 0x403669
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40373d
mov dword [ebp - 0x810], 0
lea edx, [ebp - 0x810]
push edx
push 0xf003f
push 0
push 0x42818c
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
push ecx
push str.SetIntervalToReg_RegOpenKeyEx_Interval_Result___d_n
push 0xd3
push 0x4282b8
call fcn.004065b0
add esp, 0x10
cmp dword [ebp - 0x814], 0
je 0x403719
mov dword [ebp - 0x808], 0x3c
push 4
lea edx, [ebp - 0x808]
push edx
push 4
push 0
push str.Interval
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x808]
push ecx
mov edx, dword [ebp - 0x814]
push edx
push str.SetIntervalToReg_RegSetValueEx_for_Interval_OK_Result___d_dwInterval___d_n
push 0xd3
push 0x428360
call fcn.004065b0
add esp, 0x14
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
Function at 0x406010
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x42d5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x130], 0
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov dword [edi], vtable.core_log::log_device_file.0
call fcn.00412ce0
add esp, 0xc
call fcn.004027c0
mov ecx, eax
test ecx, ecx
je 0x4060ff
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x428824
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406081
test al, 0x10
jne 0x40608e
push 0
push 0x428824
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13e]
push eax
movzx eax, word [ebp - 0x140]
push eax
push str.c:MyLogMyLog__d__02d__02d.log
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.0040f3ad
push 0x428858
lea eax, [ebp - 0x130]
push eax
lea eax, [edi + 4]
push eax
call fcn.0040fa0f
add esp, 0x28
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4060ed
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040e691
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405fc0
int3

Function at 0x406150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x406187
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0040fdc1
push dword [esi + 4]
push 2
push 1
push 0x42885c
call fcn.0040fdc1
push dword [esi + 4]
call fcn.0040f80e
add esp, 0x24
pop esi
pop ebp
ret 8

Function at 0x406270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMyLogLog
push 0x80000002
mov word [0x432f1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40631f
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLogToView
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 1
test eax, eax
jne 0x4062e5
movzx eax, byte [0x432f1c]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x432f1c], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.EnableLogToFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406315
movzx eax, byte [0x432f1d]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x432f1d], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406830
Capabilities:
Query environment variable

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
jne 0x4068b4
push ebx
push esi
mov dword [edi + 0xc], 1
mov esi, 0x42ef38
mov ebx, 5
lea esp, [esp]
push 0x104
push esi
push dword [esi - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406864
sub eax, edx
sar eax, 1
mov dword [esi - 8], eax
add esi, 0x214
dec ebx
jne 0x406850
push 0x42a028
mov dword [edi + 0x18], 0x42ef30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4068b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push ebx
call esi
push str.Wow64RevertWow64FsRedirection
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop esi
pop ebx
cmp dword [edi], 0
je 0x4068c6
cmp dword [edi + 4], 0
je 0x4068c6
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x406930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42d5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x208
push eax
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x20e]
push eax
call fcn.00412ce0
add esp, 0xc
mov dword [ebp - 0x214], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4069a4
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x4069f8
cmp dword [ebp - 0x214], 0
je 0x4069f8
cmp dword [esi + 0xc], 0
jne 0x4069ba
mov ecx, esi
call fcn.00406830
mov ecx, dword [esi]
test ecx, ecx
je 0x4069c6
lea eax, [esi + 8]
push eax
call ecx
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp dword [esi + 0xc], 0
mov edi, eax
jne 0x4069ea
mov ecx, esi
call fcn.00406830
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x406a0f
push dword [esi + 8]
call ecx
jmp 0x406a0f
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x406a63
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406a20
mov eax, dword [ebp + 0xc]
sub esi, ecx
sar esi, 1
lea ecx, [eax - 1]
cmp esi, ecx
jbe 0x406a3c
push ecx
jmp 0x406a3d
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
push ebx
call fcn.004101e1
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e691
mov esp, ebp
pop ebp
ret 8
Function at 0x406a80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42d5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00412ce0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406adf
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406af3
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x406b03
cmp dword [ebp - 0x118], 2
jae 0x406b05
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
jbe 0x406af3
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret

Function at 0x406b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42d5dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x430ea4], 0
jne 0x406bbb
push esi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00412ce0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
push str.kernel32.dll
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041044e
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x406bba
push str.GetLocaleInfoEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
push esi
sbb eax, eax
add eax, 2
mov dword [0x430ea4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x430ea4], 1
sete al
xor ecx, ebp
call fcn.0040e691
mov esp, ebp
pop ebp
ret
Function at 0x406fb0
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4218e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42d5dc]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x42d5dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push esi
push edi
push ebx
push str.CopyFile_lpExistingFileName_s_lpNewFileName_s_bResult_d
push 0xb4
push str.FileHandler.cpp
call fcn.004065b0
add esp, 0x18
test esi, esi
jne 0x4070bf
lea ecx, [esp + 0x10]
call fcn.004070e0
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], esi
call fcn.004056f0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
lea ecx, [esp + 0x10]
push esi
call fcn.004056f0
push eax
push str.CopyFile_strTempFile_s_bResult_d
push 0xb4
push str.FileHandler.cpp
call fcn.004065b0
add esp, 0x14
test esi, esi
je 0x4070b6
push 0x80
lea ecx, [esp + 0x14]
call fcn.004056f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
call fcn.004056f0
push 1
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
push esi
push edi
push ebx
push str.MoveFile_lpExistingFileName_s_lpNewFileName_s_bResult_d
push 0xb4
push str.FileHandler.cpp
call fcn.004065b0
add esp, 0x18
test esi, esi
jne 0x4070b6
push 5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.00405740
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040e691
mov esp, ebp
pop ebp
ret

Function at 0x4070e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42d5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x418], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.00412ce0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00412ce0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0
push str.Samson
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00405f80
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e691
mov esp, ebp
pop ebp
ret