joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbc40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ecx, dword [ecx]
mov eax, dword [eax]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, edi
mov dword [ebp + 8], ecx
mov dword [ebp - 8], 0x10
xor eax, dword [ecx]
mov edx, eax
mov ebx, eax
shr edx, 8
mov esi, eax
mov ecx, edx
shr ecx, 8
mov eax, ecx
movzx ecx, cl
shr eax, 8
mov eax, dword [edi + eax*4 + 0x48]
add eax, dword [edi + ecx*4 + 0x448]
movzx ecx, dl
mov edx, esi
xor eax, dword [edi + ecx*4 + 0x848]
movzx ecx, bl
add eax, dword [edi + ecx*4 + 0xc48]
mov ecx, dword [ebp + 8]
xor eax, dword [ebp - 4]
add ecx, 4
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
jne 0x4bbc65
mov ecx, dword [edi + 0x40]
xor ecx, eax
mov eax, dword [edi + 0x44]
xor eax, edx
mov edx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4bc1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push ebx
push esi
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
movzx esi, byte [edx + 4]
shl eax, 8
or eax, ecx
shl esi, 8
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 5]
or esi, ecx
mov dword [ebp + 0x10], eax
movzx ecx, byte [edx + 6]
shl esi, 8
or esi, ecx
movzx ecx, byte [edx + 7]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], esi
jne 0x4bc2aa
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], 0x10
lea ecx, [edi + 0x44]
mov dword [ebp + 0x10], ecx
xor eax, dword [ecx]
mov edx, eax
mov dword [ebp - 4], eax
mov ebx, eax
shr edx, 8
mov ecx, edx
shr ecx, 8
mov eax, ecx
movzx ecx, cl
shr eax, 8
mov eax, dword [edi + eax*4 + 0x48]
add eax, dword [edi + ecx*4 + 0x448]
movzx ecx, dl
xor eax, dword [edi + ecx*4 + 0x848]
movzx ecx, bl
add eax, dword [edi + ecx*4 + 0xc48]
mov ecx, dword [ebp + 0x10]
xor eax, esi
sub ecx, 4
mov esi, ebx
sub dword [ebp + 0xc], 1
mov dword [ebp + 0x10], ecx
jne 0x4bc253
mov edx, dword [edi]
xor edx, ebx
mov ebx, dword [edi + 4]
xor ebx, eax
pop edi
jmp 0x4bc2c3
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004bbc40
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov eax, edx
shr eax, 0x18
pop esi
mov byte [ecx], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 6], al
xor eax, eax
mov byte [ecx + 7], bl
mov byte [ecx + 3], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c0220
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x599850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x5c
push esi
call fcn.0050582b
mov ebx, eax
add esp, 8
mov eax, esi
test ebx, ebx
je 0x4c024f
lea eax, [ebx + 2]
movzx ecx, word [eax]
test cx, cx
je 0x4c0420
cmp ecx, 0x2e
jne 0x4c027d
movzx ecx, word [eax + 2]
test cx, cx
je 0x4c0420
cmp ecx, 0x2e
jne 0x4c027d
cmp word [eax + 4], 0
je 0x4c0420
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push edi
call fcn.004c0b30
add esp, 0x14
test eax, eax
jne 0x4c0310
mov eax, dword [ebp - 0x3c]
and eax, 0xf000
cmp eax, 0x4000
je 0x4c03c1
test byte [edi + 0x118], 8
push esi
je 0x4c02d8
push str.Cant_create_directory__ls
push 0x11
push edi
call fcn.004c2100
add esp, 0x10
mov eax, 0xffffffe7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
call fcn.004c0ae0
add esp, 4
test eax, eax
je 0x4c0350
call fcn.0050f6ae
push esi
push str.Cant_create_directory__ls:_Conflicting_file_cannot_be_removed
push dword [eax]
push edi
call fcn.004c2100
add esp, 0x10
mov eax, 0xffffffe7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
call fcn.0050f6ae
cmp dword [eax], 2
je 0x4c0331
call fcn.0050f6ae
cmp dword [eax], 0x14
je 0x4c0331
call fcn.0050f6ae
push esi
push str.Cant_test_directory__ls
jmp 0x4c02ef
test ebx, ebx
je 0x4c0350
xor eax, eax
push esi
push edi
mov word [ebx], ax
call fcn.004c0220
add esp, 8
mov ecx, 0x5c
mov word [ebx], cx
test eax, eax
jne 0x4c03c3
mov ax, word [edi + 0x68]
mov ecx, 0x1ff
not ax
and ax, cx
movzx eax, ax
push esi
mov dword [ebp - 0x40], eax
call fcn.004f0b20
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4c0381
call fcn.0050f6ae
mov dword [eax], 0x16
jmp 0x4c03e3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4c03d4
mov ecx, dword [ebp - 0x40]
mov eax, ecx
and eax, 0x3d
or eax, 0x1c0
cmp ax, cx
je 0x4c03b8
push esi
push edi
call fcn.004c0f70
mov ecx, dword [ebp - 0x40]
add esp, 8
or dword [eax + 0x5c], 0x20000000
mov word [eax + 0x20], cx
push ebx
call fcn.0050bae2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f0500
add esp, 4
push ebx
call fcn.0050bae2
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push edi
call fcn.004c0b30
add esp, 0x18
test eax, eax
jne 0x4c0410
mov eax, dword [ebp - 0x3c]
and eax, 0xf000
cmp eax, 0x4000
je 0x4c03c1
call fcn.0050f6ae
push esi
push str.Failed_to_create_dir__ls
jmp 0x4c02ef
test ebx, ebx
je 0x4c03c1
xor eax, eax
push esi
push edi
mov word [ebx], ax
call fcn.004c0220
add esp, 8
mov ecx, 0x5c
mov word [ebx], cx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004ff754
mov esp, ebp
pop ebp
ret
Function at 0x4c0e80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5a2eb8], 0
jne 0x4c0ea8
push 0x54f53c
mov dword [0x5a2eb8], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5a2eb4], eax
jmp 0x4c0ead
mov eax, dword [0x5a2eb4]
test eax, eax
je 0x4c0ebd
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ebp
ret
push str.Cant_load_kernel32.dll___n
push 2
call fcn.0050bc03
add esp, 4
push eax
call fcn.004069ca
add esp, 8
push 1
call fcn.00517d42
int3

Function at 0x4c0ee0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp edx, 0xffffffff
jne 0x4c0f22
call ebx
cmp eax, 0x7b
jne 0x4c0f48
push dword [ebp + 8]
call fcn.004f0b20
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
je 0x4c0f48
mov cl, byte [ebp + 0xc]
mov eax, edx
or eax, 1
and edx, 0xfffffffe
and cl, 0x80
cmove edx, eax
push edx
test esi, esi
je 0x4c0f3b
push esi
jmp 0x4c0f3e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4c0f56
call ebx
push eax
call fcn.004f0500
add esp, 4
or edi, 0xffffffff
push esi
call fcn.0050bae2
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c1930
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4c197e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jne 0x4c1967
push esi
call fcn.004f0b20
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4c197e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f0500
add esp, 4
mov eax, 0xffffffec
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
not eax
and eax, ecx
or eax, dword [ebp + 0xc]
and eax, 0x31a7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
pop esi
sbb eax, eax
and eax, 0x14
add eax, 0xffffffec
pop ebp
ret
Function at 0x4c2070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x24
push str.Fatal_Internal_Error_in_libarchive:
push 2
call fcn.004f0cf0
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2090
sub ecx, esi
push ecx
push edx
push 2
call fcn.004f0cf0
push 1
push 0x53d128
push 2
call fcn.004f0cf0
add esp, 0x18
push dword [ebp + 8]
call fcn.00517d42
int3

Function at 0x4c37e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
mov dword [esi + 4], 0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
lea eax, [edi + 1]
push eax
push esi
call fcn.004c44f0
add esp, 8
test eax, eax
je 0x4c3836
test edi, edi
je 0x4c3828
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push dword [ebp + 0xc]
push eax
call fcn.00504640
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0
jmp 0x4c3845
push str.Out_of_memory
push 1
call fcn.004c2070
add esp, 8
mov dword [esi + 0x10], 0
lea edi, [esi + 0xc]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], ecx
inc ecx
add eax, ecx
push eax
push edi
call fcn.004c44f0
add esp, 8
test eax, eax
je 0x4c3899
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c388b
push eax
mov eax, dword [edi + 4]
push dword [ebp + 8]
add eax, dword [edi]
push eax
call fcn.00504640
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [edi + 4], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [ecx + eax], 0
jmp 0x4c38a8
push str.Out_of_memory
push 1
call fcn.004c2070
add esp, 8
mov dword [esi + 0x1c], 0
add esi, 0x18
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [esi + 4]
add eax, edi
lea eax, [eax*2 + 2]
push eax
push esi
call fcn.004c44f0
add esp, 8
test eax, eax
je 0x4c38ff
test edi, edi
je 0x4c38ec
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
push ebx
lea eax, [eax + ecx*2]
push eax
call fcn.00504640
add esp, 0xc
add dword [esi + 4], edi
xor edx, edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov word [eax + ecx*2], dx
pop ebp
ret
pop edi
pop esi
pop ebx
mov dword [ebp + 0xc], str.Out_of_memory
mov dword [ebp + 8], 1
pop ebp
jmp fcn.004c2070
Function at 0x4c4270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [eax]
push edi
mov edi, dword [eax + 4]
mov eax, dword [esi + 4]
inc eax
add eax, edi
push eax
push esi
call fcn.004c44f0
add esp, 8
test eax, eax
je 0x4c42ba
test edi, edi
je 0x4c42a9
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push ebx
push eax
call fcn.00504640
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov byte [ecx + eax], 0
pop ebp
ret
pop edi
pop esi
pop ebx
mov dword [ebp + 0xc], str.Out_of_memory
mov dword [ebp + 8], 1
pop ebp
jmp fcn.004c2070
Function at 0x4cf980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x18
cmp eax, 5
jae 0x4cf994
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea edx, [eax - 4]
push ebx
push esi
push edi
mov ebx, dword [ecx + 0x4c68]
xor edi, edi
mov esi, dword [ecx + 0x4c6c]
mov ecx, dword [ecx + 0x4c70]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
add edx, ecx
mov dword [ebp + 0x10], edx
nop dword [eax]
lea eax, [edi + ecx]
mov dword [ebp - 8], eax
cmp eax, edx
jae 0x4cf9e5
nop word [eax + eax]
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x4cf9df
inc eax
cmp eax, edx
jb 0x4cf9d0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov edi, eax
sub edi, ecx
cmp eax, edx
jae 0x4cfb12
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x4cfa27
xor esi, esi
mov dword [ebp - 0xc], esi
mov cl, byte [eax + 4]
mov ebx, edi
mov dword [ebp - 0x18], ebx
test cl, cl
je 0x4cfa68
cmp cl, 0xff
je 0x4cfa68
mov edx, dword [ebp + 0x10]
and esi, 3
mov ecx, dword [ebp + 0xc]
add esi, esi
mov eax, 1
or esi, 1
add edi, eax
jmp 0x4cf9c0
dec ecx
shl esi, cl
and esi, 7
mov dword [ebp - 0xc], esi
je 0x4cf9ff
cmp byte [esi + 0x557778], 0
je 0x4cfa55
movzx ecx, byte [esi + 0x557780]
mov edx, eax
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x4cfa52
cmp cl, 0xff
jne 0x4cf9ff
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
and esi, 3
add esi, esi
mov ebx, edi
or esi, 1
inc edi
jmp 0x4cf9c0
movzx ebx, cl
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
sub ebx, dword [ebp - 4]
sub ebx, edi
test esi, esi
je 0x4cfadd
movzx ecx, byte [esi + 0x557780]
mov eax, 0x18
shl ecx, 3
sub eax, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov eax, ecx
mov esi, dword [ebp - 0x14]
nop dword [eax + eax]
mov edx, ebx
mov ecx, esi
shr edx, cl
test dl, dl
je 0x4cfabf
cmp dl, 0xff
jne 0x4cfad7
mov ecx, 0x20
mov edx, 1
sub ecx, eax
shl edx, cl
dec edx
xor ebx, edx
sub ebx, dword [ebp - 4]
sub ebx, edi
jmp 0x4cfab0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [eax + 1], bl
neg cl
mov byte [eax + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x18]
shr ecx, 8
mov byte [eax + 2], cl
mov eax, 5
mov ecx, dword [ebp + 0xc]
add edi, eax
jmp 0x4cf9c0
mov eax, dword [ebp + 8]
add dword [eax + 0x4c70], edi
mov dword [eax + 0x4c68], ebx
mov dword [eax + 0x4c6c], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1130
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
shr edi, 2
test edi, edi
je 0x4d117a
mov ecx, dword [ebp + 8]
add ecx, 2
push esi
nop dword [eax]
movzx esi, byte [ecx + 1]
lea ecx, [ecx + 4]
movzx eax, byte [ecx - 4]
movzx edx, byte [ecx - 6]
shl esi, 8
or esi, eax
movzx eax, byte [ecx - 5]
shl esi, 8
or esi, eax
shl esi, 8
or esi, edx
xor ebx, esi
sub edi, 1
jne 0x4d1150
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4da490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x4da4a2
mov ax, word [ebp + 8]
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x4da4cc
movzx eax, byte [ebx]
inc ebx
mov ecx, dword [ebp + 8]
xor eax, ecx
movzx eax, al
shr cx, 8
mov dword [ebp + 0xc], ebx
xor cx, word [eax*2 + 0x5a3f10]
dec esi
movzx eax, cx
jmp 0x4da4cf
mov eax, dword [ebp + 8]
cmp esi, 8
jb 0x4da584
push edi
mov edi, esi
shr edi, 3
nop
movzx edx, word [ebx]
sub esi, 8
movzx ecx, word [ebx + 2]
movzx eax, ax
xor edx, eax
mov eax, edx
shr eax, 8
movzx ebx, word [eax*2 + 0x5a3f10]
movzx eax, dl
movzx eax, word [eax*2 + 0x5a4110]
xor ebx, eax
mov eax, dword [ebp + 0xc]
xor ebx, ecx
lea edx, [eax + 6]
movzx ecx, word [eax + 4]
mov eax, ebx
shr eax, 8
movzx eax, word [eax*2 + 0x5a3f10]
mov dword [ebp + 0xc], eax
movzx eax, bl
mov ebx, dword [ebp + 0xc]
movzx eax, word [eax*2 + 0x5a4110]
xor ebx, eax
lea eax, [edx + 2]
xor ebx, ecx
mov dword [ebp + 0xc], eax
movzx ecx, word [edx]
mov eax, ebx
shr eax, 8
movzx edx, word [eax*2 + 0x5a3f10]
movzx eax, bl
mov ebx, dword [ebp + 0xc]
movzx eax, word [eax*2 + 0x5a4110]
xor edx, eax
xor edx, ecx
mov ecx, edx
movzx eax, dl
shr ecx, 8
mov cx, word [ecx*2 + 0x5a3f10]
xor cx, word [eax*2 + 0x5a4110]
movzx eax, cx
sub edi, 1
jne 0x4da4e0
pop edi
test esi, esi
je 0x4da5a7
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
xor ecx, eax
shr ax, 8
movzx ecx, cl
xor ax, word [ecx*2 + 0x5a3f10]
movzx eax, ax
sub esi, 1
jne 0x4da588
pop ebx
pop esi
pop ebp
ret
Function at 0x4eab70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov dl, byte [esi]
test dl, dl
jns 0x4eac4e
mov al, dl
push ebx
mov ebx, dword [ebp + 0xc]
and al, 0x40
push edi
mov byte [ebp + 0xb], al
je 0x4eab9a
or ecx, 0xffffffff
or edi, 0xffffffff
jmp 0x4eaba8
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
neg al
sbb al, al
mov byte [ebp - 1], al
mov al, dl
and al, 0x7f
or dl, 0x80
cmp byte [ebp + 0xb], 0
movzx eax, al
movzx edx, dl
cmove edx, eax
mov al, byte [ebp - 1]
cmp ebx, 8
jbe 0x4eabde
nop dword [eax + eax]
dec ebx
cmp dl, al
jne 0x4eac23
mov dl, byte [esi + 1]
inc esi
cmp ebx, 8
ja 0x4eabd0
xor al, dl
jl 0x4eac23
sub ebx, 1
je 0x4eac09
nop word [eax + eax]
shld edi, ecx, 8
movzx eax, dl
lea esi, [esi + 1]
cdq
shl ecx, 8
or edi, edx
mov dl, byte [esi]
or ecx, eax
sub ebx, 1
jne 0x4eabf0
shld edi, ecx, 8
movzx eax, dl
cdq
shl ecx, 8
or ecx, eax
or edi, edx
mov edx, edi
mov eax, ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xb], 0
je 0x4eac3b
mov edi, closesocket
xor ecx, ecx
mov edx, edi
mov eax, ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edi, closesocket
or ecx, 0xffffffff
mov edx, edi
mov eax, ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 8
push dword [ebp + 0xc]
push esi
call fcn.004eac70
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ebef0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, 0xa
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, ecx
cmovg ecx, eax
test eax, eax
js 0x4ebf6f
mov edx, eax
push ebx
nop
test ecx, ecx
je 0x4ebf47
mov bl, byte [esi]
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x4ebf47
movsx eax, bl
lea edx, [edi - 6]
lea edx, [edi + edx*4]
inc esi
lea edi, [eax + edx*2]
mov eax, 0x66666667
imul ecx
lea eax, [edi + edi*4]
sar edx, 2
add eax, eax
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp + 0x14]
cmp eax, edx
jle 0x4ebf10
pop ebx
cmp esi, dword [ebp + 8]
je 0x4ebf6f
cmp edi, dword [ebp + 0x10]
jl 0x4ebf61
cmp edi, edx
jg 0x4ebf61
mov ecx, dword [ebp + 0xc]
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, 0xfffffffe
pop edi
mov dword [ecx], esi
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
pop edi
mov dword [ecx], esi
pop esi
pop ebp
ret
Function at 0x4eec50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
cmp dword [ebp + 0x10], esi
cmovb esi, dword [ebp + 0x10]
test esi, esi
je 0x4eecdb
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
sub edx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [edi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea eax, [ebp + 0x18]
push 1
push eax
shr ecx, 8
xor cl, byte [edx + ebx]
mov byte [ebx], cl
mov eax, dword [edi]
not eax
mov byte [ebp + 0x18], cl
push eax
call fcn.004fc8e0
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [ebp + 0x13], al
lea eax, [ebp + 0x13]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.004fc8e0
mov edx, dword [ebp + 0xc]
lea ebx, [ebx + 1]
add esp, 0x18
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x4eec72
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4f05c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
test eax, 0xffff7fff
jne 0x4f06a6
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f063e
call ebx
cmp eax, 3
jne 0x4f0623
push edi
call fcn.004f0ab0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f0617
call fcn.0050f6ae
pop edi
pop esi
pop ebx
mov dword [eax], 0x16
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f063e
call ebx
push eax
call fcn.004f0500
push esi
call fcn.0050bae2
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x4f069b
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x4f065e
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4f0665
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call fcn.0050bae2
add esp, 4
cmp edi, 0xffffffff
jne 0x4f0689
call ebx
push eax
call fcn.004f0500
add esp, 4
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.005182a1
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4f0739
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push edi
call fcn.005171a6
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4f07bc
call fcn.0050f6ae
cmp dword [eax], 0xd
jne 0x4f0718
test dword [ebp + 0xc], 0x100
je 0x4f0718
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4f06f4
call ebx
push eax
call fcn.004f0500
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0050f6ae
test byte [ebp + 0xc], 0x10
mov ecx, 0
pop edi
setne cl
pop esi
pop ebx
lea ecx, [ecx*8 + 0xd]
mov dword [eax], ecx
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
call fcn.0050f6ae
cmp dword [eax], 2
jne 0x4f07bc
push edi
call fcn.004f0ab0
mov esi, eax
add esp, 4
test esi, esi
je 0x4f0602
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push esi
call fcn.0051724c
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x4f07a9
call fcn.0050f6ae
cmp dword [eax], 0xd
jne 0x4f07a9
test edi, 0x100
je 0x4f07a9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4f078f
call ebx
push eax
call fcn.004f0500
add esp, 4
push esi
call fcn.0050bae2
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0050f6ae
test byte [ebp + 0xc], 0x10
mov ecx, 0
setne cl
lea ecx, [ecx*8 + 0xd]
mov dword [eax], ecx
push esi
call fcn.0050bae2
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f07d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jns 0x4f07ea
call fcn.0050f6ae
mov dword [eax], 9
or eax, 0xffffffff
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x4f085a
push eax
call fcn.00518237
add esp, 4
lea ecx, [ebp + 8]
push 0
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f0855
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x4f082d
call fcn.0050f6ae
mov dword [eax], 0xb
or eax, 0xffffffff
pop ebp
ret
cmp eax, 0x6d
je 0x4f085a
cmp eax, 5
jne 0x4f0847
call fcn.0050f6ae
mov dword [eax], 9
or eax, 0xffffffff
pop ebp
ret
push eax
call fcn.004f0500
add esp, 4
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4f0cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jns 0x4f0d0a
call fcn.0050f6ae
mov dword [eax], 9
or eax, 0xffffffff
pop ebp
ret
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00518237
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4f0d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4f0d45
call fcn.0050f6ae
mov dword [eax], 9
or eax, 0xffffffff
pop ebp
ret
push eax
call fcn.004f0500
add esp, 4
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
ret