joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4104c4
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareDownloadManager
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410562
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.CommonAppDataIDMFolder
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410559
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410559
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str._sproxy.pac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x410564
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4105db
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4105db
lea eax, [ebp - 0x20c]
push 0x4150b8
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x20c]
push str.Internet_Download_Manager.lnk
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
Function at 0x41090d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
push 0x18b
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
jbe 0x41097c
lea eax, [ebp - 0x208]
push eax
push edi
push 0x189
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x208]
push 0x419058
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x208]
push eax
je 0x410971
call fcn.00410983
pop ecx
jmp 0x410977
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc edi
cmp edi, ebx
jb 0x410936
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x410983
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x664]
push 0x417374
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x410a7c
lea eax, [ebp - 0x254]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
push ebx
call esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x254]
push eax
push ebx
call esi
test eax, eax
je 0x410a53
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push 0x4156e4
push eax
call edi
mov eax, dword [ebp - 0x254]
add esp, 0x10
and eax, 0x10
cmp al, 0x10
je 0x410a2d
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x45c]
push 0x41cd38
push eax
call fcn.00405ef6
jmp 0x4109de
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x45c]
push 0x41c228
push eax
call edi
lea eax, [ebp - 0x45c]
push eax
call fcn.00410983
add esp, 0x10
jmp 0x4109de
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop esi
jne 0x410a7a
push eax
lea eax, [ebp - 4]
push eax
push 0x41cd38
push dword [ebp + 8]
call fcn.00405ef6
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x410b6c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x4150b0
push ebx
call sub.MSVCRT.dll_wcsstr
xor edi, edi
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
je 0x410ca9
push esi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov eax, dword [ebp + 8]
cmp word [eax - 2], 0x5c
je 0x410c8a
push 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
sub eax, ebx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x210]
push 0x41c290
push eax
call sub.MSVCRT.dll_wcsstr
add esp, 0x20
test eax, eax
jne 0x410c8a
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_wcslen
test eax, eax
pop ecx
je 0x410c8a
lea eax, [ebp - 0x210]
push eax
push edi
push 0x180
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
push edi
push edi
push 3
mov dword [ebp - 4], eax
push edi
push 1
lea eax, [ebp - 0x210]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410c5e
push 0x4150b0
push edi
lea eax, [ebp - 0x210]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_to_open_file_in_dialogs_FillFileList
call fcn.004063d0
add esp, 0x18
jmp 0x410c70
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 8]
push ebx
push dword [ebp - 4]
push 0x19a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
add dword [0x41e0a8], ebx
mov eax, dword [ebp + 8]
push 0x4150b0
lea ebx, [eax + 4]
push ebx
call sub.MSVCRT.dll_wcsstr
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
jne 0x410b9b
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x570052c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x5700536b
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x570052f0
cmp byte [esp], 0
je 0x57005339
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x57005377
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
push eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov edx, ebx
mov eax, edi
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
jmp 0x57005377
mov eax, edi
mov edx, 0x5700538c
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5700577c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x5700578f
xor eax, eax
jmp 0x57005828
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]

Function at 0x5700582c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
mov dword [ebp - 8], 0x570244a6
push 0
mov eax, dword [ebp - 8]
push dword [eax + 0x30]
call fcn.570056ad
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push dword [ebp - 0x44]
call fcn.5700577c
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
inc ebp
loopne 0x570057e6
enter 0xffffffffffff8b00, 0x45
clc

Function at 0x57005860
Capabilities:
Get file size
Read file on windows

Disassembly:
in al, dx
inc ebp
loopne 0x570057e6
enter 0xffffffffffff8b00, 0x45
clc
push dword [eax + 0x44]
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x44]
push dword [ebp - 0x10]
call fcn.570055ae
pop ecx
pop ecx
push 0x104
push dword [ebp - 0x10]
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x1c], 0
Function at 0x570058a8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
movzx eax, word [ecx + eax*2]
mov bh, 4
inc ecx
mov bh, 4
inc ecx
test eax, eax
je 0x570058cc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov dx, word [esi + edx*2]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x570058a1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x54], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2]
test eax, eax
je 0x570058f0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x570058d9
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2 - 2]
cmp eax, 0x5c
je 0x5700591b
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
jmp 0x570058f6
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x28]
movsx eax, byte [eax]
test eax, eax
je 0x57005950
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x28]
movsx ax, byte [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
jmp 0x5700591f
push 0
push 0x80
add byte [eax], al
add byte [edx + 3], ch

Function at 0x57005954
Capabilities:
Get file size
Read file on windows

Disassembly:
add byte [eax], al
add byte [edx + 3], ch
push 0
push 1
push 0x80000000
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x57005979
push 0
call dword [ebp - 0x20]
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x68], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x1c]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
and dword [ebp - 0x58], 0
test al, 0

Function at 0x570059a0
Capabilities:
Read file on windows

Disassembly:
test al, 0
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
push dword [ebp - 4]
push dword [ebp - 0x3c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x570059c1
push 0
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
Function at 0x57006a04
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x57024388], 0
jne 0x57006a38
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x57006a31
movzx eax, byte [esp]
mov byte [0x57024388], al
jmp 0x57006a38
mov byte [0x57024388], 0x2c
movzx eax, byte [0x57024388]
pop edx
ret

Function at 0x57006a44
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x5702438c], 0
jne 0x57006a7c
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x57006a73
movzx eax, word [esp]
mov word [0x5702438c], ax
jmp 0x57006a7c
mov word [0x5702438c], 0x2c
movzx eax, word [0x5702438c]
pop edx
ret
Function at 0x467df0
Capabilities:
Encode data using xor

Disassembly:
push 8
call dword [esp + 0x58]
inc dword [ebp + 0x673f]
call dword [esp + 0x58]
push esp
call dword [esp + 0x5c]
xor dh, dl
call dword [esp + 0x5c]
call dword [esp + 0x58]
call edi
not ecx
wait
cmp esi, eax
not ch
lea ecx, [ebx - 0x55]
mov edx, eax
je fcn.00467df0
xchg esi, esi
dec esi
inc ecx
inc esi
lea edx, [ecx]
push eax
nop
rdtsc
not ecx
pop esi
ret

Function at 0x467e9a
Capabilities:
Encode data using xor

Disassembly:
ret
add edi, ebx
add edx, ebx
or eax, 0x76f9779d
mov esi, dword [ecx + 0xa]
mov ax, word [edx + esi]
add ecx, eax
inc edx
lea ecx, [edi - 0x3b]
shl eax, 0x10
shr eax, 0xe
inc ecx
push dword [eax + edi]
add dword [esp], ebx
sub edx, esp
mov eax, dword [esp - 4]
pop esi
jmp eax
lea ecx, [ebx + 9]
push 0xffffffffffffffff
push dword [ecx + 0x33]
pop edx
add ecx, dword [edx + ebx + 0x78]
pop edx
inc esi
mov edi, dword [ecx + 0x17]
add bl, 0
mov edi, edi
inc esi
mov eax, dword [edi + ebx]
inc edx
add edi, 4
lea esi, [eax + ebx - 3]
cmp edx, dword [ecx + 0xf]
jae 0x467d14
push ebx
xor eax, eax
push ecx
imul eax, eax, 0xf
sbb bl, bl
movzx ecx, byte [esi + 3]
sub eax, ecx
test bh, cl
xor bh, 0x61
sub esi, 0xffffffee
adc ebx, 2
lea esi, [esi - 0x11]
cmp byte [esi + 3], 0xa
jae 0x467eca
clc
inc bl
dec ebx
xor eax, dword [esp + 0xc]
inc ebx
pop ecx
pop ebx
lea edx, [edx]
mov dh, dh
xor eax, 0x527d42e4
mov esi, 0x3585afb0
nop
jne 0x467eb2
xor edi, eax
and al, 0x90
sub ecx, 0xffffffef
adc eax, esi
add esp, 8
push dword [ecx + 2]
not eax
not ah
xchg esi, esi
pop edi
add edx, edx
jmp 0x467d5f
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
mov ecx, 0x65842bb9
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x42e1d0
nop
mov ecx, 0x619e4ccf
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x412290
pop dword [ebp - 8]
mov eax, 0xdf5736e4
add eax, 0x20e9ebac
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3c7fe
push 0
mov eax, 0xe452cd22
sub eax, 0xe4103cf6
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x55d0
mov edi, eax
mov ebx, 0x436e00
add ebx, dword [ebp - 8]
mov esi, 0x6d239bef
mov dword [ebp - 4], 0xe8564e70
mov edx, dword [ebx]
mov dword [ebp - 4], 0xc2fb0e37
add edx, esi
xor dword [ebp - 4], esi
mov dword [edi], edx
add dword [ebp - 4], 0x8603c04
add edi, 0xc808b967
add edi, 0x37f7469d
add ebx, 0xca08af1
add ebx, 0xf35f7513
loop 0x4122dd
add eax, 0xcce7048f
sub eax, 0xcce5ba7c
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4016f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4017fd
cmp byte [eax], 0
je 0x4017fd
push 0x43479c
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.0041f3ec
add esp, 0xc
test eax, eax
jne 0x4017fd
mov eax, dword [ebp - 4]
test eax, eax
je 0x4017fd
push eax
push 4
lea eax, [ebp - 8]
push 1
push eax
call fcn.0041f5ff
add esp, 0x10
cmp eax, 4
je 0x401767
push dword [ebp - 4]
mov dword [esi], 0xffffffff
call fcn.0041cb7d
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x4347d4
lea ecx, [ebp - 8]
movzx eax, word [ecx]
cmp ax, word [edx]
jne 0x40178c
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40178c
push 0
mov dword [esi], 1
push 3
jmp 0x4017b6
mov ecx, 0x4347ac
lea eax, [ebp - 8]
mov ax, word [eax]
cmp ax, word [ecx]
je 0x4017dd
mov ecx, 0x4347b0
lea eax, [ebp - 8]
mov ax, word [eax]
cmp ax, word [ecx]
je 0x4017dd
push 0
mov dword [esi], 0
push 0
push dword [ebp - 4]
call fcn.0041ceb7
add esp, 0xc
mov ecx, esi
push dword [ebp - 4]
call fcn.00401810
push dword [ebp - 4]
call fcn.0041cb7d
add esp, 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 2
push dword [ebp - 4]
mov dword [esi], 2
call fcn.0041ceb7
add esp, 0xc
push dword [ebp - 4]
call fcn.0041cb7d
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402da0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, ecx
cmp dword [0x4b0670], esi
jne 0x402df7
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x402de6
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4b065c], eax
mov dword [0x4b0670], 1
jmp 0x402dfc
mov eax, dword [0x4b065c]
mov dword [0x4b0670], 1
jmp 0x402dfc
mov eax, dword [0x4b065c]
test eax, eax
je 0x402e1a
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402e1a
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x402e45
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x402e35
push dword [edi + 0xc]
mov eax, dword [edi + 8]
jmp 0x402e3a
push dword [edi + 4]
mov eax, dword [edi]
call eax
test eax, eax
je 0x402e10
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
push 0
push 0xfde9
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a6b1
mov edi, eax
add esp, 4
test edi, edi
je 0x4036dc
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push dword [esi]
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4036d3
push 0x4a9ef4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.0041f3a5
add esp, 0xc
mov esi, eax
push edi
call fcn.0041a66b
add esp, 4
test esi, esi
jne 0x4036dc
cmp dword [ebp + 8], esi
je 0x4036dc
push 0x10000
call fcn.0041a6b1
add esp, 4
mov edi, eax
push dword [ebp + 8]
test edi, edi
jne 0x403610
call fcn.0041cb7d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x10000
push 1
push edi
xor esi, esi
call fcn.0041f5ff
add esp, 0x10
cmp eax, 0x10000
jne 0x4036e7
nop dword [eax]
push dword [ebp + 8]
add esi, eax
push 0x10000
push 1
push edi
call fcn.0041f5ff
add esp, 0x10
test eax, eax
jne 0x403630
push esi
call fcn.0041a6b1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4036c8
push 0x10000
push edi
push ebx
call fcn.0042e720
add esp, 0xc
push edi
call fcn.0041a66b
add esp, 4
mov edi, ebx
push 0
push 0
push dword [ebp + 8]
call fcn.0041ceb7
add esp, 0xc
push dword [ebp + 8]
push esi
push 1
push ebx
call fcn.0041f5ff
add esp, 0x10
cmp eax, esi
je 0x4036e9
push str.SMSettingsManager:_Pathological_error_when_reading_master_settings.sol_file._n
push 2
call fcn.0041f8ba
add esp, 4
push eax
call fcn.004015e0
push dword [ebp + 8]
call fcn.0041cb7d
add esp, 0xc
push ebx
call fcn.0041a66b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
call fcn.0041cb7d
add esp, 4
push edi
call fcn.0041a66b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, eax
push dword [ebp + 8]
call fcn.0041cb7d
add esp, 4
test eax, eax
je 0x403710
push str.SMSettingsManager:_Unable_to_close_master_settings.sol_file._n
push 2
call fcn.0041f8ba
add esp, 4
push eax
call fcn.004015e0
add esp, 8
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0
call fcn.00407220
push edi
mov esi, eax
call fcn.0041a66b
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4081d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a6b1
mov esi, eax
add esp, 4
test esi, esi
je 0x408235
push edi
push esi
push 0xffffffffffffffff
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x408240
push esi
call fcn.0041a66b
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
xor bl, bl
mov dword [esi + edi*2 - 4], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov eax, 0x414
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x408280
cmp eax, 2
je 0x408280
cmp eax, 0x7c
je 0x408280
cmp eax, 0x402
jne 0x408282
mov bl, 1
push esi
call fcn.0041a66b
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4082a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0xffffffffffffffff
push dword [edi]
mov dword [esp + 0x24], ecx
push 0
push 0xfde9
call ebx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a6b1
mov esi, eax
add esp, 4
test esi, esi
je 0x40830c
push dword [esp + 0x10]
push esi
push 0xffffffffffffffff
push dword [edi]
push 0
push 0xfde9
call ebx
test eax, eax
jne 0x408317
push esi
call fcn.0041a66b
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xf]
push eax
push dword [ebp + 0x18]
mov byte [esp + 0x17], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00408370
mov bl, al
test bl, bl
je 0x408351
cmp byte [esp + 0xf], 0
je 0x408351
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb al, al
and bl, al
push esi
call fcn.0041a66b
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14