joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40879a
xor al, al
jmp 0x4087f3
mov dword [ebp - 0x10], 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.Count
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4087d3
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4087f3
cmp dword [ebp - 4], 0
jne 0x4087e7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4087f3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x408800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.004012d0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov ecx, 5
mov word [ebp - 0x30], cx
mov dword [ebp - 0x34], 1
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0x104
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004012d0
add esp, 0xc
mov dword [ebp - 0x118], str.SoftwareMicrosoftWindowsCurrentVersionUninstallCWClient_is1_
lea ecx, [ebp - 0x114]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x118]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x4088dd
xor eax, eax
jmp 0x408946
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push str.InstallLocation
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x408921
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x408946
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401378
add esp, 8
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011c6
mov esp, ebp
pop ebp
ret
Function at 0x408a80
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x40d12c]
xor eax, ebp
mov dword [ebp - 0x30], eax
push 0x24
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004012d0
add esp, 0xc
push 0x11c
push 0
lea ecx, [ebp - 0x150]
push ecx
call fcn.004012d0
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408afb
mov dword [ebp - 0x150], 0x114
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x408afb
xor eax, eax
jmp 0x408bb2
push str.GetNativeSystemInfo
push 0x40bde8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408b24
lea ecx, [ebp - 0x2c]
push ecx
call dword [ebp - 8]
jmp 0x408b2e
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 2
je 0x408b45
jmp 0x408bad
cmp dword [ebp - 0x14c], 6
jne 0x408b5e
cmp dword [ebp - 0x148], 0
jne 0x408b5e
mov eax, 1
jmp 0x408bb2
cmp dword [ebp - 0x14c], 5
jne 0x408b74
cmp dword [ebp - 0x148], 2
jne 0x408b74
xor eax, eax
jmp 0x408bb2
cmp dword [ebp - 0x14c], 5
jne 0x408b8a
cmp dword [ebp - 0x148], 1
jne 0x408b8a
xor eax, eax
jmp 0x408bb2
cmp dword [ebp - 0x14c], 5
jne 0x408ba0
cmp dword [ebp - 0x148], 0
jne 0x408ba0
xor eax, eax
jmp 0x408bb2
cmp dword [ebp - 0x14c], 4
ja 0x408bad
xor eax, eax
jmp 0x408bb2
mov eax, 1
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.004011c6
mov esp, ebp
pop ebp
ret
Function at 0x408bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x64
mov eax, dword [0x40ebc4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push str.SYSTEMCurrentControlSetServiceszgdccdiagEnum
call fcn.00408770
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x408c46
push str.CMUpdater.exe
call fcn.004086e0
add esp, 4
movzx edx, al
test edx, edx
jne 0x408c46
call fcn.00408a80
test eax, eax
jne 0x408c2e
push 0
push 0
push 0
push 0x40ebc8
push 0x40bfac
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x408c3b
push 0x40ebc8
call fcn.00408800
add esp, 4
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SYSTEMCurrentControlSetServiceszgdccvousbEnum
call fcn.00408770
add esp, 4
movzx eax, al
test eax, eax
jne 0x408c75
push 0
push 0x7d0
push 0x64
mov ecx, dword [0x40ebc4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x408d65
xor edx, edx
je 0x408d4f
xor eax, eax
mov word [ebp - 0x208], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x206]
push ecx
call fcn.004012d0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x208]
push edx
call fcn.00408870
add esp, 8
mov ecx, 7
mov esi, str.CWClient.exe
lea edi, [ebp - 0x408]
rep movsd dword es:[edi], dword [esi]
push 0x1e4
push 0
lea eax, [ebp - 0x3ec]
push eax
call fcn.004012d0
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.0040134a
add esp, 8
lea eax, [ebp - 0x408]
push eax
call fcn.004086e0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x408d4a
call fcn.00408a80
test eax, eax
jne 0x408d29
push 0
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x408d38
lea eax, [ebp - 0x208]
push eax
call fcn.00408800
add esp, 4
call fcn.00409220
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408d4f
call fcn.00409220
push 0
push 0x7d0
push 0x64
mov ecx, dword [0x40ebc4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011c6
mov esp, ebp
pop ebp
ret
Function at 0x409110
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x40bcb0
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409166
push str.TELUIRUN__0xb0__0xd3__0x8d__0x96__0x90__0x8c__0xdf__0x64_0x5e_0x87_0x1a
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409157
xor eax, eax
jmp 0x40921a
cmp dword [ebp - 4], 0
jne 0x409164
xor eax, eax
jmp 0x40921a
jmp 0x40916d
xor eax, eax
jmp 0x40921a
mov dword [ebp + 0x14], 0
mov dword [0x40efd8], 0
push 0x64
push 0x40f0a8
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x40efe0
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 8]
push edx
call fcn.00409090
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408f60
add esp, 8
test eax, eax
jne 0x4091c8
xor eax, eax
jmp 0x40921a
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 8], eax
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x409217
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x409215
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4091d7
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x40d12c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.004012d0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004012d0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x418]
push ecx
call fcn.004012d0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.004012d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.CTCCONFIGNAME.ini
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040134a
add esp, 8
lea edx, [ebp - 0x418]
push edx
push str.stop
push str.VALUE
push 0x40c114
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011c6
mov esp, ebp
pop ebp
ret
Function at 0xa72f44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0xa72f9f
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0xa72f64
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret

Function at 0xa73eca
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
leave
add dword [esp], 0xfffffb60
xchg dword [esp], ecx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x2d]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], ecx
pushfd
add ebp, 0x2b
popfd
lea ebp, [ebp - 0x2b]
xchg dword [esp], ecx
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x41]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
popfd
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x1a]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
jmp fcn.00a72f44
Function at 0x405fe0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x422c6c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp + 0x10]
mov ecx, 0x41d2b8
mov edx, dword [ebp + 0xc]
mov edi, 0xc
mov esi, edx
mov dword [ebx], 0
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x406035
add ecx, 4
add esi, 4
sub edi, 4
jae 0x406010
mov ecx, dword [ebp + 8]
mov dword [ebx], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov ecx, 0x41d2c8
mov esi, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x406065
add ecx, 4
add edx, 4
sub esi, 4
jae 0x406040
mov ecx, dword [ebp + 8]
mov dword [ebx], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x80004001
pop ebx
pop ebp
ret 0xc

Function at 0x406140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x426020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x422cf0
call edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4061f6
mov eax, dword [ecx]
lea edx, [ebp - 0x208]
push edx
push 0x422e2c
push ecx
call dword [eax]
xor esi, esi
test eax, eax
cmovns esi, dword [ebp - 0x208]
jns 0x406195
cmp eax, 0x80004002
jne 0x40620a
test esi, esi
je 0x4061f6
mov eax, dword [esi]
lea ecx, [ebp - 0x208]
push ecx
push esi
call dword [eax + 0x4c]
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push 0x422d00
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call edi
cmp dword [ebp - 0x208], 4
jne 0x4061f0
push 0
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x422d40
call edi
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040c8e9
mov esp, ebp
pop ebp
ret 0x24
push eax
call fcn.0040c320
int3
Function at 0x407200
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x426020]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40733a
test eax, eax
je 0x40733a
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40733a
push ecx
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x74], 0
xorps xmm0, xmm0
mov dword [esp + 0x7d], 0
push eax
movq qword [esp + 0x79], xmm0
mov word [esp + 0x85], 0
mov byte [esp + 0x87], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.00406920
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004069f0
mov ebx, esi
xor edi, edi
movzx eax, byte [esp + edi + 0x6c]
xorps xmm0, xmm0
push eax
push 0x422e3c
lea eax, [esp + 0x84]
mov byte [esp + 0x84], 0
push 0x20
push eax
movdqu xmmword [esp + 0x8d], xmm0
mov dword [esp + 0xa5], 0
movq qword [esp + 0x9d], xmm0
mov word [esp + 0xa9], 0
mov byte [esp + 0xab], 0
call fcn.0040d849
mov ax, word [esp + 0x8c]
lea ebx, [ebx + 2]
inc edi
mov word [ebx - 2], ax
add esp, 0x10
cmp edi, 0x10
jl 0x4072b5
cmp byte [esi], 0
je 0x40733a
mov al, byte [esi]
cmp al, 0x41
jb 0x407334
cmp al, 0x5a
ja 0x407334
add al, 0x20
mov byte [esi], al
inc esi
cmp byte [esi], 0
jne 0x407326
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c8e9
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407600
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x426020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3f
lea eax, [ebp - 0x7b]
mov byte [ebp - 0x7c], 0
push 0
push eax
mov edi, ecx
call fcn.0040e360
mov esi, dword [ebp + 8]
add esp, 0xc
xor edx, edx
lea ecx, [ecx]
mov eax, edx
mov ecx, edx
shr eax, 3
and ecx, 7
movsx eax, byte [eax + esi]
shl eax, cl
sar eax, 7
and al, 1
mov byte [ebp + edx - 0x7c], al
inc edx
cmp edx, 0x40
jb 0x407630
push 0x37
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x3c], 0
push 0
push eax
call fcn.0040e360
add esp, 0xc
xor eax, eax
jmp 0x407670
movsx ecx, byte [eax + 0x423160]
movzx ecx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x3c], cl
movsx ecx, byte [eax + 0x423161]
movzx ecx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x3b], cl
movsx ecx, byte [eax + 0x423162]
movzx ecx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x3a], cl
movsx ecx, byte [eax + 0x423163]
mov dl, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x407670
push ecx
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00407ae0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c8e9
mov esp, ebp
pop ebp
ret 8
Function at 0x4076e0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x426020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x63]
mov byte [ebp - 0x64], 0
push 0
push eax
mov edi, ecx
call fcn.0040e360
push 0x3f
lea eax, [ebp - 0xe3]
mov byte [ebp - 0xe4], 0
push 0
push eax
call fcn.0040e360
push 0x3f
lea eax, [ebp - 0xa3]
push 0
push eax
call fcn.0040e360
mov esi, dword [ebp + 8]
add esp, 0x24
xor edx, edx
mov eax, edx
mov ecx, edx
shr eax, 3
and ecx, 7
movsx eax, byte [eax + esi]
shl eax, cl
sar eax, 7
and al, 1
mov byte [ebp + edx - 0x64], al
inc edx
cmp edx, 0x40
jb 0x407738
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00407e70
movdqu xmm0, xmmword [ebp - 0xe4]
xor esi, esi
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmm0, xmmword [ebp - 0xd4]
movdqu xmmword [ebp - 0x34], xmm0
movdqu xmm0, xmmword [ebp - 0xc4]
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmm0, xmmword [ebp - 0xb4]
movdqu xmmword [ebp - 0x14], xmm0
lea ecx, [ecx]
push ecx
mov eax, 0xf
mov ecx, edi
sub eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407cf0
inc esi
cmp esi, 0x10
jl 0x4077a0
movdqu xmm0, xmmword [ebp - 0x24]
xor eax, eax
movdqu xmmword [ebp - 0xa4], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [ebp - 0x94], xmm0
movdqu xmm0, xmmword [ebp - 0x44]
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [ebp - 0x74], xmm0
movsx ecx, byte [eax + 0x422e50]
movzx ecx, byte [ebp + ecx - 0xa5]
mov byte [edi + eax + 0x640], cl
movsx ecx, byte [eax + 0x422e51]
movzx ecx, byte [ebp + ecx - 0xa5]
mov byte [edi + eax + 0x641], cl
movsx ecx, byte [eax + 0x422e52]
movzx ecx, byte [ebp + ecx - 0xa5]
mov byte [edi + eax + 0x642], cl
movsx ecx, byte [eax + 0x422e53]
movzx ecx, byte [ebp + ecx - 0xa5]
mov byte [edi + eax + 0x643], cl
add eax, 4
cmp eax, 0x40
jl 0x4077f1
xorps xmm0, xmm0
mov ebx, 1
movq qword [edi + 0x688], xmm0
lea eax, [ebx - 1]
mov ecx, 7
and eax, 7
lea edx, [ebx - 1]
sub ecx, eax
shr edx, 3
movzx eax, byte [ebx + edi + 0x63f]
shl al, cl
mov ecx, 7
or byte [edx + edi + 0x688], al
mov eax, ebx
and eax, 7
mov edx, ebx
sub ecx, eax
shr edx, 3
movzx eax, byte [ebx + edi + 0x640]
shl al, cl
mov ecx, 7
or byte [edx + edi + 0x688], al
lea edx, [ebx + 1]
movzx eax, byte [ebx + edi + 0x641]
mov esi, edx
and edx, 7
shr esi, 3
sub ecx, edx
lea edx, [ebx + 2]
shl al, cl
mov ecx, 7
or byte [esi + edi + 0x688], al
mov esi, edx
movzx eax, byte [ebx + edi + 0x642]
and edx, 7
shr esi, 3
sub ecx, edx
add ebx, 4
shl al, cl
or byte [esi + edi + 0x688], al
lea eax, [ebx - 1]
cmp eax, 0x40
jb 0x407861
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8e9
mov esp, ebp
pop ebp
ret 8
Function at 0x407ae0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x426020]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x3b], xmm0
push ebx
movq qword [ebp - 0x2b], xmm0
mov eax, dword [edx + 0x18]
movdqu xmmword [ebp - 0x1f], xmm0
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0x34]
movq qword [ebp - 0xf], xmm0
movdqu xmm0, xmmword [edx]
mov dword [ebp - 0x5c], eax
xor eax, eax
inc ecx
mov byte [ebp - 0x3c], 0
movdqu xmmword [ebp - 0x58], xmm0
push esi
movq xmm0, qword [edx + 0x10]
movq qword [ebp - 0x48], xmm0
movdqu xmm0, xmmword [edx + 0x1c]
mov word [ebp - 0x23], 0
mov byte [ebp - 0x21], 0
movdqu xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x20], 0
movq xmm0, qword [edx + 0x2c]
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], ecx
push edi
mov edi, edi
movsx ebx, byte [eax + 0x423120]
mov esi, 0x1c
sub esi, ebx
lea eax, [ebp - 0x58]
add eax, ebx
push esi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040e470
push ebx
lea eax, [ebp - 0x58]
mov edi, ebx
push eax
neg edi
lea eax, [ebp - 0x20]
add eax, edi
push eax
call fcn.0040e470
lea eax, [ebp - 0x74]
add eax, ebx
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040e470
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 4]
add eax, edi
push eax
call fcn.0040e470
push 0x37
lea eax, [ebp - 0xab]
push 0
push eax
call fcn.0040e360
movdqu xmm0, xmmword [ebp - 0x3c]
mov esi, dword [ebp - 0x24]
add esp, 0x3c
movdqu xmm2, xmmword [ebp - 0x20]
xor eax, eax
mov edi, dword [ebp - 8]
movq xmm1, qword [ebp - 0x2c]
movq xmm3, qword [ebp - 0x10]
mov edx, dword [ebp - 0xb4]
movdqu xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x94], esi
movq qword [ebp - 0x9c], xmm1
movdqu xmmword [ebp - 0x90], xmm2
mov dword [ebp - 0x78], edi
movq qword [ebp - 0x80], xmm3
lea ecx, [ecx]
movsx ecx, byte [eax + 0x423130]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax - 1], cl
movsx ecx, byte [eax + 0x423131]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax], cl
movsx ecx, byte [eax + 0x423132]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 1], cl
movsx ecx, byte [eax + 0x423133]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 2], cl
movsx ecx, byte [eax + 0x423134]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 3], cl
movsx ecx, byte [eax + 0x423135]
movzx ecx, byte [ebp + ecx - 0xad]
mov byte [edx + eax + 4], cl
add eax, 6
cmp eax, 0x30
jl 0x407c20
mov eax, dword [ebp - 0xb0]
add edx, 0x30
inc eax
movq qword [ebp - 0x48], xmm1
mov dword [ebp - 0x40], esi
movq qword [ebp - 0x64], xmm3
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], edx
movdqu xmmword [ebp - 0x58], xmm0
movdqu xmmword [ebp - 0x74], xmm2
cmp eax, 0x10
jl 0x407b70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8e9
mov esp, ebp
pop ebp
ret 8
Function at 0x407e70
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, 0x4230e3
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x4230e0
mov dword [ebp + 0xc], 0x10
mov edi, 0x4230e1
mov ebx, 0x4230e2
sub esi, eax
sub edi, eax
sub ebx, eax
sub ecx, eax
mov dword [ebp - 4], ecx
dec dword [ebp + 0xc]
lea eax, [eax + 4]
movsx ecx, byte [esi + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 4], cl
movsx ecx, byte [edi + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 3], cl
movsx ecx, byte [ebx + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 4]
movsx ecx, byte [ecx + eax - 4]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 1], cl
jne 0x407ea3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407ef0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, 0x4230b3
mov edx, dword [ebp + 8]
sub ecx, eax
push ebx
mov dword [ebp - 4], ecx
mov ebx, 0x4230b2
push esi
mov ecx, 0x4230b4
mov dword [ebp + 0xc], 8
sub ecx, eax
mov esi, 0x4230b0
push edi
mov dword [ebp - 8], ecx
mov edi, 0x4230b1
mov ecx, 0x4230b5
sub esi, eax
sub edi, eax
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0xc], ecx
lea esp, [esp]
dec dword [ebp + 0xc]
lea eax, [eax + 6]
movsx ecx, byte [esi + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 6], cl
movsx ecx, byte [edi + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 5], cl
movsx ecx, byte [ebx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 4], cl
mov ecx, dword [ebp - 4]
movsx ecx, byte [ecx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 3], cl
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 0xc]
movsx ecx, byte [ecx + eax - 6]
movzx ecx, byte [ecx + edx - 1]
mov byte [eax - 1], cl
jne 0x407f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8