joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcce0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bce62
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.004bc9c0
mov eax, ebx
call fcn.00422834
dec al
je 0x4bcd24
dec al
je 0x4bcd2a
jmp 0x4bcd30
mov byte [ebp - 0x77], 2
jmp 0x4bcd34
mov byte [ebp - 0x77], 1
jmp 0x4bcd34
mov byte [ebp - 0x77], 0
mov eax, dword [ebp - 0x8c]
or eax, 0x80000000
or eax, 1
or eax, 2
or eax, 4
or eax, 8
or eax, 0x20000000
or eax, 0x40000000
mov dword [ebp - 0x8c], eax
mov eax, ebx
call fcn.00422790
shl eax, 2
lea eax, [eax + eax*4]
mov dword [ebp - 0x84], eax
mov eax, ebx
call fcn.004227ec
test al, 1
je 0x4bcd80
or dword [ebp - 0x88], 1
mov eax, ebx
call fcn.004227ec
test al, 2
je 0x4bcd92
or dword [ebp - 0x88], 2
mov eax, ebx
call fcn.004227ec
test al, 4
je 0x4bcda4
or dword [ebp - 0x88], 4
mov eax, ebx
call fcn.004227ec
test al, 8
je 0x4bcdb6
or dword [ebp - 0x88], 8
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.00422708
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x76]
mov ecx, 0x20
call fcn.0040b2a8
mov edi, dword [ebx + 0x18]
cmp edi, 0x80000008
je 0x4bcde9
cmp edi, 0x20000000
jne 0x4bcdf5
mov dword [ebp - 0x88], 0x40000000
jmp 0x4bcdff
mov eax, edi
call fcn.00421e44
mov dword [ebp - 0x7c], eax
or dword [ebp - 0x8c], 0x8000000
mov eax, ebx
call fcn.0042287c
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x3c]
push eax
push 0x3c
mov eax, ebx
call fcn.004224e8
push eax
call sub.gdi32.dll_GetObjectA
test eax, eax
je 0x4bce3c
or dword [ebp - 0x8c], 0x400000
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x56], ax
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.004bca2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bce69
lea eax, [ebp - 0x94]
call fcn.00404894
ret

Function at 0x4c2398
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffb8
mov esi, ecx
lea edi, [esp]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov cl, 0x47
mov eax, esp
mov ebx, edx
shr ebx, 8
and ebx, 0xffffff
movzx esi, byte [eax]
xor edx, esi
and edx, 0xff
mov edx, dword [edx*4 + 0x5644ac]
xor ebx, edx
mov edx, ebx
inc eax
dec cl
jne 0x4c23b1
mov eax, edx
add esp, 0x48
pop edi
pop esi
pop ebx
ret
Function at 0x4c4944
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c4a49
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebx + 0x3c]
lea eax, [ebp - 0xc]
call fcn.0040347c
mov edx, 0x4c4a58
lea eax, [ebp - 0xc]
mov cl, 3
call fcn.0040344c
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
mov cl, 3
call fcn.00403498
lea eax, [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00404ae0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 7]
call fcn.0040b274
lea eax, [ebp - 7]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x4c49b3
jmp dword [eax*4 + 0x4c49ba]
mov edi, esi
mov esi, 0x4c4a5c
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
jmp case.default.0x4c49b3
mov edi, esi
mov esi, 0x4c4a70
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x4c49b3
mov edi, esi
mov esi, 0x4c4a90
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x4c49b3
mov edi, esi
mov esi, 0x4c4a9c
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x4c49b3
mov edi, esi
mov esi, 0x4c4aa4
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp case.default.0x4c49b3
mov edi, esi
mov esi, 0x4c4aac
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x4c49b3
mov edi, esi
mov esi, 0x4c4ab4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4a50
lea eax, [ebp - 0x10]
call fcn.00404894
ret
Function at 0x4c4cf4
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x4c4d90
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x5649c0]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
push dword [edx + 0x5649c0]
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
push dword [edx + 0x5649c0]
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x5649c0]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x4c4d13
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4c4da6
dec edx
je 0x4c4ddb
jmp 0x4c4e2c
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x5649c0]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x5649c0]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x4c4e2c
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x5649c0]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x5649c0]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x5649c0]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c4e8c
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4c4eab
add edx, 3
sar edx, 2
test edx, edx
jle 0x4c4fb8
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4c4ee1
je 0x4c4f21
sub ecx, 0x2b
je 0x4c4f17
sub ecx, 4
je 0x4c4f1c
dec ecx
sub ecx, 0xa
jb 0x4c4f0a
jmp 0x4c4f24
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4c4ef3
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4c4efd
jmp 0x4c4f24
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4c4f24
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4c4f24
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4c4f24
mov byte [eax], 0x3e
jmp 0x4c4f24
mov byte [eax], 0x3f
jmp 0x4c4f24
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4c4ec3
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x4c4f75
cmp byte [esp + 7], 0xff
jne 0x4c4f75
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4c4fad
cmp dl, 0xff
je 0x4c4fad
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4c4eba
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x4c709c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x24], 0
jne 0x4c70c6
mov ecx, 0x4c7124
mov dl, 1
mov eax, dword [0x4c679c]
call fcn.0040e328
call fcn.004041fc
mov dword [ebp - 8], edx
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4c7113
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [ebx + 0x34]
xor al, byte [edx]
mov byte [esi], al
mov ecx, dword [ebx + 0x38]
dec ecx
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
inc eax
call fcn.0040319c
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x38]
dec eax
mov dl, byte [esi]
mov byte [eax], dl
inc dword [ebp - 8]
inc esi
dec dword [ebp - 0xc]
jne 0x4c70d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c713c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x24], 0
jne 0x4c7166
mov ecx, 0x4c71cc
mov dl, 1
mov eax, dword [0x4c679c]
call fcn.0040e328
call fcn.004041fc
mov esi, edx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4c71bb
mov dword [ebp - 0x10], eax
mov al, byte [esi]
mov byte [ebp - 9], al
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebx + 0x34]
mov al, byte [eax]
xor al, byte [esi]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov ecx, dword [ebx + 0x38]
dec ecx
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
inc eax
call fcn.0040319c
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x38]
dec eax
mov dl, byte [ebp - 9]
mov byte [eax], dl
inc esi
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4c7178
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c7784
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c7806
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4c6ac0]
mov eax, 0x14
call fcn.004056d4
mov edi, eax
mov dword [edi + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040a050
mov edx, dword [ebp - 4]
lea eax, [edi + 4]
call fcn.004048e8
mov eax, esi
call dword [eax + 0x30]
mov dword [edi + 8], eax
mov eax, dword [0x568ae0]
mov dword [edi], eax
mov byte [edi + 0x10], bl
mov dword [0x568ae0], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c780d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b8
ret
Function at 0x4c7814
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4c7890
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4c6ae8]
mov eax, 0x10
call fcn.004056d4
mov ebx, eax
mov dword [ebx + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040a050
mov edx, dword [ebp - 4]
lea eax, [ebx + 4]
call fcn.004048e8
mov eax, esi
call dword [eax + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [0x568ae4]
mov dword [ebx], eax
mov dword [0x568ae4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7897
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b8
ret

Function at 0x4c78ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x4c790c
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4c78fa
pop edi
pop esi
pop ebx
ret

Function at 0x4cc620
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cf0
xor eax, eax
push ebp
push 0x4cc6ed
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cc6c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b3c
test eax, eax
jle 0x4cc6ad
push pe_nt_image_headers32
lea eax, [ebx + 0x10d]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
push pe_nt_image_headers32
lea eax, [ebx + 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d0c5c
mov eax, dword [ebp - 0x10]
call fcn.00404d00
push eax
call sub.kernel32.dll_GetVolumeInformationA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
jmp 0x4cc6b1
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc6cf
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4cc978
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404cf0
xor eax, eax
push ebp
push 0x4cca58
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x7c], 4
jne 0x4cc9b1
mov byte [ebp - 5], 1
jmp 0x4cca3a
mov eax, ebx
xor ecx, ecx
mov edx, 0x18
call fcn.004035bc
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4cca33
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d0c5c
mov eax, dword [ebp - 0x10]
call fcn.00404d00
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov eax, dword [ebx + 4]
imul dword [ebx]
imul dword [ebx + 8]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 4]
imul dword [ebx]
imul dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cca3a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cca5f
lea eax, [ebp - 0x10]
call fcn.00404894
lea eax, [ebp - 4]
call fcn.00404894
ret

Function at 0x4ccb64
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404cf0
xor eax, eax
push ebp
push 0x4ccbcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b3c
test eax, eax
jle 0x4ccbb2
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004d0c5c
mov eax, dword [ebp - 8]
call fcn.00404d00
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
jmp 0x4ccbb4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccbd6
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b8
ret

Function at 0x4cd0f8
Capabilities:
Get file size

Disassembly:
push ebx
push ecx
push esp
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4cd115
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4cd115
xor ebx, ebx
jmp 0x4cd11e
mov eax, dword [esp]
mov edx, eax
neg eax
add ebx, eax
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x4d053c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x568b1c
mov edx, dword [esi]
mov eax, ebx
call fcn.004d1048
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.00408de4
call fcn.00408de8
mov edx, dword [esi + 8]
call fcn.004d1048
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4d0630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00404cf0
xor eax, eax
push ebp
push 0x4d06f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
cmp dword [ebp + 8], 0
je 0x4d06e3
mov eax, dword [ebp + 8]
call fcn.004d0584
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x4d06a6
inc eax
mov byte [ebp - 4], al
mov bl, 0
call fcn.004d051c
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
call fcn.004d053c
xor eax, eax
mov al, bl
mov dl, byte [ebp - 3]
mov byte [esi + eax], dl
inc ebx
dec byte [ebp - 4]
jne 0x4d0678
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
and di, 8
cmp di, 8
je 0x4d06d0
mov eax, dword [ebp + 0x10]
call fcn.00408de4
call fcn.00408de8
cmp bl, al
jne 0x4d06e3
mov byte [ebp - 2], 1
jmp 0x4d06e3
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x4d06e3
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0700
lea eax, [ebp + 8]
call fcn.00404894
ret

Function at 0x4d1548
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test edx, edx
jle 0x4d1572
mov ebx, dword [ecx]
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
movzx ebx, word [ebx*2 + 0x56608c]
mov esi, dword [ecx]
shr esi, 8
xor ebx, esi
mov dword [ecx], ebx
inc eax
dec edx
test edx, edx
jg 0x4d154e
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4d15b5
test al, 0x10
jne 0x4d15b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4d2430
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, edx
mov esi, eax
xor ebx, ebx
mov byte [esi + 0x50], 0
cmp dword [esi + 0x4c], 4
jbe 0x4d251a
xor ecx, ecx
mov edx, 0x1e24
mov eax, edi
call fcn.004cd0d0
test al, al
je 0x4d2492
xor eax, eax
mov dword [esp + 4], eax
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
cmp dword [esp + 4], 0x91a
jne 0x4d2492
mov dword [esi + 0x30], 0x1e25
mov byte [esi + 0x50], 7
mov bl, 1
jmp 0x4d2538
cmp dword [esi + 0x4c], 0x1dc0
jbe 0x4d24d6
xor ecx, ecx
mov edx, 0x1dbc
mov eax, edi
call fcn.004cd0d0
test al, al
je 0x4d24d6
push 0
lea eax, [esp + 4]
push eax
push 4
lea eax, [esp + 0x10]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
cmp dword [esp + 4], 0x4034b50
jne 0x4d24d6
mov dword [esi + 0x30], 0x1dbc
mov bl, 1
jmp 0x4d2538
cmp dword [esi + 0x4c], 0x6441
jbe 0x4d251a
xor ecx, ecx
mov edx, 0x643d
mov eax, edi
call fcn.004cd0d0
test al, al
je 0x4d251a
push 0
lea eax, [esp + 4]
push eax
push 4
lea eax, [esp + 0x10]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
cmp dword [esp + 4], 0x4034b50
jne 0x4d251a
mov dword [esi + 0x30], 0x643d
mov bl, 1
jmp 0x4d2538
test bl, bl
je 0x4d2534
mov edx, edi
mov eax, esi
call fcn.004d1ac0
mov byte [esi + 0x50], 0x1d
mov byte [esi + 0x328], 0x10
jmp 0x4d2538
mov byte [esi + 0x50], 0
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4d26d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d282b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x4c], 0x200
jbe 0x4d2815
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004cd0d0
push 0
lea eax, [ebp - 8]
push eax
push 0x200
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x124
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x1c0], 0x56
jne 0x4d2784
mov eax, ebx
call fcn.004cd0c0
mov esi, eax
inc esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x30], esi
mov eax, dword [ebp + 8]
add esi, 0x200
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp esi, dword [eax + 0x4c]
jae 0x4d2815
push 0
lea eax, [ebp - 8]
push eax
push 0x200
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x124
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
add edx, 0x1b8
mov ecx, 8
call fcn.00404aec
mov eax, dword [ebp - 0xc]
call fcn.004d045c
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
lea edx, [eax + 0x124]
xor eax, eax
lea ebx, [edx + eax]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 4]
add edi, 0x1b8
cmp ebx, edi
jl 0x4d27e0
lea ebx, [edx + eax]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 4]
add edi, 0x1b8
add edi, 8
cmp ebx, edi
jl 0x4d27e9
xor ebx, ebx
mov bl, byte [edx + eax]
add ecx, ebx
jmp 0x4d27ec
add ecx, 0x20
inc eax
cmp eax, 0x200
jne 0x4d27b7
cmp esi, ecx
jne 0x4d2808
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x50], 0x1a
mov byte [ebp - 1], 1
jmp 0x4d2815
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x30], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2832
lea eax, [ebp - 0xc]
call fcn.00404894
ret
Function at 0x4d283c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, eax
lea esi, [ebp - 0xc]
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
cmp eax, 0x1388
jae 0x4d2865
mov edx, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4d286b
mov dword [esi], 0x1388
xor eax, eax
push ebp
push 0x4d295e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
inc eax
call fcn.00402f14
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d294d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004cd0d0
push 0
push esi
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
cmp dword [esi], 0
jne 0x4d28c4
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d2968
xor ebx, ebx
jmp 0x4d2933
lea eax, [ebx + 2]
cmp eax, dword [esi]
jae 0x4d2923
test ebx, ebx
je 0x4d28e1
test ebx, ebx
jle 0x4d2932
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0xa
jne 0x4d2932
mov edx, 0x4d2974
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, 6
call fcn.0040b2fc
test eax, eax
jne 0x4d2932
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x50], 0x1b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x30], 1
mov byte [ebp - 1], 1
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d2968
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d2968
inc ebx
cmp ebx, dword [esi]
jb 0x4d28c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2954
mov eax, dword [ebp - 8]
call fcn.00402f2c
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret