joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e82
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x118
push esi
push edi
xor edi, edi
push 0x100
lea eax, [ebp - 0xa8]
push edi
push eax
mov esi, ecx
mov dword [ebp + 0x64], edi
mov dword [ebp - 0xac], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp + 0x74], edi
je 0x409fb2
cmp dword [esi + 4], 0xffffffff
je 0x409fb2
mov eax, dword [ebp + 0x7c]
push ebx
push 3
pop ecx
xor edx, edx
mov ebx, ecx
div ebx
mov dword [ebp + 0x68], ecx
cmp eax, edi
je 0x409edb
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x78], edi
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x5c], edi
jbe 0x409faa
mov ebx, edi
cmp dword [ebp + 0x68], edi
mov dword [ebp + 0x7c], edi
jbe 0x409f4e
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x409fb1
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x58]
push ecx
push edi
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0xa8], eax
push edi
inc eax
push eax
mov dword [ebp - 0xac], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x409f3f
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x409ef4
cmp ebx, edi
jg 0x409f52
inc dword [ebp + 0x7c]
mov eax, dword [ebp + 0x7c]
cmp eax, dword [ebp + 0x68]
jb 0x409ef4
cmp ebx, edi
jle 0x409fbe
push edi
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x409f9e
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x409eec
mov eax, dword [esi]
push 2
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xac]
xor eax, eax
cmp ecx, edi
jbe 0x409fb1
mov esi, dword [esi + 4]
cmp dword [ebp + eax*4 - 0xa8], esi
je 0x409fe0
inc eax
cmp eax, ecx
jb 0x409f8e
jmp 0x409fb1
add dword [ebp + 0x74], eax
sub dword [ebp + 0x78], eax
jne 0x409eec
mov dword [ebp + 0x64], 1
pop ebx
mov eax, dword [ebp + 0x64]
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc
jne 0x409fb1
mov eax, dword [esi]
push 4
mov ecx, esi
call dword [eax + 8]
jmp 0x409fb1
mov ecx, dword [ebp + eax*4 - 0xa4]
mov dword [ebp + eax*4 - 0xa8], ecx
mov ecx, dword [ebp - 0xac]
inc eax
dec ecx
cmp eax, ecx
jb 0x409fcb
jmp 0x409fb1

Function at 0x40a04a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a061
test al, 0x10
jne 0x40a061
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x40a13b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a1a3
cmp dword [ebp + 0x10], 1
je 0x40a17c
cmp dword [ebp + 0x10], 2
je 0x40a17c
push 0xd
pop eax
jmp 0x40a1a3
test edi, edi
mov eax, dword [ebp - 4]
je 0x40a19d
test eax, eax
je 0x40a199
test al, 1
jne 0x40a177
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40a19d
jmp 0x40a177
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40a236
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, 0x5e7310
push esi
call fcn.00401c3d
push esi
lea ecx, [ebp - 4]
call fcn.00401c3d
mov esi, 0x105
push esi
lea ecx, [ebp - 4]
call fcn.00401e99
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
lea ecx, [ebp - 4]
call fcn.00403287
mov esi, dword [ebp - 4]
push esi
push str._skdeskdata
push dword [ebp + 8]
call fcn.004020ff
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.00401405
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x40a958
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x194], eax
and word [ebp - 0x78], 0
push esi
mov esi, dword [ebp + 0x1a0]
push 0x208
lea eax, [ebp - 0x76]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x40a9b9
push str.defaultuser
mov ecx, esi
call fcn.0040460b
jmp 0x40a9ff
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040460b
lea ecx, [ebp - 0x7c]
call fcn.00407de5
mov ecx, eax
call fcn.00407af5
mov eax, dword [ebp - 0x7c]
cmp dword [eax - 0xc], 0
mov ecx, esi
jne 0x40a9eb
push str.defaultuser
call fcn.0040460b
jmp 0x40a9f4
lea eax, [ebp - 0x7c]
push eax
call fcn.00401e7b
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp + 0x194]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056f17c
add ebp, 0x198
leave
ret
Function at 0x40ab42
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, 0x5e7310
push esi
lea ecx, [ebp - 4]
call fcn.00401c3d
push esi
lea ecx, [ebp - 8]
call fcn.00401c3d
mov esi, 0x105
push esi
lea ecx, [ebp - 8]
call fcn.00401e99
push eax
xor ebx, ebx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
lea ecx, [ebp - 8]
call fcn.00403287
lea eax, [ebp - 0xc]
push eax
call fcn.0040a958
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 8]
push str._skingsoftkdeskdatadesk_s
push eax
call fcn.004020ff
mov ecx, dword [ebp - 0xc]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00401405
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ac81
push edi
push 6
xor eax, eax
pop ecx
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [esi - 0xc]
inc esi
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056eafa
mov dword [ebp - 0xc], eax
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0xc]
call sub.MSVCR80.dll_memset
push dword [ebp - 4]
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
inc esi
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056eafa
lea ecx, [esi + esi]
push ecx
push ebx
push eax
mov dword [ebp - 0x10], eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
push dword [eax]
push esi
mov esi, dword [ebp - 0x10]
push esi
call edi
mov edi, dword [ebp - 0xc]
add esp, 0x38
lea eax, [ebp - 0x30]
push eax
mov word [ebp - 0x20], 0x614
mov dword [ebp - 0x1a], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov esi, dword [ebp - 4]
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401405
lea ecx, [esi - 0x10]
call fcn.00401405
pop esi
pop ebx
leave
ret

Function at 0x40ac98
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x5e7310
mov ecx, esi
call fcn.00401c3d
lea eax, [ebp + 8]
push eax
call fcn.0040a236
lea eax, [ebp - 4]
push eax
call fcn.0040a958
push dword [eax]
mov edi, dword [ebp + 8]
push edi
push str._sdesk_s
push esi
call fcn.004020ff
mov ecx, dword [ebp - 4]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00401405
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40acf1
push esi
call fcn.0040ab42
pop ecx
lea ecx, [edi - 0x10]
call fcn.00401405
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40b851
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x2b0
lea eax, [ebp - 0x2b4]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x2bc], 1
mov dword [ebp - 0x2b8], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], ebx
mov eax, pe_nt_image_headers32
jne 0x40b89e
inc eax
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40b8d4
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x40b8c5
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2b8]
mov dword [edi + 4], eax
mov dword [ebp - 0x2bc], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret 8

Function at 0x40f2a6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x40f2de
lea eax, [ebp - 4]
push eax
call fcn.0040f251
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov dword [esi + 4], eax
call fcn.00401405
mov eax, dword [esi + 4]
pop esi
leave
ret

Function at 0x40f2e4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 0x14]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40f337
lea eax, [ebp - 4]
push eax
call fcn.0040f251
push dword [eax]
mov eax, 0x104
push eax
push eax
mov ecx, esi
call fcn.00401e99
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401405
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403287
mov ecx, dword [ebp + 8]
push esi
call fcn.00401e7b
mov eax, dword [ebp + 8]
pop esi
leave
ret 4

Function at 0x40f348
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x214], 0
push esi
mov esi, dword [ebp + 8]
push 0x20e
lea eax, [ebp - 0x212]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call fcn.0040460b
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056f17c
leave
ret 4
Function at 0x40f801
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x10], ecx
call fcn.0040c1d4
test eax, eax
jne 0x40f8ca
push edi
push 0x5e7310
lea ecx, [ebp - 4]
call fcn.00401c3d
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.0040f251
push dword [eax]
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 4]
call fcn.00401e99
push eax
push str.1.01.21.5
push 0x589ef8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00401405
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00403287
and dword [ebp - 0xc], 0
mov edi, 0x589ef4
jmp 0x40f89c
push esi
call dword [sym.imp.MSVCR80.dll__wtof]
fstp qword [ebp - 0x18]
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040ee0e
lea ecx, [esi - 0x10]
call fcn.00401405
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.0040ef50
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x40f87d
lea ecx, [esi - 0x10]
call fcn.00401405
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401405
pop edi
mov eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x40f901
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
call fcn.0040f251
push dword [eax]
push 0
push 0x589f28
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401405
mov eax, esi
pop esi
leave
ret

Function at 0x40fa16
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x40fa4e
lea eax, [ebp - 4]
push eax
call fcn.0040f251
push dword [eax]
push 2
push 0x589f38
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov dword [esi + 0x18], eax
call fcn.00401405
mov eax, dword [esi + 0x18]
pop esi
leave
ret

Function at 0x40fa54
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0040f9af
test eax, eax
jne 0x40fa69
push 0x60
pop eax
jmp 0x40fa9f
cmp dword [esi + 8], 0xffffffff
jne 0x40fa9c
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0040f251
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov dword [esi + 8], eax
call fcn.00401405
mov eax, dword [esi + 8]
pop esi
leave
ret
Function at 0x40fe79
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040ce26
push dword [edi]
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.0040faa2
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
je 0x40ff52
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ff52
lea ecx, [ebp - 0x14]
call fcn.0040bf02
push ebx
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipPrivateAddFontFile
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], eax
call fcn.0040bed8
mov esi, eax
test esi, esi
jle 0x40ff4a
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x40ff19
lea ecx, [esi - 1]
test ecx, ecx
lea edx, [eax + 4]
mov dword [eax], esi
mov eax, edx
jl 0x40ff1b
and dword [eax], 0
and dword [eax + 4], 0
add eax, 8
dec ecx
jns 0x40ff0a
jmp 0x40ff1b
xor edx, edx
test edx, edx
mov dword [edi + 4], edx
lea ecx, [ebp - 0x14]
je 0x40ff4d
lea eax, [ebp - 4]
push eax
push edx
push esi
call fcn.0040cd78
test eax, eax
jne 0x40ff43
mov eax, dword [ebp - 4]
test eax, eax
jle 0x40ff43
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
jmp 0x40ff4a
mov ecx, edi
call fcn.0040ce26
lea ecx, [ebp - 0x14]
call fcn.0040bf1e
lea ecx, [ebx - 0x10]
call fcn.00401405
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411083
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x41110a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call esi
cmp dword [ebp - 8], 1
je 0x4110bd
cmp dword [ebp - 8], 2
jne 0x411109
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00401bb7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.00401e99
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x4110fe
mov eax, dword [ebp - 4]
shr eax, 1
and word [ebx + eax*2], 0
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00403287
pop ebx
pop esi
mov eax, dword [ebp - 0xc]
pop edi
leave
ret 8
Function at 0x411990
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0040460b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4119c5
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401405
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4119b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4119b0
lea eax, [ebp - 4]
push eax
call fcn.004112a6
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
pop ecx
jne 0x4119fe
xor esi, esi
jmp 0x4119b3
push eax
call fcn.00411990
test eax, eax
pop ecx
je 0x4119fa
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4119b0
call edi
cmp eax, ebx
jne 0x4119fa
jmp 0x4119b0
Function at 0x411cc9
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
and dword [ebp - 0x68], 0
and dword [ebp - 0x78], 0
push esi
mov esi, dword [ebp + 0x1fc]
push edi
mov edi, 0x5e7310
push edi
lea ecx, [ebp - 0x64]
call fcn.00401c3d
push edi
lea ecx, [ebp - 0x70]
call fcn.00401c3d
test esi, esi
je 0x411e9c
push esi
lea ecx, [ebp - 0x64]
call fcn.004020d9
lea eax, [ebp - 0x64]
push eax
call fcn.004111d5
push dword [ebp - 0x64]
lea eax, [ebp - 0x70]
push 0x58a3c0
push eax
call fcn.004020ff
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x411e9c
push ebx
mov esi, dword [sym.imp.MSVCR80.dll_wcscmp]
lea eax, [ebp - 0x34]
push 0x58a3bc
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x411e5c
lea eax, [ebp - 0x34]
push 0x58a3a8
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x411e5c
test byte [ebp - 0x60], 0x10
je 0x411dee
push edi
lea ecx, [ebp - 0x74]
call fcn.00401c3d
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x74]
push str._s_s_
push eax
call fcn.004020ff
mov eax, dword [ebp + 0x204]
add esp, 0x10
cmp eax, 0xffffffff
je 0x411dc1
test eax, eax
jne 0x411dc3
mov ecx, dword [ebp - 0x74]
jmp 0x411e54
test eax, eax
jle 0x411dc6
dec eax
mov esi, dword [ebp - 0x74]
push eax
push dword [ebp + 0x200]
push esi
call fcn.00411cc9
add esp, 0xc
test eax, eax
jne 0x411de9
cmp dword [ebp + 0x200], eax
je 0x411ecc
lea ecx, [esi - 0x10]
jmp 0x411e57
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040460b
lea ecx, [ebp - 0x6c]
call fcn.00406090
or dword [ebp - 0x68], 1
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00407c1f
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411e32
cmp dword [ebp + 0x200], eax
jne 0x411e32
mov bl, 1
jmp 0x411e34
xor bl, bl
test byte [ebp - 0x68], 1
je 0x411e49
mov ecx, dword [ebp - 0x80]
and dword [ebp - 0x68], 0xfffffffe
add ecx, 0xfffffff0
call fcn.00401405
test bl, bl
mov ecx, dword [ebp - 0x6c]
jne 0x411ed6
add ecx, 0xfffffff0
call fcn.00401405
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411d53
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
lea eax, [ebp - 0x64]
push eax
call fcn.00411244
pop ecx
push dword [ebp - 0x64]
call esi
mov dword [ebp - 0x78], 1
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp + 0x1f0]
mov eax, dword [ebp - 0x78]
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
add ebp, 0x1f4
leave
ret
lea ecx, [esi - 0x10]
call fcn.00401405
jmp 0x411e92
add ecx, 0xfffffff0
jmp 0x411ecf
Function at 0x411f17
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp edi, esi
je 0x411fc2
push 1
push 0x23
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_wcscat]
jne 0x411f97
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x411fc2
lea eax, [ebp - 0x20c]
push str.All_UsersApplication_Data
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 0xc
cmp eax, dword [ebp + 0x10]
jae 0x411fc2
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret 0xc
Function at 0x4124f0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
push edi
mov edi, dword [ebp + 0x1b4]
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x62]
push ebx
push eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x64], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.00446284
push str.CLSID9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0Implemented_CategoriesA5F7140E_4311_4ef9_AABC_F55941B5EBE5
push SysReAllocStringLen
lea ecx, [ebp - 0x80]
call fcn.004462d8
test eax, eax
jne 0x412566
mov eax, dword [esi]
push edi
push eax
lea ecx, [ebp - 0x80]
call fcn.0044632e
test eax, eax
je 0x41256d
mov dword [ebp - 0x70], 1
push 0x5e7310
lea ecx, [ebp - 0x68]
call fcn.00401c3d
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
call fcn.00412025
test eax, eax
mov dword [ebp - 0x74], eax
je 0x4125ab
push dword [ebp - 0x68]
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x64]
push ecx
push 0
push eax
push 0x58a478
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
cmp dword [ebp - 0x70], 0
je 0x4125d8
test ebx, ebx
ja 0x4125c4
mov ecx, dword [ebp - 0x6c]
push edi
push esi
call fcn.0041213e
mov dword [ebp - 0x74], eax
jmp 0x4125e6
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.004020d9
mov dword [ebp - 0x74], 1
jmp 0x4125dc
test ebx, ebx
ja 0x4125e6
mov ecx, dword [ebp - 0x6c]
push edi
push esi
call fcn.004120b5
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401405
lea ecx, [ebp - 0x80]
call fcn.004460a6
lea ecx, [ebp - 0x80]
call fcn.004462a2
mov ecx, dword [ebp + 0x1a4]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
add ebp, 0x1a8
leave
ret 8