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

Disassembly:
push 0x50
mov eax, 0x578df7
call fcn.005635af
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x570]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ecx
call fcn.0053a750
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.00534e6e
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00535850
push eax
lea ecx, [edi + 4]
call fcn.0042bcde
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401cbf
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401d04
mov eax, dword [ebx + 0x4c8]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x58c]
mov al, byte [eax + 0x161]
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 0x49fb8d
imul eax, dword [ebx + 0x54c], 0x64
cdq
idiv ecx
mov dword [edi + 0x44], eax
mov ecx, dword [ebx + 0x680]
push 0xffffffffffffffff
call fcn.004a54c5
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 0x49fbd8
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.00494c5f
mov eax, dword [ebx + 0x58c]
lea esi, [edi + 0x8c]
push esi
mov ecx, dword [eax + 0x288]
mov eax, dword [eax + 0x28c]
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.004a56d8
mov esi, dword [esi]
jmp 0x49fc93
cmp byte [esi + 0x14], 0
je 0x49fc90
movzx eax, byte [esi + 0x15]
cmp eax, 0xffffffff
je 0x49fc90
cmp dword [esi + 0x10], 0
je 0x49fc90
cmp dword [esi + 0x18], 0
jne 0x49fc90
push esi
lea eax, [ebp - 0x50]
lea edi, [ebx + 0x684]
push eax
mov ecx, edi
call fcn.0045946b
mov eax, dword [ebp - 0x50]
cmp eax, dword [edi]
mov edi, dword [ebp - 0x48]
je 0x49fc90
mov al, byte [eax + 0x14]
mov byte [esi + 0x1d], al
add esi, 0x24
cmp esi, dword [edi + 0x90]
jne 0x49fc53
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 0x49fcc8
cdq
push edx
push eax
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call fcn.00560340
mov dword [edi + 0xa0], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
call fcn.0053a760
call fcn.0056355e
ret 4
Function at 0x4adfe7
Capabilities:
Get disk information

Disassembly:
push 0x418
mov eax, 0x57bc9b
call fcn.005635af
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 0x4ae015
xor al, al
jmp 0x4ae10e
lea esi, [eax + 0xb8]
mov ecx, esi
mov dword [ebp - 0x41c], esi
call fcn.0053a750
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x414]
cmp dword [eax + 0xd4], 0
jne 0x4ae0df
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 0x4ae0d9
mov esi, dword [ebp - 0x414]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4ae0ae
movzx eax, byte [0x5d3694]
push eax
push edi
push ecx
lea eax, [ebp - 0x424]
push eax
lea ecx, [esi + 0xd0]
call fcn.004aeec9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4ae0b3
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], bx
jne 0x4ae086
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 0x4ae0ef
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004ae5cd
cmp dword [eax], edi
setne bl
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0053a760
mov al, bl
call fcn.0056355e
ret 4

Function at 0x4b2656
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 0x4b26d2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x4b26d2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4b26d1
sub ecx, dword [eax]
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x4b26aa
test edi, edi
jle 0x4b26d1
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 0x4b2687
jmp 0x4b26d1
test edi, edi
jle 0x4b26d1
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 0x4b26b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba1f0
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 0x4ba229
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.00560340
push esi
push edi
push edx
push eax
call fcn.005603f0
jmp 0x4ba22f
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
mov ecx, ebx
call fcn.004ba08b
pop ecx
pop ecx
test eax, eax
je 0x4ba245
mov eax, 0x60a
jmp 0x4ba25f
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ba25d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
jmp 0x4ba23e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ba28b
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 0x4ba2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ba2bc
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x4ba2d0
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 0x4bad0b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5d2b20]
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x4bad48
push eax
push 0x59813c
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004b8543
add esp, 0x10
jmp 0x4badc1
call fcn.004b9e9d
mov esi, 0xe6
test eax, eax
je 0x4bad89
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.004b9f53
mov edi, eax
test edi, edi
jne 0x4bada4
push 7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
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.004ba010
jmp 0x4bad6f
push edi
push 0x59813c
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.004b8543
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x14
mov ecx, str.etilqs_
call fcn.004b8d63
lea ecx, [ebp - 0x110]
mov edx, eax
call fcn.004b8d63
add edx, 0x11
add eax, edx
mov edx, 0x105
cmp eax, edx
jl 0x4badeb
xor eax, eax
inc eax
jmp 0x4bad78
lea ecx, [ebp - 0x110]
call fcn.004b8d63
test eax, eax
je 0x4bae04
cmp byte [ecx + eax - 1], 0x5c
jne 0x4bae04
dec eax
jne 0x4badfa
cmp eax, edx
jae 0x4bae63
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xf4
call fcn.004b8543
mov ecx, ebx
call fcn.004b8d63
mov esi, eax
lea ecx, [ebx + esi]
push ecx
push 0xf
pop edi
push edi
call fcn.004b8764
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 0x4bae40
mov byte [ebx + esi], 0
xor eax, eax
jmp 0x4bad78
call fcn.005608a3
int3
Function at 0x4bb0df
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.004bacce
mov edi, eax
test edi, edi
jne 0x4bb104
push 7
pop eax
jmp 0x4bb194
call fcn.004b9e9d
test eax, eax
je 0x4bb141
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 0x4bb131
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 5
jne 0x4bb179
inc ebx
cmp ebx, 5
jge 0x4bb179
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4bb10d
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 0x4bb167
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 5
jne 0x4bb177
inc ebx
cmp ebx, 5
jge 0x4bb177
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4bb141
xor esi, esi
push edi
call dword [sym.imp.MSVCR120.dll_free]
cmp dword [ebp - 8], 0xffffffff
pop ecx
jne 0x4bb18d
cmp dword [ebp - 4], 2
je 0x4bb192
mov esi, 0xa0a
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bb33e
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5ca1c8]
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.004bb270
add esp, 0x10
test eax, eax
jne 0x4bb418
lea ecx, [ebp - 0x110]
call fcn.004bacce
mov esi, eax
test esi, esi
je 0x4bb41e
call fcn.004b9e9d
test eax, eax
mov eax, esi
je 0x4bb3d8
xor ecx, ecx
cmp word [esi], cx
je 0x4bb3b9
cmp word [eax], 0x5c
je 0x4bb3b4
add eax, 2
cmp word [eax], cx
jne 0x4bb3a4
jmp 0x4bb3b9
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 0x4bb40a
cmp byte [esi], 0
je 0x4bb3ed
cmp byte [eax], 0x5c
je 0x4bb3ea
inc eax
cmp byte [eax], 0
jne 0x4bb3dd
jmp 0x4bb3ed
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 0x4bb41e
mov edi, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
Function at 0x4be7d4
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 0x4be815
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 0x4be915
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x4be84c
mov eax, dword [ebx + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.005603f0
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 0x4be915
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x14], edi
cmp edi, dword [ebx + 0x18]
ja 0x4be904
test byte [esi + 0x14], 0x20
jne 0x4be904
mov eax, dword [ebx + 0x80]
lea ecx, [edi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.005603f0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
cmp edi, 1
jne 0x4be893
mov ecx, esi
call fcn.004bde80
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
jne 0x4be8a4
mov eax, dword [esi]
mov dword [ebp - 8], eax
jmp 0x4be8bb
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 0x4be91e
push dword [ebp - 4]
mov ecx, dword [ebx + 0x3c]
mov edx, eax
push dword [ebp - 0x10]
push dword [ebx + 0x80]
call fcn.004b6731
add esp, 0xc
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x4be8ef
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 0x4be8f7
mov dword [ebx + 0x20], edi
push dword [esi]
mov ecx, dword [ebx + 0x58]
mov edx, edi
call fcn.004c8cf4
pop ecx
mov edi, dword [ebp - 4]
mov esi, dword [esi + 8]
mov dword [ebp - 0xc], esi
test edi, edi
je 0x4be84c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
pop eax
jmp 0x4be917
Function at 0x4d56fc
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 0x4d5719
xor eax, eax
jmp 0x4d57fb
push 0x50
pop edx
call fcn.004b73b2
mov edi, eax
test edi, edi
je 0x4d5712
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xc]
push esi
call fcn.004d542f
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi], eax
mov edx, dword [ebx + 8]
push esi
call fcn.004d5530
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push 0
push esi
call fcn.004d5209
mov ecx, dword [esp + 0x14]
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push esi
call fcn.004d542f
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x14]
push 0
push esi
call fcn.004d5209
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push esi
call fcn.004d542f
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.004d56fc
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push 0
push esi
call fcn.004d5209
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x28], eax
mov edx, dword [ebx + 0x2c]
push 0
push esi
call fcn.004d5209
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 0x4fecef
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 0x4fee45
mov eax, edi
xor esi, esi
and eax, 1
mov dword [ebp - 0xc], esi
or eax, esi
jne 0x4fed47
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 0x4fed24
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 0x4fed94
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 0x4fed6e
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 0x4fee45
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 0x4fee47
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 0x4fee05
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 0x4feddd
push dword [ebp - 4]
call dword [ebx + 0x10]
mov edi, dword [ebp - 0x18]
pop ecx
test esi, esi
je 0x4fee1c
cmp esi, 0x65
je 0x4fee1c
mov eax, esi
jmp 0x4fee47
xor ecx, ecx
cmp esi, 0x65
sete cl
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x4fee45
mov esi, dword [ebp + 0x10]
mov eax, edi
mov edx, dword [ebp - 0x1c]
add dword [esi], ecx
call fcn.005638f0
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 0x5008a9
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5ca1c8]
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 0x5008de
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 0x500932
push 8
pop eax
mov dword [ebp - 0x28], eax
cmp edi, dword [ecx + 0x1c]
ja 0x500a53
cmp esi, edx
jge 0x50091e
mov edi, dword [ebp - 0x28]
cmp ebx, 4
jge 0x500915
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 0x5008fa
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
cmp ebx, 4
jne 0x50092e
inc edi
add eax, ebx
mov dword [ebp - 0x30], edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
cmp esi, edx
jl 0x5008ea
cmp edi, dword [ecx + 0x1c]
ja 0x500a53
mov esi, 0x58b080
movzx eax, byte [ebp + edx*4 - 0x27]
mov cl, byte [ebp - 0x24]
xor cl, byte [eax + str.cw]
mov byte [ebp - 0x24], cl
xor ecx, ecx
movzx eax, byte [ebp + edx*4 - 0x26]
inc ecx
mov al, byte [eax + str.cw]
xor byte [ebp - 0x23], al
movzx eax, byte [ebp + edx*4 - 0x25]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x22], al
movzx eax, byte [ebp + edx*4 - 0x28]
mov al, byte [eax + str.cw]
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 0x5009a1
cmp edx, ecx
jle 0x5009f4
mov eax, dword [ebp + ecx*4 - 0x28]
xor dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, edx
jl 0x500992
jmp 0x5009f4
mov eax, dword [ebp + ecx*4 - 0x28]
xor dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, 4
jl 0x5009a1
movzx eax, byte [ebp - 0x18]
push 5
pop ecx
mov al, byte [eax + str.cw]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
mov al, byte [eax + str.cw]
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 0x5009e6
xor esi, esi
test edx, edx
jle 0x500a44
mov eax, dword [ebp - 0x2c]
lea ecx, [edi*4 + 8]
mov dword [ebp - 0x28], ecx
cmp edi, dword [eax + 0x1c]
ja 0x500a44
cmp esi, edx
jge 0x500a30
mov edi, dword [ebp - 0x2c]
cmp ebx, 4
jge 0x500a2a
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 0x500a13
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp ebx, 4
jne 0x500a40
inc edi
add ecx, ebx
mov dword [ebp - 0x30], edi
xor ebx, ebx
mov dword [ebp - 0x28], ecx
cmp esi, edx
jl 0x500a07
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
cmp edi, dword [eax + 0x1c]
jbe 0x500940
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
Function at 0x500a64
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
inc ebx
cmp dword [edi + 0x1c], ebx
jbe 0x500b41
push esi
lea esi, [edi + 0x32]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
mov edx, dword [eax*4 + 0x5cb3c0]
xor edx, dword [ecx*4 + 0x5cc2f0]
movzx eax, byte [esi]
lea esi, [esi + 0x10]
xor edx, dword [eax*4 + 0x5cafc0]
movzx eax, byte [esi - 0x12]
xor edx, dword [eax*4 + 0x5cd840]
mov dword [esi - 0x12], edx
movzx eax, byte [esi - 0xb]
movzx ecx, byte [esi - 0xc]
mov edx, dword [eax*4 + 0x5cb3c0]
xor edx, dword [ecx*4 + 0x5cafc0]
movzx eax, byte [esi - 0xd]
xor edx, dword [eax*4 + 0x5cc2f0]
movzx eax, byte [esi - 0xe]
xor edx, dword [eax*4 + 0x5cd840]
mov dword [esi - 0xe], edx
movzx eax, byte [esi - 7]
movzx ecx, byte [esi - 8]
mov edx, dword [eax*4 + 0x5cb3c0]
xor edx, dword [ecx*4 + 0x5cafc0]
movzx eax, byte [esi - 9]
xor edx, dword [eax*4 + 0x5cc2f0]
movzx eax, byte [esi - 0xa]
xor edx, dword [eax*4 + 0x5cd840]
mov dword [esi - 0xa], edx
movzx eax, byte [esi - 3]
movzx ecx, byte [esi - 4]
mov edx, dword [eax*4 + 0x5cb3c0]
movzx eax, byte [esi - 5]
xor edx, dword [ecx*4 + 0x5cafc0]
xor edx, dword [eax*4 + 0x5cc2f0]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x5cd840]
inc ebx
mov dword [esi - 6], edx
cmp ebx, dword [edi + 0x1c]
jb 0x500a78
pop esi
pop edi
pop ebx
ret