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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
mov edx, dword [edx + 0x28]
shr edx, 1
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov ecx, dword [eax + 0x28]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x38]
call fcn.004043e0
add dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x4c]
shl eax, 2
sub eax, 5
test eax, eax
jl 0x50215b
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x54d648]
mov edx, 8
call fcn.004fe20c
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
xor ebx, dword [eax*4 + 0x54d648]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x54d648]
mov edx, 0x10
call fcn.004fe20c
xor ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x18
mov eax, dword [eax*4 + 0x54d648]
mov edx, 0x18
call fcn.004fe20c
xor ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
add dword [ebp - 8], 4
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x5020de
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x50649f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x50651e
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00504eac
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x5064ec
mov cx, word [esp]
sub cx, si
jmp 0x5064ee
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x5064d5
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x506514
mov cx, word [esp]
sub cx, si
jmp 0x506516
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x5064fd
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x506603
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.005061dc
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x50656a
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x6c]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x74]
cmp eax, 0x106
jae 0x506580
mov edx, dword [ebx]
cmp dword [edx + 4], 0
jne 0x50647a
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x16c0]
cmp ecx, edx
jbe 0x506603
mov esi, dword [ebx + 0x6c]
add esi, eax
cmp esi, edx
jbe 0x5065c2
mov edi, ecx
sub edi, esi
cmp edi, 0x102
jbe 0x5065a7
mov edi, 0x102
push edi
push 0
mov eax, dword [ebx + 0x38]
add eax, esi
push eax
call fcn.00504e94
add esp, 0xc
add edi, esi
mov dword [ebx + 0x16c0], edi
jmp 0x506603
lea edx, [esi + 0x102]
mov eax, dword [ebx + 0x16c0]
cmp edx, eax
jbe 0x506603
mov edi, edx
mov edx, dword [ebx + 0x3c]
sub edx, eax
sub edi, eax
cmp edi, edx
jbe 0x5065e8
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x16c0]
push edi
push 0
mov eax, dword [ebx + 0x38]
add eax, dword [ebx + 0x16c0]
push eax
call fcn.00504e94
add esp, 0xc
add dword [ebx + 0x16c0], edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50c8ac
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x158
call fcn.00404bb4
cmp dword [ebp - 4], 0
je 0x50c960
mov eax, dword [ebp - 4]
mov dword [ebx + 0x154], eax
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 8]
mov word [ebp - 6], dx
cmp ax, word [ebp - 6]
jbe 0x50c91c
movzx eax, ax
push eax
lea edx, [ebp - 0x46]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.0050c800
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
movzx ecx, ax
lea edx, [ebx + 0xd4]
lea eax, [ebp - 0x46]
call fcn.004043e0
jmp 0x50c92c
movzx ecx, ax
lea edx, [ebx + 0xd4]
mov eax, esi
call fcn.004043e0
movzx edx, word [ebp - 6]
dec edx
test dx, dx
jb 0x50c946
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x36
inc eax
dec dx
jne 0x50c93d
mov eax, ebx
mov esi, dword [ebp - 4]
call dword [esi + 0xc]
movzx ecx, word [ebp - 6]
lea edx, [ebx + 0xd4]
mov eax, ebx
mov ebx, dword [ebp - 4]
call dword [ebx + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x50c9fa
movzx edx, word [eax + 8]
mov word [esp + 4], dx
mov esi, eax
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x10]
movzx edx, word [esp + 4]
dec edx
test edx, edx
jl 0x50c9b7
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x6a
inc eax
dec edx
jne 0x50c9b0
mov esi, dword [ebx + 0x154]
mov eax, ebx
call dword [esi + 0xc]
mov esi, dword [ebx + 0x154]
movzx ecx, word [esp + 4]
lea edx, [ebx + 0xd4]
mov eax, ebx
call dword [esi + 0x14]
mov eax, dword [ebx + 0x154]
mov esi, eax
movzx ecx, word [eax + 0xa]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x14]
mov esi, dword [ebx + 0x154]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x10]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x50ca2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x10
mov eax, dword [edx]
xchg ah, al
rol eax, 0x10
xchg ah, al
mov dword [ebx], eax
add ebx, 4
add edx, 4
dec ecx
jne 0x50ca34
mov ecx, 0x40
mov eax, dword [ebx - 0xc]
xor eax, dword [ebx - 0x20]
xor eax, dword [ebx - 0x38]
xor eax, dword [ebx - 0x40]
rol eax, 1
mov dword [ebx], eax
add ebx, 4
dec ecx
jne 0x50ca4d
pop ebx
ret
Function at 0x50d2e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x50d30e
mov dword [ebp - 0x10], 1
jmp 0x50d45e
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
test ax, ax
jne 0x50d326
mov dword [ebp - 0x10], 2
jmp 0x50d45e
xor edx, edx
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 4
call fcn.00404bb4
movzx eax, word [ebp + 8]
dec eax
movzx edx, word [ebp - 0x14]
mov ecx, edx
cdq
idiv ecx
inc eax
test ax, ax
jbe 0x50d45e
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x20]
call fcn.0050d2d4
lea eax, [ebp - 0xa8]
xor ecx, ecx
mov edx, 0x40
call fcn.00404bb4
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x50d424
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 1
movzx eax, word [ebp - 0xa]
push eax
lea eax, [ebp - 0x200]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0050c8ac
cmp dword [ebp - 0x18], 1
jne 0x50d3d8
movzx ecx, word [ebp + 0x14]
lea eax, [ebp - 0x200]
mov edx, dword [ebp + 0x18]
call fcn.0050c968
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x200]
mov ecx, 4
call fcn.0050c968
jmp 0x50d3ea
movzx ecx, word [ebp - 0x14]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x200]
call fcn.0050c968
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x200]
call fcn.0050c978
movzx ecx, word [ebp - 0x14]
dec ecx
test cx, cx
jb 0x50d418
inc ecx
lea eax, [ebp - 0x68]
lea edx, [ebp - 0xa8]
movzx ebx, byte [eax]
xor byte [edx], bl
inc edx
inc eax
dec cx
jne 0x50d40c
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x50d395
movzx ecx, word [ebp - 0x14]
dec ecx
test cx, cx
jb 0x50d454
inc ecx
lea eax, [ebp - 0xa8]
movzx edx, word [ebp - 0x12]
cmp dx, word [ebp + 8]
jae 0x50d44e
movzx edx, byte [eax]
mov ebx, dword [ebp - 0x1c]
mov byte [ebx], dl
inc word [ebp - 0x12]
inc dword [ebp - 0x1c]
inc eax
dec cx
jne 0x50d435
dec word [ebp - 0x22]
jne 0x50d366
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x514ba0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x515940
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5159a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004144a4
mov eax, dword [ebp - 4]
call fcn.00515890
test al, al
je 0x515979
mov byte [ebp - 5], 1
jmp 0x51598e
mov eax, dword [ebp - 0xc]
call fcn.004071e8
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5159ab
lea eax, [ebp - 0xc]
call fcn.0040714c
ret
Function at 0x515c9c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x515cf6
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x10]
and eax, 0xff
mov eax, dword [eax*4 + 0x551880]
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x515cc4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x515ea8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x515f05
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov al, byte [eax]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x10]
call fcn.00515df8
xor al, byte [ebp - 0x12]
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 0x11]
call fcn.00515d60
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dl, byte [ebp - 0x11]
mov byte [eax], dl
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x515eca
mov esp, ebp
pop ebp
ret

Function at 0x515f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b40
xor eax, eax
push ebp
push 0x516042
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax], 0x12345678
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0x23456789
mov dword [eax + 0xc], 0
add byte [eax], al
add byte [ebx + 0x40c7f845], cl
adc byte [eax - 0x38cba988], dl
inc eax
adc al, 0
add byte [eax], al
add byte [ebp - 0x2dcc03bb], cl
Function at 0x523774
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21e]
mov edx, 0x523800
call fcn.00414d68
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
je 0x5237af
lea eax, [ebp - 0x208]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x50]
call fcn.00414d68
jmp 0x5237c0
lea eax, [ebp - 0x208]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x428]
push eax
push 0
lea eax, [ebp - 0x21e]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetTempFileNameW
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x428]
mov ecx, 0x105
call fcn.0040735c
mov esp, ebp
pop ebp
ret

Function at 0x531370
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x558c7c
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x531392
shr eax, 1
xor eax, 0xedb88320
jmp 0x531394
shr eax, 1
dec edx
jne 0x531380
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x531379
mov byte [0x55907c], 1
pop esi
pop ebx
ret

Function at 0x5313b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x55907c], 0
jne 0x5313c7
call fcn.00531370
mov eax, edi
dec eax
test eax, eax
jl 0x5313ef
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x558c7c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5313d1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x534198
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x534232.0
jmp dword [ecx*4 + 0x5341cb]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5341fd
sub dl, 8
je 0x53420c
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x533e40
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x533e98
jmp case.0x534232.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x534232.0
movzx ecx, byte [ecx + 0x534239]
jmp dword [ecx*4 + 0x53424a]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x533f44
jmp case.0x534232.0
cmp dl, 3
jne 0x534277
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x533f9c
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x533f58
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x533fe0
jmp case.0x534232.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5342a2
sub dl, 8
je 0x5342ae
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x53400c
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x534078
jmp case.0x534232.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5342cd
sub dl, 8
je 0x5342d9
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x534134
jmp case.0x534232.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x53415c
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x53437b
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00533344
test eax, eax
je 0x53437b
mov eax, ebx
call fcn.00534384
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x534314
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x534384
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x5343b5
dec al
je 0x5343f0
dec al
je 0x534435
dec al
je 0x53449e
jmp 0x534528
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x534528
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5343c5
jmp 0x534528
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x534528
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x534400
jmp 0x534528
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x534528
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x534464
xor ebp, ebp
jmp 0x534474
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x53447d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x534445
jmp 0x534528
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x534528
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x5344f7
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.005313f8
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5344b2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5390d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407144
lea eax, [ebp - 0x24f]
mov edx, dword [0x50f990]
call fcn.00407ec0
xor eax, eax
push ebp
push 0x539365
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x55908c], 0
mov eax, dword [edi + 0x39c]
add eax, 0x40
mov edx, dword [ebp - 4]
call fcn.0040715c
mov eax, dword [edi + 0x39c]
call fcn.00528284
push 0x1ff
push 0
lea ecx, [ebp - 0x24f]
mov edx, 0x539380
mov eax, dword [edi + 0x39c]
call fcn.00529804
mov ebx, eax
mov dl, 1
mov eax, dword [0x42e7f8]
call fcn.0040531c
mov esi, eax
jmp 0x539316
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x24f]
mov edx, dword [ebp - 0x24b]
call fcn.00407630
test byte [ebp - 0x226], 0x10
je 0x53924a
lea eax, [ebp - 0x254]
mov ecx, dword [ebp - 8]
mov edx, 0x539394
call fcn.00407630
mov eax, dword [ebp - 0x254]
call fcn.00414070
test al, al
jne 0x5391ed
lea eax, [ebp - 0x258]
mov ecx, dword [ebp - 8]
mov edx, 0x539394
call fcn.00407630
mov eax, dword [ebp - 0x258]
call fcn.00414b8c
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 8]
mov edx, 0x5393b8
call fcn.00407630
mov eax, dword [ebp - 0x25c]
call fcn.00414070
test al, al
jne 0x53922d
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 8]
mov edx, 0x5393b8
call fcn.00407630
mov eax, dword [ebp - 0x260]
call fcn.00414b8c
mov eax, dword [ebp - 8]
call fcn.00414070
test al, al
jne 0x539303
mov eax, dword [ebp - 8]
call fcn.00414b8c
jmp 0x539303
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [edi + 0x39c]
call fcn.00528eb8
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 8]
mov edx, 0x539394
call fcn.00407630
mov edx, dword [ebp - 0x264]
mov eax, esi
call fcn.0043a574
push 0
lea eax, [ebp - 0x268]
mov ecx, dword [ebp - 8]
mov edx, 0x5393b8
call fcn.00407630
mov eax, dword [ebp - 0x268]
call fcn.004071e8
push eax
mov eax, dword [ebp - 8]
call fcn.004071e8
push eax
call sub.kernel32.dll_CopyFileW
mov edx, dword [ebp - 8]
mov eax, dword [0x559088]
call fcn.00412d3c
test al, al
jne 0x5392c6
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0043a574
jmp 0x5392cd
mov byte [0x55908c], 1
push 0
push 0
mov eax, esi
call fcn.00439958
lea eax, [ebp - 0x26c]
mov ecx, dword [ebp - 8]
mov edx, 0x5393e4
call fcn.00407630
mov edx, dword [ebp - 0x26c]
mov eax, dword [edi + 0x398]
call fcn.00491240
mov eax, esi
call fcn.0043a5f8
lea edx, [ebp - 0x24f]
mov eax, dword [edi + 0x39c]
call fcn.005299d4
mov ebx, eax
test bl, bl
jne 0x53918c
mov eax, dword [edi + 0x39c]
call fcn.00528570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53936c
lea eax, [ebp - 0x26c]
mov edx, 7
call fcn.00407154
lea eax, [ebp - 0x24f]
mov edx, dword [0x50f990]
call fcn.00407f98
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407154
ret
Function at 0x539ae4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
xor ecx, ecx
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], edx
mov ebx, eax
lea eax, [ebp - 0x270]
mov edx, dword [0x40dd7c]
call fcn.00407ec0
xor eax, eax
push ebp
push 0x539c67
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x278]
mov ecx, 0x539c80
mov edx, dword [ebp - 0x274]
call fcn.00407630
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
mov edx, 0x1ff
call fcn.004142c0
test eax, eax
jne 0x539c38
xor eax, eax
push ebp
push 0x539c26
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x260], 0x10
je 0x539bc8
mov eax, dword [ebp - 0x25c]
mov edx, 0x539c94
call fcn.00407834
je 0x539bfa
mov eax, dword [ebp - 0x25c]
mov edx, 0x539ca4
call fcn.00407834
je 0x539bfa
push dword [ebp - 0x274]
push 0x539cb8
push dword [ebp - 0x25c]
lea eax, [ebp - 0x27c]
mov edx, 3
call fcn.00407714
mov edx, dword [ebp - 0x27c]
mov eax, ebx
call fcn.00539ae4
jmp 0x539bfa
push dword [ebp - 0x274]
push 0x539cb8
push dword [ebp - 0x25c]
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.00407714
mov eax, dword [ebp - 0x280]
call fcn.004071e8
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x270]
call fcn.00414310
test eax, eax
je 0x539b6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539c2d
lea eax, [ebp - 0x270]
call fcn.00414334
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539c6e
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.00407154
lea eax, [ebp - 0x270]
mov edx, dword [0x40dd7c]
call fcn.00407f98
ret