joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404ba0
mov eax, dword [ebp - 8]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x417b0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004046f0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404bb0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404bb0
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404ce0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00404c08
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x417ae1
mov eax, esi
mov edx, dword [ebp - 0x14]
call fcn.00404744
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417b14
lea eax, [ebp - 0x14]
call fcn.004046f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404714
ret

Function at 0x417cf4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0
push 0
push 0x1c
push 0
call sub.SHFolder.dll_SHGetFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404960
mov eax, dword [ebx]
call fcn.004049b0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x417d35
mov eax, ebx
mov edx, 0x417d48
call fcn.004049b8
add esp, 0x108
pop ebx
ret

Function at 0x417d84
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x417dc1
push 1
call sub.user32.dll_GetClipboardData
mov ebx, eax
test ebx, ebx
je 0x417dbc
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
je 0x417dbc
mov eax, edi
mov edx, esi
call fcn.004048e8
push ebx
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_CloseClipboard
pop edi
pop esi
pop ebx
ret

Function at 0x417fc4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
push esp
push 0
push 0
push esi
push 0
call sub.SHFolder.dll_SHGetFolderPathA
call fcn.00406e7c
test eax, eax
je 0x417ff6
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404960
jmp 0x417ffd
mov eax, ebx
call fcn.004046f0
mov eax, dword [ebx]
call fcn.004049b0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x418019
mov eax, ebx
mov edx, 0x41802c
call fcn.004049b8
add esp, 0x108
pop esi
pop ebx
ret

Function at 0x419790
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419796
ret
Function at 0x41b760
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41b7b1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41b798
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41b788
jmp 0x41b7b1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41b799
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423bb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x423bde
mov eax, ebx
call fcn.00424664
cmp dword [ebx + 0x40], 0
je 0x423bd7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x423c4f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x423c41
cmp dword [ebx + 8], 0
je 0x423c00
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 0x423c12
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x423c41
cmp dword [ebx + 8], 0
je 0x423bf3
cmp eax, 3
je 0x423c25
dec eax
jne 0x423bf3
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 0x423bf3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x423bf3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x423c6d
cmp dword [ebx + 0x14], 0xcc
je 0x423c6d
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.00423c78
pop ebx
ret

Function at 0x4342c4
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x434421
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetDesktopWindow
push eax
push 0
push 0
push 0
push 0
push 0
push 0x434434
call dword [0x44255c]
mov dword [0x442550], eax
cmp dword [0x442550], 0
je 0x434406
push 0
push esi
push 0x40a
mov eax, dword [0x442550]
push eax
call sub.user32.dll_SendMessageA
test eax, eax
je 0x434404
push 0
push 0
push 0x43c
mov eax, dword [0x442550]
push eax
call sub.user32.dll_SendMessageA
lea edx, [ebp - 8]
mov eax, 0x1c
call fcn.00417fc4
lea eax, [ebp - 8]
mov edx, 0x43444c
call fcn.004049b8
mov eax, dword [ebp - 8]
call fcn.00404bb0
push eax
push 0
push 0x419
mov eax, dword [0x442550]
push eax
call sub.user32.dll_SendMessageA
push 0
push 0
push 0x40b
mov eax, dword [0x442550]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
mov dword [0x442550], eax
mov dl, 1
mov eax, dword [0x419500]
call fcn.0041eb10
mov esi, eax
lea edx, [ebp - 0xc]
mov eax, 0x1c
call fcn.00417fc4
lea eax, [ebp - 0xc]
mov edx, 0x43444c
call fcn.004049b8
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov dl, 1
mov eax, dword [0x420e0c]
call fcn.004210c0
mov ebx, eax
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [ebp - 4]
mov byte [ebx + 0x3f], al
mov eax, ebx
call fcn.004215e8
mov edx, dword [edi]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov eax, ebx
call fcn.004039e8
mov eax, esi
call fcn.004039e8
mov bl, 1
jmp 0x434406
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434428
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404714
ret
Function at 0x434664
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x228], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x434886
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, 0x200
call fcn.004026a0
mov ebx, eax
push ebx
push 0x200
call sub.kernel32.dll_GetLogicalDriveStringsA
jmp 0x43485f
lea eax, [ebp - 0x11d]
xor ecx, ecx
mov edx, 0x105
call fcn.004030e4
lea eax, [ebp - 0x222]
xor ecx, ecx
mov edx, 0x105
call fcn.004030e4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x105
lea eax, [ebp - 0x222]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x105
lea eax, [ebp - 0x11d]
push eax
push ebx
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x11d]
mov ecx, 0x105
call fcn.00404960
cmp dword [ebp - 0x228], 0
jne 0x43477c
push esi
push edi
mov esi, 0x434894
lea edi, [ebp - 0x11d]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_GetDiskFreeSpaceExA
mov eax, dword [esi]
mov edx, dword [esi + 4]
add eax, dword [ebp - 8]
adc edx, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [edi]
lea eax, [ebp - 0x22c]
mov edx, ebx
call fcn.004048e8
push dword [ebp - 0x22c]
push 0x4349a4
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x11d]
mov ecx, 0x105
call fcn.00404960
push dword [ebp - 0x230]
push 0x4349a4
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x234]
call fcn.00408374
push dword [ebp - 0x234]
push 0x4349a4
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x238]
call fcn.00408374
push dword [ebp - 0x238]
push 0x4349a4
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x222]
mov ecx, 0x105
call fcn.00404960
push dword [ebp - 0x23c]
push 0x4349a4
push ebx
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x240]
call fcn.00408374
push dword [ebp - 0x240]
push 0x4349a4
mov eax, edi
mov edx, 0xd
call fcn.00404a70
add ebx, 4
cmp byte [ebx], 0
jne 0x4346de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43488d
lea eax, [ebp - 0x240]
mov edx, 7
call fcn.00404714
ret
Function at 0x434cc4
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x434d63
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00408818
test al, al
je 0x434d4d
xor eax, eax
push ebp
push 0x434d43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bb0
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434d4d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434d6a
lea eax, [ebp - 4]
call fcn.004046f0
ret

