joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4924d7
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x492517
test byte [ebp - 4], 0x41
je 0x492517
push edi
push dword [ebx + 0x78]
call dword [sym.imp.WININET.dll_InternetAutodial]
test eax, eax
jne 0x492517
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
xor al, al
jmp 0x4925fd
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x492544
push eax
cmp dword [ebx + 0x40], edi
je 0x492533
push str.Range:_bytes_d__r_n
jmp 0x492538
push str.Range:_bytes_d_
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebx + 0x40], edi
je 0x492555
push dword [ebx + 0x40]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
cmp dword [ebx + 4], edi
jne 0x4925ba
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push dword [ebx + 0x50]
jmp 0x492589
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4925ae
mov eax, dword [ebx + 0x50]
test eax, 0x100
je 0x4925ae
and eax, 0xfffffeff
push ebx
mov dword [ebx + 0x50], eax
push eax
push dword [ebx + 0x44]
mov esi, dword [ebx + 0x30]
mov edi, dword [ebx]
call fcn.00453664
pop ecx
push eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x3c]
push esi
call dword [edi + 0x2c]
test eax, eax
je 0x49256a
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x4925eb
mov eax, dword [ebx]
lea ecx, [ebx + 0xc]
push 0
push ecx
mov ecx, ebx
jmp 0x4925f2
cmp byte [ebp + 8], 0
je 0x4925fa
lea esi, [ebx + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push dword [ebx + 0x44]
call fcn.00453664
pop ecx
push eax
push dword [ebx + 0x44]
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
je 0x4925f0
call dword [eax + 0x28]
jmp 0x4925fc
push edi
push esi
push dword [ebx + 0x28]
call dword [eax + 8]
jmp 0x4925fc
mov al, 1
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x4927a9
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
inc eax
and dword [esi + 0x24], 0
and dword [ebx], 0
cmp dword [ebp + 0xc], 0
push edi
jbe 0x492969
cmp dword [esi + 0x5c], 0x2710
jbe 0x4927e8
cmp dword [esi + 0x54], 0
je 0x4927e8
mov ecx, esi
call fcn.00492b45
mov edi, eax
imul edi, edi, 0xf
jmp 0x4927ed
mov edi, 0x5dc
push 1
test edi, edi
pop eax
cmove edi, eax
cmp byte [esi + 0x90], 0
je 0x49280a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x492817
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx]
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebx]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x492860
mov eax, dword [esi]
push 0
lea ecx, [esi + 0xc]
push ecx
push dword [esi + 0x28]
mov ecx, esi
call dword [eax + 8]
test al, al
je 0x492970
cmp byte [esi + 0x90], 0
je 0x49287b
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x49288b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x492966
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
add dword [esi + 0x4c], eax
add dword [esi + 0x54], eax
add dword [esi + 0x60], eax
sub edi, dword [ebp - 0x20]
sbb ebx, dword [ebp - 0x1c]
mov eax, edi
or eax, ebx
jne 0x4928b5
push 5
pop edi
xor ebx, ebx
push 0
push 0x3e8
push ebx
push edi
call fcn.00456ab0
mov ecx, dword [esi + 0x8c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x492908
mov edx, dword [ebp - 8]
jg 0x4928e2
cmp edx, eax
jb 0x492908
push ecx
push eax
push dword [ebp - 0xc]
push edx
call fcn.00476de0
add dword [esi + 0x5c], eax
add dword [esi + 0x68], eax
push 0
push 0x3e8
push ebx
push ecx
mov dword [ebp - 0xc], edx
call fcn.00456350
mov edi, eax
mov ebx, edx
push 0
push 0xf4240
push ebx
push edi
call fcn.00456ab0
push dword [esi + 0x8c]
push dword [esi + 0x88]
push edx
push eax
call fcn.00456350
add dword [esi + 0x58], eax
add dword [esi + 0x64], eax
mov ecx, 0x3e8
cmp dword [esi + 0x58], ecx
jbe 0x492946
mov eax, dword [esi + 0x58]
xor edx, edx
div ecx
add dword [esi + 0x5c], eax
mov dword [esi + 0x58], edx
cmp dword [esi + 0x64], ecx
jbe 0x492958
mov eax, dword [esi + 0x64]
xor edx, edx
div ecx
add dword [esi + 0x68], eax
mov dword [esi + 0x64], edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
jb 0x4927cb
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor al, al
jmp 0x492969
Function at 0x4929d4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.00492116
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x492a9d
inc dword [esi + 8]
mov eax, dword [esi + 8]
push ebx
xor ecx, ecx
push 2
pop ebx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452087
inc dword [esi + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452087
inc dword [esi + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452087
inc dword [esi + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452087
inc dword [esi + 0x30]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x30]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452087
inc dword [esi + 0x38]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x38]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452087
add esp, 0x18
mov dword [esi + 0x34], eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x492ae0
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 4
call fcn.00492497
movzx edi, al
test al, al
je 0x492b17
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x492b29
or dword [ebp - 4], 0xffffffff
jmp 0x492b2f
mov eax, dword [esi + 0x48]
add dword [ebp - 4], eax
mov ecx, esi
call fcn.00491d23
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x492b45
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
sub eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, 0x7530
jbe 0x492b82
mov eax, dword [esi + 0x60]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], edi
call ebx
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x492b8e
mov eax, dword [esi + 0x54]
jmp 0x492bda
push 0xa
pop ebx
mov dword [ebp - 4], edi
test edi, edi
jne 0x492bd8
or eax, 0xffffffff
xor edx, edx
div ebx
mov edi, dword [esi + 0x54]
cmp edi, eax
jbe 0x492bb0
shr edi, 1
shr ecx, 1
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], ecx
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x5c]
imul eax, ebx
xor edx, edx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div ebx
imul ebx, ebx, 0xa
mov edi, eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x492b94
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x493ce1
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.004940ef
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x28
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x28
lea eax, [ebp - 0x54]
push eax
lea esi, [ebx + 0x1c]
push esi
call fcn.00454a0b
add esp, 0xc
push 8
push 1
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebx + 0x10]
push eax
push 0
push 0
push dword [ebx + 0x80]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004526a3
leave
ret 4

