joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d210
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x47ed88
Capabilities:
Encode data using xor

Disassembly:
jb 0x47edc4
invalid
or al, 0xdd
adc byte [ebx + 6], bl
pop esi
sbb dword [edi + ebx + 0x3c], eax
dec eax
inc dword [ecx + 0x49127c87]
aas
push ecx
neg byte [ecx - 0x7f]
adc byte [si - 0x20bc], bl
outsd dx, dword [esi]
push cs
xchg esp, eax
out 0x13, al
ror edi, 1
cmpsd dword [esi], dword es:[edi]
test al, 0x5b
sub eax, esi
push esi
or bl, byte [ecx - 0xd16aead]
mov eax, 0xa206219e
fisub dword [ebx - 0x1953233f]
inc ecx
and al, 0x82
add eax, 0x3d9b76b0
daa
sahf
shr byte [ebx], 0x2c
cdq
inc esp
dec ebx
push ebp
xor ch, bh
push ebx
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
test al, 0xf6
daa
loop 0x47ee0b
mov bh, 0x58
int 0xb1
push ecx
insb byte es:[edi], dx
shl ebx, 0x22
adc bl, 0xf9
push bp
insb byte es:[edi], dx
fimul word [ebp + 0x44]
dec edi
adc al, 0xd4
lds esp, [edx]
xchg edi, eax
push esp
and cl, 0x62
jns 0x47ee88
push ds
dec edx
imul byte [esi]
and al, 0x7e
jge 0x47eea3
sub dl, dh
test dword [ecx + 0x2103ceec], 0xea4a85c7
mov ebp, 0xc099356c
add esi, dword [esi]
bound ebp, qword [edi]
xlatb
cmpsd dword [esi], dword es:[edi]
les esi, [ebx + 0x26f6547]
arpl word [edx], ax
scasd eax, dword es:[edi]
mov bh, 0x91
inc eax
or eax, 0x8759b403
add esp, dword [ebp + esi + 0x5f]
mov cs, ebp
jnp 0x47ee65
pop ecx
xchg dword [ebx], eax
xor eax, 0x7bcd8e5f
not ah
aam 0xa2
aad 0x5d
mov eax, esi
invalid
aam 0x57
js 0x47ee90
aad 0xaa
mov dl, 0x40
pop edx
lahf
stosd dword es:[edi], eax
int1
dec ebp
add al, 0x44
pop es
xor dl, byte [esi + 0x5ac1a83]
mov ecx, 0x8d7b8bb1
dec ecx
cmp edx, dword [eax]
and dword [0xae0c34ee], ebp
out dx, al
xor al, 0xc
scasb al, byte es:[edi]
push eax
aam 0x5b
push ds
outsb dx, byte [esi]
loopne 0x47ef42
pop eax
mov byte [0x9a059ee1], al
movsb byte es:[edi], byte [esi]
push ebx
cwde
push esp
inc esp
jnp 0x47ef47
jmp edx
mov al, 0xf4
xchg ecx, eax
into
mov ah, 0xed
out dx, eax
dec esp
xchg edi, eax
inc edx
pop edx
jle 0x47ef39
scasb al, byte es:[edi]
scasd eax, dword es:[edi]
out 0xb8, eax
inc ecx
xlatb
or dword [edi], 0x13
cmp al, 0x76
dec ecx
pop ds
jmp 0x47efd0
cmp eax, 0x1a65fc9f
into

Function at 0x480a18
Capabilities:
Encode data using xor

Disassembly:
dec edx
adc eax, 0x408ee828
leave
in eax, dx
mov cl, 0x52
inc edx
fistp qword [ecx - 0x1c8a6b44]
xchg esp, eax
jb 0x480a42
dec ebx
cmp dword [ebx + 0x58], ebx
jg 0x480a88
push 0xc03f3bff
push ss
rcr bh, 1
push ds
sub byte [ebx - 0x10], dl
sbb byte [ebx], bl
sub al, 0xb7
stosd dword es:[di], eax
fcomp st(6)
and dword [edx], esi
inc ebx
add eax, 0x914ba6f9
leave
mov esi, 0x2d72290c
mov edi, 0xf291c8fe
and byte [ecx - 0x781e3271], ch
and dword [ebx], ebp
int3
mov dh, 0xde
adc dword [edx], edx
daa
invalid
Function at 0x401080
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x42815c]
push esi
mov edx, dword [ecx + eax*4 + 0x2c080]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4010af
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x401110
Capabilities:
Check mutex on windows
Create thread

Disassembly:
sub esp, 8
push esi
push str.Globalwlg_contact
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401288
call fcn.00407760
call fcn.00407400
push 0
call fcn.0041c434
test eax, eax
je 0x401288
push str.CrashRpt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401170
push str.Install
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401170
push 2
call eax
add esp, 4
mov ecx, 0x428158
call fcn.00406840
test eax, eax
je 0x401288
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x42815c]
mov dword [ecx + 0x2c084], eax
mov edx, dword [0x42815c]
lea ecx, [esp + 4]
mov eax, dword [edx + 2]
push eax
push ecx
call fcn.00406d60
call fcn.004022f0
call fcn.00406e10
push str.wlg_minispy
call fcn.00407900
add esp, 0xc
cmp eax, 2
jne 0x4011d1
push str.wlg_minispy
call fcn.004079c0
add esp, 4
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x428190
call fcn.00415a91
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.HIDEDIR
call fcn.00415d8a
call fcn.00403130
add esp, 8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x4013d0
push 0
push 0
mov dword [0x428198], eax
mov dword [0x428194], edx
call esi
push 0
push 0
push 0
push 0x4012a0
push 0
push 0
mov dword [0x4281b0], eax
call esi
push 0
push 0
push 0
push 0x4022c0
push 0
push 0
mov dword [0x4281ac], eax
call esi
push 0
push 0
push 0
push 0x4026e0
push 0
push 0
mov dword [0x4281a8], eax
call esi
mov eax, dword [0x428198]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
call fcn.00415d1c
xor eax, eax
pop esi
add esp, 8
ret 0x10
Function at 0x401bd0
Capabilities:
Get common file path
Get disk size
Get memory capacity

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42815c]
push esi
push edi
push 3
mov dword [eax + 0x345], 0
call fcn.004077f0
mov ecx, dword [0x42815c]
add esp, 4
lea edx, [esp + 0x18]
mov dword [ecx + 0x351], eax
push edx
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x42815c]
shr eax, 0x14
mov dword [ecx + 0x339], eax
mov edx, dword [esp + 0x24]
mov eax, dword [0x42815c]
push 0x104
shr edx, 0x14
mov dword [eax + 0x33d], edx
mov ecx, dword [0x42815c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
mov dword [ecx + 0x359], edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x53], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x1e
call fcn.00409b30
mov edx, dword [0x42815c]
mov ecx, 0x1e
mov dword [edx + 0x331], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00409b30
mov ecx, dword [0x42815c]
push 0
push 0x64
mov dword [ecx + 0x335], eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, esi
sub edx, edi
mov edi, dword [esp + 0x1c]
mov eax, edi
sbb eax, ecx
push eax
push edx
call fcn.00409af0
push edi
push esi
push edx
push eax
call fcn.00409a80
mov ecx, dword [0x42815c]
pop edi
pop esi
mov dword [ecx + 0x355], eax
add esp, 0x13c
ret
Function at 0x401d00
Capabilities:
Get hostname
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x41c60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push esi
mov esi, dword [esp + 0x428]
push edi
mov dword [esi], 0xaabbcc99
call fcn.004070f0
mov dword [esi + 8], eax
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407160
mov ecx, dword [esp + 0x14]
push 0xc
lea edx, [esi + 0xc]
push ecx
push edx
mov dword [esp + 0x438], 0
call fcn.004093c0
add esp, 0x14
push str.2.0.2.4
call sub.WSOCK32.dll_inet_addr
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push str._Y__m__d
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00414be0
mov ecx, eax
call fcn.00414c22
mov eax, dword [eax]
push 0xa
lea edx, [esi + 0x62]
push eax
push edx
call fcn.004093c0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00415d1c
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x10], 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [esp + 0x1c]
push 0x1d
lea eax, [esi + 0x19]
push edx
push eax
call fcn.004093c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ecx
mov dword [esi + 0x59], eax
mov ecx, esp
mov dword [esp + 0xc], esp
push str.wlg_ctrl.exe
call fcn.00415d8a
call fcn.00401ea0
mov ecx, esp
mov dword [esp + 0xc], esp
push str.wlg_pj.exe
mov byte [esi + 0x121], al
call fcn.00415d8a
call fcn.00401ea0
mov ecx, esp
mov dword [esp + 0xc], esp
push str.wlg_contact.exe
mov byte [esi + 0x122], al
call fcn.00415d8a
call fcn.00401ea0
mov ecx, esp
mov dword [esp + 0xc], esp
push str.wlg_netmon.exe
mov byte [esi + 0x123], al
call fcn.00415d8a
call fcn.00401ea0
mov ecx, esp
mov dword [esp + 0xc], esp
push str.wlg_filemon.exe
mov byte [esi + 0x124], al
call fcn.00415d8a
call fcn.00401ea0
add esp, 4
mov byte [esi + 0x125], al
call fcn.00401bd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x424], 0xffffffff
call fcn.00415d1c
mov ecx, dword [esp + 0x41c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x420
ret
Function at 0x401ea0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x41c633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor ebp, ebp
push ebx
push 2
mov dword [esp + 0x14c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x401f75
mov ecx, dword [0x424aa0]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x148], 1
call fcn.00415e59
lea ecx, [esp + 0x10]
call fcn.004160bd
lea ecx, [esp + 0x14c]
call fcn.004160bd
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004094be
add esp, 8
test eax, eax
je 0x401f60
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x144], bl
call fcn.00415d1c
cmp edi, ebx
jne 0x401eef
jmp 0x401f75
lea ecx, [esp + 0x10]
mov ebp, 1
mov byte [esp + 0x144], bl
call fcn.00415d1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14c]
mov dword [esp + 0x144], 0xffffffff
call fcn.00415d1c
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x402810
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
call fcn.004078d0
cmp eax, 0x20
jne 0x402881
push str.wlgdrv_hook
call fcn.00407a20
mov ecx, esp
mov dword [esp + 4], esp
push str.wlgdrv_hook
call fcn.00415d8a
call fcn.00407b40
add esp, 4
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push str.driversWlgdrv_hook.sys
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.SYSTEMCurrentControlSetServicesWlgdrv_hook
push reloc.WSOCK32.dll_bind
call fcn.00408050
add esp, 0xc
add esp, 0x108
ret

Function at 0x402890
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x424aa0]
mov dword [esp], eax
push str.wlg_minispy
mov dword [esp + 0x10], 0
call fcn.00407a20
add esp, 4
call fcn.004078d0
cmp eax, 0x20
jne 0x4028d5
push str.setupapi_InstallHinfSection_DefaultUninstall_132_._filter_32wlg_minispy.inf
jmp 0x4028da
push str.setupapi_InstallHinfSection_DefaultUninstall_132_._filter_64wlg_minispy.inf
lea ecx, [esp + 4]
call fcn.00415e59
mov ecx, dword [0x428190]
mov edx, dword [esp]
push 0
push ecx
push edx
push str.rundll32.exe
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.00415d1c
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403130
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c741
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x120], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00409bf0
add esp, 8
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
mov byte [eax + 1], 0
push edx
call fcn.00415d8a
mov eax, dword [esp + 0x124]
push str.HIDEDIR
push eax
mov byte [esp + 0x124], 2
call fcn.004094be
add esp, 8
test eax, eax
pop edi
jne 0x403233
push ebx
lea ecx, [esp + 4]
push 1
push ecx
lea ecx, [esp + 0x130]
call fcn.00414e8f
mov eax, dword [eax]
push 0x424218
push eax
call fcn.004094be
add esp, 8
lea ecx, [esp + 4]
test eax, eax
sete bl
call fcn.00415d1c
test bl, bl
pop ebx
je 0x403233
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x124]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 4]
push eax
call fcn.00414f0b
push eax
lea ecx, [esp + 0x128]
mov byte [esp + 0x11c], 3
call fcn.00415e09
lea ecx, [esp]
mov byte [esp + 0x118], 2
call fcn.00415d1c
mov ecx, dword [0x424aa0]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
push eax
lea ecx, [esp + 0x10]
push str.__CMD_s__PARAM_s__
push ecx
mov byte [esp + 0x128], 4
call fcn.0041532b
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp]
push str.wlgdev.exe
push edx
push eax
call fcn.00415eff
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [eax]
push 0
push ecx
push edx
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call fcn.00415d1c
lea ecx, [esp + 8]
mov byte [esp + 0x118], 2
call fcn.00415d1c
lea ecx, [esp + 4]
mov byte [esp + 0x118], 1
call fcn.00415d1c
lea ecx, [esp + 0x120]
mov byte [esp + 0x118], 0
call fcn.00415d1c
lea ecx, [esp + 0x124]
mov dword [esp + 0x118], 0xffffffff
call fcn.00415d1c
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x403310
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41c75b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call fcn.00409bf0
mov byte [eax + 1], 0
mov edi, str.driverWlgdrv_hook.sys
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x12c]
push str.driversWlgdrv_hook.sys
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
call fcn.00408450
lea edx, [esp + 0x12c]
push 0
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0
call fcn.00408513
pop edi
pop esi
test eax, eax
pop ebp
jne 0x4033f6
push eax
lea eax, [esp + 0x124]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0040848d
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x403420
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c77b
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebp
push esi
push edi
call fcn.004078d0
mov esi, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call fcn.00409bf0
add esp, 8
cmp esi, 0x20
mov byte [eax + 1], 0
lea edx, [esp + 0x28]
mov edi, str.filter_32wlg_minispy.sys
je 0x40348a
mov edi, str.filter_64wlg_minispy.sys
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x12c]
push str.driverswlg_minispy.sys
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
call fcn.00408450
lea edx, [esp + 0x12c]
push 0
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0
call fcn.00408513
pop edi
pop esi
test eax, eax
pop ebp
jne 0x403517
push eax
lea eax, [esp + 0x124]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0040848d
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x403620
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, ecx
push esi
mov esi, dword [eax + 0x400]
dec ecx
push edi
mov edi, dword [eax + 0x404]
test edx, edx
je 0x403687
push ebx
mov ebx, dword [esp + 0x14]
push ebp
lea ebp, [ecx + 1]
inc esi
and esi, 0xff
mov edx, dword [eax + esi*4]
add edi, edx
and edi, 0xff
mov ecx, dword [eax + edi*4]
mov dword [eax + edi*4], edx
mov dword [eax + esi*4], ecx
add cl, dl
mov dl, byte [ebx]
and ecx, 0xff
mov cl, byte [eax + ecx*4]
xor dl, cl
mov byte [ebx], dl
inc ebx
dec ebp
jne 0x403646
pop ebp
mov dword [eax + 0x404], edi
pop ebx
mov dword [eax + 0x400], esi
pop edi
pop esi
ret
mov dword [eax + 0x404], edi
mov dword [eax + 0x400], esi
pop edi
pop esi
ret
Function at 0x404860
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41c9e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x878
push ebp
xor ebp, ebp
lea ecx, [esp + 4]
mov dword [esp + 0x884], ebp
call fcn.00416153
mov eax, dword [esp + 0x894]
mov ecx, dword [esp + 0x890]
neg eax
sbb eax, eax
push ebp
and al, 0xd0
mov byte [esp + 0x888], 1
add eax, 0x40
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00416265
test eax, eax
jne 0x4048fc
lea ecx, [esp + 4]
mov byte [esp + 0x884], al
call fcn.004161a8
lea ecx, [esp + 0x890]
mov dword [esp + 0x884], 0xffffffff
call fcn.00415d1c
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x878]
mov dword fs:[0], ecx
add esp, 0x884
ret
push ebx
push esi
push edi
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call fcn.0041655f
mov ebx, dword [esp + 0x898]
lea edx, [esp + 0x20]
push 0x68
push edx
mov ecx, ebx
mov dword [esp + 0x8c], eax
call fcn.00406b40
cmp eax, 0x68
jne 0x404978
mov edi, dword [esp + 0x84]
lea eax, [esp + 0x88]
push 0x800
push eax
lea ecx, [esp + 0x18]
call fcn.00416382
mov esi, eax
test esi, esi
je 0x404978
lea ecx, [esp + 0x88]
push esi
push ecx
mov ecx, ebx
call fcn.00406b40
cmp eax, esi
jne 0x404978
sub edi, esi
test edi, edi
jg 0x40493d
mov ebp, 1
lea ecx, [esp + 0x10]
call fcn.00416480
test ebp, ebp
je 0x4049ad
mov eax, dword [esp + 0x89c]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x89c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
lea ecx, [esp + 0x10]
test ebp, ebp
setne al
inc eax
mov byte [esp + 0x890], 0
mov esi, eax
call fcn.004161a8
lea ecx, [esp + 0x89c]
mov dword [esp + 0x890], 0xffffffff
call fcn.00415d1c
mov ecx, dword [esp + 0x888]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x884
ret
Function at 0x4050c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41ca91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push str._Y__m__d
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00414be0
mov ecx, eax
call fcn.00414c22
lea edx, [esp + 0x34]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x14c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x34]
push 0x5c
push eax
call fcn.00409bf0
mov byte [eax + 1], 0
mov edi, str.CapLog__________.idx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0041547a
lea eax, [esp + 0x1c]
lea edx, [esp + 0x34]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x14c], 1
call fcn.00415d8a
call fcn.00405560
mov eax, dword [esp + 0x2c]
add esp, 8
xor esi, esi
test eax, eax
jle 0x405268
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004052c0
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x148], 2
call fcn.00415a91
call fcn.00405740
add esp, 4
test eax, eax
je 0x405257
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00415a91
lea ecx, [esp + 0x14]
push ecx
call fcn.00405900
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call fcn.004094be
add esp, 0x10
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00415d1c
test bl, bl
je 0x405257
push 0
push 0x424694
push str.NETIDX
push str.CapLoghistory.ini
call fcn.00406f10
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
call edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 1
call fcn.00415d1c
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x4051a6
jmp 0x405268
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 1
call fcn.00415d1c
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x24]
call fcn.0041550d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 0
call fcn.004154ad
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], 0xffffffff
call fcn.00415d1c
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret