joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60aa54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
inc edx
xor eax, eax
mov al, byte [edx]
and eax, 0xff
test eax, eax
jne 0x60aa7f
mov ecx, dword [ebp + 0xc]
mov dword [ecx], str._at_end_of_pattern
jmp 0x60abf8
cmp eax, 0x30
jl 0x60abf8
cmp eax, 0x7a
jle 0x60aa92
jmp 0x60abf8
movsx ebx, word [eax*2 + 0x6289c8]
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x60aaa9
mov eax, dword [ebp - 4]
jmp 0x60abf8
mov ebx, eax
sub ebx, 0x30
je 0x60ab1e
dec ebx
sub ebx, 9
jb 0x60aacd
sub ebx, 0x29
je 0x60abb9
sub ebx, 0x15
je 0x60ab6e
jmp 0x60abe5
cmp dword [ebp + 0x18], 0
jne 0x60ab0d
mov esi, edx
sub eax, 0x30
jmp 0x60aae9
inc edx
add eax, eax
xor ebx, ebx
mov bl, byte [edx]
lea eax, [eax + eax*4]
add eax, ebx
add eax, 0xffffffd0
xor ebx, ebx
mov bl, byte [edx + 1]
mov edi, dword [ecx + 0xc]
test byte [edi + ebx], 4
jne 0x60aada
cmp eax, 0xa
jl 0x60ab01
cmp eax, dword [ebp + 0x10]
jg 0x60ab0b
add eax, 0xc
neg eax
jmp 0x60abf8
mov edx, esi
xor eax, eax
mov al, byte [edx]
cmp eax, 0x38
jl 0x60ab1e
dec edx
xor eax, eax
jmp 0x60abf8
sub eax, 0x30
jmp 0x60ab30
inc edx
shl eax, 3
xor ebx, ebx
mov bl, byte [edx]
add eax, ebx
add eax, 0xffffffd0
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
cmp ebx, 2
jge 0x60abf8
xor ebx, ebx
mov bl, byte [edx + 1]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 4
je 0x60abf8
xor ebx, ebx
mov bl, byte [edx + 1]
cmp ebx, 0x38
je 0x60abf8
xor ebx, ebx
mov bl, byte [edx + 1]
cmp ebx, 0x39
jne 0x60ab23
jmp 0x60abf8
xor eax, eax
jmp 0x60ab9e
inc edx
xor ebx, ebx
mov bl, byte [edx]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 4
je 0x60ab87
mov ebx, 0x30
jmp 0x60ab8c
mov ebx, 0x57
movzx esi, byte [edx]
mov edi, dword [ecx]
shl eax, 4
movzx esi, byte [edi + esi]
add esi, eax
sub esi, ebx
mov eax, esi
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
cmp ebx, 2
jge 0x60abf8
xor ebx, ebx
mov bl, byte [edx + 1]
mov esi, dword [ecx + 0xc]
test byte [esi + ebx], 8
jne 0x60ab72
jmp 0x60abf8
inc edx
xor eax, eax
mov al, byte [edx]
test eax, eax
jne 0x60abcf
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [edx], str.c_at_end_of_pattern
jmp 0x60abfd
cmp eax, 0x61
jl 0x60abe0
cmp eax, 0x7a
jg 0x60abe0
mov ecx, dword [ecx + 4]
movzx eax, byte [ecx + eax]
xor eax, 0x40
jmp 0x60abf8
test byte [ebp + 0x14], 0x40
je 0x60abf8
mov ecx, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], str.unrecognized_character_follows__
jmp 0x60abf8
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4011e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x470dc9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401212
sub eax, edx
sar eax, 1
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call dword [0x476410]
xor ebx, ebx
mov dword [esp + 0x24], ebx
xor edi, edi
cmp esi, ebx
jbe 0x401327
mov eax, dword [esp + 0x30]
movzx esi, word [eax + ebx*2]
cmp si, 0x7b
jne 0x401263
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov edi, 1
jmp 0x401306
cmp si, 0x7d
jne 0x4012da
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll__wtoi]
mov esi, eax
add esp, 4
sub esi, 1
js 0x401318
mov edi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jle 0x401318
jbe 0x401313
lea edx, [esi*8]
sub edx, esi
cmp dword [edi + edx*8 + 0x18], 8
lea eax, [edi + edx*8]
jb 0x4012c8
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x2c]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append_1]
xor edi, edi
jmp 0x401306
mov ecx, dword [esp + 0x2c]
add eax, 4
push eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append_1]
xor edi, edi
jmp 0x401306
push esi
call dword [sym.imp.MSVCR90.dll_iswdigit]
add esp, 4
test eax, eax
je 0x4012ef
push esi
lea ecx, [esp + 0x18]
jmp 0x401300
test edi, edi
jne 0x401306
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + ebx*2]
push ecx
mov ecx, dword [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::AppendChar]
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401241
jmp 0x401327
call fcn.00404900
mov ecx, dword [esp + 0x2c]
push 0x47d6d8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov dword [esp + 0x24], 0xffffffff
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]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x402600
Capabilities:
Get file size

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
jne 0x40262e
test edi, edi
jne 0x40262e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40262e
or eax, esi
or edx, esi
pop edi
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 1
push 0
push 0
push edx
call fcn.0046bd70
add eax, esi
adc edx, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4028d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x470dfc
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
push eax
lea ecx, [esp + 0x14]
call dword [0x4763f4]
mov dword [esp + 0x274], 0
push str..
lea ecx, [esp + 0x14]
call dword [0x476390]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402a02
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x14]
push edx
push esi
call ebx
test eax, eax
je 0x4029fb
lea esp, [esp]
mov ecx, 0x47d59c
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4029a6
test dx, dx
je 0x4029a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4029a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402980
xor eax, eax
jmp 0x4029ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4029e7
mov ecx, 0x47d580
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4029de
test dx, dx
je 0x4029da
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4029de
add eax, 4
add ecx, 4
test dx, dx
jne 0x4029b8
xor eax, eax
jmp 0x4029e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4029f9
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
jne 0x402970
jmp 0x4029fb
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x274], 0xffffffff
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, edi
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.00428cb4
add esp, 0x268
ret
Function at 0x402a40
Capabilities:
Parse pe header
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x472f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
push 0x3e
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x182]
mov edi, edx
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x2c], edi
mov word [esp + 0x188], ax
call sub.MSVCR90.dll_memset
push 0xf4
lea edx, [esp + 0x38]
push ebx
push edx
mov dword [esp + 0x3c], ebx
call sub.MSVCR90.dll_memset
add esp, 0x18
push esi
lea eax, [esp + 0x148]
push eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00406360
mov dword [esp + 0x1c8], ebx
cmp dword [esp + 0x15c], 8
mov eax, dword [esp + 0x148]
jae 0x402ae8
lea eax, [esp + 0x148]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
jne 0x402b24
mov dword [esp + 0x1c8], 0xffffffff
lea ecx, [esp + 0x144]
push ecx
call fcn.004063d0
xor eax, eax
jmp 0x402c98
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x40
lea eax, [esp + 0x188]
push eax
push esi
mov dword [esp + 0x2c], ebx
call ebp
mov ecx, 0x5a4d
cmp word [esp + 0x17c], cx
je 0x402b76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c8], 0xffffffff
lea edx, [esp + 0x144]
push edx
call fcn.004063d0
xor eax, eax
jmp 0x402c98
mov eax, dword [esp + 0x1b8]
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x30]
push edx
push esi
call ebp
cmp dword [esp + 0x24], 0x4550
je 0x402bca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c8], 0xffffffff
lea eax, [esp + 0x144]
push eax
call fcn.004063d0
xor eax, eax
jmp 0x402c98
movzx eax, word [esp + 0x2a]
mov edi, dword [esp + 0x78]
cmp eax, ebx
jbe 0x402c6b
mov dword [esp + 0x1c], eax
nop
xor eax, eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x28
lea edx, [esp + 0x128]
push edx
push esi
mov byte [esp + 0x130], bl
mov dword [esp + 0x131], eax
mov word [esp + 0x135], ax
mov byte [esp + 0x137], al
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
call ebp
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x130]
add eax, ecx
cmp eax, edi
jbe 0x402c60
mov edi, eax
sub dword [esp + 0x1c], 1
jne 0x402be0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [esp + 0x1c8], 0xffffffff
lea edx, [esp + 0x144]
push edx
call fcn.004063d0
mov eax, 1
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.00428cb4
add esp, 0x1b8
ret
Function at 0x402ee0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x884
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40305d
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x930
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, 0x1000
mov ecx, 0x800
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x920
mov dword [esp + 0x28], 0x801
mov dword [esp + 0x2c], 0x914
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0x4b000
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], 8
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x18
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
xor esi, esi
push 0x800
lea ecx, [esp + 0x94]
push ebp
push ecx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + esi + 0x24]
shl eax, 4
add eax, dword [esp + esi + 0x74]
add esp, 0xc
add eax, dword [esp + esi + 0x40]
push ebp
cdq
mov ecx, edx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
push edx
push eax
push edi
sar ecx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
lea eax, [esp + 0x18]
push eax
push 0x800
lea ecx, [esp + 0x9c]
push ecx
push edi
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
je 0x403056
mov eax, dword [esp + 0x91]
cmp eax, 0x30304443
je 0x403040
cmp eax, 0x30414542
jne 0x40304a
cmp byte [esp + 0x95], 0x31
je 0x40306a
add esi, 4
cmp esi, 0x28
jl 0x402fca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x884
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x884
ret
Function at 0x403c30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x470dc9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
xor esi, esi
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call dword [0x4763f4]
mov dword [esp + 0x24], esi
push esi
cmp dword [esp + 0x34], esi
jne 0x403ca0
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x403cf7
mov edx, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push edx
call ebp
mov esi, eax
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
push 0
push 0
push esi
mov edi, eax
mov eax, dword [esp + 0x40]
push edi
push 0xffffffffffffffff
push ebx
push 0
push eax
call ebp
push 0
lea ecx, [esp + 0x1c]
push ecx
dec esi
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esp + 0x24], 0xffffffff
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]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x403d20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x470dc9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call dword [0x476410]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
push esi
cmp dword [esp + 0x34], esi
jne 0x403d9e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x403e01
push esi
push esi
push esi
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push esi
push ebp
call ebx
mov esi, eax
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
push 0
push 0
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
push ebp
call ebx
push 0
lea eax, [esp + 0x1c]
push eax
dec esi
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esp + 0x24], 0xffffffff
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]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x406970
Capabilities:
Delete file

Disassembly:
sub esp, 0x434
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x430], eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call sub.MSVCR90.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4069a3
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
jne 0x4069bb
dec eax
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x24]
push esi
push eax
call sub.MSVCR90.dll_memcpy
mov dx, word [esp + 0x444]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
mov dword [esp + 0xc], eax
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 8], 3
mov dword [esp + 0xc], ecx
mov word [esp + 0x14], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
call fcn.00406c20
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00428cb4
add esp, 0x434
ret
Function at 0x406a40
Capabilities:
Move file

Disassembly:
sub esp, 0x43c
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x438], eax
push 0x20a
lea eax, [esp + 0x24]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406a70
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
jne 0x406a88
dec eax
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x24]
push esi
push edx
call sub.MSVCR90.dll_memcpy
push 0x20a
lea eax, [esp + 0x23c]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, edi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406ab3
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x406acb
dec eax
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x230]
push edi
push edx
call sub.MSVCR90.dll_memcpy
xor eax, eax
mov dword [esp + 0x10], eax
add esp, 0xc
mov dword [esp], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov dword [esp + 4], 1
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp]
lea ecx, [esp + 0x22c]
mov edx, 0x210
push eax
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
call fcn.00406c20
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00428cb4
add esp, 0x43c
ret

Function at 0x406b60
Capabilities:
Delete file

Disassembly:
sub esp, 0x434
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x430], eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call sub.MSVCR90.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406b93
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
jne 0x406bab
dec eax
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x24]
push esi
push eax
call sub.MSVCR90.dll_memcpy
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
mov dword [esp + 0xc], eax
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 0x20]
mov edx, 0x54
push eax
mov dword [esp + 8], 3
mov dword [esp + 0xc], ecx
mov word [esp + 0x14], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
call fcn.00406c20
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00428cb4
add esp, 0x434
ret
Function at 0x40ff20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x471891
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [esi], vtable.ManagerBase.0
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esp + 0x1c], edi
lea ebp, [esi + 0x14]
mov ecx, ebp
mov dword [esi], vtable.ArchiveManager.0
call dword [0x476410]
mov byte [esp + 0x1c], 1
lea ebx, [esi + 0x18]
mov ecx, ebx
call dword [0x476410]
mov byte [esp + 0x1c], 2
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [esp + 0x1c], 3
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov byte [esp + 0x1c], 4
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov byte [esp + 0x1c], 5
push 0x47d6d8
mov ecx, ebx
mov dword [esi + 0x54], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0x47d6d8
mov ecx, ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov dword [esi + 0x58], edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8