joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2eac
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
mov edx, ebx
add edx, 4
mov eax, esi
call fcn.00404ef0
mov eax, esi
call fcn.00404dbc
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.004032cc
cmp byte [ebp - 1], 0
jne 0x4f2f1f
mov eax, esi
call fcn.00404dbc
mov dl, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x4f2f38
sub al, 2
jb 0x4f2f3f
jmp 0x4f2f44
mov ebx, 2
jmp 0x4f2f44
mov ebx, 1
mov eax, esi
call fcn.00404dbc
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4f3026
test edi, edi
jle 0x4f2fa0
mov eax, esi
call fcn.00404dbc
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00404dbc
mov byte [eax + ebx - 1], 0
jmp 0x4f301a
test edi, edi
jge 0x4f2fe6
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00404dbc
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x4f301a
mov eax, esi
call fcn.00404dbc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.00404dbc
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4f2f5c
mov al, byte [ebp - 1]
sub al, 1
jb 0x4f3036
sub al, 2
jb 0x4f306f
jmp 0x4f30b6
cmp edi, 2
jne 0x4f303c
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4f30b6
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00404dbc
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x5469bc]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4f304c
jmp 0x4f30b6
cmp edi, 2
jne 0x4f3075
dec ebx
test ebx, ebx
jle 0x4f30b1
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00404dbc
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x5469c0]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4f3081
jmp 0x4f30b1
inc ebx
mov eax, esi
call fcn.00404dbc
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4f30a4
mov eax, esi
mov edx, ebx
call fcn.00404ef0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f32c4
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x546a5c
mov ecx, dword [esp]
lea edx, [esp + 0xc]
xor ebx, ebx
mov bl, byte [edi]
mov bl, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x4f32e3
mov esi, 1
mov edx, 0x546b64
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
shl ecx, 2
xor ebx, ebx
mov bl, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
xor ebx, ebx
mov bl, byte [esp + eax + 0x11]
add edi, ebx
xor ebx, ebx
mov bl, byte [esp + eax + 0xd]
shl ebx, 3
movzx ebp, byte [esp + eax + 0xe]
shl ebp, 2
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x4f335d
dec ebx
je 0x4f3381
dec ebx
je 0x4f33a5
dec ebx
je 0x4f33c8
jmp 0x4f33e1
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 8
and ebx, 0xff
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4f33e1
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 4
and ebx, 0xff
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4f33e1
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 2
and ebx, 0xff
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4f33e1
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x4f334a
inc esi
add edx, 0x40
cmp esi, 9
jne 0x4f32ff
mov esi, 0x20
mov eax, 0x546a8c
mov edx, dword [esp + 4]
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x4f3406
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4f3440
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
xor eax, eax
mov al, dl
mov bl, byte [eax + 0x546b13]
test bl, bl
jbe 0x4f3471
lea eax, [esi + 0x3e0]
call fcn.004f3420
lea eax, [esi + 0x3fc]
call fcn.004f3420
dec bl
jne 0x4f3457
mov cl, 0x30
mov edi, 0x546ae4
mov eax, dword [esp]
mov dl, byte [edi]
cmp dl, 0x1c
ja 0x4f3493
and edx, 0xff
mov dl, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x4f34a2
and edx, 0xff
mov dl, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x4f347b
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4f34b0
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.004f3258
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x4f34cc
mov bl, 0x1c
mov esi, 0x546aac
lea edi, [ebp - 0x41]
mov dl, byte [esi]
mov eax, dword [ebp - 8]
call fcn.004f3258
mov byte [edi], al
mov dl, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.004f3258
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x4f34e8
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.004f3440
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x4f3510
mov bl, 1
mov eax, 0x5469dc
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x4f3549
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x4f3556
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x4f3535
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x4f3580
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.004f32c4
jmp 0x4f35a8
xor eax, eax
mov al, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.004f32c4
mov bl, 0x20
lea eax, [ebp - 0xa1]
mov dl, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x4f35b0
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x4f3568
mov bl, 0x40
mov esi, 0x546a1c
lea eax, [ebp - 0x3e1]
mov dl, byte [esi]
cmp dl, 0x20
ja 0x4f3616
and edx, 0xff
mov dl, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x4f3625
and edx, 0xff
mov dl, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x4f35fe
mov bl, 1
lea esi, [ebp - 0x3e1]
mov cl, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.004f3280
inc ebx
inc esi
cmp bl, 0x41
jne 0x4f3633
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f409c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
mov dl, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
mov dl, byte [esi + 2]
xor ecx, ecx
mov cl, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
mov al, byte [esi + 3]
xor ecx, ecx
mov cl, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
xor edx, edx
mov dl, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
mov al, byte [esi + 4]
shl eax, 3
and al, 0xff
xor edx, edx
mov dl, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
mov al, byte [esi + 5]
shl eax, 2
and al, 0xff
xor edx, edx
mov dl, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
mov al, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov edi, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x4f4148
mov dl, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x4f4143
mov eax, ebp
mov edx, 8
call fcn.00404ef0
push 1
mov eax, ebp
call fcn.00404dbc
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.004f34b0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f7a28
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4f7b00
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0040e1bc
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call fcn.0040494c
lea eax, [ebp - 0x23]
xor ecx, ecx
mov edx, 0x1e
call fcn.004032cc
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], 3
lea eax, [ebp - 0x2c]
mov ecx, 0x4f7b1c
mov edx, dword [ebp - 4]
call fcn.00404bb8
mov eax, dword [ebp - 0x2c]
call fcn.00404d64
mov dword [ebp - 0x1b], eax
mov eax, 0x4f7b20
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], 0x14
xor eax, eax
push ebp
push 0x4f7ad3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x23]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7add
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7b07
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004048d8
lea eax, [ebp - 4]
call fcn.004048b4
ret

Function at 0x4f7b24
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d54
mov eax, dword [ebp - 8]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4f7c51
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4f7c68
call fcn.0040a9ec
mov eax, dword [ebp - 0x10]
call fcn.004f7d94
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004091f4
test al, al
jne 0x4f7c26
mov eax, dword [ebp - 8]
call fcn.00409ae0
test al, al
je 0x4f7bc9
cmp byte [ebp - 9], 0
je 0x4f7c26
mov eax, dword [ebp - 8]
call fcn.00409cdc
test al, al
je 0x4f7bc9
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00409cf4
mov al, byte [ebp - 9]
xor al, 1
neg al
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404d64
push eax
mov eax, dword [ebp - 4]
call fcn.00404d64
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4f7c26
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4f7c84
call fcn.0040a9ec
mov eax, dword [ebp - 0x24]
call fcn.004f7d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7c58
lea eax, [ebp - 0x24]
call fcn.004048b4
lea eax, [ebp - 0x10]
call fcn.004048b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048d8
ret
Function at 0x4f85ec
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f86b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x26
mov eax, dword [0x547f9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404b1c
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040a004
mov edx, dword [ebp - 0x110]
mov eax, ebx
mov ecx, 0x4f86c8
call fcn.00404bb8
lea edx, [ebp - 0x118]
mov eax, dword [ebx]
call fcn.0040e168
mov edx, dword [ebp - 0x118]
mov eax, ebx
call fcn.00404908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f86b8
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.004048d8
ret

Function at 0x4f8938
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, 0xedb88320
xor ebx, ebx
mov ecx, 0x54a190
mov eax, ebx
mov edx, 0xfffffff8
mov edi, eax
and edi, 1
dec edi
jne 0x4f895c
shr eax, 1
xor eax, esi
jmp 0x4f895e
shr eax, 1
inc edx
jne 0x4f894e
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4f8947
pop edi
pop esi
pop ebx
ret
Function at 0x4f8974
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4f897d
mov eax, dword [ebp - 4]
add esp, 0xfffff7f0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4f8a9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00409ae0
test al, al
je 0x4f8a89
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41a864]
call fcn.0041f968
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4f8a82
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
or ebx, 0xffffffff
mov eax, dword [ebp - 0xc]
call fcn.0041f480
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4f8a66
cmp dword [ebp - 0x14], 0x2800
jl 0x4f8a16
mov dword [ebp - 0x10], 0x2800
jmp 0x4f8a1c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2814]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 8]
mov edx, eax
xor eax, eax
cmp edx, eax
jle 0x4f8a5e
mov ecx, ebx
shr ecx, 8
and ecx, 0xffffff
movzx esi, byte [ebp + eax - 0x2814]
xor ebx, esi
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x54a190]
mov ebx, ecx
inc eax
cmp edx, eax
jg 0x4f8a35
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
jmp 0x4f89fe
xor ebx, 0xffffffff
mov dword [ebp - 8], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8a89
mov eax, dword [ebp - 0xc]
call fcn.00403a48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8aa6
lea eax, [ebp - 4]
call fcn.004048b4
ret
Function at 0x4f8ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4f8ab9
mov eax, dword [ebp - 4]
add esp, 0xfffff7f0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4f8bd9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00409ae0
test al, al
je 0x4f8bc3
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41a864]
call fcn.0041f968
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4f8bbc
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
or ebx, 0xffffffff
mov eax, dword [ebp - 0xc]
call fcn.0041f480
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4f8ba0
cmp dword [ebp - 0x14], 0x2800
jb 0x4f8b50
mov dword [ebp - 0x10], 0x2800
jmp 0x4f8b56
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2814]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 8]
mov edx, eax
xor eax, eax
cmp edx, eax
jbe 0x4f8b98
mov ecx, ebx
shr ecx, 8
and ecx, 0xffffff
movzx esi, byte [ebp + eax - 0x2814]
xor ebx, esi
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x54a190]
mov ebx, ecx
inc eax
cmp edx, eax
ja 0x4f8b6f
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
jmp 0x4f8b38
xor ebx, 0xffffffff
mov dword [ebp - 8], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8bc3
mov eax, dword [ebp - 0xc]
call fcn.00403a48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8be0
lea eax, [ebp - 4]
call fcn.004048b4
ret
Function at 0x4f9120
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4f9227
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004048b4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d64
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x4f9211
mov eax, ebx
call fcn.004027d8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f920a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4f9238
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0x10]
push esi
mov eax, dword [ebx + 8]
call fcn.00407e28
movzx eax, ax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebx + 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [ebx + 0xc]
call fcn.00407e28
movzx eax, ax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x30]
mov ecx, 3
mov eax, 0x4f9244
call fcn.0040a9ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9211
mov eax, dword [ebp - 0xc]
call fcn.004027f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f922e
lea eax, [ebp - 4]
call fcn.004048b4
ret
Function at 0x4fbd0c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4fbdfc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004fce10
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a098
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004fc274
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409f5c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004fc2e8
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbe03
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048d8
ret
Function at 0x4fbe0c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4fbf0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004fce10
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x4fbed2
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a098
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004fc274
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409f5c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004fc2e8
jmp 0x4fbee4
xor edx, edx
mov eax, ebx
call fcn.004fc274
xor edx, edx
mov eax, ebx
call fcn.004fc2e8
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbf13
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048d8
ret

Function at 0x4fd06c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d54
xor eax, eax
push ebp
push 0x4fd0d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004fd0dc
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd0d7
lea eax, [ebp - 4]
call fcn.004048b4
ret

Function at 0x5027b8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x174]
mov edx, ebx
mov eax, edi
call fcn.005029dc
mov esi, eax
mov dword [edi + 0x174], esi
and esi, 0xff
add dword [edi + 0x178], esi
imul esi, dword [edi + 0x178], 0x8088405
inc esi
mov dword [edi + 0x178], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x17c]
mov eax, edi
call fcn.005029dc
mov dword [edi + 0x17c], eax
pop edi
pop esi
pop ebx
ret

Function at 0x50282c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x502851
inc esi
mov eax, edi
call fcn.00502810
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.005027b8
inc ebx
dec esi
jne 0x50283b
pop edi
pop esi
pop ebx
ret