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

Disassembly:
sub esp, 0x19c
mov eax, dword [0x443620]
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 0x407484
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.00423ab0
add esp, 0xc
cmp esi, 0x44
jae 0x407657
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x407657
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x407657
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.004071e1
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00423ab0
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 0x4075db
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.004071e1
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00423ab0
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x4075bf
sub edi, 1
jne 0x40756f
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x100]
call fcn.00423ab0
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x407560
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.004111aa
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.004111aa
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.004111aa
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.004111aa
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420983
add esp, 0x19c
ret 0x20
call fcn.00420c83
int3
Function at 0x40abec
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ec0
mov eax, dword fs:[0]
push eax
mov eax, 0x5048
call fcn.00420e10
mov eax, dword [0x443620]
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 0x40add1
cmp eax, ebx
jae 0x40add1
push ebx
lea eax, [ebp - 0x4010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40add1
cmp eax, ebx
jae 0x40add1
lea eax, [ebp - 0x3010]
push eax
call fcn.0040df71
mov dword [ebp - 0x5054], eax
lea eax, [ebp - 0x4010]
push eax
call fcn.0040df71
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x40add1
push edi
push dword [ebp - 0x5054]
call fcn.00413eb3
test eax, eax
je 0x40add1
push edi
push esi
call fcn.0040df71
push eax
call fcn.00413eb3
test eax, eax
jne 0x40add1
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x40ad2e
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.004123db
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040df71
push eax
call fcn.004049f0
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040bbbb
test al, al
je 0x40ad13
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x40ad1a
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x40acc1
test ax, ax
je 0x40add1
mov edi, 0x800
lea eax, [ebp - 0x2010]
push edi
push esi
push eax
call fcn.004123db
push edi
push dword [ebp - 0x5054]
lea eax, [ebp - 0x2010]
push eax
call fcn.0040dfe7
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40add1
lea ecx, [ebp - 0x5050]
call fcn.0040adef
push esi
mov dword [ebp - 4], ebx
call fcn.0040bbbb
test al, al
jne 0x40ad94
push 0x12
push esi
lea ecx, [ebp - 0x5050]
call fcn.0040af0e
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 0x40adc2
lea ecx, [ebp - 0x5050]
call fcn.0040aec0
lea ecx, [ebp - 0x5050]
call fcn.0040b00a
lea ecx, [ebp - 0x5050]
call fcn.0040ae33
mov al, 1
jmp 0x40add3
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.00420983
leave
ret 4
Function at 0x40b1a0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1058
call fcn.00420e10
mov eax, dword [0x443620]
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 0x40b1e5
test bl, 4
jne 0x40b1e5
xor al, al
jmp 0x40b1e7
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 0x40b200
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40b20f
or ebx, 2
lea ecx, [esp + 0x1c]
call fcn.00407cdd
cmp byte [edi + 0x24], 0
je 0x40b224
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 0x40b28b
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.0040d787
test al, al
je 0x40b298
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 0x40b293
mov dword [esp + 0x14], eax
jmp 0x40b293
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x40b2a9
cmp dword [esp + 0x14], 2
jne 0x40b2a9
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x40b2cf
cmp ebp, 0xffffffff
je 0x40b2cf
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 0x40b2fb
push 0x800
push dword [esp + 0x10]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.004123db
mov byte [edi + 0x25], 0
mov ecx, dword [esp + 0x1060]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420983
add esp, 0x1058
ret 8
Function at 0x40b8aa
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 0x40b8bf
mov al, 1
jmp 0x40b9da
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40b8db
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40b8df
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x40b933
xor edi, edi
test esi, esi
je 0x40b954
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x40b904
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 0x40b950
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x40b8f4
jmp 0x40b950
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 0x40b9d2
cmp byte [ebp + 0x1e], 0
je 0x40b9d2
cmp dword [ebp + 0x10], 0
jne 0x40b9d2
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x446054
push edi
call fcn.0040790e
test al, al
je 0x40b9c5
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x40b8e1
cmp dword [esp + 0x10], 0
jbe 0x40b8e1
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43826c]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43826c]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x40b8e1
push edi
push 0
mov ecx, 0x446054
call fcn.00407c35
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00420e10
mov eax, dword [0x443620]
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 0x40bc1c
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0040d787
test al, al
je 0x40bc1c
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.00420983
leave
ret 4
Function at 0x40bc51
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00420e10
mov eax, dword [0x443620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040df55
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40bc8c
cmp eax, 0x20
je 0x40bc8c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bcbf
push esi
call fcn.0040bbbb
test al, al
jne 0x40bcd2
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040d787
test al, al
je 0x40bcd2
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bcd2
cmp byte [ebp + 0xc], 0
je 0x40bcce
push dword [ebp + 0x10]
push esi
call fcn.0040c055
xor eax, eax
jmp 0x40bcea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40bcea
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420983
leave
ret 0xc

Function at 0x40be1a
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.00420e10
mov eax, dword [0x443620]
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 0x40be96
push ebp
mov ebp, 0x800
lea eax, [esp + 0x1010]
push ebp
push eax
push edi
call fcn.0040d787
test al, al
je 0x40be95
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040d787
test al, al
je 0x40be95
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.00420983
add esp, 0x2004
ret 8

Function at 0x40c055
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00420e10
mov eax, dword [0x443620]
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 0x40c0af
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040d787
test al, al
je 0x40c0af
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.00420983
leave
ret 8
Function at 0x40c218
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00420e10
mov eax, dword [0x443620]
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 0x40c2b8
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x40c2d3
push 0x800
lea eax, [esp + 0x264]
push eax
push ebx
call fcn.0040d787
test al, al
je 0x40c292
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 0x40c2d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40c2ab
cmp eax, 3
je 0x40c2ab
cmp eax, 0x12
je 0x40c2ab
mov al, 1
jmp 0x40c2ad
xor al, al
mov byte [edi + 0x1044], al
jmp 0x40c37b
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c2d3
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40c2ad
mov ebp, 0x800
push ebp
push ebx
push edi
call fcn.004123db
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040dfe7
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.00413474
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00413474
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00413474
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.00420983
add esp, 0x1254
ret 0xc

Function at 0x40cb29
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x443620]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44606c], 0
jne 0x40cb8c
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x40cb7c
jne 0x40cb78
cmp dword [ebp - 0x74], 0x55f0
jb 0x40cb78
call fcn.0040cbcd
test al, al
je 0x40cb7c
xor al, al
jmp 0x40cb7e
mov al, 1
mov byte [0x44606d], al
mov byte [0x44606c], 1
jmp 0x40cb91
mov al, byte [0x44606d]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00420983
add ebp, 0x98
leave
ret
Function at 0x40d787
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00420e10
mov eax, dword [0x443620]
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 0x40d920
push esi
call fcn.0040d948
push esi
call fcn.00425dc5
pop ecx
push esi
mov ebx, eax
call fcn.0040d973
test al, al
je 0x40d860
push esi
call fcn.0040d948
test al, al
je 0x40d819
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x40d920
push dword [esp + 0x1020]
push 0x438c08
push edi
call fcn.004123db
push dword [esp + 0x1020]
push esi
push edi
call fcn.004123b3
mov al, 1
jmp 0x40d922
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40d920
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x40d920
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x40d920
push esi
push 0x438c08
push edi
call fcn.004123db
push esi
push 0x438c14
push edi
call fcn.004123b3
push esi
push ebp
jmp 0x40d80c
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40d920
cmp eax, ebp
ja 0x40d920
movzx eax, word [esi]
push eax
call fcn.0040da2b
test al, al
je 0x40d8c5
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x40d920
push ebx
push 0x438c08
push edi
call fcn.004123db
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.004123b3
push ebx
jmp 0x40d80b
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.0040d298
lea eax, [esp + 0x10]
push eax
call fcn.00425dc5
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x40d920
push ebx
push 0x438c08
push edi
call fcn.004123db
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004123b3
cmp word [esi], 0x2e
jne 0x40d8bf
movzx eax, word [esi + 2]
push eax
call fcn.0040da2b
test al, al
je 0x40d8bf
add esi, 4
jmp 0x40d8bf
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420983
add esp, 0x1004
ret 0xc
Function at 0x40e723
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 0x40e740
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40e738
cmp cl, byte [edx]
jne 0x40e77b
push esi
push edx
push 0xffffffffffffffff
call fcn.004067da
not eax
mov ecx, ebx
cmp dword [ecx + 0x443044], eax
jne 0x40e761
cmp dword [ecx + 0x443040], esi
je 0x40e76c
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40e751
jmp 0x40e77b
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x443048]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc

Function at 0x410385
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 + 0x44a080], cl
inc ecx
cmp ecx, 0x100
jl 0x41038e
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x44ad81], al
mov byte [ebp*4 + 0x44ad80], al
mov byte [ebp*4 + 0x44a983], al
mov byte [ebp*4 + 0x44a980], al
mov byte [ebp*4 + 0x44a583], al
mov byte [ebp*4 + 0x44a582], al
mov byte [ebp*4 + 0x44a182], al
mov byte [ebp*4 + 0x44a181], al
call fcn.00410c08
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x44ad83], al
mov byte [ebp*4 + 0x44a982], al
mov byte [ebp*4 + 0x44a581], al
mov byte [ebp*4 + 0x44a180], al
call fcn.00410c08
mov bl, byte [ebp + 0x44a080]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x44ad82], al
mov byte [ebp*4 + 0x44a981], al
mov byte [ebp*4 + 0x44a580], al
mov byte [ebp*4 + 0x44a183], al
call fcn.00410c08
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x44bd82], al
mov byte [ebp*4 + 0x44b981], al
mov byte [ebp*4 + 0x44b580], al
mov byte [ebp*4 + 0x44b183], al
mov byte [edi*4 + 0x44cd82], al
mov byte [edi*4 + 0x44c981], al
mov byte [edi*4 + 0x44c580], al
mov byte [edi*4 + 0x44c183], al
call fcn.00410c08
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x44bd80], al
mov byte [ebp*4 + 0x44b983], al
mov byte [ebp*4 + 0x44b582], al
mov byte [ebp*4 + 0x44b181], al
mov byte [edi*4 + 0x44cd80], al
mov byte [edi*4 + 0x44c983], al
mov byte [edi*4 + 0x44c582], al
mov byte [edi*4 + 0x44c181], al
call fcn.00410c08
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x44bd81], al
mov byte [ebp*4 + 0x44b980], al
mov byte [ebp*4 + 0x44b583], al
mov byte [ebp*4 + 0x44b182], al
mov byte [edi*4 + 0x44cd81], al
mov byte [edi*4 + 0x44c980], al
mov byte [edi*4 + 0x44c583], al
mov byte [edi*4 + 0x44c182], al
call fcn.00410c08
mov byte [ebp*4 + 0x44bd83], al
mov byte [ebp*4 + 0x44b982], al
mov byte [ebp*4 + 0x44b581], al
mov byte [ebp*4 + 0x44b180], al
inc ebp
mov byte [edi*4 + 0x44cd83], al
mov byte [edi*4 + 0x44c982], al
mov byte [edi*4 + 0x44c581], al
mov byte [edi*4 + 0x44c180], al
cmp ebp, 0x100
jl 0x4103a4
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x410b7e
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 0x410bfe
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 0x410bdb
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 0x410bcb
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x410bee
pxor xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x410b9a
pop edi
movups xmmword [edx + 8], xmm2
pop esi
pop ecx
ret 0xc

Function at 0x410c32
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x443620]
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 0x410ceb
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 + 0x44cd80]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x44c580]
xor dl, byte [esi + eax*4 + 0x44c180]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x44c980]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x410c75
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x410c6a
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.00423ab0
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 0x410c61
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.00420983
add esp, 0x24
ret