joyce8/EMBER2024-capa huggingface dataset:
Function at 0x86dcd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0xb196ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x217]
push ebx
push ecx
mov byte [ebp - 0x218], bl
call fcn.00a7ffb0
add esp, 0xc
call 0x9991f0
push 0xb55508
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x110], bl
je 0x86dd6b
lea eax, [ebp - 0x110]
inc eax
cmp byte [eax], bl
jne 0x86dd48
lea ecx, [ebp - 0x110]
sub eax, ecx
je 0x86dd6b
cmp byte [ebp + eax - 0x111], 0x5c
je 0x86dd6b
push 0xaa1564
mov edx, ecx
push edx
call esi
push str.eServ.ini
lea eax, [ebp - 0x110]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x110]
push ecx
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0xaa1543
push str.ClientLogDir
push str.General
call esi
cmp byte [ebp - 0x218], bl
jne 0x86de12
lea eax, [ebp - 0x110]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0xaa1543
push str.FTPDownloadDir
push str.General
call esi
cmp byte [ebp - 0x218], bl
je 0x86de12
push str.LOG
lea edx, [ebp - 0x218]
push 0xab130c
push edx
call fcn.0095e130
add esp, 0xc
test eax, eax
je 0x86de12
push str.General
lea esi, [ebp - 0x110]
lea eax, [ebp - 0x218]
mov ebx, str.ClientLogDir
call fcn.009584b0
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x8708a0
Capabilities:
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0xb196ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00a7ffb0
add esp, 0xc
push 0xb55f40
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0xaa1543
push str.DownloadFromAnotherServer
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov bl, 0x31
cmp byte [ebp - 0x110], bl
je 0x87090f
cmp dword [0xb567d0], 0
je 0x87099e
push 0
push 0
push 0x8a0570
call fcn.00a791b2
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x87096a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x218]
push str.Error:_beginthread_5x2ay__fails_with_error__d
push edx
call fcn.00a78f30
add esp, 0xc
push 0
push 1
lea eax, [ebp - 0x218]
push eax
push 0xb54ce8
call fcn.008808e0
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
push 0
push 1
cmp byte [ebp - 0x110], bl
jne 0x87097d
push str._DISCOVER__Discover_Clients_Thread_Started__Download_From_Another_Server_...
jmp 0x870982
push str._DISCOVER__Discover_Clients_Thread_Started__eScan_Primary_Server_...
push 0xb54ce8
call fcn.008808e0
add esp, 0x10
push str.CBD_5e2ay
xor ebx, ebx
call fcn.0085df20
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x87ba90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push 0
push 5
push ebx
mov dword [esp + 0x1c], eax
call ebp
mov esi, eax
mov edi, 1
cmp esi, 0x102
jne 0x87bb43
cmp edi, 0x14
jl 0x87badb
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x34]
ja 0x87bb43
cmp dword [esp + 0xc], 0
jne 0x87bb31
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x87bb31
cmp dword [esp + 0x18], 0x12
je 0x87bb29
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x87bae2
mov dword [esp + 0xc], 1
push 0
push 5
push ebx
call ebp
mov esi, eax
inc edi
cmp esi, 0x102
je 0x87bac4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x24
ret

Function at 0x87bb50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb10bd0
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x87bbe5
jle 0x87bba6
cmp byte [esi + edi - 1], 0x2e
je 0x87bbe5
push 0x2e
push edi
call fcn.00a7a2c0
add esp, 8
test eax, eax
je 0x87bbe5
add esi, 2
push esi
call fcn.00a7a155
add esp, 4
mov esi, eax
test esi, esi
je 0x87bbe5
mov ebx, 1
mov dword [ebp - 0x20], ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xaacda4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x87bbe7
mov esi, edi
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
test ebx, ebx
je 0x87bc06
push esi
call fcn.00a78fec
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x87bc27
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x87bc50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb10bb0
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, 1
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
xor edi, edi
mov ecx, dword [0xb587cc]
mov dword [ebp - 0x30], edi
mov edx, 1
cmp edi, edx
jge 0x87bd5b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x13c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x20], 4
cmp ecx, esi
je 0x87bd05
or eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 5
lea ecx, [ebp - 0x2c]
push ecx
push esi
push esi
lea edx, [ebp - 0x13c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 6
mov ecx, dword [0xb587cc]
cmp ecx, esi
jne 0x87bce6
mov dword [ebp - 0x20], 7
cmp eax, esi
jne 0x87bd54
add edi, ebx
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x20], 0xa
jmp 0x87bca6
mov dword [ebp - 0x20], 9
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x87da90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x40
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
call fcn.00a7ffb0
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], esi
call fcn.009790d0
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x48]
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
xor edx, edx
lea ecx, [esp + 0x4c]
call fcn.009691d0
push 0x44
lea ecx, [esp + 0x5c]
push ebx
push ecx
mov dword [esp + 0x38], 0xffffffff
mov byte [esp + 0xac], bl
call fcn.00a7ffb0
xor eax, eax
add esp, 0x2c
xor edx, edx
mov word [esp + 0x68], ax
push edi
lea eax, [esp + 0x84]
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov word [esp + 0x6e], dx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], 1
mov dword [esp + 0x14], ebx
call fcn.0095d500
add esp, 4
cmp byte [esp + 0x80], bl
je 0x87db90
lea ecx, [esp + 0x80]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x18], ebx
jne 0x87dc00
cmp dword [esp + 0x14], ebx
je 0x87dbae
push ebx
lea edx, [esp + 0x38]
push edx
push ebx
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
call fcn.0097a560
mov esi, eax
cmp esi, 1
je 0x87dc00
call fcn.00968b30
test eax, eax
je 0x87dbc8
cmp esi, 1
jbe 0x87dc00
cmp dword [esp + 0x14], ebx
je 0x87dbdd
push 3
push ebx
push ebx
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push str.User32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x87dc00
push str.AllowSetForegroundWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x87dc00
push 0xffffffffffffffff
call eax
mov eax, dword [esp + 0x10]
push eax
push 4
push ebx
push edi
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x48]
call fcn.0095d590
add esp, 0x10
mov ebx, 0x103
mov dword [esp + 0xc], ebx
test eax, eax
jne 0x87dc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x118
mov dword [esp + 0x1c], 0
call esi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [esp + 0xc], ebx
jne 0x87dc86
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [ecx]
push 0x64
call esi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call edi
cmp dword [esp + 0xc], ebx
je 0x87dc70
lea ecx, [esp + 0x20]
push ecx
call fcn.00985290
lea edx, [esp + 0x1c]
push edx
call fcn.00985290
mov ecx, dword [esp + 0x18c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x87dcc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb13110
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
cmp byte [str.C:PROGRA2eScanNWCONFIG.DAT], 0
je 0x87dd93
push str.C:PROGRA2eScanNWCONFIG.DAT
push str.netsh.exe__f__s
lea eax, [ebp - 0x120]
push eax
call fcn.00a78f30
add esp, 0xc
mov eax, 1
mov esi, str.NetshIPChanged
mov ebx, str.SoftwareMicroWorld
mov ecx, 0x80000001
call fcn.0094be90
lea ecx, [ebp - 0x120]
call fcn.0087da90
test eax, eax
je 0x87dd5c
mov ecx, ebx
mov edx, 0x80000001
call fcn.0095f910
jmp 0x87dd93
push 0
push 0
push 0x87da40
call fcn.00a791b2
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x87dd9c
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x8805d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.00968110
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x880608
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftCommand_Processor
push 0x80000002
call ebx
jmp 0x880621
lea ecx, [esp + 0x10]
push ecx
push 0xf013f
push str.SoftwareMicrosoftCommand_Processor
push 0x80000002
call fcn.0097eda0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
jne 0x88068a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.EnableExtensions
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x88067f
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.EnableExtensions
push eax
mov dword [esp + 0x2c], 1
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00968110
test eax, eax
jne 0x8806ac
lea edx, [esp + 0x10]
push edx
push 0xf003f
push eax
push str.SoftwareMicrosoftCommand_Processor
push 0x80000001
call ebx
jmp 0x8806c5
lea eax, [esp + 0x10]
push eax
push 0xf013f
push str.SoftwareMicrosoftCommand_Processor
push 0x80000001
call fcn.0097eda0
mov esi, eax
push esi
call edi
test esi, esi
jne 0x88071f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push esi
push str.EnableExtensions
push eax
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x880714
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push esi
push str.EnableExtensions
push edx
mov dword [esp + 0x2c], 1
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x8807d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x8808d5
cmp byte [esi], bl
je 0x8808d5
lea eax, [esp + 8]
push eax
push 0x20019
push ebx
push 0xaa21e4
push 0x80000002
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8808d5
cmp edi, 1
jne 0x88084e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 4]
push edx
push eax
push ebx
push ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x880845
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
pop ebx
add esp, 0xc
ret
cmp edi, ebx
jne 0x88088e
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push esi
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x880885
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0xc
ret
cmp edi, 2
jne 0x8808d5
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push esi
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x8808c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 0xc], 1
pop ebx
sete al
add esp, 0xc
ret
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x8836b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb10b30
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x1c]
push eax
push str.BlockFileRenamesToMultipleExtension
mov ecx, 0xaa21e4
mov edx, 0x80000002
call fcn.0094c0d0
cmp dword [ebp - 0x1c], 0
je 0x88379f
push 0
push 3
push 3
push 0x80000000
mov edi, 0xb47b34
call fcn.0094db00
add esp, 0x10
mov dword [ebp - 0x20], eax
test eax, eax
je 0x88375e
cmp eax, 0xffffffff
je 0x88375e
lea ecx, [ebp - 0x20]
push ecx
call fcn.00985290
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x88379f
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8839e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x207
lea edx, [esp + 0x21d]
push 0
push edx
mov byte [esp + 0x224], 0
call fcn.00a7ffb0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea esi, [esp + 8]
call fcn.00960950
mov ecx, esi
push ecx
lea edx, [esp + 0x114]
push str._sKave.dll
push edx
call fcn.00a78f30
add esp, 0xc
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x118]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x883ace
xor ecx, ecx
mov edi, esi
call fcn.0095a6d0
mov edx, ebx
mov ecx, esi
mov eax, esi
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x883ab0
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
xor eax, eax
mov cl, byte [eax + 0xb55508]
mov byte [esp + eax + 0x218], cl
inc eax
test cl, cl
jne 0x883ad0
lea esi, [esp + 0x218]
call fcn.00960950
mov edx, esi
push edx
lea eax, [esp + 0xc]
push str._sVista
push eax
call fcn.00a78f30
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push str._sKave.dll
push edx
call fcn.00a78f30
add esp, 0xc
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x118]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x883b5a
xor ecx, ecx
lea edi, [esp + 8]
call fcn.0095a6d0
mov edx, ebx
mov ecx, edi
mov eax, edi
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x883b50
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x892a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp byte [str.File_Added], 0
jne 0x892ab9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xb55918
push 0x3f
push str.File_Added
push 0xabd6d0
push 0xabd6dc
push 0xaaec30
call esi
push 0xb55918
push 0x3f
push str.File_Removed
push str.File_Deleted
push 0xabd6e0
push 0xaaec30
call esi
push 0xb55918
push 0x3f
push str.File_Modified
push 0xabd6e4
push 0xabd6f4
push 0xaaec30
call esi
push 0xb55918
push 0x3f
push str.File_Renamed_OldName
push 0xabdd94
push 0xabddac
push 0xaaec30
call esi
push 0xb55918
push 0x3f
push str.File_Renamed_NewName
push 0xabddb0
push 0xabddc8
push 0xaaec30
call esi
pop esi
test edi, edi
je 0x892bb0
test ebx, ebx
je 0x892ae6
cmp byte [ebx], 0
jne 0x892ae6
mov eax, str.File_Added
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x892ad3
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x6b5
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 4
ja case.default.0x892af5
jmp dword [eax*4 + 0x892bb4]
mov eax, str.File_Added
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x892b05
mov eax, 0x6b5
pop ebp
ret
mov eax, str.File_Removed
mov edx, edi
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x892b20
mov eax, 0x6b6
pop ebp
ret
mov eax, str.File_Modified
mov edx, edi
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x892b40
mov eax, 0x6b7
pop ebp
ret
mov eax, str.File_Renamed_OldName
mov edx, edi
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x892b60
mov eax, 0x6b8
pop ebp
ret
mov eax, str.File_Added
mov edx, edi
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x892b80
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
mov eax, 0x6b5
pop ebp
ret
push ecx
push str.File_Action_UNKNOWN___d_
push edi
call fcn.00a78f30
add esp, 0xc
mov eax, 0x6ba
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x8964d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push 0x30
mov edi, eax
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x40], ebx
call fcn.00a7ffb0
mov esi, dword [edi]
mov edi, dword [edi + 0x10]
add esp, 0xc
xor eax, eax
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x89650a
cmp edi, ebx
je 0x89650a
cmp byte [esi], al
je 0x89650a
call fcn.008963a0
cmp dword [edi + 8], 0xffff
jne 0x896518
mov eax, 1
cmp esi, ebx
je 0x8965e3
cmp byte [esi], bl
je 0x8965e3
cmp eax, ebx
jne 0x8965e3
mov eax, esi
inc eax
cmp byte [eax], bl
jne 0x896532
sub eax, esi
mov dword [ebp - 4], eax
add eax, 0x40
push eax
mov dword [ebp - 0xc], eax
call fcn.00a7a155
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x8965de
mov ecx, dword [edi]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x3c], edx
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x30], edx
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x20]
mov edi, dword [ebp - 4]
push edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov ecx, dword [0xb3dda8]
lea edx, [ebx + 8]
push esi
push edx
mov dword [ebp - 0x20], eax
mov dword [ebx], ecx
mov dword [ebx + 4], edi
call fcn.00a828e0
add esp, 0xc
lea edi, [ebx + edi + 8]
mov ecx, 0xd
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0xb3ddac]
mov ecx, dword [ebp - 4]
push 0
mov dword [ebx + ecx + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00a78fec
add esp, 4
mov eax, dword [ebp + 0xc]
inc dword [eax]
mov eax, dword [ebp + 0x18]
inc dword [eax]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0xc8
div ecx
test edx, edx
jne 0x896610
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x10]
cmp eax, 0x61a8
jbe 0x896610
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret