joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x50
mov eax, 0x5765f2
call fcn.00561213
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x570]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ecx
call fcn.005383c0
and dword [ebp - 4], 0
lea edx, [ebx + 0x248]
mov al, byte [ebx + 0x68c]
lea ecx, [ebp - 0x44]
mov byte [edi], al
mov al, byte [ebx + 0x59c]
mov byte [edi + 0x1c], al
mov eax, dword [ebx + 0x330]
mov dword [edi + 0x20], eax
call fcn.00532cea
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0053357c
push eax
lea ecx, [edi + 4]
call fcn.0042cae5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401d3f
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401d84
mov eax, dword [ebx + 0x4c8]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x58c]
mov al, byte [eax + 0x16d]
mov byte [edi + 1], al
mov eax, dword [ebx + 0x15c]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x160]
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx + 0x548]
test ecx, ecx
jle 0x4a0802
imul eax, dword [ebx + 0x54c], 0x64
cdq
idiv ecx
mov dword [edi + 0x44], eax
mov ecx, dword [ebx + 0x680]
push 0xffffffffffffffff
call fcn.004a60f5
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x528]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x534]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x52c]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x520]
mov dword [edi + 0x38], eax
mov ecx, dword [ebx + 0x534]
test ecx, ecx
jle 0x4a084d
imul eax, dword [ebx + 0x524], 0x64
cdq
idiv ecx
mov dword [edi + 0x40], eax
lea eax, [edi + 0x58]
mov ecx, ebx
push eax
call fcn.00495ad3
mov eax, dword [ebx + 0x58c]
lea esi, [edi + 0x8c]
push esi
mov ecx, dword [eax + 0x2d0]
mov eax, dword [eax + 0x2d4]
mov dword [ebp - 0x58], eax
shl ecx, 0xa
mov dword [edi + 0x78], ecx
mov eax, dword [ebx + 0x500]
mov dword [edi + 0x7c], eax
mov eax, dword [ebx + 0x508]
mov dword [edi + 0x80], eax
mov eax, dword [ebx + 0x690]
mov dword [edi + 0x84], eax
mov eax, dword [ebx + 0x198]
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0x19c]
mov dword [edi + 0x34], eax
mov eax, dword [ebx + 0x550]
mov dword [edi + 0x88], eax
mov ecx, dword [ebx + 0x680]
call fcn.004a6308
mov esi, dword [esi]
jmp 0x4a0908
cmp byte [esi + 0x14], 0
je 0x4a0905
movzx eax, byte [esi + 0x15]
cmp eax, 0xffffffff
je 0x4a0905
cmp dword [esi + 0x10], 0
je 0x4a0905
cmp dword [esi + 0x18], 0
jne 0x4a0905
push esi
lea eax, [ebp - 0x50]
lea edi, [ebx + 0x684]
push eax
mov ecx, edi
call fcn.0045a17b
mov eax, dword [ebp - 0x50]
cmp eax, dword [edi]
mov edi, dword [ebp - 0x48]
je 0x4a0905
mov al, byte [eax + 0x14]
mov byte [esi + 0x1d], al
add esi, 0x24
cmp esi, dword [edi + 0x90]
jne 0x4a08c8
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x98], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x9c], eax
mov eax, dword [ebx + 0x20]
test eax, eax
jle 0x4a093d
cdq
push edx
push eax
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call fcn.0055df10
mov dword [edi + 0xa0], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
call fcn.005383d0
call fcn.005611c2
ret 4
Function at 0x4ad3af
Capabilities:
Get disk information

Disassembly:
push 0x418
mov eax, 0x57804e
call fcn.00561213
mov eax, ecx
mov dword [ebp - 0x414], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x418], ebx
cmp dword [ebx + 0x10], edi
jne 0x4ad3dd
xor al, al
jmp 0x4ad4d6
lea esi, [eax + 0xb8]
mov ecx, esi
mov dword [ebp - 0x41c], esi
call fcn.005383c0
mov eax, dword [ebp - 0x414]
mov dword [ebp - 4], edi
cmp dword [eax + 0xd4], 0
jne 0x4ad4a7
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x410], 0
lea edi, [ebp - 0x410]
je 0x4ad4a1
mov esi, dword [ebp - 0x414]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4ad476
movzx eax, byte [0x5cc6d4]
push eax
push edi
push ecx
lea eax, [ebp - 0x424]
push eax
lea ecx, [esi + 0xd0]
call fcn.004adc48
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4ad47b
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], bx
jne 0x4ad44e
mov esi, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x414]
cmp dword [ebx + 0x14], 8
lea ecx, [eax + 0xd0]
mov edi, dword [ecx]
jb 0x4ad4b7
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004ad87c
mov ecx, esi
cmp dword [eax], edi
setne bl
or dword [ebp - 4], 0xffffffff
call fcn.005383d0
mov al, bl
call fcn.005611c2
ret 4

