joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b85
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov eax, 0x405f74
call fcn.00405830
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
call sub.MFC42.DLL_CString::CString
push 0x6f
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::LoadStringA
push dword [ebp - 0x14]
mov ecx, esi
push 0x3eb
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push edi
push edi
push edi
push edi
push str.360_get_kav
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x3f8], eax
je 0x402ce5
lea ecx, [ebp - 0x20]
push 4
push ecx
push 2
push eax
mov dword [ebp - 0x20], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push edi
push edi
push 3
push edi
push edi
push 0x50
push str.kabadl.360safe.com
push dword [esi + 0x3f8]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 0x3fc], eax
jne 0x402c31
push dword [esi + 0x3f8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402ce5
push edi
push 0x80000800
push 0x40a328
push edi
push str.HTTP_1.1
push str.kav6.sch.msi
push 0x40a368
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x400], eax
jne 0x402c75
push dword [esi + 0x3f8]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [esi + 0x3fc]
call ebx
jmp 0x402ce5
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x402c8e
mov ecx, esi
call fcn.00402dce
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [esi + 0x400]
call fcn.00402b73
test eax, eax
je 0x402ce5
cmp dword [ebp - 0x24], 0xc8
je 0x402ce5
mov ecx, esi
call fcn.00402dce
mov dword [ebp - 0x18], edi
jmp 0x402ce5
cmp dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
jne 0x402d06
push 0x70
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
push dword [ebp - 0x14]
mov ecx, esi
push 0x3eb
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405606
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x402d24
Capabilities:
Get file size

Disassembly:
mov eax, 0x405f88
call fcn.00405830
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
or dword [ebp - 0x18], 0xffffffff
push ebx
mov esi, ecx
push 0x80
push 4
mov eax, dword [esi + 0x3f4]
push ebx
push ebx
push 0x40000000
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x408], eax
jne 0x402da1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 0x71
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::LoadStringA
push dword [ebp - 0x14]
mov ecx, esi
push 0x3eb
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00405606
jmp 0x402dbc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
push ebx
mov dword [ebp - 0x18], eax
push dword [esi + 0x408]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x403915
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407cb0
push 0x405862
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x834
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1c]
push eax
push 0x40816c
push 0x15
push esi
push 0x40815c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403a79
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x403a63
mov dword [ebp - 0x830], esi
mov ecx, dword [eax]
lea edx, [ebp - 0x830]
push edx
push eax
call dword [ecx + 0x94]
cmp dword [ebp - 0x830], esi
je 0x4039af
push dword [ebp - 0x830]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
push dword [ebp - 0x830]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
test eax, eax
jbe 0x403a5a
push 0x800
push esi
lea eax, [ebp - 0x81c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x7ff
lea eax, [ebp - 0x81c]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebp - 0x82c], si
mov word [ebp - 0x840], 8
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x840]
push edx
push eax
call dword [ecx + 0xd0]
mov dword [ebp - 0x844], eax
push dword [ebp - 0x838]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
push 1
pop eax
jmp 0x403a85
call dword [sym.imp.ole32.dll_CoUninitialize]
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40623f
call fcn.00405830
sub esp, 0x430
mov dl, byte [0x40a4f0]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x223]
mov byte [ebp - 0x224], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x14], 0
push 1
stosb byte es:[edi], al
pop ebx
mov edi, str.SOFTWAREKasperskyLabInstalledProducts
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push edi
push esi
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x104
call fcn.00403b6c
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
push eax
lea ecx, [ebp - 0x43c]
call fcn.00403be5
test eax, eax
je 0x4054c4
and byte [ebp - 0x120], 0
lea eax, [ebp - 0x438]
push eax
push edi
push str._s_s
lea eax, [ebp - 0x224]
push 0x103
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push str.Folder
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4054b9
lea eax, [ebp - 0x120]
push str.kav.exe
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x120]
push eax
call fcn.00405356
add esp, 0xc
test al, al
je 0x4054b9
mov dword [ebp - 0x14], ebx
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
jmp 0x405426
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.00403bcd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x68009dda
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test byte [esi], 0x20
push edi
je 0x68009ded
inc eax
cmp dword [ebp + 0xc], 2
jne 0x68009e06
mov ebx, 0x68001284
mov edi, 0x6800127c
mov dword [ebp + 8], 0x68001274
jmp 0x68009e1d
cmp dword [ebp + 0xc], 1
jne 0x68009e5c
mov ebx, 0x6800126c
mov edi, 0x68001264
mov dword [ebp + 8], 0x6800125c
cmp dword [esi + 0x158], 0
je 0x68009e3b
push 0
push eax
push dword [ebp + 0xc]
push 0x68031ab0
push esi
call fcn.68014a02
test eax, eax
jne 0x68009e61
push edi
mov edi, dword [sym.imp._CADVAPI.DLL_RegDeleteValueA]
add esi, 0x140
push dword [esi]
call edi
push dword [ebp + 8]
push dword [esi]
call edi
push ebx
push dword [esi]
call edi
xor eax, eax
jmp 0x68009e61
mov eax, 0x80090005
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x6800d640
Capabilities:
Encode data using xor
Generate random numbers via rtlgenrandom

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x68031884]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], eax
je 0x6800d679
push 5
pop ecx
mov edi, 0x68031958
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x6800d723
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
jne 0x6800d6d8
push 0x14
pop edi
cmp dword [ebp - 0x44], edi
jae 0x6800d693
mov edi, dword [ebp - 0x44]
push 0x14
lea eax, [ebp - 0x18]
push eax
call sub._CADVAPI.DLL_SystemFunction036
test al, al
je 0x6800d6d1
xor ecx, ecx
test edi, edi
jbe 0x6800d6be
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
sub esi, eax
lea eax, [ebp + ecx - 0x18]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, edi
jb 0x6800d6b0
lea eax, [ebp - 0x18]
push eax
call fcn.6800d544
inc ebx
test eax, eax
jne 0x6800d6e7
cmp ebx, 5
jbe 0x6800d693
mov eax, 0x80090020
jmp 0x6800d737
mov esi, dword [ebp - 0x4c]
cmp esi, ebx
je 0x6800d6d1
push 5
pop ecx
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
push 0x14
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x68031958
call fcn.68027101
push 0x28
pop esi
cmp dword [ebp - 0x44], esi
ja 0x6800d706
mov esi, dword [ebp - 0x44]
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
call fcn.6800d5cd
test eax, eax
je 0x6800d6d1
add dword [ebp - 0x48], esi
sub dword [ebp - 0x44], esi
jne 0x6800d681
xor eax, eax
cmp dword [ebp + 0x20], eax
je 0x6800d737
mov edi, dword [ebp - 0x50]
push 5
pop ecx
mov esi, 0x68031958
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.68014cb9
leave
ret 0x1c

Function at 0x6800de68
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 0x14]
cmp byte [edx], 0xcc
mov eax, dword [0x68031884]
mov dword [ebp - 4], eax
push esi
jne 0x6800dee8
cmp byte [edx + 1], 0x33
jne 0x6800dee8
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + edx + 2], 0xba
jne 0x6800dee8
xor esi, esi
test ecx, ecx
jbe 0x6800deac
mov eax, dword [ebp + 8]
lea eax, [eax + ecx - 1]
push ebx
mov bl, byte [eax]
mov byte [ebp + esi - 0x28], bl
inc esi
dec eax
cmp esi, ecx
jb 0x6800de9f
pop ebx
push edi
lea edi, [edx + 2]
lea esi, [ebp - 0x28]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
je 0x6800debf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6800dee8
mov eax, dword [ebp + 0x18]
push 0x17
pop esi
lea ecx, [eax - 0x18]
cmp ecx, esi
jbe 0x6800dedb
cmp byte [esi + edx], 0xbb
jne 0x6800dee8
inc esi
cmp esi, ecx
jb 0x6800ded0
cmp dword [ebp + 0x10], 0
je 0x6800defa
cmp byte [edx + eax - 1], 0x6b
je 0x6800df01
mov eax, 0x80090006
mov ecx, dword [ebp - 4]
pop esi
call fcn.68014cb9
leave
ret 0x14
cmp byte [edx + eax - 1], 0x4b
jne 0x6800dee8
xor eax, eax
jmp 0x6800deed
Function at 0x6800f552
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x160]
push eax
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0x14]
xor ebx, ebx
push dword [edi + 4]
mov dword [ebp - 0xc], ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.6800e24e
cmp eax, ebx
je 0x6800f5a1
cmp eax, 2
jne 0x6800f6c6
mov esi, 0x80090016
jmp 0x6800f6cd
push esi
call dword [sym.imp._CKERNEL.DLL_lstrlenA]
inc eax
push eax
call fcn.68021ec0
mov edx, eax
cmp edx, ebx
mov dword [ebp - 0xc], edx
je 0x6800f6ca
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x6800f5c0
push dword [ebp - 0xc]
mov esi, dword [sym.imp._Cmvrt.DLL__strlwr]
call esi
pop ecx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp._CADVAPI.DLL_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x6800f6c6
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
call fcn.68021ec0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
call fcn.68021ec0
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
je 0x6800f6ca
cmp eax, ebx
je 0x6800f6ca
cmp dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
jbe 0x6800f695
mov eax, dword [ebp + 0x10]
add eax, 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp._CADVAPI.DLL_RegEnumKeyExA]
cmp eax, ebx
jne 0x6800f6c6
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp._CKERNEL.DLL_lstrcpyA]
push dword [ebp - 4]
call esi
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp._CKERNEL.DLL_lstrcmpA]
test eax, eax
je 0x6800f699
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x6800f641
xor esi, esi
jmp 0x6800f6cd
lea esi, [edi + 0x148]
push dword [esi]
call fcn.68021f03
push ebx
push dword [ebp + 0x14]
mov dword [esi], ebx
push dword [ebp - 0x10]
push edi
call fcn.6800ec32
cmp eax, ebx
jne 0x6800f6c6
push edi
push dword [ebp + 8]
call fcn.6800f28f
cmp eax, ebx
je 0x6800f695
mov esi, eax
jmp 0x6800f6cd
push 8
pop esi
cmp dword [ebp - 8], ebx
je 0x6800f6db
push dword [ebp - 8]
call dword [sym.imp._CADVAPI.DLL_RegCloseKey]
cmp dword [ebp - 0xc], ebx
je 0x6800f6e8
push dword [ebp - 0xc]
call fcn.68021f03
cmp dword [ebp - 4], ebx
je 0x6800f6f5
push dword [ebp - 4]
call fcn.68021f03
cmp dword [ebp - 0x10], ebx
je 0x6800f702
push dword [ebp - 0x10]
call fcn.68021f03
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x6801018e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x68031884]
and dword [ebp - 0x30], 0
push esi
mov esi, dword [ebp + 0xc]
push 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [eax + 0x38]
push ecx
lea ecx, [eax + 0x58]
push ecx
add eax, 0x164
push eax
call fcn.6800d74b
test eax, eax
je 0x680101ca
mov esi, eax
jmp 0x6801023b
push edi
mov edi, dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x30]
push eax
push edi
push 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.68010084
test eax, eax
jne 0x68010213
test edi, edi
jbe 0x680101f7
mov ecx, dword [ebp - 0x30]
mov cl, byte [eax + ecx]
xor byte [esi + eax + 0x15], cl
inc eax
cmp eax, edi
jb 0x680101e8
lea eax, [ebp - 0x2c]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0x14
push edi
lea eax, [esi + 0x15]
push eax
call fcn.68010084
test eax, eax
je 0x68010217
mov esi, eax
jmp 0x6801022c
xor eax, eax
mov cl, byte [ebp + eax - 0x2c]
xor cl, byte [ebp + eax - 0x18]
inc eax
cmp eax, 0x14
mov byte [esi + eax], cl
jb 0x68010219
xor esi, esi
cmp dword [ebp - 0x30], 0
pop edi
je 0x6801023b
push dword [ebp - 0x30]
call fcn.68021f03
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.68014cb9
leave
ret 0xc

Function at 0x6801024f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x68031884]
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
cmp byte [esi], 0
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x6801027e
mov edi, 0x80090005
jmp 0x680102ef
mov edi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x18]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x14
add edi, 0xffffffeb
push edi
lea ebx, [esi + 0x15]
push ebx
call fcn.68010084
test eax, eax
je 0x680102a5
mov edi, eax
jmp 0x680102ee
xor eax, eax
lea ecx, [esi + 1]
mov dl, byte [ebp + eax - 0x18]
xor byte [ecx + eax], dl
inc eax
cmp eax, 0x14
jb 0x680102aa
push 1
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x14
push ecx
call fcn.68010084
test eax, eax
mov esi, dword [ebp - 0x1c]
je 0x680102d1
mov edi, eax
jmp 0x680102e4
xor eax, eax
test edi, edi
jbe 0x680102e2
mov cl, byte [eax + esi]
xor byte [ebx + eax], cl
inc eax
cmp eax, edi
jb 0x680102d7
xor edi, edi
test esi, esi
je 0x680102ee
push esi
call fcn.68021f03
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.68014cb9
leave
ret 8
Function at 0x68012288
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x68031884]
and dword [ebp - 0x158], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x40
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x1c]
push esi
push edi
mov dword [ebp - 0x154], eax
jbe 0x680122c5
push 0x40
pop ebx
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov esi, edx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov esi, edx
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
xor dword [ebp + eax - 0x44], 0x36363636
xor dword [ebp + eax - 0x84], 0x5c5c5c5c
add eax, 4
cmp eax, 0x40
jb 0x6801230b
cmp dword [ebp + 0x18], 0x8004
jne 0x680123ad
lea eax, [ebp - 0x14c]
push eax
call sub._CADVAPI.DLL_A_SHAInit
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14c]
push eax
call sub._CADVAPI.DLL_A_SHAUpdate
push dword [ebp + 0x14]
lea eax, [ebp - 0x14c]
push dword [ebp - 0x150]
push eax
call sub._CADVAPI.DLL_A_SHAUpdate
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
push eax
call sub._CADVAPI.DLL_A_SHAFinal
push 0x10
pop ecx
push 5
lea esi, [ebp - 0x84]
lea edi, [ebp - 0xd8]
rep movsd dword es:[edi], dword [esi]
pop ecx
push dword [ebp - 0x154]
lea eax, [ebp - 0xd8]
push 0x54
lea esi, [ebp - 0x148]
lea edi, [ebp - 0x98]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.680121e6
jmp 0x68012421
lea eax, [ebp - 0x144]
push eax
call sub._CADVAPI.DLL_MD5Init
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x144]
push eax
call sub._CADVAPI.DLL_MD5Update
push dword [ebp + 0x14]
lea eax, [ebp - 0x144]
push dword [ebp - 0x150]
push eax
call sub._CADVAPI.DLL_MD5Update
lea eax, [ebp - 0x144]
push eax
call sub._CADVAPI.DLL_MD5Final
push 0x10
pop ecx
push dword [ebp - 0x154]
lea esi, [ebp - 0x84]
lea edi, [ebp - 0xd8]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0xec]
lea edi, [ebp - 0x98]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x50
lea eax, [ebp - 0xd8]
push eax
movsd dword es:[edi], dword [esi]
call fcn.68012234
test eax, eax
je 0x6801242f
mov dword [ebp - 0x158], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x158]
pop edi
pop esi
pop ebx
call fcn.68014cb9
leave
ret 0x18
Function at 0x6801256b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, eax
shr eax, 1
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
add eax, esi
push edi
push eax
and ebx, 1
mov dword [ebp - 8], eax
call fcn.68021ec0
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jne 0x680125a5
push 8
pop esi
jmp 0x68012660
push dword [ebp + 0x24]
call fcn.68021ec0
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x680125bc
push 8
pop esi
jmp 0x6801264a
mov edx, dword [ebp + 0x14]
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x24]
mov ecx, eax
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x8003
push dword [ebp - 8]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
push eax
add ebx, esi
push ebx
push edi
call fcn.68012449
test eax, eax
jne 0x6801262c
push dword [ebp + 0x24]
add esi, edi
push dword [ebp + 0xc]
push 0x8004
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push esi
call fcn.68012449
test eax, eax
je 0x68012630
mov esi, eax
jmp 0x6801264a
mov esi, dword [ebp + 0x24]
test esi, esi
jbe 0x68012648
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x6801263f
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x68012658
push dword [ebp + 0xc]
call fcn.68021f03
push dword [ebp - 4]
call fcn.68021f03
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
Function at 0x68015530
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x68031884]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x1c], 1
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push edi
jne 0x680155bc
test ebx, ebx
jbe 0x68015608
mov ecx, dword [ebp + 0x14]
sub ecx, eax
mov edi, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
mov edx, dword [ebp - 0x34]
push 1
push edx
push esi
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + edi]
xor dl, byte [ebp - 0x24]
lea eax, [ebx - 1]
push eax
lea eax, [esi + 1]
push eax
push esi
mov byte [edi], dl
call dword [sym.imp._CKERNEL.DLL_RtlMoveMemory]
mov al, byte [edi]
mov byte [esi + ebx - 1], al
mov eax, dword [ebp - 0x28]
inc edi
dec eax
mov dword [ebp - 0x28], eax
jne 0x68015573
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.68014cb9
mov esp, ebp
pop ebp
ret 0x1c
test ebx, ebx
jbe 0x68015608
mov edi, dword [ebp + 0x14]
sub eax, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
jmp 0x680155d0
mov ecx, dword [ebp - 0x34]
push 1
push ecx
push esi
lea edx, [ebp - 0x24]
push edx
call dword [ebp - 0x30]
mov al, byte [edi]
xor al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + edi], al
lea eax, [ebx - 1]
push eax
lea eax, [esi + 1]
push eax
push esi
call dword [sym.imp._CKERNEL.DLL_RtlMoveMemory]
mov dl, byte [edi]
mov eax, dword [ebp - 0x28]
inc edi
dec eax
mov byte [esi + ebx - 1], dl
mov dword [ebp - 0x28], eax
jne 0x680155d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.68014cb9
mov esp, ebp
pop ebp
ret 0x1c