joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e90
Capabilities:
Query service status

Disassembly:
mov eax, 0x3698
call fcn.00424520
mov eax, dword [0x463de0]
cmp eax, 0xffffffff
je 0x405fc0
push 0
lea ecx, [esp + 8]
push ecx
push 0x3674
lea edx, [esp + 0x30]
push edx
push 0x3674
mov ecx, edx
push ecx
push 0x72004
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x405fc0
cmp dword [esp + 0x24], 0
je 0x405ee5
xor eax, eax
add esp, 0x3698
ret
call fcn.004070d0
cmp eax, 1
jg 0x405edc
mov edx, dword [0x463de0]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push 0
push 0
mov dword [0x463de0], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
je 0x405f9f
push edi
push 0xf01ff
push str.truecrypt
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x405f97
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x14]
push eax
push edi
call ebp
cmp eax, 1
jne 0x405f8f
cmp dword [esp + 0x18], eax
je 0x405f8f
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea edx, [esp + 0x18]
push edx
push edi
call ebp
cmp eax, 1
jne 0x405f8a
cmp dword [esp + 0x1c], eax
je 0x405f8a
push 0xc8
call ebx
add esi, 1
cmp esi, 5
jl 0x405f68
mov esi, dword [esp + 0x10]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
cmp dword [esp + 0x10], eax
pop esi
jne 0x405edc
mov dword [0x463de0], 0xffffffff
add esp, 0x3698
ret
mov eax, 1
add esp, 0x3698
ret

Function at 0x405fd0
Capabilities:
Get installed programs

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0
push 3
push 0
push 0
push 0
push str..TrueCrypt
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x463de0], eax
je 0x406061
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
push 0x474a68
push 4
push 0x474a68
push 0x72018
push eax
call edi
test eax, eax
je 0x406082
cmp dword [0x474a68], 0x43a
je 0x4060bc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallTrueCrypt
push SysReAllocStringLen
call ebx
test eax, eax
je 0x40608e
call fcn.00405e90
test eax, eax
je 0x406099
call fcn.00405bf0
test eax, eax
jne 0x4060be
push eax
push eax
push 3
push eax
push eax
push eax
push str..TrueCrypt
call esi
cmp eax, 0xffffffff
mov dword [0x463de0], eax
jne 0x40600b
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x463de0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x463de0], 0xffffffff
mov eax, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406560
Capabilities:
Get disk information

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 0x19
jmp 0x406570
mov edx, 1
shl edx, cl
test eax, edx
je 0x406587
sub ecx, 1
cmp ecx, 2
jg 0x406570
or eax, 0xffffffff
ret
mov eax, ecx
ret
Function at 0x406dd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp dword [0x471ac0], 0xc
mov dword [esp], 1
mov dword [esp + 8], 4
je 0x406df1
xor eax, eax
add esp, 0xc
ret
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406e43
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406e38
mov dword [esp], 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp], eax
setne al
add esp, 0xc
ret

Function at 0x407200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SYSTEMControlSet001ServicesMountMgr
push SysReAllocStringLen
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407287
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.NoAutoMount
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407267
cmp dword [esp + 4], eax
je 0x407267
push str.SYS_AUTOMOUNT_DISABLED
jmp 0x407275
cmp dword [0x471ac0], 0xc
jne 0x40727d
push str.SYS_ASSIGN_DRIVE_LETTER
call fcn.00407160
add esp, 4
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
Function at 0x407ef0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
mov ecx, dword [edx + 4]
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [edx]
push 0
mov ebp, ecx
push 1
mov edi, eax
add eax, 1
push ebp
adc ecx, 0
mov dword [edx], eax
mov eax, dword [esp + 0x28]
push edi
push esi
mov dword [edx + 4], ecx
call fcn.00409bb0
mov eax, dword [ebx]
mov edx, dword [esp + 0x2c]
lea edi, [eax + edx]
add eax, 0x200
add esp, 0x14
cmp eax, 0x10000
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
jne 0x407f5a
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
jne 0x407f54
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret
mov dword [ebx], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x471d10]
cmp eax, 0x19
jbe 0x407f74
call esi
mov dword [0x471d10], eax
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x40a150
Capabilities:
Create new key via cryptacquirecontext
Create thread
Log keystrokes via application hook

Disassembly:
cmp dword [0x471d1c], 0
je 0x40a15c
xor eax, eax
ret
push esi
push 0x4740e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x140
mov dword [0x471d1c], 1
call fcn.00424385
mov esi, eax
add esp, 4
test esi, esi
mov dword [0x471d18], esi
je 0x40a24c
push edi
push 0x140
push 0
push esi
call fcn.00422ac0
add esp, 0xc
push 0x140
push esi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push eax
push 0
push 0x40a890
push 2
call edi
test eax, eax
mov dword [0x471d30], eax
jne 0x40a1d8
push eax
call fcn.00405ab0
add esp, 4
call esi
push eax
push 0
push 0x40a6d0
push 7
call edi
test eax, eax
pop edi
mov dword [0x471d2c], eax
push 0
jne 0x40a206
call fcn.00405ab0
add esp, 4
call fcn.0040a260
mov eax, 1
pop esi
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 1
push 0
push 0
push 0x4740f8
call esi
test eax, eax
jne 0x40a233
push 8
push 1
push eax
push eax
push 0x4740f8
call esi
test eax, eax
jne 0x40a233
mov dword [0x4740f8], eax
push 0
push 0x2000
push 0x40aa70
call fcn.004441c2
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40a258
call fcn.0040a260
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40a390
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b4
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x1ac], eax
mov eax, dword [0x463b10]
test eax, eax
push esi
push edi
je 0x40a4df
mov eax, dword [0x463b08]
sub eax, 1
je 0x40a3e7
sub eax, 1
je 0x40a3e7
sub eax, 1
je 0x40a3e0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.004231f4
add esp, 0x1b4
ret
mov esi, 0x40
jmp 0x40a3ec
mov esi, 0x14
xor edi, edi
mov eax, dword [0x463b08]
sub eax, 1
je 0x40a476
sub eax, 1
je 0x40a442
sub eax, 1
jne 0x40a4aa
lea ecx, [esp + 0xc8]
push ecx
call fcn.004423f0
mov eax, dword [0x471d18]
lea edx, [esp + 0xcc]
push edx
push 0xa00
push eax
call fcn.00442470
lea ecx, [esp + 0x180]
push ecx
lea edx, [esp + 0xdc]
push edx
call fcn.00442640
jmp 0x40a4a7
lea eax, [esp + 8]
push eax
call fcn.0043ec80
mov edx, dword [0x471d18]
lea ecx, [esp + 0xc]
push ecx
push 0x140
push edx
call fcn.0043ecc0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x184]
push ecx
call fcn.0043ed70
jmp 0x40a4a7
lea edx, [esp + 0x68]
push edx
call fcn.0043ee60
mov eax, dword [0x471d18]
push 0x140
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00440900
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x184]
push eax
call fcn.004409c0
add esp, 0x18
xor eax, eax
test esi, esi
jle 0x40a4d1
mov ecx, dword [0x471d18]
add ecx, edi
jmp 0x40a4c0
mov dl, byte [esp + eax + 0x170]
xor byte [ecx + eax], dl
add eax, 1
cmp eax, esi
jl 0x40a4c0
add edi, esi
cmp edi, 0x140
jl 0x40a3ee
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004231f4
add esp, 0x1b4
ret
Function at 0x40b300
Capabilities:
Hash data with crc32

Disassembly:
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
not eax
and eax, 0xff
mov eax, dword [eax*4 + 0x461678]
xor eax, 0xffffff
xor edx, eax
add ecx, 1
shr eax, 8
and edx, 0xff
xor eax, dword [edx*4 + 0x461678]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
shr eax, 8
and edx, 0xff
xor eax, dword [edx*4 + 0x461678]
mov edx, eax
movzx eax, byte [ecx + 1]
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x461678]
not eax
shr edx, 8
xor eax, edx
ret
Function at 0x40b6c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
push 0x1000
push 0
push esi
call fcn.00422ac0
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x10], ebp
lea esp, [esp]
test ebp, ebp
jne 0x40b775
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 0x180], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x184], edx
mov edi, 4
lea eax, [edi + 0x10]
shl eax, 4
lea ecx, [eax + esi]
lea eax, [edi + 8]
shl eax, 5
mov edx, dword [eax + esi]
mov dword [ecx], edx
mov eax, dword [eax + esi + 4]
mov dword [ecx + 4], eax
call fcn.0040b410
sar edi, 1
test edi, edi
jg 0x40b702
mov edx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
lea ecx, [esi + 0x80]
mov dword [ecx], edx
mov dword [ecx + 4], eax
call fcn.0040b410
mov edi, 4
lea esp, [esp]
mov ecx, edi
mov eax, edi
shl eax, 5
mov edx, dword [eax + esi]
shl ecx, 4
add ecx, esi
mov dword [ecx], edx
mov eax, dword [eax + esi + 4]
mov dword [ecx + 4], eax
call fcn.0040b410
sar edi, 1
test edi, edi
jg 0x40b750
jmp 0x40b7df
cmp ebp, 1
jle 0x40b7df
lea ecx, [ebp - 2]
shl ecx, 4
mov eax, ebp
shl eax, 4
mov edi, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
jmp 0x40b79c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
add ecx, edi
shl ecx, 4
mov edx, dword [ecx + esi]
mov ecx, dword [ecx + esi + 4]
add eax, edi
shl eax, 4
add eax, esi
mov dword [eax + 4], ecx
mov ebx, ecx
mov ebp, edx
shl ecx, 8
shr ebp, 0x18
or ebp, ecx
mov dword [eax], edx
shr ebx, 0x18
mov dword [eax + 4], ebp
movzx ecx, word [ebx*2 + 0x4550e0]
shl edx, 8
xor ecx, edx
sar edi, 1
test edi, edi
mov dword [eax], ecx
jg 0x40b794
mov ebp, dword [esp + 0x10]
mov edx, ebp
shl edx, 8
mov ebx, ebp
lea eax, [edx + esi + 0x10]
shl ebx, 4
mov edi, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
lea ebx, [ebx]
lea ecx, [ebx + edi]
shl ecx, 4
cmp edi, 1
lea edx, [ecx + esi]
mov ecx, dword [esp + 0x14]
lea eax, [edx + 0x10]
jle 0x40b85a
lea ebx, [edi - 1]
mov ebp, dword [ecx]
xor ebp, dword [edx]
add ecx, 4
mov dword [eax], ebp
mov ebp, dword [ecx]
xor ebp, dword [edx + 4]
add eax, 4
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
xor ebp, dword [edx + 8]
add ecx, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
xor ebp, dword [edx + 0xc]
add ecx, 4
add eax, 4
mov dword [eax], ebp
add eax, 4
add ecx, 4
sub ebx, 1
jne 0x40b818
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
add edi, edi
cmp edi, 0x10
jl 0x40b800
add ebp, 1
cmp ebp, 0x10
mov dword [esp + 0x10], ebp
jl 0x40b6e0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40dcc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x198
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x194], eax
push ebp
mov ebp, dword [esp + 0x1a4]
push esi
mov esi, ecx
cmp esi, 0x40
push edi
mov edi, edx
mov dword [esp + 0xc], ebp
jle 0x40dd2b
lea eax, [esp + 0xc8]
push eax
call fcn.0043ec80
lea ecx, [esp + 0xcc]
push ecx
push esi
push edi
call fcn.0043ecc0
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x1a0]
push eax
call fcn.0043ed70
add esp, 0x18
lea edi, [esp + 0x18c]
mov esi, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.0043ec80
add esp, 4
xor eax, eax
test esi, esi
jle 0x40dd6a
mov ebp, edi
lea edx, [esp + 0x138]
sub ebp, edx
lea esp, [esp]
lea ecx, [esp + eax + 0x138]
mov dl, byte [ecx + ebp]
xor dl, 0x36
add eax, 1
cmp eax, esi
mov byte [ecx], dl
jl 0x40dd50
mov ebp, dword [esp + 0xc]
cmp esi, 0x40
jge 0x40dd89
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x13c]
push 0x36
push eax
call fcn.00422ac0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x13c]
push 0x40
push eax
call fcn.0043ecc0
mov edx, dword [esp + 0x1b4]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
call fcn.0043ecc0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x194]
push ecx
call fcn.0043ed70
lea edx, [esp + 0x8c]
push edx
call fcn.0043ec80
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x40ddf7
lea ecx, [esp + 0x138]
sub edi, ecx
lea ecx, [esp + eax + 0x138]
mov dl, byte [edi + ecx]
xor dl, 0x5c
add eax, 1
cmp eax, esi
mov byte [ecx], dl
jl 0x40dde1
cmp esi, 0x40
jge 0x40de16
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x13c]
push 0x5c
push eax
call fcn.00422ac0
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x13c]
push 0x40
push eax
call fcn.0043ecc0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x188]
push 0x14
push edx
call fcn.0043ecc0
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x140]
push ecx
call fcn.0043ed70
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
mov dword [ebp], edx
mov edx, dword [esp + 0x150]
add esp, 0x20
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x134]
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x1a0]
pop edi
mov dword [ebp + 0xc], edx
pop esi
mov dword [ebp + 0x10], eax
pop ebp
xor ecx, esp
call fcn.004231f4
add esp, 0x198
ret
Function at 0x40dea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb0
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xbc]
push ebx
push ebp
mov ebp, dword [esp + 0xbc]
push esi
push edi
mov edi, ecx
mov cl, byte [esp + 0xd4]
push edi
mov esi, edx
push eax
lea edx, [esp + 0x44]
mov dword [esp + 0x18], 0
push edx
mov byte [esp + 0x1f], cl
call fcn.004234f0
mov eax, dword [esp + 0x1c]
mov dword [esp + edi + 0x48], eax
lea ecx, [esp + 0x20]
push ecx
add edi, 4
push edi
mov edi, dword [esp + 0xdc]
lea ebx, [esp + 0x50]
mov ecx, edi
mov edx, ebp
call fcn.0040dcc0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0xe4]
add esp, 0x14
cmp eax, 1
jle 0x40df8e
lea ecx, [esp + 0x28]
sub esi, ecx
add eax, 0xffffffff
mov dword [esp + 0x10], eax
lea esp, [esp]
lea edx, [esp + 0x28]
push edx
push 0x14
lea ebx, [esp + 0x1c]
mov ecx, edi
mov edx, ebp
call fcn.0040dcc0
add esp, 8
xor eax, eax
lea esp, [esp]
mov dl, byte [esp + eax + 0x28]
lea ecx, [esp + eax + 0x28]
xor byte [esi + ecx], dl
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x14
jl 0x40df70
sub dword [esp + 0x10], 1
jne 0x40df50
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004231f4
add esp, 0xb0
ret
Function at 0x40e0b0
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x178
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x17c]
push ebx
push ebp
mov ebp, dword [esp + 0x18c]
push esi
mov ebx, ecx
cmp ebx, 0x40
push edi
mov edi, edx
mov dword [esp + 0x14], eax
jle 0x40e120
lea ecx, [esp + 0x78]
push ecx
call fcn.0043ee60
push ebx
lea edx, [esp + 0x80]
push edi
push edx
call fcn.00440900
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xf0]
push ecx
call fcn.004409c0
add esp, 0x18
lea edi, [esp + 0xdc]
mov ebx, 0x14
push 0x41
lea edx, [esp + 0xf4]
push 0x36
push edx
call fcn.00422ac0
push 0x41
lea eax, [esp + 0x148]
push 0x5c
push eax
call fcn.00422ac0
add esp, 0x18
test ebx, ebx
jle 0x40e170
lea edx, [esp + 0xf0]
lea esi, [esp + 0x138]
sub edx, edi
mov eax, edi
sub esi, edi
lea ecx, [ecx]
mov cl, byte [eax]
xor byte [edx + eax], cl
xor byte [esi + eax], cl
add eax, 1
sub ebx, 1
jne 0x40e160
lea ecx, [esp + 0x18]
push ecx
call fcn.0043ee60
push 0x40
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00440900
mov ecx, dword [esp + 0x1a0]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00440900
lea ecx, [esp + 0x34]
push ecx
push ebp
call fcn.004409c0
lea edx, [esp + 0x3c]
push edx
call fcn.0043ee60
push 0x40
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00440900
push 0x14
lea edx, [esp + 0x50]
push ebp
push edx
call fcn.00440900
add esp, 0x40
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004409c0
mov ecx, dword [esp + 0x18c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004231f4
add esp, 0x178
ret

Function at 0x40e210
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb8
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xc0]
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
mov edi, ecx
mov cl, byte [esp + 0xd4]
push edi
mov esi, edx
push eax
lea edx, [esp + 0x40]
mov dword [esp + 0x14], 0
push edx
mov byte [esp + 0x1b], cl
call fcn.004234f0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + edi + 0x38], eax
lea ecx, [esp + 0x10]
push ecx
add edi, 4
push edi
mov edi, dword [esp + 0xd0]
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov edx, ebx
call fcn.0040e0b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], edx
add esp, 0xc
cmp ebp, 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
jle 0x40e2ec
lea edx, [esp + 0x24]
sub esi, edx
add ebp, 0xffffffff
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push 0x14
push ecx
mov ecx, edi
mov edx, ebx
call fcn.0040e0b0
add esp, 0xc
xor eax, eax
mov edi, edi
mov dl, byte [esp + eax + 0x24]
lea ecx, [esp + eax + 0x24]
xor byte [esi + ecx], dl
mov byte [esp + eax + 0x10], dl
add eax, 1
cmp eax, 0x14
jl 0x40e2d0
sub ebp, 1
jne 0x40e2b4
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004231f4
add esp, 0xb8
ret
Function at 0x40e400
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x308
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x300], eax
mov eax, dword [esp + 0x310]
push ebp
push esi
mov esi, ecx
cmp esi, 0x40
push edi
mov edi, edx
mov dword [esp + 0xc], eax
jle 0x40e472
lea ecx, [esp + 0x160]
push ecx
call fcn.004423f0
lea edx, [esp + 0x164]
push edx
lea eax, [esi*8]
push eax
push edi
call fcn.00442470
lea ecx, [esp + 0x2d8]
push ecx
lea edx, [esp + 0x174]
push edx
call fcn.00442640
add esp, 0x18
lea edi, [esp + 0x2c8]
mov esi, 0x40
lea eax, [esp + 0xb8]
push eax
call fcn.004423f0
add esp, 4
xor eax, eax
test esi, esi
jle 0x40e4a9
mov ebp, edi
lea ecx, [esp + 0x208]
sub ebp, ecx
lea ecx, [esp + eax + 0x208]
mov dl, byte [ecx + ebp]
xor dl, 0x36
add eax, 1
cmp eax, esi
mov byte [ecx], dl
jl 0x40e493
cmp esi, 0x40
jge 0x40e4c8
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x20c]
push 0x36
push eax
call fcn.00422ac0
add esp, 0xc
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x20c]
push 0x200
push eax
call fcn.00442470
mov edx, dword [esp + 0x324]
lea ecx, [esp + 0xc4]
push ecx
lea eax, [edx*8]
push eax
push ebx
call fcn.00442470
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.00442640
lea eax, [esp + 0x30]
push eax
call fcn.004423f0
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x40e546
lea ecx, [esp + 0x208]
sub edi, ecx
lea ecx, [esp + eax + 0x208]
mov dl, byte [edi + ecx]
xor dl, 0x5c
add eax, 1
cmp eax, esi
mov byte [ecx], dl
jl 0x40e530
cmp esi, 0x40
jge 0x40e565
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x20c]
push 0x5c
push eax
call fcn.00422ac0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20c]
push 0x200
push eax
call fcn.00442470
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x258]
push 0x200
push edx
call fcn.00442470
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00442640
mov eax, dword [esp + 0x2c]
push 0x40
lea edx, [esp + 0x2ac]
push edx
push eax
call fcn.004234f0
mov ecx, dword [esp + 0x338]
add esp, 0x2c
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004231f4
add esp, 0x308
ret
Function at 0x40e5e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
push edi
mov esi, edx
push esi
mov edi, ecx
mov cl, byte [esp + 0x138]
push eax
lea edx, [esp + 0xa0]
mov dword [esp + 0x18], 0
push edx
mov dword [esp + 0x20], edi
mov byte [esp + 0x1f], cl
call fcn.004234f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + esi + 0x98], eax
push ecx
mov ecx, dword [esp + 0x128]
add esi, 4
push esi
lea ebx, [esp + 0xa0]
mov edx, edi
call fcn.0040e400
mov eax, dword [esp + 0x134]
add esp, 8
cmp eax, 1
mov ecx, 0x10
lea esi, [esp + 0x18]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jle 0x40e6cc
mov esi, ebp
lea edx, [esp + 0x58]
sub esi, edx
lea edi, [eax - 1]
jmp 0x40e690
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push eax
push 0x40
lea ebx, [esp + 0x20]
call fcn.0040e400
add esp, 8
xor eax, eax
mov dl, byte [esp + eax + 0x58]
lea ecx, [esp + eax + 0x58]
xor byte [esi + ecx], dl
mov byte [esp + eax + 0x18], dl
add eax, 1
cmp eax, 0x40
jl 0x40e6b0
sub edi, 1
jne 0x40e690
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004231f4
add esp, 0x110
ret