joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401040
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x3c]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401174
lea ecx, [esp + 0x40]
push 0x104
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x401174
lea eax, [esp + 0x248]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401174
lea ecx, [esp + 0x144]
push str._c_del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x40]
lea eax, [esp + 0x144]
push edx
push eax
call esi
lea ecx, [esp + 0x144]
push str.___nul
push ecx
call esi
lea ecx, [esp + 4]
lea edx, [esp + 0x248]
lea eax, [esp + 0x144]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.Open
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401174
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push edx
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [esp + 0x40]
push 0
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
pop esi
add esp, 0x348
ret
xor eax, eax
pop esi
add esp, 0x348
ret

Function at 0x401180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401195
xor eax, eax
ret 4
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
ret 4

Function at 0x4012b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push 0x404030
mov edi, ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4012da
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push ebx
mov ecx, edi
call fcn.00401290
mov edi, eax
push 0
lea eax, [edi - 8]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 8
lea ecx, [esp + 0x20]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, edi
push esi
je 0x401321
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 4
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x401b30
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401b8d
mov eax, dword [esp + 0x64]
test eax, eax
je 0x401b8d
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x54
ret 8

Function at 0x401ba0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4023e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.004020d6
mov ecx, dword [esp + 0x10]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.00401290
lea edx, [esp + 0x24]
push 4
push edx
lea ecx, [esp + 0x18]
mov edi, eax
call sub.MFC42.DLL_CString::Right
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push str..exe
push eax
mov byte [esp + 0x24], 1
call ebp
add esp, 8
test eax, eax
je 0x401c88
mov ecx, dword [esp + 0x24]
push str..EXE
push ecx
call ebp
add esp, 8
test eax, eax
je 0x401c88
mov edx, dword [esp + 0x24]
push 0x404108
push edx
call ebp
add esp, 8
test eax, eax
je 0x401c7b
mov eax, dword [esp + 0x24]
push str..GHO
push eax
call ebp
add esp, 8
test eax, eax
je 0x401c7b
mov ecx, dword [esp + 0x24]
push str..bak
push ecx
call ebp
add esp, 8
test eax, eax
je 0x401c7b
mov edx, dword [esp + 0x24]
push str..BAK
push edx
call ebp
add esp, 8
test eax, eax
je 0x401c7b
cmp edi, 0x1f40000
ja 0x401caf
mov eax, dword [esp + 0x10]
push ebx
push eax
jmp 0x401c97
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401caf
cmp edi, 0xfa0000
ja 0x401caf
mov edx, dword [esp + 0x10]
push 1
push edx
mov ecx, esi
call fcn.00401340
mov eax, 0xcccccccd
mul edi
shr edx, 0xf
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10
Function at 0x402a95
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x402abf
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43f010]
inc edi
sub esi, 1
jne 0x402aa7
pop edi
mov eax, edx
pop esi
ret 0xc
Function at 0x403d88
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x42fd2f
call fcn.0041c4a8
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x403daa
mov al, 1
jmp 0x403ee6
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x403dc8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x403eaf
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x403e1f
xor edi, edi
test esi, esi
je 0x403e3f
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x403def
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x403e37
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x403de0
jmp 0x403e37
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x403edf
cmp byte [ebx + 0x1e], 0
je 0x403edf
cmp dword [ebx + 0x10], 0
jne 0x403edf
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x45b4e8
push edi
call fcn.00402d73
test al, al
je 0x403eb7
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x403dcb
cmp dword [ebp - 0x30], 0
jbe 0x403dcb
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43224c]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43224c]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x403dcb
push 0x432668
lea ecx, [ebp - 0x28]
call fcn.004014a3
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x45b4e8
call fcn.00403183
lea ecx, [ebp - 0x28]
call fcn.00401770
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.0041c457
ret 8
Function at 0x404461
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x42fcbc
call fcn.0041c4a8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40447a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4044fe
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004060a8
test al, al
je 0x4044c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4044ba
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4044fe
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x4044f5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c3f6
pop ecx
pop ecx
mov eax, edi
call fcn.0041c457
ret 4

Function at 0x404740
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x42fcbc
call fcn.0041c4a8
mov esi, dword [ebp + 8]
push esi
call fcn.00405e94
movzx eax, ax
cmp eax, 0x2e
je 0x404782
cmp eax, 0x20
je 0x404782
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40476c
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x404821
jmp 0x404786
xor edi, edi
mov ebx, edi
push esi
call fcn.0040444f
test al, al
jne 0x404834
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.004060a8
test al, al
je 0x4047ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4047c4
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40480d
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404804
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c3f6
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x404834
cmp byte [ebp + 0xc], 0
je 0x404830
push dword [ebp + 0x10]
push esi
call fcn.00404a2f
xor eax, eax
jmp 0x40484c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40484c
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.0041c457
ret 0xc
Function at 0x404a2f
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x42fcbc
call fcn.0041c4a8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x404a48
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x404ad5
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004060a8
test al, al
je 0x404a9a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x404a8b
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404ad5
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404acc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c3f6
pop ecx
pop ecx
mov al, bl
call fcn.0041c457
ret 8
Function at 0x404d8a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x42fdde
call fcn.0041c4a8
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x404e89
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x404db5
mov eax, dword [ebx]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404eac
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push ebx
call fcn.004060a8
test al, al
je 0x404e10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x404e00
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404e61
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x404e58
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.0041c3f6
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x404eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404e7f
cmp eax, 3
je 0x404e7f
cmp eax, 0x12
je 0x404e7f
mov al, 1
jmp 0x404e81
xor al, al
mov byte [edi + 0x5c], al
jmp 0x404f63
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404eac
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x404e81
push ebx
mov ecx, edi
call fcn.004021d7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a3
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.004066d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401770
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.0040ae97
lea eax, [ebp - 0x274]
push eax
lea ecx, [edi + 0x30]
call fcn.0040ae97
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + 0x38]
call fcn.0040ae97
and dword [edi + 0x58], 0
mov eax, esi
call fcn.0041c457
ret 0xc
Function at 0x40806d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x447038], cl
inc ecx
cmp ecx, 0x100
jl 0x408076
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x447d39], al
mov byte [ebp*4 + 0x447d38], al
mov byte [ebp*4 + 0x44793b], al
mov byte [ebp*4 + 0x447938], al
mov byte [ebp*4 + 0x44753b], al
mov byte [ebp*4 + 0x44753a], al
mov byte [ebp*4 + 0x44713a], al
mov byte [ebp*4 + 0x447139], al
call fcn.00408844
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x447d3b], al
mov byte [ebp*4 + 0x44793a], al
mov byte [ebp*4 + 0x447539], al
mov byte [ebp*4 + 0x447138], al
call fcn.00408844
mov bl, byte [ebp + 0x447038]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x447d3a], al
mov byte [ebp*4 + 0x447939], al
mov byte [ebp*4 + 0x447538], al
mov byte [ebp*4 + 0x44713b], al
call fcn.00408844
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448d3a], al
mov byte [ebp*4 + 0x448939], al
mov byte [ebp*4 + 0x448538], al
mov byte [ebp*4 + 0x44813b], al
mov byte [edi*4 + 0x449d3a], al
mov byte [edi*4 + 0x449939], al
mov byte [edi*4 + 0x449538], al
mov byte [edi*4 + 0x44913b], al
call fcn.00408844
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448d38], al
mov byte [ebp*4 + 0x44893b], al
mov byte [ebp*4 + 0x44853a], al
mov byte [ebp*4 + 0x448139], al
mov byte [edi*4 + 0x449d38], al
mov byte [edi*4 + 0x44993b], al
mov byte [edi*4 + 0x44953a], al
mov byte [edi*4 + 0x449139], al
call fcn.00408844
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448d39], al
mov byte [ebp*4 + 0x448938], al
mov byte [ebp*4 + 0x44853b], al
mov byte [ebp*4 + 0x44813a], al
mov byte [edi*4 + 0x449d39], al
mov byte [edi*4 + 0x449938], al
mov byte [edi*4 + 0x44953b], al
mov byte [edi*4 + 0x44913a], al
call fcn.00408844
mov byte [ebp*4 + 0x448d3b], al
mov byte [ebp*4 + 0x44893a], al
mov byte [ebp*4 + 0x448539], al
mov byte [ebp*4 + 0x448138], al
inc ebp
mov byte [edi*4 + 0x449d3b], al
mov byte [edi*4 + 0x44993a], al
mov byte [edi*4 + 0x449539], al
mov byte [edi*4 + 0x449138], al
cmp ebp, 0x100
jl 0x40808c
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4087bf
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x40883a
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4087ea
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x40881c
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x408806
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x4087d8
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x40886e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x43e748]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
cmp dword [ebp + 4], ebx
jle 0x408927
push esi
push edi
lea edi, [ebp + 0x28]
mov dword [esp + 0x14], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x20]
mov ebp, eax
push 4
add ebx, esi
pop edi
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x449d38]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x449538]
xor dl, byte [esi + eax*4 + 0x449138]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x449938]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x4088b1
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4088a6
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.0041d6f0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, dword [ebp + 4]
jl 0x40889d
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c404
add esp, 0x24
ret