Function at 0x494446
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, ecx
test ebx, ebx
je 0x494468
push 1
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebx], eax
xor eax, eax
lea esi, [edi + 0x70]
push esi
push eax
push eax
push eax
push 2
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
jne 0x49448e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x74], eax
xor al, al
jmp 0x49452d
push dword [esi]
call fcn.004545d7
mov esi, eax
pop ecx
cmp esi, dword [edi + 0x6c]
je 0x4944a6
push dword [edi + 0x6c]
call fcn.0045269e
pop ecx
push 0
mov dword [edi + 0x6c], esi
call fcn.0045269e
pop ecx
lea esi, [edi + 0x70]
push esi
push dword [edi + 0x6c]
push 0
push 0
push 2
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
je 0x49447e
push 0
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [edi + 0x70]
push eax
push dword [eax]
push dword [edi + 0x6c]
push dword [ebp + 8]
call esi
test byte [ebp + 0x10], 1
jne 0x494514
push 0
push dword [ebp + 8]
push 1
push 1
push 0x10001
push dword [edi + 0xc]
call dword [sym.imp.CRYPT32.dll_CertSaveStore]
test eax, eax
je 0x49447e
test ebx, ebx
je 0x49452b
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [ebx]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x494ebe
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x494ef0
xor eax, eax
jmp 0x494fa2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00452087
pop ecx
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x494ee9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x2c]
call fcn.00495aa8
lea esi, [edi + 0x20]
mov ecx, esi
push dword [esi + 4]
push dword [esi]
call fcn.00480107
mov eax, dword [esi]
push 0
push 0x4c8ab0
mov ecx, edi
mov dword [esi + 4], eax
call fcn.00404c70
mov esi, dword [ebp - 4]
mov ecx, edi
mov byte [esi + ebx], 0
mov dword [edi + 0x38], esi
call fcn.00494d00
push eax
push 0
mov ecx, edi
call fcn.00494fa9
test eax, eax
je 0x494ee9
mov ecx, edi
call fcn.00494d00
push eax
push 9
mov ecx, edi
call fcn.00494fa9
test eax, eax
je 0x494ee9
push edi
mov ecx, edi
call fcn.004954ef
test eax, eax
je 0x494ee9
push esi
call fcn.0045367d
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4962f4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x496c9a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x496cbd
xor al, al
jmp 0x496d57
push eax
call fcn.00452087
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x496cb6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4b4e80
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x496cb6
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xd
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x496d55
mov eax, dword [ebp - 4]
shr eax, 2
xor ecx, ecx
push 4
pop edx
mov dword [ebx + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452087
xor edx, edx
pop ecx
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0x3c], edx
jbe 0x496d55
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x3c]
jb 0x496d43
mov al, 1
pop ebx
leave
ret 4
Function at 0x499200
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0598
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e98d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
or esi, 0xffffffff
mov dword [ebp - 4], 0
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x4992b9
push edi
push edi
push edi
push 2
push edi
mov esi, ebx
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x4992b9
push 0
push 0
push 0
push 4
mov edi, eax
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x4992b9
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.00498fa0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp + 0xb], 1
test eax, eax
je 0x4992bd
push ebx
call eax
jmp 0x4992bd
mov byte [ebp + 0xb], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4992ce
test ebx, ebx
je 0x4992ce
push edi
call ebx
cmp esi, 0xffffffff
je 0x4992da
test ebx, ebx
je 0x4992da
push esi
call ebx
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5467e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x546805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x546878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x54683a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x54686d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x54686b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x546831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x5467fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x490420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x469015
lea edi, [esi - 0x68015]
push edi
jmp 0x49043a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x490441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x490430
mov eax, 1
add ebx, ebx
jne 0x490453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x490464
jne 0x490483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x490483
dec eax
add ebx, ebx
jne 0x490470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x490448
add ebx, ebx
jne 0x49047f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4904d5
xor ecx, ecx
sub eax, 3
jb 0x49049b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49050a
sar eax, 1
mov ebp, eax
jmp 0x4904a6
add ebx, ebx
jne 0x4904a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x490474
inc ecx
add ebx, ebx
jne 0x4904b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x490474
add ebx, ebx
jne 0x4904c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4904b6
jne 0x4904d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4904b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4904f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4904e6
jmp 0x490436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4904f4
add edi, ecx
jmp 0x490436
pop esi
mov edi, esi
mov ecx, 0x2575
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x490512
cmp byte [edi], 9
jne 0x490512
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x490517
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x49058f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x929dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x92ab0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x490544
mov ecx, edi
jns 0x490573
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x92ab8]
or eax, eax
je 0x490589
mov dword [ebx], eax
add ebx, 4
jmp 0x490561
call dword [esi + 0x92ab4]
mov ebp, dword [esi + 0x92abc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4905c3
sub esp, 0xffffff80
jmp 0x44cd40
Function at 0x401510
Capabilities:
Create process on windows
Delete file
Get common file path
Get startup folder
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ee0
call fcn.00404eb0
push esi
push edi
mov ecx, 0xb
mov esi, str.CMD__C_DEL__F__S__Q__
lea edi, [ebp - 0x1f40]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3dd
xor eax, eax
lea edi, [ebp - 0x1f14]
rep stosd dword es:[edi], eax
mov word [ebp - 0xfa0], 0
mov ecx, 0x3e7
xor eax, eax
lea edi, [ebp - 0xf9e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x2ee0], 0
mov ecx, 0x3e7
xor eax, eax
lea edi, [ebp - 0x2ede]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 7
lea eax, [ebp - 0xfa0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xfa0]
push ecx
lea edx, [ebp - 0x1f40]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0x409668
lea eax, [ebp - 0x1f40]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x1f40]
push ecx
push 0x409678
push 0x409680
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0x1c
lea edx, [ebp - 0x2ee0]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.CSIDL_
lea eax, [ebp - 0x2ee0]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0x80
lea ecx, [ebp - 0x2ee0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x2ee0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x40969c
lea eax, [ebp - 0x2ee0]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0x80
lea ecx, [ebp - 0x2ee0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x2ee0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401651
Capabilities:
Create process on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f40
call fcn.00404eb0
push esi
push edi
mov ecx, 0xb
mov esi, 0x4096a0
lea edi, [ebp - 0x1f40]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3dd
xor eax, eax
lea edi, [ebp - 0x1f14]
rep stosd dword es:[edi], eax
mov word [ebp - 0xfa0], 0
mov ecx, 0x3e7
xor eax, eax
lea edi, [ebp - 0xf9e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x18
lea eax, [ebp - 0xfa0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xfa0]
push ecx
lea edx, [ebp - 0x1f40]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push str..__
lea eax, [ebp - 0x1f40]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x1f40]
push ecx
push 0x4096dc
push 0x4096e4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016fd
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push edi
mov dword [ebp - 8], 0x80000002
mov dword [ebp - 0x424], str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov dword [ebp - 0x214], 2
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp - 0x424]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40175c
jmp 0x401827
mov word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x41c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.cmd__c__
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push str.____zxcv
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push str.SearchFilterHost
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret