joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51527c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x52eb78
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x532028]
cmp eax, 0x232
jl 0x5152e6
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.005079a0
mov dword [esp], edi
call fcn.00512714
mov eax, dword [0x532028]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x52eb78]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x532028]
lea ecx, [eax + 1]
mov dword [0x532028], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x52eb78]
mov dword [esi], eax
mov dword [esp], 0x52eb78
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x51532c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.005079a0
mov dword [esp], esi
call fcn.00512714
add esp, 0x58
pop esi
ret

Function at 0x519404
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x532450]
mov dword [esp], eax
call fcn.0051a13a
sub esp, 4
mov esi, eax
test esi, esi
je 0x51946b
xor edi, edi
nop
cmp edi, 3
ja 0x51946b
inc edi
xor ebx, ebx
xor eax, eax
nop word [eax + eax]
cmp byte [ebx*8 + 0x532454], 0
je 0x519461
mov ecx, dword [ebx*8 + 0x532458]
test ecx, ecx
je 0x519461
mov edx, dword [esi + ebx*4]
test edx, edx
je 0x519461
mov dword [esi + ebx*4], 0
mov dword [esp], edx
call ecx
mov eax, 1
inc ebx
cmp ebx, 0x32
jne 0x519434
test eax, eax
jne 0x519424
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x452cbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x452ccd
pop dword [ebp - 0x48]
mov eax, 0xce3d84a8
sub eax, 0xcdf857db
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xc3532274
sub dword [ebp - 0x58], 0x7500dd29
mov dword [ebp - 0x54], 0xa6a4a85d
add dword [ebp - 0x54], 0x8b8ea3e8
mov dword [ebp - 0x50], 0x9cfce0b
sub dword [ebp - 0x50], 0xbd8389dd
mov dword [ebp - 0x4c], 0x9607a8f
sub dword [ebp - 0x4c], 0x9607a8f
lea eax, [ebp - 0x58]
push eax
mov eax, 0x17b1a1b1
sub eax, 0x176bf14d
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x41a7c18d
sub dword [ebp - 0x58], 0xcd355837
mov dword [ebp - 0x54], 0x4c548ee3
add dword [ebp - 0x54], 0xf517d292
mov dword [ebp - 0x50], 0xb04802a9
sub dword [ebp - 0x50], 0x4cd8963d
mov dword [ebp - 0x4c], 0xf42f8141
add dword [ebp - 0x4c], 0xbd07ebf
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x51b36
push 0
call eax
mov ecx, 0xfd386c1d
sub ecx, 0xfd381274
xor esi, esi
add esi, eax
mov edi, 0x476000
add edi, dword [ebp - 0x48]
mov ebx, 0xf298cfb3
xor dword [ebp - 0x28], 0x5093ed0a
mov edx, dword [edi]
add edx, ebx
sub dword [ebp - 0x1c], 0xbf326431
mov dword [esi], edx
xor dword [ebp - 4], 0x6d4323cb
add esi, 0xcb4e6fdb
add esi, 0x34b19029
add edi, 0xa90efaf4
sub edi, 0xa90efaf0
loop 0x452de0
add eax, 0x7e817614
sub eax, 0x7e801c9d
mov ebx, eax
add eax, 0x2a912d0f
sub eax, 0x2a912d0a
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10059e0b
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x5fd3]
mov dword [esp + 4], ecx
pop ecx
jmp 0x1003c65a

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

Disassembly:
push edx
mov edx, dword [esp + 4]
lea edx, [edx - 0x2619a]
mov dword [esp + 4], edx
pop edx
jmp 0x100473e3
Function at 0x401520
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4305e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push edi
mov dword [esp + 4], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
push 0x14
rep stosd dword es:[edi], eax
mov dword [esp + 0x11c], 1
mov dword [esp + 0xc], 0x100
call fcn.00428e1c
add esp, 4
test eax, eax
pop edi
je 0x401596
mov ecx, dword [0x43db14]
mov dword [eax], ecx
mov edx, dword [0x43db14]
mov dword [eax + 4], edx
mov ecx, dword [0x43db14]
mov dword [eax + 8], ecx
mov edx, dword [0x43db14]
mov dword [eax + 0xc], edx
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x130]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4015df
mov esi, dword [esp + 0x120]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00428960
mov dword [esp + 4], 1
jmp 0x4015fa
mov esi, dword [esp + 0x120]
push 0x441314
mov ecx, esi
call fcn.00428960
mov dword [esp + 4], 1
lea ecx, [esp + 0x124]
mov byte [esp + 0x118], 0
call fcn.004288f2
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 0xc
Function at 0x402860
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4413dc]
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 0x40288f
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 0x403b40
Capabilities:
Get common file path
Get disk size
Get memory capacity

Disassembly:
sub esp, 0x13c
mov eax, dword [0x4413dc]
push esi
lea ecx, [esp + 0x14]
push edi
mov dword [eax + 0x345], 0
push ecx
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x20]
mov eax, dword [0x4413dc]
shr edx, 0x14
mov dword [eax + 0x339], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [0x4413dc]
push 0x104
shr ecx, 0x14
mov dword [edx + 0x33d], ecx
mov eax, dword [0x4413dc]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x44]
push edx
mov dword [eax + 0x359], ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
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.0041c2c0
mov ecx, dword [0x4413dc]
mov dword [ecx + 0x331], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, 0x1e
call fcn.0041c2c0
mov edx, dword [0x4413dc]
push 0
push 0x64
mov dword [edx + 0x335], eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, esi
sub eax, edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
sbb ecx, edx
push ecx
push eax
call fcn.0041c280
push edi
push esi
push edx
push eax
call fcn.0041c210
mov edx, dword [0x4413dc]
pop edi
pop esi
mov dword [edx + 0x355], eax
add esp, 0x13c
ret

Function at 0x403c50
Capabilities:
Get hostname
Set socket configuration

Disassembly:
sub esp, 0x408
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
lea ebx, [esi + 0xc]
mov dword [esi], 0xaabbcc99
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x403ca0
call fcn.00417d10
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00417d80
mov ecx, dword [esp + 0x14]
push 0xc
push ecx
push ebx
call fcn.0041bf00
add esp, 0x14
lea ecx, [esp + 0xc]
call fcn.004288f2
mov edx, dword [0x441454]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [esi + 4], eax
lea eax, [esp + 0xc]
push str._Y__m__d
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00427d26
mov ecx, eax
call fcn.00427d68
mov edx, dword [eax]
push 0xa
lea eax, [esi + 0x62]
push edx
push eax
call fcn.0041bf00
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.004288f2
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
push 0x400
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x14]
lea edi, [esi + 0x19]
push 0x1d
push edx
push edi
call fcn.0041bf00
push edi
call fcn.00417520
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x59], eax
call fcn.00403b40
pop edi
pop esi
pop ebx
add esp, 0x408
ret
Function at 0x4049d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x84
lea eax, [esp]
push ebx
push esi
push edi
push eax
call fcn.00427d26
mov ecx, dword [0x441480]
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test ecx, ecx
jne 0x404afd
mov ecx, dword [0x4413dc]
sub eax, dword [ecx + 0x2c47b]
cmp eax, 0x14
jbe 0x404afd
call ebx
cmp eax, 0x493e0
jae 0x404afd
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.WriteLog
call fcn.00428960
call fcn.00417790
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x14]
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xc]
push edx
stosb byte es:[edi], al
call fcn.00427d26
mov ecx, dword [0x4413dc]
mov eax, dword [eax]
add ecx, 0x93
push 0x1e
lea edx, [esp + 0x37]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.0041bf00
mov eax, dword [0x4413dc]
push 0xc
lea edx, [esp + 0x62]
mov ecx, dword [eax + 0x82]
add eax, 0x86
push eax
push edx
mov dword [esp + 0x97], ecx
call fcn.0041bf00
mov eax, dword [0x4413dc]
push 0x1e
add eax, 0xb2
lea ecx, [esp + 0x7b]
push eax
push ecx
call fcn.0041bf00
mov eax, dword [0x4413dc]
lea ecx, [esp + 0x34]
push 0x7f
push ecx
mov edx, dword [eax + 0x2c47f]
push str.POWEREX
mov dword [esp + 0xb3], edx
mov eax, dword [eax + 0x2c483]
mov dword [esp + 0xb7], eax
call fcn.004047e0
add esp, 0x30
lea edx, [esp + 0xc]
push edx
call fcn.00427d26
mov ecx, dword [0x4413dc]
mov eax, dword [eax]
mov dword [ecx + 0x2c47b], eax
mov dword [0x441480], 1
lea edx, [esp + 0xc]
push edx
call fcn.00427d26
mov ecx, dword [0x4413dc]
mov eax, dword [eax]
mov dword [ecx + 0x2c477], eax
call ebx
mov edx, dword [0x4413dc]
mov dword [edx + 0x2c483], eax
lea eax, [esp + 0xc]
push eax
call fcn.00427d26
mov esi, dword [eax]
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub esi, edx
mov edx, dword [0x4413dc]
pop edi
mov dword [edx + 0x2c47f], esi
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x405ad0
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4309eb
push eax
mov eax, dword [0x441618]
mov dword fs:[0], esp
sub esp, 0x334
cmp eax, 0x20
jne 0x405b70
push str.wlgdrv_hook
call fcn.00418c70
mov ecx, esp
mov dword [esp + 4], esp
push str.wlgdrv_hook
call fcn.00428960
call fcn.00418ec0
add esp, 4
lea eax, [esp + 0x230]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x230]
push str.driversWlgdrv_hook.sys
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.SYSTEMCurrentControlSetServicesWlgdrv_hook
push reloc.PPData.dll_Ordinal_2
call fcn.00419700
push 0
push str.SYSTEMCurrentControlSetServicesqdrv32
push reloc.PPData.dll_Ordinal_2
call fcn.00419700
add esp, 0x18
lea ecx, [esp + 4]
call fcn.00407bd0
lea ecx, [esp + 4]
mov dword [esp + 0x33c], 0
call fcn.00407cb0
test al, al
je 0x405bb7
push 0
lea ecx, [esp + 8]
call fcn.00407ec0
lea ecx, [esp + 4]
call fcn.00407d10
lea ecx, [esp + 4]
call fcn.00407de0
lea ecx, [esp + 4]
call fcn.00407d30
push str.WLGNetLimiter
call fcn.00418c70
mov ecx, esp
mov dword [esp + 4], esp
push str.WLGNetLimiter
call fcn.00428960
call fcn.00418ec0
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00407c70
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
add esp, 0x340
ret

Function at 0x405c10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x430a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x43db14]
mov dword [esp], eax
push str.wlg_minispy
mov dword [esp + 0x10], 0
call fcn.00418c70
mov eax, dword [0x441618]
add esp, 4
cmp eax, 0x20
jne 0x405c55
push str.setupapi_InstallHinfSection_DefaultUninstall_132_._filter_32wlg_minispy.inf
jmp 0x405c5a
push str.setupapi_InstallHinfSection_DefaultUninstall_132_._filter_64wlg_minispy.inf
lea ecx, [esp + 4]
call fcn.00428a2f
mov ecx, dword [0x441410]
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.004288f2
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406b80
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x430a8b
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.0041bd80
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.0041ab80
lea edx, [esp + 0x12c]
push 0
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0
call fcn.0041ac43
pop edi
pop esi
test eax, eax
pop ebp
jne 0x406c66
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.0041abbd
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x407d30
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebx
push esi
push 0xf003f
push 0
mov esi, ecx
push 0
mov byte [esp + 0x17], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x407dca
add esi, 0x20
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x407dc3
push ebp
lea eax, [esp + 0x10]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407daa
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
je 0x407daa
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 3
jne 0x407daa
push 0x64
call ebp
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x407d93
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
pop edi
pop ebp
test eax, eax
je 0x407dbc
mov byte [esp + 0xb], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x407de0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x407e04
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
add esi, 0x20
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
jne 0x407e2b
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov ebx, eax
call edi
test ebx, ebx
pop ebx
pop edi
setne al
pop esi
add esp, 0x1c
ret
Function at 0x408330
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 8]
pop edi
cmp edx, 6
sbb eax, eax
inc eax
add esp, 0x94
ret
Function at 0x40c860
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x431103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
push ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1ec], ebx
call fcn.00428e50
mov eax, dword [esp + 0x1f4]
push ebx
push 0x40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1f8], 1
call fcn.00428f62
test eax, eax
je 0x40c924
push ebx
push 0x43b32c
push str.NETIDX
mov ecx, 0x441320
call fcn.00416270
mov esi, eax
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
lea edi, [esi + ecx*2]
lea ecx, [esp + 0xc]
call fcn.0042925c
cmp eax, edi
lea ecx, [esp + 0xc]
jae 0x40c912
call fcn.0042917d
mov edx, dword [esp + 0x1f4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x43b32c
push str.NETIDX
mov ecx, 0x441320
call fcn.004161a0
jmp 0x40c924
call fcn.0042925c
cmp eax, edi
jne 0x40c955
lea ecx, [esp + 0xc]
call fcn.0042917d
lea ecx, [esp + 0xc]
mov byte [esp + 0x1ec], bl
call fcn.00428ea5
lea ecx, [esp + 0x1f4]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.004288f2
mov eax, 1
jmp 0x40c9fd
push ebp
cmp esi, ebx
mov ebp, 1
jle 0x40c96a
push ebx
push edi
lea ecx, [esp + 0x18]
call fcn.00429104
lea eax, [esp + 0x24]
push 0x1c3
push eax
lea ecx, [esp + 0x18]
call fcn.0042907f
cmp eax, 0x1c3
jne 0x40c9ca
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0040cc10
cmp eax, ebx
je 0x40c9c8
inc esi
mov ecx, 0x441320
push esi
push 0x43b32c
push str.NETIDX
call fcn.004161a0
lea edx, [esp + 0x24]
push 0x1c3
push edx
lea ecx, [esp + 0x18]
call fcn.0042907f
cmp eax, 0x1c3
je 0x40c984
jmp 0x40c9ca
xor ebp, ebp
lea ecx, [esp + 0x10]
call fcn.0042917d
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f0], bl
call fcn.00428ea5
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.004288f2
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1e4
ret 4
Function at 0x40ca20
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x431147
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x40]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], 0
mov edi, str.CapLogNetFiles.dat
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str._Y_m_d
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
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.00427d26
mov ecx, eax
call fcn.00427d68
mov edx, dword [0x43db14]
mov dword [esp + 0x14c], 0
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call fcn.0041ab80
lea eax, [esp + 0x40]
mov bl, 2
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], bl
call fcn.0041ac43
test eax, eax
je 0x40cbb3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call fcn.0041ae63
lea ecx, [esp + 0x18]
mov esi, eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0041afca
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 3
call fcn.004289df
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call fcn.004288f2
lea edx, [esp + 0x14]
push 8
push edx
lea ecx, [esp + 0x14]
call fcn.00427771
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 4
call fcn.004289df
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], bl
call fcn.004288f2
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], 8
jne 0x40cbab
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.0041bda7
add esp, 8
test eax, eax
jge 0x40cbab
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call fcn.0041af32
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x1c]
call fcn.004288f2
test esi, esi
jne 0x40cb06
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call fcn.0041abbd
lea ecx, [esp + 0xc]
mov byte [esp + 0x14c], 0
call fcn.004288f2
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call fcn.004288f2
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret
Function at 0x40ef00
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 0x40ef67
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 0x40ef26
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 0x4123e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x431983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d4
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1e8], ebx
call fcn.00428e50
mov eax, dword [esp + 0x1f0]
push ebx
push 0x40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1f4], 1
call fcn.00428f62
test eax, eax
je 0x4124a0
push ebx
push 0x43b32c
push str.NETIDX
mov ecx, 0x441320
call fcn.00416270
mov esi, eax
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
lea edi, [esi + ecx*2]
lea ecx, [esp + 0xc]
call fcn.0042925c
cmp eax, edi
lea ecx, [esp + 0xc]
jae 0x41248e
call fcn.0042917d
mov edx, dword [esp + 0x1f0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x43b32c
push str.NETIDX
mov ecx, 0x441320
call fcn.004161a0
jmp 0x4124a0
call fcn.0042925c
cmp eax, edi
jne 0x4124d1
lea ecx, [esp + 0xc]
call fcn.0042917d
lea ecx, [esp + 0xc]
mov byte [esp + 0x1e8], bl
call fcn.00428ea5
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x1e8], 0xffffffff
call fcn.004288f2
mov eax, 1
jmp 0x412578
push ebp
cmp esi, ebx
mov ebp, 1
jle 0x4124e6
push ebx
push edi
lea ecx, [esp + 0x18]
call fcn.00429104
lea eax, [esp + 0x20]
push 0x1c3
push eax
lea ecx, [esp + 0x18]
call fcn.0042907f
cmp eax, 0x1c3
jne 0x412545
lea ecx, [esp + 0x20]
push ecx
call fcn.00411570
add esp, 4
cmp eax, ebx
je 0x412543
inc esi
mov ecx, 0x441320
push esi
push 0x43b32c
push str.NETIDX
call fcn.004161a0
lea edx, [esp + 0x20]
push 0x1c3
push edx
lea ecx, [esp + 0x18]
call fcn.0042907f
cmp eax, 0x1c3
je 0x412500
jmp 0x412545
xor ebp, ebp
lea ecx, [esp + 0x10]
call fcn.0042917d
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ec], bl
call fcn.00428ea5
lea ecx, [esp + 0x1f4]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.004288f2
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1e0
ret