joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0b78
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b0ba6
mov eax, ebx
call fcn.004b162c
cmp dword [ebx + 0x40], 0
je 0x4b0b9f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b0c17
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b0c09
cmp dword [ebx + 8], 0
je 0x4b0bc8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b0bda
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b0c09
cmp dword [ebx + 8], 0
je 0x4b0bbb
cmp eax, 3
je 0x4b0bed
dec eax
jne 0x4b0bbb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b0bbb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b0bbb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b0c35
cmp dword [ebx + 0x14], 0xcc
je 0x4b0c35
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b0c40
pop ebx
ret

Function at 0x4cafe0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cb151
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cb12c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00405080
lea eax, [ebp - 0x118]
mov edx, 0x4cb168
call fcn.00405164
mov eax, dword [ebp - 0x118]
call fcn.00405328
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4cb09e
lea eax, [ebp - 0x111]
call fcn.0040af98
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404f88
jmp 0x4cb0a5
mov eax, esi
call fcn.00404e98
cmp bl, 0x61
jae 0x4cb0c6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f810
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404eec
jmp 0x4cb0e0
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f77c
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404eec
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4cb174
call fcn.0040ba64
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404eec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb133
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4d0888
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405318
xor eax, eax
push ebp
push 0x4d08e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004d0964
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4d08ce
lea eax, [ebp - 4]
call fcn.004d0964
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4d08d0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d08ed
lea eax, [ebp - 4]
call fcn.00404e98
ret

Function at 0x4d08f4
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.00405318
xor eax, eax
push ebp
push 0x4d0958
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.004d0964
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b1d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d095f
lea eax, [ebp - 4]
call fcn.00404e98
ret

Function at 0x4d0f2c
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.00405318
xor eax, eax
push ebp
push 0x4d1025
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004d060c
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
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, 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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040adbc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d1914
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ac7c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004d198c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d102c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ebc
ret
Function at 0x4d1034
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.00405318
xor eax, eax
push ebp
push 0x4d113d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004d060c
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
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, 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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x4d1103
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040adbc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d1914
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ac7c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004d198c
jmp 0x4d1115
xor edx, edx
mov eax, ebx
call fcn.004d1914
xor edx, edx
mov eax, ebx
call fcn.004d198c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1144
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ebc
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004d7cdc
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004d7cdc
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d7b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4d7b39
inc esi
mov eax, edi
call fcn.004d7af4
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.004d7a98
inc ebx
dec esi
jne 0x4d7b22
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d7bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405318
xor eax, eax
push ebp
push 0x4d7c46
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004d7b40
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004d7af4
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004d7a98
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4d7c10
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7c4d
lea eax, [ebp - 4]
call fcn.00404e98
ret
Function at 0x4d8900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d8ae6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4d8aa2
mov eax, dword [ebp - 4]
call fcn.004da2fc
cmp ebx, eax
jge 0x4d8aa2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004cef38
mov edx, dword [0x4d09bc]
call fcn.00404064
mov esi, eax
mov eax, esi
call fcn.004d18a4
test al, al
je 0x4d8a98
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4d8a8c
xor eax, eax
push ebp
push 0x4d8a85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d8eb8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041f518
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004055b8
mov eax, dword [ebp - 8]
call fcn.00405388
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d8c7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8ad0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4d8a84
mov eax, dword [ebp - 4]
call fcn.004d8f40
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b1d8
jmp 0x4d8ad0
mov eax, dword [ebp - 8]
call fcn.00404e98
jmp 0x4d8ad0
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040a604
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x419564]
call fcn.0040e94c
call fcn.004047ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8aed
lea eax, [ebp - 0x54]
call fcn.00404e98
ret
Function at 0x5042c8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x504322
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.005042b8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00501f10
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00501a28
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504329
lea eax, [ebp - 4]
call fcn.00404e98
ret
Function at 0x50cc8c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x50ccb0
cmp eax, 0
jbe 0x50cdb9
jmp 0x50ccb6
jle 0x50cdb9
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.004037d4
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x40
jne 0x50cdb9
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x50cdb9
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x50cdb9
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 4
jne 0x50cdb9
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x50cdb9
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x14
jne 0x50cdb9
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x50cdb9
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x50cdb9
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x50d408
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xf6]
test ax, ax
jbe 0x50d4e8
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x50d4e6
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x50d47e
test eax, 0x40000000
je 0x50d46a
test eax, 0x80000000
je 0x50d465
or edx, 0x40
jmp 0x50d4a5
or edx, 0x20
jmp 0x50d4a5
test eax, 0x80000000
je 0x50d479
or edx, 0x80
jmp 0x50d4a5
or edx, 0x10
jmp 0x50d4a5
test eax, 0x40000000
je 0x50d496
test eax, 0x80000000
je 0x50d491
or edx, 4
jmp 0x50d4a5
or edx, 2
jmp 0x50d4a5
test eax, 0x80000000
je 0x50d4a2
or edx, 8
jmp 0x50d4a5
or edx, 1
test eax, 0x4000000
je 0x50d4b2
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x50d438
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x51054c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push ecx
mov ebx, 0x547518
test edx, edx
jne 0x51055f
xor eax, eax
jmp 0x510674
mov dword [esp], 1
cmp byte [esp], 0
je 0x51057c
push ecx
push edx
push eax
call fcn.00510678
add esp, 0xc
jmp 0x510674
push ecx
push edx
push eax
call fcn.00510938
add esp, 0xc
jmp 0x510674
pop edx
pop esi
pop ebx
ret
Function at 0x5121e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x74]
sub eax, dword [ebx + 0x6c]
mov dword [ebp - 8], eax
jmp 0x51221f
mov edx, dword [ebx + 0x2c]
sub edx, 0x106
add edx, esi
cmp edx, dword [ebx + 0x6c]
ja 0x5122a0
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.0050f8a4
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], edi
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 [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x51226d
mov cx, word [ebp - 4]
sub cx, si
jmp 0x51226f
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x512256
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x512295
mov cx, word [ebp - 4]
sub cx, si
jmp 0x512297
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x51227e
add dword [ebp - 8], esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x512302
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x38]
add edx, dword [ebx + 0x6c]
add edx, dword [ebx + 0x74]
push edx
push edi
call fcn.00511eb0
add esp, 0xc
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x5122ed
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
cmp dword [ebx + 0x74], 0x106
jae 0x512302
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5121f3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5199b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405318
xor eax, eax
push ebp
push 0x519a2f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ac7c
mov eax, dword [ebp - 8]
call fcn.00405328
push eax
call sub.IMAGEHLP.DLL_MakeSureDirectoryPathExists
push 0
mov eax, dword [ebp - 4]
call fcn.00405328
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00405328
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519a36
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ebc
ret
Function at 0x51bcc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
xor eax, eax
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x51bda6
inc edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
cmp eax, dword [ebp + 8]
jge 0x51bda6
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
mov byte [ebp - 0x13], 0xab
movzx ecx, byte [ebp - 0x10]
add byte [ebp - 0x13], cl
xor dl, byte [ebp - 0x13]
lea ecx, [ebx + 2]
movzx esi, dl
shr esi, cl
mov ecx, esi
or cl, byte [ebp - 0x12]
and cl, 0x3f
mov byte [ebp - 0x11], cl
lea ecx, [ebx + 2]
push ecx
mov ecx, 8
pop esi
sub ecx, esi
movzx edx, dl
shl edx, cl
shr edx, 2
and dl, 0x3f
mov byte [ebp - 0x12], dl
add ebx, 2
cmp ebx, 6
jge 0x51bd5e
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
jmp 0x51bd9a
mov edx, dword [ebp + 8]
dec edx
cmp eax, edx
jge 0x51bd86
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax + 1], dl
add eax, 2
jmp 0x51bd94
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x51bcf8
test ebx, ebx
jle 0x51bdb8
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
mov edx, dword [ebp - 8]
mov byte [edx + eax], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x51bdc8
Capabilities:
Encrypt data using rc4 prga

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 dword [ebp - 4], eax
mov esi, 2
xor eax, eax
xor edi, edi
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x51be84
inc edx
mov dword [ebp - 0x14], edx
xor edx, edx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub ecx, 0x3c
js 0x51be18
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub cl, 0x3c
mov byte [ebp - 0xd], cl
jmp 0x51be1c
xor edi, edi
jmp 0x51be84
cmp edi, dword [ebp + 8]
jge 0x51be84
lea ecx, [eax + 6]
cmp ecx, 8
jl 0x51be60
mov ecx, 6
sub ecx, esi
movzx eax, byte [ebp - 0xd]
and al, 0x3f
movzx eax, al
shr eax, cl
or al, byte [ebp - 0xe]
mov cl, 0xab
mov ebx, edi
add cl, bl
xor al, cl
mov ecx, dword [ebp - 8]
mov byte [ecx + edi], al
inc edi
xor eax, eax
cmp esi, 6
jge 0x51be59
add esi, 2
jmp 0x51be60
mov esi, 2
jmp 0x51be7a
mov ecx, esi
movzx ebx, byte [ebp - 0xd]
shl bl, cl
and bl, byte [esi + 0x54b666]
mov byte [ebp - 0xe], bl
mov ecx, 8
sub ecx, esi
add eax, ecx
inc edx
dec dword [ebp - 0x14]
jne 0x51bdfd
mov eax, dword [ebp - 8]
mov byte [eax + edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x52031c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x54b6d4]
mov eax, dword [eax]
call fcn.00405328
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov dword [ebx + 0x3c4], esi
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
mov dword [ebx + 0x3c8], edi
test edi, edi
je 0x520374
mov eax, ebx
call fcn.0045e29c
mov edx, dword [ebx + 0x3c8]
mov dword [edx], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5209a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, edi
mov eax, ebx
test eax, eax
je 0x5209bd
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.004055b8
mov eax, ebx
test eax, eax
je 0x5209d1
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x520a08
mov ebx, 1
mov eax, dword [ebp - 4]
call fcn.00405388
lea eax, [eax + ebx - 1]
push eax
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
movzx eax, byte [edx + 0x54b670]
movzx edx, byte [edi + ebx - 1]
xor al, dl
pop edx
mov byte [edx], al
inc ebx
dec esi
jne 0x5209dc
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret