joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409118
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40913b
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40914c
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40915b
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x409165
xor eax, eax
jmp 0x40916a
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040f820
test eax, eax
je 0x409197
test esi, esi
je 0x409197
cmp word [esi], 0
je 0x409197
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x4091ae
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4091c7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4091c7
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x409235
mov dword [ebx + 4], edi
test esi, esi
je 0x4091fc
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040f928
jmp 0x409205
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40921c
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.0048d8e8
add esp, 8
jmp 0x40922b
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040f874
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040934c
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4094e4
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40969c
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40951f
dec eax
je 0x409509
dec eax
je 0x409515
jmp 0x40951f
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40951f
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x409571
xor ebp, ebp
cmp esi, ebp
jle 0x40958d
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x409544
mov ecx, esi
sub ecx, ebp
jmp 0x409549
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40958d
add ebp, 0x4000
cmp esi, ebp
jg 0x40952b
jmp 0x40958d
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x409698
cmp byte [edi + 0x14], 0
je 0x409698
cmp dword [edi + 0xc], 0
jne 0x409698
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.004098c0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.00409fa4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x4095e6
cmp eax, dword [esp + 0x10]
jae 0x409632
jmp 0x4095e8
jge 0x409632
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x40960a
cmp eax, 0xffffffff
ja 0x409632
jmp 0x40960c
jg 0x409632
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x409623
cmp eax, 0xffffffff
jbe 0x409632
jmp 0x409625
jle 0x409632
lea edx, [edi + 0x17]
mov eax, 0x4a69f4
call fcn.00429554
lea edx, [edi + 0x17]
mov eax, 0x4a69f4
call fcn.00429588
test al, al
je 0x409682
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40951f
cmp dword [esp + 4], 0
jbe 0x40951f
mov eax, edi
call fcn.004098c0
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00409808
jmp 0x40951f
lea ecx, [edi + 0x17]
mov eax, 0x4a69f4
xor edx, edx
call fcn.0042953c
jmp 0x409698
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409788
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x4097af
cmp esi, 0x4e20
jle 0x4097a5
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x409800
mov eax, ebx
call fcn.00409b2c
test al, al
je 0x4097e7
cmp esi, 0x4e20
jle 0x4097e7
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00409788
jmp 0x409803
cmp dword [ebx + 0xc], 1
jne 0x4097fb
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x4097fb
xor eax, eax
jmp 0x409803
or eax, 0xffffffff
jmp 0x409803
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409c34
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.0040f820
test eax, eax
je 0x409c5a
test ebx, ebx
je 0x409c5a
cmp word [ebx], 0
je 0x409c5a
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x409c62
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x409c75
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040a528
xor eax, eax
jmp 0x409c90
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x409c84
cmp eax, 3
jne 0x409c8b
mov eax, 2
jmp 0x409c90
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x409f68
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.0040bfc4
cmp byte [esp], 0
je 0x409f7f
mov eax, esp
jmp 0x409f81
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x409f95
cmp eax, 5
je 0x409f95
xor edx, edx
jmp 0x409f9a
mov edx, 1
mov eax, edx
add esp, 0x400
ret
Function at 0x409fa4
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040bfc4
cmp dword [0x498d7c], 0
jne 0x409fe2
push 0x498d80
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x409fe2
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x498d7c], eax
cmp dword [0x498d7c], 0
je 0x40a051
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040baa8
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x40a01c
lea edx, [esp + 0x3c]
jmp 0x40a01e
xor edx, edx
push edx
call dword [0x498d7c]
test eax, eax
je 0x40a051
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x40a051
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40a0be
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x40a072
lea eax, [esp + 0x40]
jmp 0x40a074
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x40a087
mov eax, 0x163e00
xor edx, edx
jmp 0x40a0be
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00491e60
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040f820
test eax, eax
je 0x40a0f3
test ebx, ebx
je 0x40a0f3
cmp word [ebx], 0
je 0x40a0f3
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x40a4fc
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040f820
test eax, eax
je 0x40a51e
test ebx, ebx
je 0x40a51e
cmp word [ebx], 0
je 0x40a51e
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40a528
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.0040f820
test eax, eax
je 0x40a555
test ebx, ebx
je 0x40a555
cmp word [ebx], 0
je 0x40a555
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40a564
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x40a6ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b0
push ebx
push esi
push edi
mov edi, eax
mov eax, 0x498e90
call fcn.0048dd88
mov word [ebp - 0x30], 8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040e520
inc dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x30], 0x14
mov word [ebp - 0x30], 0x20
mov edx, 0x10000
call fcn.0040289c
inc dword [ebp - 0x24]
or esi, 0xffffffff
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
cmp dword [0x4b989c], 0
je 0x40a735
lea eax, [ebp - 0x250]
call fcn.00477a1c
push pe_nt_image_headers32
lea edx, [ebp - 0x450]
push edx
push dword [0x4b989c]
call sub.USER32.DLL_GetWindowTextA
mov eax, edi
call fcn.00409ac0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push 0
push 0
xor edx, edx
mov eax, edi
call fcn.00409808
jmp 0x40a7f2
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
and eax, 0xf
xor edx, edx
cmp edx, 0
jne 0x40a7cc
cmp eax, 0
jne 0x40a7cc
cmp dword [0x4b989c], 0
je 0x40a7c7
push 0
push 0x10000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.00491e60
push edx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0040e400
push eax
mov eax, 0x51e
call fcn.004116e8
push eax
lea edx, [ebp - 0x650]
push edx
call fcn.004908b8
add esp, 0xc
lea eax, [ebp - 0x650]
call fcn.00477a2c
call fcn.00476f7c
call fcn.0040f350
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040fe60
cmp dword [ebp + 0xc], 0x80000000
mov esi, eax
jne 0x40a7e7
cmp dword [ebp + 8], 0
je 0x40a7f2
mov eax, ebx
cdq
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x80000000
jne 0x40a808
cmp dword [ebp + 8], 0
jne 0x40a808
mov ecx, 0x10000
jmp 0x40a827
cmp dword [ebp + 0xc], 0
jne 0x40a819
cmp dword [ebp + 8], 0x10000
jbe 0x40a822
jmp 0x40a81b
jle 0x40a822
mov ecx, 0x10000
jmp 0x40a827
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.004096a4
mov ebx, eax
test eax, eax
jne 0x40a754
cmp dword [0x4b989c], 0
je 0x40a85f
lea eax, [ebp - 0x250]
call fcn.00477a2c
lea eax, [ebp - 0x450]
call fcn.004779f4
call fcn.00476f7c
mov eax, esi
mov edx, 2
xor eax, 0xffffffff
push eax
lea eax, [ebp - 0x1c]
dec dword [ebp - 0x24]
call fcn.0040177c
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040e58c
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b124
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40b12d
mov eax, dword [ebp - 4]
add esp, 0xfffffb0c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x20f8]
mov eax, 0x498fb4
call fcn.0048dd88
lea eax, [ebp - 0x10e4]
call fcn.00412dfc
lea eax, [ebp - 0x10b8]
call fcn.00412dfc
lea eax, [ebp - 0x108c]
call fcn.00412dfc
push 0
lea ecx, [ebp - 0x1cf8]
mov edx, ebx
mov eax, esi
call fcn.00411f14
test al, al
jne 0x40b1a1
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b356
cmp byte [ebp - 0x1cf8], 0
je 0x40b1b3
cmp byte [ebp - 0x1060], 0
jne 0x40b1c7
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b356
lea eax, [ebp - 0x1cf8]
call fcn.0040b578
lea edx, [ebp - 0x1060]
call fcn.0040e624
test eax, eax
je 0x40b1f7
mov eax, esi
call fcn.0040b578
lea edx, [ebp - 0x1060]
call fcn.0040e624
test eax, eax
je 0x40b20b
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b356
xor ebx, ebx
push 0x400
push esi
push edi
call fcn.0048db38
add esp, 0xc
push ebx
push str.rtmp_d
mov eax, edi
call fcn.0040b578
push eax
call fcn.004908b8
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.0040a0c8
test al, al
je 0x40b24a
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40b20d
mov eax, edi
xor edx, edx
call fcn.0040a0c8
test al, al
je 0x40b26b
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b356
push 0x400
push esi
lea ecx, [ebp - 0x24f8]
push ecx
call fcn.0048db38
add esp, 0xc
lea eax, [ebp - 0x1cf8]
call fcn.0040b578
push eax
lea eax, [ebp - 0x24f8]
call fcn.0040b578
push eax
call fcn.0048d8e8
add esp, 8
push edi
lea edx, [ebp - 0x24f8]
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40b2c5
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40b356
mov word [ebp - 0xc34], 8
lea eax, [ebp - 0xc20]
call fcn.00409020
inc dword [ebp - 0xc28]
mov word [ebp - 0xc34], 0x14
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.0040a0c8
test al, al
jne 0x40b308
lea eax, [ebp - 0xc20]
xor ecx, ecx
mov edx, esi
call fcn.00409298
mov ebx, eax
lea eax, [ebp - 0x24f8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40b32f
lea eax, [ebp - 0xc20]
call fcn.004093cc
lea eax, [ebp - 0xc20]
call fcn.00409460
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.004090d0
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f350
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x499890], 0
jne 0x40f369
call fcn.00495d7c
mov dword [0x49988c], eax
inc byte [0x499890]
call fcn.00495d7c
sub eax, dword [0x49988c]
cmp eax, 0x64
jle 0x40f3a5
cmp dword [0x4bc224], 0
je 0x40f3a0
mov eax, 0x4a69f4
mov edx, 0xff
call fcn.004297b0
mov eax, 0x4a69f4
mov edx, 0xff
call fcn.00429798
call fcn.004442e0
mov eax, dword [0x499888]
test eax, eax
je 0x40f3b4
push eax
call sub.KERNEL32.DLL_Sleep
ret
Function at 0x40f7c4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x40f810
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0x80000000
push 0xd
call sub.USER32.DLL_ExitWindowsEx
add esp, 0x14
ret

Function at 0x40fe60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x4a8944
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x40fe7a
call fcn.0040fe28
mov eax, ebp
jmp 0x40fe92
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x40fe9a
test al, 7
jne 0x40fe7e
cmp esi, 8
jb 0x40ff23
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40fea3
xor edx, edx
jmp 0x40ff3d
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40ff27
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x410010
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov edx, dword [esp]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
xor edx, dword [eax + 0x204]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [eax + 0x208]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
mov esi, dword [edx + 0xc]
xor ebx, dword [eax + 0x20c]
xor esi, dword [eax + 0x210]
xor edx, edx
mov ecx, esi
mov edi, esi
shr edi, 0x15
shl ecx, 0xb
or ecx, edi
mov edi, edx
and edi, 3
add ecx, ebx
xor ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
mov ecx, ebx
xor edi, dword [esp + 4]
mov dword [esp + 0xc], edi
mov edi, ebx
shr edi, 0xf
shl ecx, 0x11
or ecx, edi
mov edi, edx
and edi, 3
xor ecx, esi
add ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
xor edi, dword [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov ecx, edi
mov esi, ecx
mov ebx, dword [esp + 0xc]
inc edx
cmp edx, 0x20
jl 0x41005e
mov edx, dword [esp + 0x10]
xor ebx, dword [eax + 0x204]
mov dword [edx], ebx
xor esi, dword [eax + 0x208]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x20c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x210]
mov dword [ecx + 0xc], edx
mov edx, dword [esp]
call fcn.0041035c
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4101b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
xor ecx, dword [ebx + 0x204]
mov dword [esp], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
xor ecx, dword [ebx + 0x208]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x20c]
mov edi, dword [eax + 0xc]
xor edi, dword [ebx + 0x210]
push 0x10
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0048d6f8
add esp, 0xc
mov edx, 0x1f
mov eax, edi
mov ecx, edi
shr ecx, 0x15
shl eax, 0xb
or eax, ecx
mov ecx, edx
and ecx, 3
add eax, esi
xor eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
mov eax, esi
xor ecx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, esi
shr ecx, 0xf
shl eax, 0x11
or eax, ecx
mov ecx, edx
and ecx, 3
xor eax, edi
add eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
xor ecx, dword [esp + 4]
mov dword [esp], esi
mov dword [esp + 4], edi
mov eax, ecx
mov edi, eax
mov esi, dword [esp + 8]
dec edx
test edx, edx
jge 0x41020c
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x204]
mov dword [eax], esi
xor edi, dword [ebx + 0x208]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], edi
mov ecx, dword [esp]
mov eax, dword [esp + 0xc]
xor ecx, dword [ebx + 0x20c]
mov dword [eax + 8], ecx
mov eax, ebx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor edx, dword [ebx + 0x210]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0x10]
call fcn.0041035c
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41035c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, 0x4a8944
xor ecx, ecx
movzx esi, byte [edx + ecx]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x204], esi
movzx esi, byte [edx + ecx + 1]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x208], esi
movzx esi, byte [edx + ecx + 2]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x20c], esi
movzx esi, byte [edx + ecx + 3]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x210], esi
add ecx, 4
cmp ecx, 0x10
jl 0x410365
pop esi
pop ebx
ret
Function at 0x415b3c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffff70
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 8], edx
mov esi, dword [esp + 8]
jmp 0x415bb9
xor eax, eax
mov edx, dword [esp]
add edx, esi
add edx, eax
mov cl, byte [edx + 1]
mov byte [esp + eax + 0x19], cl
mov bl, byte [edx]
sub bl, cl
mov byte [esp + eax + 0x18], bl
mov dl, byte [edx + 2]
sub dl, cl
mov byte [esp + eax + 0x1a], dl
add eax, 3
cmp eax, 0x78
jl 0x415b67
mov ebx, 3
mov cl, byte [esp + ebx + 0x18]
sub cl, byte [esp + ebx + 0x15]
movsx ecx, cl
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 8]
add dword [esp + edx*4 + 0xc], eax
inc ebx
cmp ebx, 0x78
jl 0x415b93
add esi, 0x780
mov eax, dword [esp + 4]
add eax, 0xffffff88
cmp esi, eax
jl 0x415b65
inc dword [esp + 8]
cmp dword [esp + 8], 2
jle 0x415b5f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp edx, eax
jb 0x415be5
cmp eax, dword [esp + 0x14]
ja 0x415be5
xor eax, eax
jmp 0x415bf7
cmp edx, dword [esp + 0x14]
ja 0x415bf2
mov eax, 1
jmp 0x415bf7
mov eax, 2
add esp, 0x90
pop esi
pop ebx
ret