Function at 0x434d74
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x434e35
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x434e13
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.004030e4
lea eax, [ebp - 0x122]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004030e4
lea eax, [ebp - 0x122]
mov edx, dword [ebp - 4]
call fcn.00408d20
xor eax, eax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x122]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x40
or word [ebp - 0x12], 0x10
or word [ebp - 0x12], 4
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434e1f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434e3c
lea eax, [ebp - 4]
call fcn.004046f0
ret
Function at 0x434e48
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba0
mov eax, dword [ebp - 8]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x434f11
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x434ee2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
xor ecx, ecx
mov edx, 0x1e
call fcn.004030e4
lea eax, [ebp - 0x2c]
mov ecx, 0x434f2c
mov edx, dword [ebp - 4]
call fcn.004049fc
mov eax, dword [ebp - 0x2c]
call fcn.00404bb0
mov dword [ebp - 0x1e], eax
mov eax, dword [ebp - 8]
call fcn.00404bb0
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x22], 2
mov word [ebp - 0x16], 0x2c4
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434eee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434f18
lea eax, [ebp - 0x2c]
call fcn.004046f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404714
ret

Function at 0x434f30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba0
mov eax, dword [ebp - 8]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x434ff9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x434fca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
xor ecx, ecx
mov edx, 0x1e
call fcn.004030e4
lea eax, [ebp - 0x2c]
mov ecx, 0x435014
mov edx, dword [ebp - 4]
call fcn.004049fc
mov eax, dword [ebp - 0x2c]
call fcn.00404bb0
mov dword [ebp - 0x1e], eax
mov eax, dword [ebp - 8]
call fcn.00404bb0
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x22], 1
mov word [ebp - 0x16], 0x2c4
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434fd6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435000
lea eax, [ebp - 0x2c]
call fcn.004046f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404714
ret
Function at 0x437874
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x4378f7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4378d5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.004084ac
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4378cb
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4378e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4378fe
lea eax, [ebp - 4]
call fcn.004046f0
ret

Function at 0x43ab54
Capabilities:
Hide graphical window

Disassembly:
push 0
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x453217
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sahf
clc
xor al, bl
xor al, bl
clc
sahf
mov eax, 0
xchg ebp, ecx
xchg ebp, ecx
push eax
imul eax, eax, 0x10
jmp 0x4532f4
nop
xchg edx, eax
xchg edx, eax
nop
cld
nop
lea edx, [edx]
lea ebx, [ebx]
sub eax, dword [esp + 4]
jne 0x45337a
cmp al, dh
clc
mov esi, dword [edx + 0x24]
test ah, 0x88
add al, cl
lea eax, [esi - 0xd]
not eax
mov edi, dword [edx + 0x1c]
nop
add esi, ebx
jmp 0x4532d1
inc ecx
add ch, 0x1e
adc ecx, ebp
sub esi, edi
lea edx, [edx + ebx]
sbb ah, bh
and ah, ch
lea ecx, [edi + 0x2799becf]
not al
dec ch
inc esi
test edi, 0xe0fc3d53
nop
not ch
not ecx
mov esi, dword [edx + 0x20]
cmp edi, 0x2c
lea esi, [ebx + esi]
and edi, esi
mov ah, bl
mov edi, ecx
push 0xffffffffffffffff
jmp 0x453370
ret
mov eax, dword [ebx + 0x3c]
inc dl
mov edx, dword [eax + ebx + 0x78]
jmp 0x4531a8
nop
movzx eax, word [esi + ecx*2]
add edi, ebx
not edx
cmp edx, 0x92409458
inc edx
mov edx, ecx
mov esi, dword [edi + eax*4]
dec ah
mov edx, esi
cmp eax, 0x59
xchg ah, ah
add esi, ebx
ret 4
cmp ebx, esp
xchg dword [esp], eax
sahf
cmc
xchg al, dl
xchg al, dl
sub dword [esp], eax
nop
clc
movzx eax, byte [edi]
stc
nop
dec ah
inc ah
stc
mov dh, dh
or ah, ah
mov esi, esi
and eax, eax
wait
sub edi, 0xffffffff
sub dword [esp], eax
jmp 0x453448
sbb eax, 0x5aaf57df
inc ah
and edi, esp
pop ecx
add ecx, 1
cmp edi, 0x1f48e20d
lodsd eax, dword [esi]
jmp 0x4533a7
cld
wait
nop
nop
cld
xchg bh, dl
xchg bh, dl
lea esi, [esi]
not bl
not bl
mov esp, esp
mov dl, dl
lea ecx, [ecx]
xchg al, dl
xchg al, dl
not ebp
not ebp
lea edi, [eax + ebx]
cmp ecx, dword [edx + 0x18]
xchg dh, dh
xchg dh, dh
cld
je 0x453212
jmp 0x453000
wait
lea edi, [edi]
pop eax
wait
lea ebx, [ebx]
test byte [edi], 0xff
lea edx, [edx]
lea edi, [edi]
mov edx, edx
lea edx, [edx]
jne 0x453011
cld
xchg ecx, edx
xchg ecx, edx
xchg cl, ah
xchg cl, ah
xor eax, 0x692904d0
jmp 0x453136
Function at 0x80a167
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52b0c0]
xor edx, edx
cmp eax, edx
jne 0x80a18d
xor eax, eax
mov byte [eax + 0x52afc0], al
inc eax
cmp eax, 0x100
jl 0x80a175
mov dword [0x52b0c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52afc0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x80a21e
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x80a1f1
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x80a1bf
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x80a297
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x80a2ea
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x80a2d1
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x80e667
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x80e888
cmp eax, 8
jg 0x80e888
cmp dword [esp + 0x8c], 2
jl 0x80e888
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x80e888
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x80e888
mov eax, dword [esp + 0x80]
test eax, eax
je 0x80e6ee
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x80e871
mov ebp, dword [fcn.004c4570]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x80e720
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x80e858
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x80e740
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [fcn.004c455c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x80e77f
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.004c4564]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.004c45a0]
test eax, eax
jne 0x80e83f
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0080dc77
cmp eax, 1
jne 0x80e869
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0080e527
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x80e734
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x80e871
jmp 0x80e70b
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0080d877
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x811307
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x81149f
cmp ebp, ebx
jle 0x81149f
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x811365
dec eax
or eax, 0xfffffff8
inc eax
je 0x81136c
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x81137b
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x811382
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00886e2b
add esp, 4
cmp eax, ebx
je 0x8113a3
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00886e2b
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x811495
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x81147c
mov al, byte [edx]
cmp al, 0xc0
jbe 0x811468
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x81145d
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x81146b
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x81146b
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x811407
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x8113f8
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret