joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e5b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HAOCMP1
lea edi, [esi - 0x142000]
push edi
or ebp, 0xffffffff
jmp 0x5e5b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5e5b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5b78
mov eax, 1
add ebx, ebx
jne 0x5e5b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5e5bac
jne 0x5e5bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5bcb
dec eax
add ebx, ebx
jne 0x5e5bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5e5b90
add ebx, ebx
jne 0x5e5bc7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5e5c1d
xor ecx, ecx
sub eax, 3
jb 0x5e5be3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5e5c52
sar eax, 1
mov ebp, eax
jmp 0x5e5bee
add ebx, ebx
jne 0x5e5bee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5bbc
inc ecx
add ebx, ebx
jne 0x5e5bfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e5bbc
add ebx, ebx
jne 0x5e5c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5e5bfe
jne 0x5e5c1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5e5bfe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5e5c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5e5c2e
jmp 0x5e5b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5e5c3c
add edi, ecx
jmp 0x5e5b7e
pop esi
mov edi, esi
mov ecx, 0x4acd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5e5c5a
cmp byte [edi], 0x11
jne 0x5e5c5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5e5c5f
lea edi, [esi + 0x1e2000]
mov eax, dword [edi]
or eax, eax
je 0x5e5cd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23bf0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23c038]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5e5c8c
mov ecx, edi
jns 0x5e5cbb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23c03c]
or eax, eax
je 0x5e5cd1
mov dword [ebx], eax
add ebx, 4
jmp 0x5e5ca9
call dword [esi + 0x23c044]
mov ebp, dword [esi + 0x23c040]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5e5d0b
sub esp, 0xffffff80
jmp 0x4396a6
Function at 0x403cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40709f
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x40d01c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMTaskList::constructor_void_
xor edi, edi
mov dword [esp + 0x14], edi
lea ecx, [esi + 0x30]
mov dword [esi], vtable.GameMgr::GMStatManager.0
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::constructor_void_
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMJsonValue::constructor_void_
mov byte [esp + 0x14], 2
call fcn.00405de0
mov dword [esi + 0x40], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x40]
mov dword [eax], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 8], eax
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 3
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::constructor_void_
mov byte [esp + 0x14], 4
mov dword [esi + 0x4c], edi
call fcn.004058a0
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 5
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::constructor_void_
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x403da0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40718a
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x40d01c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [edi], vtable.GameMgr::GMStatManager.0
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x18], 6
call sub.K8Common.dll_protected:_bool___thiscall_GameMgr::GMTaskList::CloseTaskThread_unsigned_int_
lea ecx, [edi + 0x5c]
mov byte [esp + 0x14], 5
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::destructor_void_
lea esi, [edi + 0x50]
call fcn.004058c0
lea ecx, [edi + 0x48]
mov byte [esp + 0x14], 3
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::destructor_void_
lea eax, [edi + 0x3c]
mov byte [esp + 0x14], 2
call fcn.00405860
lea ecx, [edi + 0x34]
mov byte [esp + 0x14], 1
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMJsonValue::destructor_void_
lea ecx, [edi + 0x30]
mov byte [esp + 0x14], 0
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::destructor_void_
mov ecx, edi
mov dword [esp + 0x14], 0xffffffff
call sub.K8Common.dll_public_virtual:_void___thiscall_GameMgr::GMTaskList::destructor_void_
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x403e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x407649
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40d01c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x40d01c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.00403ef0
test al, al
je 0x403eb3
lea esi, [esp + 0xc]
call fcn.00405670
mov ecx, edi
call sub.K8Common.dll_protected:_void___thiscall_GameMgr::GMTaskList::ExitTaskThread_void_
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP80.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 [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040622a
mov esp, ebp
pop ebp
ret
Function at 0x40622a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d01c]
jne 0x406234
repz ret
jmp fcn.004066cc
Function at 0x401ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ed9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401f10
lea ebx, [ebx]
cmp esi, eax
jae 0x401f14
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f00
cmp esi, eax
jb 0x401f1a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403440
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43f200
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x40355c
cmp eax, 0xffffffff
je 0x40355c
push 0x800
push edi
lea eax, [ebp]
push eax
call fcn.0042a280
add esp, 0xc
mov eax, dword [ebp + 0x80c]
sub eax, 2
je 0x4034e9
sub eax, 1
je 0x4034e2
lea edx, [ebp]
sub eax, 3
je 0x4034ca
push 0xff
jmp 0x4034ed
push 2
push str.Apply_Policy
push 1
push str.INDEX:_d_COMPONENT_NAME:_s_STATUS:_d
call fcn.004052a0
add esp, 0x10
jmp 0x4034fa
push 0xff
jmp 0x4034ea
push edi
lea edx, [ebp]
push str.STATUS:_d
call fcn.004052a0
add esp, 8
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403500
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403535
lea edx, [ebp]
push edx
push str.Write_File_:___s____
jmp 0x40353e
lea eax, [ebp]
push eax
push str.Fail_to_write_file_:___s____
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x45c218
call fcn.004054b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x40359e
push str.Invalid_Parameter_in_WritePipeData___
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
mov eax, 0x57
jmp 0x4035a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042955b
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4
Function at 0x403750
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0042cb20
push 0xffffffffffffffff
push 0x43f1d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
push 0x800
push esi
lea eax, [ebp]
push eax
call fcn.0042a280
add esp, 0xc
mov dword [ebp - 4], esi
push str.__Get_Required_Directory_Paths__
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403892
lea edx, [ebp + 0x800]
push edx
push esi
push str.Install
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x403823
push str.Get_Temp_File_Name_fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x45c218
call fcn.004054b0
push str.Install
lea ecx, [ebp]
push ecx
push str._s_s000
lea edx, [ebp + 0x800]
call fcn.004052a0
add esp, 0x10
push 0x2e
lea edx, [ebp + 0x800]
push edx
call fcn.00429887
add esp, 8
cmp eax, esi
je 0x40383b
mov word [eax], si
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403844
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x7fe], 0x5c
jne 0x40387e
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403867
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 + 0x7fe], si
lea eax, [ebp + 0x800]
push eax
push 0x400
push edi
call fcn.0042909f
jmp 0x4038ab
push 0x800
push esi
lea ecx, [ebp + 0x800]
push ecx
call fcn.0042a280
mov dword [ebp - 0x14], 3
add esp, 0xc
lea edx, [ebp + 0x800]
push edx
push str.Temparary_Directory_Path_:___s_
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042955b
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x404fb0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.0042cb20
push 0xffffffffffffffff
push 0x43f6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp + 0x1800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x405197
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405006
sub eax, edx
sar eax, 1
je 0x405197
push 0x800
push ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.0042a280
push 0x800
push ebx
lea ecx, [ebp]
push ecx
call fcn.0042a280
push 0x800
push ebx
lea edx, [ebp + 0x800]
push edx
call fcn.0042a280
mov eax, esi
lea ecx, [ebp + 0x1000]
call fcn.004017b0
mov eax, esi
lea ecx, [ebp]
call fcn.004017b0
lea eax, [ebp + 0x1000]
push eax
push str.Run_Command_:__s
mov ecx, 0x45c218
call fcn.004055f0
add esp, 0x2c
cmp edi, ebx
je 0x4050a8
mov eax, edi
lea ecx, [ebp + 0x800]
call fcn.004017b0
lea ecx, [ebp + 0x800]
push ecx
push str.Run_Command_Parameter_:__s
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], str.open
lea edx, [ebp + 0x800]
mov dword [ebp - 0x3c], edx
lea eax, [ebp + 0x1000]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x50], 0x3c
mov ecx, 0x44a174
lea edx, [ebp]
call fcn.00409320
mov ecx, 0x44a174
lea edx, [ebp]
call fcn.004094d0
lea ecx, [ebp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405177
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405157
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp + 0x1000]
push ecx
push str.__s__s__Executed__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x45c218
call fcn.004054b0
add esp, 0xc
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.call_Shell_execute_End
mov ecx, 0x45c218
call fcn.004055f0
add esp, 4
jmp 0x405190
lea eax, [ebp + 0x1000]
push eax
push str.Run_execut__s___Fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x45c218
call fcn.004054b0
jmp 0x40518d
lea ecx, [ebp + 0x1000]
push ecx
push str.__s__file_not_found__
mov ecx, 0x45c218
call fcn.004055f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1800]
xor ecx, ebp
call fcn.0042955b
add ebp, 0x1804
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f680
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1810
call fcn.0042cb20
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
push 0x800
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1018]
push eax
call fcn.0042a280
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x818]
push ecx
call fcn.0042a280
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x1818]
push edx
call fcn.0042a280
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x405369
mov al, 1
jmp 0x405456
push 0x800
lea eax, [ebp - 0x1018]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405397
mov byte [ebp - 0x181a], bl
push 0x4520ec
lea ecx, [ebp - 0x181a]
push ecx
call fcn.0042c6a6
push 0x5c
lea edx, [ebp - 0x1018]
push edx
call fcn.00429887
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x4053b3
add edi, 2
jmp 0x4053b8
mov edi, str.SSLog
lea eax, [ebp - 0x818]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea ecx, [ebp - 0x818]
push ecx
push str._s_s.log
push 0x400
lea edx, [ebp - 0x1818]
push edx
call fcn.0042984c
add esp, 0x14
push ebx
push 0x80
push 4
push ebx
mov ebx, 1
push ebx
push 0xc0000000
lea eax, [ebp - 0x1818]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
setne cl
mov byte [ebp - 0x1819], cl
mov byte [esi + 0x208], bl
lea ecx, [esi + 8]
mov eax, str.Common_Installer_3
call fcn.004017d0
mov ecx, esi
call fcn.004057d0
lea edx, [ebp - 0x1818]
push edx
call fcn.00408f10
add esp, 4
mov byte [ebp - 0x1819], bl
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1819]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042955b
mov esp, ebp
pop ebp
ret
Function at 0x4054b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f180
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4008
call fcn.0042cb20
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
cmp dword [esi], 0
je 0x4055c2
mov dword [ebp - 4], 0
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.0042a280
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.0042a280
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.00429439
add esp, 0x28
test edi, edi
je 0x405594
push 0
push 0
lea edx, [ebp - 0x4018]
push edx
push 0x409
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x4018]
test eax, eax
je 0x405594
push eax
push edi
lea eax, [esi + 8]
push eax
push str.___s___Error_Code___d_:_s
push 0x1000
lea ecx, [ebp - 0x4014]
push ecx
call fcn.0042984c
add esp, 0x18
mov edx, dword [ebp - 0x4018]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [ebp - 0x2014]
mov ecx, esi
call fcn.004056d0
test edi, edi
je 0x4055bb
lea edx, [ebp - 0x4014]
mov ecx, esi
call fcn.004056d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042955b
mov esp, ebp
pop ebp
ret
Function at 0x405ae0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa004]
mov eax, 0xa004
call fcn.0042cb20
push 0xffffffffffffffff
push 0x43f0f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp + 0xa000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x405b3c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
mov esi, eax
cmp esi, ebx
jne 0x405b49
xor eax, eax
jmp 0x405bcb
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0xa000
push ebx
lea eax, [ebp]
push eax
call fcn.0042a280
add esp, 0xc
cmp byte [ebp + 0xa00c], bl
je 0x405b86
push 0x9fff
push edi
push 0xa000
lea ecx, [ebp]
push ecx
call fcn.00429bd0
add esp, 0x10
jmp 0x405b9c
push ebx
push ebx
push 0xa000
lea edx, [ebp]
push edx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405ba2
sub eax, edx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa000]
xor ecx, ebp
call fcn.0042955b
add ebp, 0xa004
mov esp, ebp
pop ebp
ret 4
Function at 0x405d60
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43f620
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x405ea9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405db0
sub eax, edx
sar eax, 1
je 0x405ea9
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.0042a280
add esp, 0xc
mov eax, edi
lea ecx, [ebp]
call fcn.004017b0
mov ecx, 0x44bc30
lea edx, [ebp]
call fcn.00409320
mov ecx, 0x44bc30
lea edx, [ebp]
call fcn.004094d0
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405ea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x405e46
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x45c218
call fcn.004054b0
add esp, 8
mov dword [ebp - 0x18], esi
push 0x4520b8
lea eax, [ebp - 0x18]
push eax
call fcn.0042c6a6
sub eax, 2
je 0x405e9b
sub eax, 3
je 0x405e76
lea ecx, [ebp]
sub eax, 0x1b
je 0x405e88
push ecx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x45c218
call fcn.004054b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x405eec
push 0x80
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.00406260
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x405eec
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x405eec
mov eax, 0x57
jmp 0x405eee
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042955b
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x406260
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0042cb20
push 0xffffffffffffffff
push 0x43f5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4575e0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x406400
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4062b7
sub eax, edx
sar eax, 1
je 0x406400
push 0x5c
push edi
call fcn.00429887
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x406400
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.0042a280
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40631d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x4520b8
lea edx, [ebp - 0x1c]
push edx
call fcn.0042c6a6
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.0042a280
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406363
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x4520b8
lea eax, [ebp - 0x24]
push eax
call fcn.0042c6a6
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x406390
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x4520b8
lea edx, [ebp - 0x20]
push edx
call fcn.0042c6a6
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x4063b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x4520b8
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042c6a6
lea edx, [ebp + 0x800]
push edx
push edi
push str.__s__file_was_moved_to___s__and_it_will_be_deleted_after_reboot__
mov ecx, 0x45c218
call fcn.004055f0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042955b
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x4063db