Function at 0x4b0995
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x4b0a11
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x4b0a11
push edi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4b0a10
sub ecx, dword [eax]
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x4b09e9
test edi, edi
jle 0x4b0a10
sub ebx, esi
xor edx, edx
lea eax, [ebx + esi]
div ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov cl, byte [edx + eax]
xor cl, byte [esi]
mov al, cl
shl al, 4
xor al, cl
mov ecx, dword [ebp - 4]
mov byte [esi], al
inc esi
dec edi
jne 0x4b09c6
jmp 0x4b0a10
test edi, edi
jle 0x4b0a10
sub ebx, esi
xor edx, edx
mov cl, byte [esi]
lea eax, [esi + ebx]
shl cl, 4
div dword [ebp - 4]
xor cl, byte [esi]
mov eax, dword [ebp + 0xc]
mov byte [esi], cl
mov eax, dword [eax]
mov al, byte [edx + eax]
xor al, cl
mov byte [esi], al
inc esi
dec edi
jne 0x4b09ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b84b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b84e9
cdq
mov edi, eax
mov esi, edx
mov ecx, edi
mov eax, esi
add ecx, dword [ebp + 0xc]
push esi
adc eax, dword [ebp + 0x10]
sub ecx, 1
push edi
sbb eax, 0
push eax
push ecx
call fcn.0055df10
push esi
push edi
push edx
push eax
call fcn.0055dfc0
jmp 0x4b84ef
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
mov ecx, ebx
call fcn.004b834b
pop ecx
pop ecx
test eax, eax
je 0x4b8505
mov eax, 0x60a
jmp 0x4b851f
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b851d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
jmp 0x4b84fe
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b854b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b857c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b857c
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x4b8590
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b8fcb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5cbb60]
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x4b9008
push eax
push 0x5949b0
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004b6803
add esp, 0x10
jmp 0x4b9081
call fcn.004b815d
mov esi, 0xe6
test eax, eax
je 0x4b9049
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.004b8213
mov edi, eax
test edi, edi
jne 0x4b9064
push 7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.004b82d0
jmp 0x4b902f
push edi
push 0x5949b0
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.004b6803
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x14
mov ecx, str.etilqs_
call fcn.004b7023
lea ecx, [ebp - 0x110]
mov edx, eax
call fcn.004b7023
add edx, 0x11
add eax, edx
mov edx, 0x105
cmp eax, edx
jl 0x4b90ab
xor eax, eax
inc eax
jmp 0x4b9038
lea ecx, [ebp - 0x110]
call fcn.004b7023
test eax, eax
je 0x4b90c4
cmp byte [ecx + eax - 1], 0x5c
jne 0x4b90c4
dec eax
jne 0x4b90ba
cmp eax, edx
jae 0x4b9123
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xf4
call fcn.004b6803
mov ecx, ebx
call fcn.004b7023
mov esi, eax
lea ecx, [ebx + esi]
push ecx
push 0xf
pop edi
push edi
call fcn.004b6a24
add esp, 0x18
movzx eax, byte [ebx + esi]
xor edx, edx
push 0x3e
pop ecx
div ecx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + esi], al
inc esi
dec edi
jne 0x4b9100
mov byte [ebx + esi], 0
xor eax, eax
jmp 0x4b9038
call fcn.0055e473
int3
Function at 0x4b939f
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov ebx, esi
mov dword [ebp - 4], esi
call fcn.004b8f8e
mov edi, eax
test edi, edi
jne 0x4b93c4
push 7
pop eax
jmp 0x4b9454
call fcn.004b815d
test eax, eax
je 0x4b9401
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4b93f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 5
jne 0x4b9439
inc ebx
cmp ebx, 5
jge 0x4b9439
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b93cd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4b9427
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 5
jne 0x4b9437
inc ebx
cmp ebx, 5
jge 0x4b9437
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b9401
xor esi, esi
push edi
call dword [sym.imp.MSVCR120.dll_free]
cmp dword [ebp - 8], 0xffffffff
pop ecx
jne 0x4b944d
cmp dword [ebp - 4], 2
je 0x4b9452
mov esi, 0xa0a
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b95fe
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
mov edi, 0x200
push eax
push 0x104
push edx
push ecx
mov dword [ebp - 0x118], edi
call fcn.004b9530
add esp, 0x10
test eax, eax
jne 0x4b96d8
lea ecx, [ebp - 0x110]
call fcn.004b8f8e
mov esi, eax
test esi, esi
je 0x4b96de
call fcn.004b815d
test eax, eax
mov eax, esi
je 0x4b9698
xor ecx, ecx
cmp word [esi], cx
je 0x4b9679
cmp word [eax], 0x5c
je 0x4b9674
add eax, 2
cmp word [eax], cx
jne 0x4b9664
jmp 0x4b9679
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4b96ca
cmp byte [esi], 0
je 0x4b96ad
cmp byte [eax], 0x5c
je 0x4b96aa
inc eax
cmp byte [eax], 0
jne 0x4b969d
jmp 0x4b96ad
mov byte [eax], 0
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov ebx, eax
call dword [sym.imp.MSVCR120.dll_free]
pop ecx
test ebx, ebx
je 0x4b96de
mov edi, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x4bca94
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
mov edx, dword [ebx + 0x3c]
xor edi, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x4bcad5
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
mov edi, eax
add esp, 0x14
mov dword [ebp - 4], edi
test edi, edi
jne 0x4bcbd5
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x4bcb0c
mov eax, dword [ebx + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.0055dfc0
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
test esi, esi
je 0x4bcbd5
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x14], edi
cmp edi, dword [ebx + 0x18]
ja 0x4bcbc4
test byte [esi + 0x14], 0x20
jne 0x4bcbc4
mov eax, dword [ebx + 0x80]
lea ecx, [edi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.0055dfc0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
cmp edi, 1
jne 0x4bcb53
mov ecx, esi
call fcn.004bc140
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
jne 0x4bcb64
mov eax, dword [esi]
mov dword [ebp - 8], eax
jmp 0x4bcb7b
push 6
push edi
push dword [esi]
push dword [ebx + 0xb0]
call ecx
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x4bcbde
push dword [ebp - 4]
mov ecx, dword [ebx + 0x3c]
mov edx, eax
push dword [ebp - 0x10]
push dword [ebx + 0x80]
call fcn.004b49f1
add esp, 0xc
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x4bcbaf
mov esi, dword [ebp - 8]
lea edi, [ebx + 0x64]
add esi, 0x18
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebx + 0x20]
jbe 0x4bcbb7
mov dword [ebx + 0x20], edi
push dword [esi]
mov ecx, dword [ebx + 0x58]
mov edx, edi
call fcn.004c6fb4
pop ecx
mov edi, dword [ebp - 4]
mov esi, dword [esi + 8]
mov dword [ebp - 0xc], esi
test edi, edi
je 0x4bcb0c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
pop eax
jmp 0x4bcbd7
Function at 0x4d39bc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 4], eax
push esi
push edi
test ebx, ebx
jne 0x4d39d9
xor eax, eax
jmp 0x4d3abb
push 0x50
pop edx
call fcn.004b5672
mov edi, eax
test edi, edi
je 0x4d39d2
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xc]
push esi
call fcn.004d36ef
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi], eax
mov edx, dword [ebx + 8]
push esi
call fcn.004d37f0
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push 0
push esi
call fcn.004d34c9
mov ecx, dword [esp + 0x14]
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push esi
call fcn.004d36ef
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x14]
push 0
push esi
call fcn.004d34c9
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push esi
call fcn.004d36ef
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov edx, dword [ebx + 0x1c]
push esi
call fcn.004d39bc
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push 0
push esi
call fcn.004d34c9
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x28], eax
mov edx, dword [ebx + 0x2c]
push 0
push esi
call fcn.004d34c9
mov dword [edi + 0x2c], eax
xor edx, edx
mov dword [edi + 0x30], edx
mov ecx, 0xfff7
mov dword [edi + 0x34], edx
add esp, 0x10
mov ax, word [ebx + 6]
and ax, cx
mov dword [edi + 0x24], edx
mov word [edi + 6], ax
mov eax, edi
or dword [edi + 0x38], 0xffffffff
or dword [edi + 0x3c], 0xffffffff
or dword [edi + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fcfaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, edi
or eax, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
je 0x4fd105
mov eax, edi
xor esi, esi
and eax, 1
mov dword [ebp - 0xc], esi
or eax, esi
jne 0x4fd007
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x4fcfe4
mov dword [ebp - 0xc], esi
and dword [ebp - 4], 0
xor edx, edx
mov eax, dword [ebp - 8]
xor ecx, ecx
dec eax
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
jne 0x4fd054
mov esi, eax
inc dword [ebp - 4]
xor edx, edx
dec esi
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x4fd02e
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 4]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4fd105
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
and dword [ebp - 0xc], 0
push ecx
push dword [ebp + 0xc]
mov eax, dword [eax + 0x20]
push dword [ebp + 8]
push eax
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4fd107
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
add edi, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 0xc], edi
jge 0x4fd0c5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [ebx + 0x14]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4fd09d
push dword [ebp - 4]
call dword [ebx + 0x10]
mov edi, dword [ebp - 0x18]
pop ecx
test esi, esi
je 0x4fd0dc
cmp esi, 0x65
je 0x4fd0dc
mov eax, esi
jmp 0x4fd107
xor ecx, ecx
cmp esi, 0x65
sete cl
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x4fd105
mov esi, dword [ebp + 0x10]
mov eax, edi
mov edx, dword [ebp - 0x1c]
add dword [esi], ecx
call fcn.00561550
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4feb69
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x2c], ecx
mov edx, dword [ecx + 0x1c]
xor ebx, ebx
push edi
sub edx, 6
xor edi, edi
mov dword [ebp - 0x30], edi
test edx, edx
jle 0x4feb9e
mov ecx, edx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2c]
mov edi, ebx
xor esi, esi
test edx, edx
jle 0x4febf2
push 8
pop eax
mov dword [ebp - 0x28], eax
cmp edi, dword [ecx + 0x1c]
ja 0x4fed13
cmp esi, edx
jge 0x4febde
mov edi, dword [ebp - 0x28]
cmp ebx, 4
jge 0x4febd5
mov eax, dword [ebp + esi*4 - 0x24]
lea ecx, [edi + ebx]
mov edi, dword [ebp - 0x2c]
inc esi
inc ebx
mov dword [edi + ecx*4], eax
mov edi, dword [ebp - 0x28]
cmp esi, edx
jl 0x4febba
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
cmp ebx, 4
jne 0x4febee
inc edi
add eax, ebx
mov dword [ebp - 0x30], edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
cmp esi, edx
jl 0x4febaa
cmp edi, dword [ecx + 0x1c]
ja 0x4fed13
mov esi, 0x5878d0
movzx eax, byte [ebp + edx*4 - 0x27]
mov cl, byte [ebp - 0x24]
xor cl, byte [eax + 0x58aa60]
mov byte [ebp - 0x24], cl
xor ecx, ecx
movzx eax, byte [ebp + edx*4 - 0x26]
inc ecx
mov al, byte [eax + 0x58aa60]
xor byte [ebp - 0x23], al
movzx eax, byte [ebp + edx*4 - 0x25]
mov al, byte [eax + 0x58aa60]
xor byte [ebp - 0x22], al
movzx eax, byte [ebp + edx*4 - 0x28]
mov al, byte [eax + 0x58aa60]
xor byte [ebp - 0x21], al
mov al, byte [esi]
add esi, 4
xor byte [ebp - 0x24], al
mov dword [ebp - 0x34], esi
cmp edx, 8
je 0x4fec61
cmp edx, ecx
jle 0x4fecb4
mov eax, dword [ebp + ecx*4 - 0x28]
xor dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, edx
jl 0x4fec52
jmp 0x4fecb4
mov eax, dword [ebp + ecx*4 - 0x28]
xor dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, 4
jl 0x4fec61
movzx eax, byte [ebp - 0x18]
push 5
pop ecx
mov al, byte [eax + 0x58aa60]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
mov al, byte [eax + 0x58aa60]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
mov al, byte [eax + 0x58aa60]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
mov al, byte [eax + 0x58aa60]
xor byte [ebp - 0x11], al
mov eax, dword [ebp + ecx*4 - 0x28]
xor dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, 8
jl 0x4feca6
xor esi, esi
test edx, edx
jle 0x4fed04
mov eax, dword [ebp - 0x2c]
lea ecx, [edi*4 + 8]
mov dword [ebp - 0x28], ecx
cmp edi, dword [eax + 0x1c]
ja 0x4fed04
cmp esi, edx
jge 0x4fecf0
mov edi, dword [ebp - 0x2c]
cmp ebx, 4
jge 0x4fecea
mov eax, dword [ebp + esi*4 - 0x24]
add ecx, ebx
inc esi
inc ebx
mov dword [edi + ecx*4], eax
mov ecx, dword [ebp - 0x28]
cmp esi, edx
jl 0x4fecd3
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp ebx, 4
jne 0x4fed00
inc edi
add ecx, ebx
mov dword [ebp - 0x30], edi
xor ebx, ebx
mov dword [ebp - 0x28], ecx
cmp esi, edx
jl 0x4fecc7
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
cmp edi, dword [eax + 0x1c]
jbe 0x4fec00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x4fed24
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
inc ebx
cmp dword [edi + 0x1c], ebx
jbe 0x4fee01
push esi
lea esi, [edi + 0x32]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
mov edx, dword [eax*4 + 0x5c43c0]
xor edx, dword [ecx*4 + 0x5c4ef0]
movzx eax, byte [esi]
lea esi, [esi + 0x10]
xor edx, dword [eax*4 + 0x5c3fc0]
movzx eax, byte [esi - 0x12]
xor edx, dword [eax*4 + 0x5c6840]
mov dword [esi - 0x12], edx
movzx eax, byte [esi - 0xb]
movzx ecx, byte [esi - 0xc]
mov edx, dword [eax*4 + 0x5c43c0]
xor edx, dword [ecx*4 + 0x5c3fc0]
movzx eax, byte [esi - 0xd]
xor edx, dword [eax*4 + 0x5c4ef0]
movzx eax, byte [esi - 0xe]
xor edx, dword [eax*4 + 0x5c6840]
mov dword [esi - 0xe], edx
movzx eax, byte [esi - 7]
movzx ecx, byte [esi - 8]
mov edx, dword [eax*4 + 0x5c43c0]
xor edx, dword [ecx*4 + 0x5c3fc0]
movzx eax, byte [esi - 9]
xor edx, dword [eax*4 + 0x5c4ef0]
movzx eax, byte [esi - 0xa]
xor edx, dword [eax*4 + 0x5c6840]
mov dword [esi - 0xa], edx
movzx eax, byte [esi - 3]
movzx ecx, byte [esi - 4]
mov edx, dword [eax*4 + 0x5c43c0]
movzx eax, byte [esi - 5]
xor edx, dword [ecx*4 + 0x5c3fc0]
xor edx, dword [eax*4 + 0x5c4ef0]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x5c6840]
inc ebx
mov dword [esi - 6], edx
cmp ebx, dword [edi + 0x1c]
jb 0x4fed38
pop esi
pop edi
pop ebx
ret