joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407645
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1c0]
push esi
mov esi, dword [esp + 0x1b8]
push edi
mov edi, dword [esp + 0x1c0]
push 0x40
mov dword [esp + 0x18], eax
pop eax
cmp esi, eax
jae 0x407694
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.00424240
add esp, 0xc
cmp esi, 0x44
jae 0x407867
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x407867
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x407867
push ecx
push ecx
push ecx
mov byte [esp + eax + 0x150], cl
lea eax, [esp + 0x110]
push ecx
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push dword [esp + 0x34]
call fcn.004073f1
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00424240
mov eax, dword [esp + 0x1d8]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xec], eax
xor esi, esi
mov dword [esp + 0xf8], edi
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x104], ebp
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], esi
pop ebx
mov edi, dword [esp + esi + 0xec]
test edi, edi
je 0x4077eb
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x198]
push eax
push ebx
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1d0]
push esi
call fcn.004073f1
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00424240
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x4077cf
sub edi, 1
jne 0x40777f
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x100]
call fcn.00424240
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x407770
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.0041144a
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.0041144a
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.0041144a
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.0041144a
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x19c
ret 0x20
call fcn.004213e9
int3
Function at 0x40ae67
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435150
mov eax, dword fs:[0]
push eax
mov eax, 0x5048
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3010]
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40b04c
cmp eax, ebx
jae 0x40b04c
push ebx
lea eax, [ebp - 0x4010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40b04c
cmp eax, ebx
jae 0x40b04c
lea eax, [ebp - 0x3010]
push eax
call fcn.0040e1f8
mov dword [ebp - 0x5054], eax
lea eax, [ebp - 0x4010]
push eax
call fcn.0040e1f8
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x40b04c
push edi
push dword [ebp - 0x5054]
call fcn.00414158
test eax, eax
je 0x40b04c
push edi
push esi
call fcn.0040e1f8
push eax
call fcn.00414158
test eax, eax
jne 0x40b04c
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x40afa9
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0041267b
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040e1f8
push eax
call fcn.00404c00
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040be3b
test al, al
je 0x40af8e
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x40af95
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x40af3c
test ax, ax
je 0x40b04c
mov edi, 0x800
lea eax, [ebp - 0x2010]
push edi
push esi
push eax
call fcn.0041267b
push edi
push dword [ebp - 0x5054]
lea eax, [ebp - 0x2010]
push eax
call fcn.0040e26e
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40b04c
lea ecx, [ebp - 0x5050]
call fcn.0040b06a
push esi
mov dword [ebp - 4], ebx
call fcn.0040be3b
test al, al
jne 0x40b00f
push 0x12
push esi
lea ecx, [ebp - 0x5050]
call fcn.0040b18e
mov bl, al
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x40b03d
lea ecx, [ebp - 0x5050]
call fcn.0040b140
lea ecx, [ebp - 0x5050]
call fcn.0040b28a
lea ecx, [ebp - 0x5050]
call fcn.0040b0ae
mov al, 1
jmp 0x40b04e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004210e9
leave
ret 4
Function at 0x40b420
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1058
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x1064]
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x40b465
test bl, 4
jne 0x40b465
xor al, al
jmp 0x40b467
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40b480
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40b48f
or ebx, 2
lea ecx, [esp + 0x1c]
call fcn.00407eed
cmp byte [edi + 0x24], 0
je 0x40b4a4
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40b50b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x18]
call fcn.0040da0e
test al, al
je 0x40b518
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40b513
mov dword [esp + 0x14], eax
jmp 0x40b513
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x40b529
cmp dword [esp + 0x14], 2
jne 0x40b529
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x40b54f
cmp ebp, 0xffffffff
je 0x40b54f
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40b57b
push 0x800
push dword [esp + 0x10]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.0041267b
mov byte [edi + 0x25], 0
mov ecx, dword [esp + 0x1060]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x1058
ret 8
Function at 0x40bb2a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40bb3f
mov al, 1
jmp 0x40bc5a
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40bb5b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40bb5f
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x40bbb3
xor edi, edi
test esi, esi
je 0x40bbd4
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x40bb84
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x40bbd0
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x40bb74
jmp 0x40bbd0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x40bc52
cmp byte [ebp + 0x1e], 0
je 0x40bc52
cmp dword [ebp + 0x10], 0
jne 0x40bc52
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x4450c4
push edi
call fcn.00407b1e
test al, al
je 0x40bc45
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x40bb61
cmp dword [esp + 0x10], 0
jbe 0x40bb61
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x436278]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x436278]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x40bb61
push edi
push 0
mov ecx, 0x4450c4
call fcn.00407e45
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40be9c
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0040da0e
test al, al
je 0x40be9c
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004210e9
leave
ret 4
Function at 0x40bed1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040e1dc
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40bf0c
cmp eax, 0x20
je 0x40bf0c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bf3f
push esi
call fcn.0040be3b
test al, al
jne 0x40bf52
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040da0e
test al, al
je 0x40bf52
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bf52
cmp byte [ebp + 0xc], 0
je 0x40bf4e
push dword [ebp + 0x10]
push esi
call fcn.0040c2d5
xor eax, eax
jmp 0x40bf6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40bf6a
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004210e9
leave
ret 0xc

Function at 0x40c09a
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x2014]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x40c116
push ebp
mov ebp, 0x800
lea eax, [esp + 0x1010]
push ebp
push eax
push edi
call fcn.0040da0e
test al, al
je 0x40c115
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040da0e
test al, al
je 0x40c115
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
pop ebp
mov ecx, dword [esp + 0x200c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x2004
ret 8

Function at 0x40c2d5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40c32f
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040da0e
test al, al
je 0x40c32f
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004210e9
leave
ret 8
Function at 0x40c498
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x1264]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x1270]
push eax
cmp esi, ebp
jne 0x40c538
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x40c553
push 0x800
lea eax, [esp + 0x264]
push eax
push ebx
call fcn.0040da0e
test al, al
je 0x40c512
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x40c553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40c52b
cmp eax, 3
je 0x40c52b
cmp eax, 0x12
je 0x40c52b
mov al, 1
jmp 0x40c52d
xor al, al
mov byte [edi + 0x1044], al
jmp 0x40c5fb
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c553
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40c52d
mov ebp, 0x800
push ebp
push ebx
push edi
call fcn.0041267b
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040e26e
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1004], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00413714
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00413714
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00413714
and dword [edi + 0x1040], 0
mov eax, esi
mov ecx, dword [esp + 0x1260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x1254
ret 0xc

Function at 0x40cda9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x4450dc], 0
jne 0x40ce0c
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x40cdfc
jne 0x40cdf8
cmp dword [ebp - 0x74], 0x55f0
jb 0x40cdf8
call fcn.0040ce54
test al, al
je 0x40cdfc
xor al, al
jmp 0x40cdfe
mov al, 1
mov byte [0x4450dd], al
mov byte [0x4450dc], 1
jmp 0x40ce11
mov al, byte [0x4450dd]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004210e9
add ebp, 0x98
leave
ret
Function at 0x40da0e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00421580
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
cmp word [esi], 0
je 0x40dba7
push esi
call fcn.0040dbcf
push esi
call fcn.00426433
pop ecx
push esi
mov ebx, eax
call fcn.0040dbfa
test al, al
je 0x40dae7
push esi
call fcn.0040dbcf
test al, al
je 0x40daa0
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x40dba7
push dword [esp + 0x1020]
push 0x436bf8
push edi
call fcn.0041267b
push dword [esp + 0x1020]
push esi
push edi
call fcn.00412653
mov al, 1
jmp 0x40dba9
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40dba7
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x40dba7
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x40dba7
push esi
push 0x436bf8
push edi
call fcn.0041267b
push esi
push 0x436c04
push edi
call fcn.00412653
push esi
push ebp
jmp 0x40da93
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40dba7
cmp eax, ebp
ja 0x40dba7
movzx eax, word [esi]
push eax
call fcn.0040dcb2
test al, al
je 0x40db4c
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x40dba7
push ebx
push 0x436bf8
push edi
call fcn.0041267b
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00412653
push ebx
jmp 0x40da92
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.0040d51f
lea eax, [esp + 0x10]
push eax
call fcn.00426433
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x40dba7
push ebx
push 0x436bf8
push edi
call fcn.0041267b
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00412653
cmp word [esi], 0x2e
jne 0x40db46
movzx eax, word [esi + 2]
push eax
call fcn.0040dcb2
test al, al
je 0x40db46
add esi, 4
jmp 0x40db46
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x1004
ret 0xc
Function at 0x40e9aa
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc eax
mov cl, bl
cmp esi, eax
jbe 0x40e9c7
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40e9bf
cmp cl, byte [edx]
jne 0x40ea02
push esi
push edx
push 0xffffffffffffffff
call fcn.004069ea
not eax
mov ecx, ebx
cmp dword [ecx + 0x442044], eax
jne 0x40e9e8
cmp dword [ecx + 0x442040], esi
je 0x40e9f3
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40e9d8
jmp 0x40ea02
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x442048]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc

Function at 0x410625
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 + 0x4490f0], cl
inc ecx
cmp ecx, 0x100
jl 0x41062e
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x449df1], al
mov byte [ebp*4 + 0x449df0], al
mov byte [ebp*4 + 0x4499f3], al
mov byte [ebp*4 + 0x4499f0], al
mov byte [ebp*4 + 0x4495f3], al
mov byte [ebp*4 + 0x4495f2], al
mov byte [ebp*4 + 0x4491f2], al
mov byte [ebp*4 + 0x4491f1], al
call fcn.00410ea8
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x449df3], al
mov byte [ebp*4 + 0x4499f2], al
mov byte [ebp*4 + 0x4495f1], al
mov byte [ebp*4 + 0x4491f0], al
call fcn.00410ea8
mov bl, byte [ebp + 0x4490f0]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x449df2], al
mov byte [ebp*4 + 0x4499f1], al
mov byte [ebp*4 + 0x4495f0], al
mov byte [ebp*4 + 0x4491f3], al
call fcn.00410ea8
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x44adf2], al
mov byte [ebp*4 + 0x44a9f1], al
mov byte [ebp*4 + 0x44a5f0], al
mov byte [ebp*4 + 0x44a1f3], al
mov byte [edi*4 + 0x44bdf2], al
mov byte [edi*4 + 0x44b9f1], al
mov byte [edi*4 + 0x44b5f0], al
mov byte [edi*4 + 0x44b1f3], al
call fcn.00410ea8
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x44adf0], al
mov byte [ebp*4 + 0x44a9f3], al
mov byte [ebp*4 + 0x44a5f2], al
mov byte [ebp*4 + 0x44a1f1], al
mov byte [edi*4 + 0x44bdf0], al
mov byte [edi*4 + 0x44b9f3], al
mov byte [edi*4 + 0x44b5f2], al
mov byte [edi*4 + 0x44b1f1], al
call fcn.00410ea8
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x44adf1], al
mov byte [ebp*4 + 0x44a9f0], al
mov byte [ebp*4 + 0x44a5f3], al
mov byte [ebp*4 + 0x44a1f2], al
mov byte [edi*4 + 0x44bdf1], al
mov byte [edi*4 + 0x44b9f0], al
mov byte [edi*4 + 0x44b5f3], al
mov byte [edi*4 + 0x44b1f2], al
call fcn.00410ea8
mov byte [ebp*4 + 0x44adf3], al
mov byte [ebp*4 + 0x44a9f2], al
mov byte [ebp*4 + 0x44a5f1], al
mov byte [ebp*4 + 0x44a1f0], al
inc ebp
mov byte [edi*4 + 0x44bdf3], al
mov byte [edi*4 + 0x44b9f2], al
mov byte [edi*4 + 0x44b5f1], al
mov byte [edi*4 + 0x44b1f0], al
cmp ebp, 0x100
jl 0x410644
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x410e1e
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ecx
mov edx, ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
lea eax, [edx + 0x18]
mov dword [esp + 8], eax
movups xmm2, xmmword [edx + 8]
test esi, esi
je 0x410e9e
mov ecx, dword [esp + 0x10]
mov eax, ecx
add ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
dec ecx
movups xmm1, xmmword [eax]
pxor xmm1, xmm3
test ecx, ecx
jle 0x410e7b
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x410e6b
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x410e8e
pxor xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x410e3a
pop edi
movups xmmword [edx + 8], xmm2
pop esi
pop ecx
ret 0xc

Function at 0x410ed2
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x44277c]
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 0x410f8b
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 + 0x44bdf0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x44b5f0]
xor dl, byte [esi + eax*4 + 0x44b1f0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x44b9f0]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x410f15
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x410f0a
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.00424240
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 0x410f01
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.004210e9
add esp, 0x24
ret